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

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


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

Aliases ...


From: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19346
 

Description:  [reply] 
Last confirmed: 2005-01-09 15:50 
Opened: 2005-01-09 10:11 

With current GCC CVS I get lots of warnings when compiling glibc 
about aliases to undefined symbols: 
 
aj@gromit:~/tmp> /opt/gcc/4.0-devel/bin/gcc -O2 -c test.i 
test.i:2: warning: ?__libc_errno? aliased to undefined symbol ?errno? 
aj@gromit:~/tmp> nm test.o 
0000000000000004 C errno 
 
One testcase is: 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
int errno; 
extern  int __libc_errno __attribute__ ((alias ("errno"))); 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 

 ------- Additional Comment #1 From Andrew Pinski 2005-01-09 15:50 [reply] ------- 
Confirmed.
 

 ------- Additional Comment #2 From Richard Henderson 2005-01-09 18:46 [reply] ------- 
I hadn't realized aliases to COMMON symbols ever worked...
 

 ------- Additional Comment #3 From Richard Henderson 2005-01-09 18:49 [reply] ------- 
Indeed, they DO NOT work, and never have.  The warning is correct.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

So, what shall we do with glibc?

Btw. I get this warning also for:
wcsftime_l.c:26: warning: âwcsftime_lâ aliased to undefined symbol â__wcsftime_lâ
../nss/getXXent_r.c:203: warning: âgetgrent_râ aliased to undefined symbol â__new_getgrent_râ
../sysdeps/posix/pathconf.c:237: warning: âpathconfâ aliased to undefined symbolâ__pathconfâ
../sysdeps/posix/fpathconf.c:241: warning: âfpathconfâ aliased to undefined symbol â__fpathconfâ

Richard, do these also point to a problem in glibc?

Andreas
-- 
 Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj
  SUSE Linux Products GmbH, Maxfeldstr. 5, 90409 NÃrnberg, Germany
   GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126

Attachment: pgp00000.pgp
Description: PGP signature


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