[vlc-devel] Linking problem on openSUSE 11.0 32 bits [gcc atomic builtins]

Gilles Sabourin gilles.sabourin at free.fr
Sat Sep 20 10:24:04 CEST 2008


I have a linking problem since yesterday with these missing references when 
building libvlc  : __sync_fetch_and_sub_4 and __sync_fetch_and_add_4

When searching on the web for this problem, it has a relationship with gcc 4.2 
atomic builtins architecture mismatch. See : 

Best regards,

Here are the backtraces :

Making all in libs/srtp
make[2]: Entering directory `/usr/src/packages/BUILD/vlc-beta-1.0.0/libs/srtp'
/bin/sh ../../libtool --tag=CC   --mode=compile 
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../..   -I../../include -I../../include  -DSYS_LINUX  -Wall -Wextra -Wsign-compare -Wundef -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wvolatile-register-var -MT 
srtp.lo -MD -MP -MF .deps/srtp.Tpo -c -o srtp.lo srtp.c
mkdir .libs
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -I../../include -I../../include -DSYS_LINUX -Wall -Wextra -Wsign-compare -Wundef -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wvolatile-register-var -MT 
srtp.lo -MD -MP -MF .deps/srtp.Tpo -c srtp.c  -fPIC -DPIC -o .libs/srtp.o
mv -f .deps/srtp.Tpo .deps/srtp.Plo
/bin/sh ../../libtool --tag=CC   --mode=link 
gcc -std=gnu99  -Wall -Wextra -Wsign-compare -Wundef -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wvolatile-register-var   -o 
libvlc_srtp.la  srtp.lo -lgcrypt -lgpg-error -lpthread
ar cru .libs/libvlc_srtp.a .libs/srtp.o
ranlib .libs/libvlc_srtp.a
creating libvlc_srtp.la
(cd .libs && rm -f libvlc_srtp.la && ln -s ../libvlc_srtp.la libvlc_srtp.la)
make[2]: Leaving directory `/usr/src/packages/BUILD/vlc-beta-1.0.0/libs/srtp'
Making all in bin
make[2]: Entering directory `/usr/src/packages/BUILD/vlc-beta-1.0.0/bin'
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..   -I../include -I../include  -DSYS_LINUX 
`top_builddir=".." ../vlc-config --cflags 
vlc` -Wall -Wextra -Wsign-compare -Wundef -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wvolatile-register-var -MT 
vlc.o -MD -MP -MF .deps/vlc.Tpo -c -o vlc.o vlc.c
vlc.c: In function ‘main’:
vlc.c:138: warning: ‘libvlc_playlist_play’ is deprecated (declared 
at ../include/vlc/deprecated.h:101)
mv -f .deps/vlc.Tpo .deps/vlc.Po
/bin/sh ../libtool --tag=CC   --mode=link gcc -std=gnu99 
`top_builddir=".." ../vlc-config --cflags 
vlc` -Wall -Wextra -Wsign-compare -Wundef -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wvolatile-register-var 
`top_builddir=".." ../vlc-config --ldflags vlc`  -o vlc 
vlc.o ../src/libvlc.la ../src/libvlccore.la  
`top_builddir=".." ../vlc-config -libs vlc`
mkdir .libs
gcc -std=gnu99 -D_FILE_OFFSET_BITS=64 -D__USE_UNIX98 -D_LARGEFILE64_SOURCE -D_REENTRANT -D_THREAD_SAFE -DDEBUG -DMODULE_NAME=vlc -DMODULE_NAME_IS_vlc -DMODULE_STRING=\"vlc\" -g -O0 -Wall -Wextra -Wsign-compare -Wundef -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wvolatile-register-var -g -o .libs/vlc 
vlc.o  ../src/.libs/libvlc.so /usr/src/packages/BUILD/vlc-beta-1.0.0/src/.libs/libvlccore.so -L/lib ../src/.libs/libvlccore.so /usr/lib/libhal.so -luuid -ldbus-1 -lrt -lpthread -ldl -lm
/usr/src/packages/BUILD/vlc-beta-1.0.0/src/.libs/libvlccore.so: undefined 
reference to `__sync_fetch_and_sub_4'
/usr/src/packages/BUILD/vlc-beta-1.0.0/src/.libs/libvlccore.so: undefined 
reference to `__sync_fetch_and_add_4'
collect2: ld returned 1 exit status
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20080920/d0d9cb11/attachment.sig>

More information about the vlc-devel mailing list