Aliases ...

Andreas Jaeger aj@suse.de
Sun Jan 9 21:00:00 GMT 2005


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-hacker/attachments/20050109/66ca2863/attachment.sig>


More information about the Libc-hacker mailing list