[AD] [ alleg-Bugs-2343376 ] undefined references

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Bugs item #2343376, was opened at 2008-11-26 00:16
Message generated for change (Settings changed) made by tjaden
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105665&aid=2343376&group_id=5665

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: 4.9
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: lisu87 (lisu87)
Assigned to: Nobody/Anonymous (nobody)
Summary: undefined references

Initial Comment:
gcc -o scons_build/release/examples/ex_acodec scons_build/release/examples/ex_acodec.o -Lscons_build/release/addons/font/lib -Laddons/font/lib -Lscons/addons/font/lib -Lscons_build/release/addons/acodec/lib -Laddons/acodec/lib -Lscons/addons/acodec/lib -Lscons_build/release/addons/ttf/lib -Laddons/ttf/lib -Lscons/addons/ttf/lib -Lscons_build/release/addons/iio/lib -Laddons/iio/lib -Lscons/addons/iio/lib -Lscons_build/release/addons/kcm_audio/lib -Laddons/kcm_audio/lib -Lscons/addons/kcm_audio/lib -Lscons_build/release -Lscons -la5_font -la5_iio -la5_ttf -la5_kcm_audio -la5_acodec -lallegro-4.9.6 -lGLU
scons_build/release/liballegro-4.9.6.so: undefined reference to `__sync_sub_and_fetch_4'
scons_build/release/liballegro-4.9.6.so: undefined reference to `__sync_fetch_and_add_4'
collect2: ld returned 1 exit status

----------------------------------------------------------------------

Comment By: Peter Wang (tjaden)
Date: 2008-12-10 16:07

Message:
Ok.  This was a stupid premature optimisation on my part anyway, so I will
change the event code just to do locking when reference counting user
defined events.


----------------------------------------------------------------------

Comment By: Thomas Fjellstrom (strangemoose)
Date: 2008-12-10 15:50

Message:
While it "works for me", I've seen others get hit with this problem as
well, for some reason, some builds of GCC (linux and mingw) don't include
those builtins by default. Its very confusing and I haven't managed to
track it down yet.

----------------------------------------------------------------------

Comment By: Peter Wang (tjaden)
Date: 2008-12-10 15:36

Message:
OS, architecture, gcc version?

Setting as Works For Me for now.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105665&aid=2343376&group_id=5665




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/