Bug 2292 - `regex_t' undeclared; include regex.h if HAVE_REGEX_H is defined
`regex_t' undeclared; include regex.h if HAVE_REGEX_H is defined
Status: RESOLVED INVALID
Product: Samba 3.0
Classification: Unclassified
Component: Build environment
3.0.10
All Linux
: P3 normal
: none
Assigned To: Gerald (Jerry) Carter
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-01-31 09:31 UTC by Lars Müller
Modified: 2005-02-07 07:36 UTC (History)
0 users

See Also:


Attachments
Include regex.h if HAVE_REGEX_H is defined (466 bytes, patch)
2005-01-31 09:34 UTC, Lars Müller
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lars Müller 2005-01-31 09:31:02 UTC
Compiling client/client.c
client/client.c: In function `do_get':
client/client.c:738: warning: passing arg 4 of `cli_getattrE' from incompatible
pointer type
`regex_t' is undeclared in client/clitar.c even if we have found regex.h and
HAVE_REGEX_H is defined.

This build problem only happens to our current development tree.

client/client.c: In function `do_put':
client/client.c:1115: warning: passing arg 4 of `cli_getattrE' from incompatible
pointer type
Compiling client/clitar.c
client/clitar.c:91: error: syntax error before '*' token
client/clitar.c:91: warning: type defaults to `int' in declaration of `preg'
client/clitar.c:91: warning: data definition has no type or storage class
client/clitar.c: In function `do_tar':
client/clitar.c:801: warning: implicit declaration of function `regexec'
client/clitar.c: In function `tar_parseargs':
client/clitar.c:1754: error: `regex_t' undeclared (first use in this function)
Comment 1 Lars Müller 2005-01-31 09:34:16 UTC
Created attachment 928 [details]
Include regex.h if HAVE_REGEX_H is defined
Comment 2 Lars Müller 2005-01-31 10:07:50 UTC
This is a bug in /usr/include/gssapi/gssapi.h of krb5-devel.
Comment 3 Lars Müller 2005-01-31 10:08:09 UTC
It's invalid and not wintfix.
Comment 4 Lars Müller 2005-01-31 10:08:27 UTC
Close as invalid.
Comment 5 Gerald (Jerry) Carter 2005-02-07 07:36:51 UTC
originally reported against 3.0.11pre1.  Moving back to version to 3.0.10 
to remove preX and rcX versions.