Skip to contentSkip to conversation

Linux 2.4.3-ac12

DISCUSSION f5ibh 2 participants 2 messages Apr 22, 2001

lore
Share & tools
lore

f5ibh

author
#0 lore raw

Alan,

Quoted 7 lines
Quoted 3 lines

/usr/src/linux-2.4.3-ac12/lib/lib.a(rwsem.o): In function rwsem_up_write_wake':rwsem.o(.text+0x3c6): undefined reference to __builtin_expect'

Add a

#define __builtin_expect

I had the same problem here, adding #define __builtin_expect in ../lib/rwsem.c solved the problem.

gcc is :

[jean-luc@debian-f5ibh] ~ # gcc -v
Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.3/specs gcc version 2.95.3 20010315 (Debian release)

-------
Regards

Jean-Luc

#1 lore raw
Quoted 12 lines · f5ibh wrote:

Alan,

Quoted 7 lines
Quoted 3 lines

/usr/src/linux-2.4.3-ac12/lib/lib.a(rwsem.o): In function rwsem_up_write_wake':rwsem.o(.text+0x3c6): undefined reference to __builtin_expect'

Add a

#define __builtin_expect

Quoted 9 lines

I had the same problem here, adding #define __builtin_expect in ../lib/rwsem.c solved the problem.

gcc is :

[jean-luc@debian-f5ibh] ~ # gcc -v
Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.3/specs gcc version 2.95.3 20010315 (Debian release)

Just a 'me too'. I had the same problem, and the #define fixed it nicely...

bash-2.03# gcc -v
Reading specs from /usr/lib/gcc-lib/i386-slackware-linux/2.95.3/specs gcc version 2.95.3 20010315 (release)

-- Jesper Juhl - [email protected]