This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: More on autogen 5 build failure (Richard Kenner) writes:

> It seems those errors are because options.h comes from /usr/local/include,
> which seems to be a related header (peculiar it's going there).  But when
> I remove it, I get:
> gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I. -I/usr/local/include   -I../autoopts -I
> ../autoopts     -I../snprintfv -I../snprintfv   -I.. -I..    -g -O2 -c opts.c
> opts.c: In function `doOptLoad_Functions':
> opts.c:755: `RTLD_GLOBAL' undeclared (first use in this function)
> opts.c:755: (Each undeclared identifier is reported only once
> opts.c:755: for each function it appears in.)
> And indeed I don't see that symbol defined anywhere in the autogen
> package.

That macro is defined when including <dlfcn.h> on my glibc2.2 based
Linux system.

/* If the following bit is set in the MODE argument to `dlopen',
   the symbols of the loaded object and its dependencies are made
   visible as if the object were linked directly into the program.  */
#define RTLD_GLOBAL     0x00100

 Andreas Jaeger
  SuSE Labs

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]