[vlc-devel] commit: Fix GCC error message: undefined reference to `__sync_fetch_and_sub_4` (Jean-Paul Saman )

git version control git at videolan.org
Sun Sep 21 19:45:00 CEST 2008


vlc | branch: master | Jean-Paul Saman <jpsaman at videolan.org> | Sun Sep 21 19:42:27 2008 +0200| [ce241ca11ac2e2db3a8c312616906e064772fc11] | committer: Jean-Paul Saman 

Fix GCC error message: undefined reference to `__sync_fetch_and_sub_4`

The exact error message is: src/.libs/libvlccore.so: undefined reference to `__sync_fetch_and_sub_4'. According to irc discussion gcc version 4.1.2 (fc8), 4.1.3, 4.2, 4,3.2 and 4.3.2 (archlinux) fail with this error message. This patch fixes it by bumping up the minor number for gcc to 4.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ce241ca11ac2e2db3a8c312616906e064772fc11
---

 src/libvlc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/libvlc.c b/src/libvlc.c
index ee87b4c..128ae90 100644
--- a/src/libvlc.c
+++ b/src/libvlc.c
@@ -77,7 +77,7 @@
 #endif
 
 #if defined(__GNUC__)
-#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 0)
+#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 4)
 #define USE_SYNC
 #endif
 #endif




More information about the vlc-devel mailing list