[Openswan Users] Compile problem for 2.6.31

Erich Titl erich.titl at think.ch
Wed Nov 17 09:24:10 EST 2010


Hi Folks

some more information on my compile problem

It appears that the following definitions are missing in a uClibc
environment

#ifndef GLOB_BRACE
# define GLOB_BRACE      (1 << 10)
#endif
#ifndef GLOB_NOMAGIC
# define GLOB_NOMAGIC    (1 << 11)
#endif


They should be set in glob.h but apparently some compiler settings break
this.


#if ( !defined __USE_POSIX2 || defined __USE_BSD || defined __USE_GNU )
&& defined __UCLIBC_HAS_GNU_GLOB__
# define GLOB_MAGCHAR    (1 << 8)/* Set in gl_flags if any metachars
seen.  */
#if 1 /* uClibc gnu glob does not support these */
# define GLOB_ALTDIRFUNC (1 << 9)/* Use gl_opendir et al functions.  */
# define GLOB_BRACE      (1 << 10)/* Expand "{a,b}" to "a" "b".  */
# define GLOB_NOMAGIC    (1 << 11)/* If no magic chars, return the
pattern.  */
# define GLOB_TILDE      (1 << 12)/* Expand ~user and ~ to home
directories. */
# define GLOB_ONLYDIR    (1 << 13)/* Match only directories.  */
# define GLOB_TILDE_CHECK (1 << 14)/* Like GLOB_TILDE but return an error
                                      if the user name is not available.  */


Now I don't know if it is safe to just define __USE_GNU and
__UCLIBC_HAS_GNU_GLOB__ .
The installation sugests that the latter is correct

./source/buildenv/uClibc-0.9.30.3/include/glob.h
./source/buildenv/uClibc-0.9.30.3/include/config/uclibc/has/glob.h

about the former, I don't know, it is a pure gnu environment.

Thanks

Erich

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3409 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.openswan.org/pipermail/users/attachments/20101117/78333405/attachment.bin 


More information about the Users mailing list