This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Dri-devel] Re: OpenGL and the LinuxThreads pthread_descr structure


On Fri, May 17, 2002 at 11:50:10AM +0100, Keith Whitwell wrote:
> OK, trying the __attribute__ stuff doesn't seem to work for me:
> 
> 
> f12.h:3: warning: `visibility' attribute directive ignored
> f12.h:4: warning: `visibility' attribute directive ignored
> 
> 
> Where f12.h looks like:
> 
> ---------------------------
> #define INTERNAL __attribute__((visibility("hidden")))
> 
> extern void foo1( void ) INTERNAL;
> extern void foo2( void ) INTERNAL;
> extern void glfoo2( void );
> ---------------------------
> 
> 
> And gcc -v gives:
> 
> gcc version 2.96 20000731 (Mandrake Linux 8.1 2.96-0.62mdk)
> 
> Is this a versions thing or am I screwing up elsewhere?

It is a very new thing.
Only GCC 3.2, the Red Hat GCC 3.1 package and gcc-2.96-RH >= 2.96-108
(dunno which Mandrake version incorporates those changes).
If the warning bothers you, then you probably need to add some configury
to check whether gcc supports this and define the macro only
if that is the case; but the warnings are harmless.

Concerning the version script, anonymous version script are fairly new too
(that's the
{ global: ...; local: *; }
) in binutils unlike the standard version scripts
(that's
GL_1.0 { global: ...; local: *; }
). Solaris ld accepts both forms for a long time though (but has other
limitations).

	Jakub


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