This is the mail archive of the 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]

again GPREL16 problem on alpha - this time in resolv


I am trying to build the latest glibc cvs on my alpha running Fedora Core 2 
and I get the following error:

make[2]: Entering directory 
creating /usr/src/redhat/BUILD/glibc-2.3.3-200408100002/build-alpha-linux/linuxthreads/libpthread_nonshared.a
/usr/bin/ld: /usr/src/redhat/BUILD/glibc-2.3.3-200408100002/build-alpha-linux/linuxthreads/libc_pic_lite.os: 
gp-relative relocation against dynamic symbol __res_initstamp
relocation truncated to fit: GPREL16 __res_initstamp
collect2: ld returned 1 exit status
make[2]: *** 
Error 1
make[2]: Leaving directory 
make[1]: *** [linuxthreads/others] Error 2
make[1]: Leaving directory `/usr/src/redhat/BUILD/glibc-2.3.3-200408100002'
make: *** [all] Error 2

The problem seems to be related to the latest patch applied on resolv 
introducing quite few new things. I already needed to apply patch (attached) 
for excluding usage of atomic_increment on alpha (could be it need to be 
excluded on some other 64 bit platforms as well - as far as I can see 
atomic_increment seems to be implemented on x86_64 only)

Attached output of readelf -Wa elf/
GNU ld version 20040415
gcc version 3.3.3 20040412 (Red Hat Linux 3.3.3-7)

Any idea ?


Andrija Pantovic
System Analyst
Perot Systems Corporation
Compute and Processing Services
Europastrasse 2, Zurich

Phone:        +41 1 23 96372
Fax:          +41 1 23 96313
Mobile:       +41 76 4504134

Description: BZip2 compressed data

--- glibc-2.3.3-200408100002/resolv/res_libc.c	2004-08-06 19:52:53.000000000 +0200
+++ glibc-2.3.3-200408100002-work/resolv/res_libc.c	2004-08-11 14:38:40.055510236 +0200
@@ -30,7 +30,7 @@
 unsigned long long int __res_initstamp attribute_hidden;
 /* We have atomic increment operations on 64-bit platforms.  */
-#if __WORDSIZE == 64
+#if __WORDSIZE == 64 && !defined(__ALPHA)
 # define atomicinclock(lock) (void) 0
 # define atomicincunlock(lock) (void) 0
 # define atomicinc(var) atomic_increment (&(var))
Visit our website at

This message contains confidential information and is intended only 
for the individual named.  If you are not the named addressee you 
should not disseminate, distribute or copy this e-mail.  Please 
notify the sender immediately by e-mail if you have received this 
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free 
as information could be intercepted, corrupted, lost, destroyed, 
arrive late or incomplete, or contain viruses.  The sender therefore 
does not accept liability for any errors or omissions in the contents 
of this message which arise as a result of e-mail transmission.  If 
verification is required please request a hard-copy version.  This 
message is provided for informational purposes and should not be 
construed as a solicitation or offer to buy or sell any securities or 
related financial instruments.

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