[AD] [ alleg-Bugs-1107252 ] Current CVS does not work on OSX

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


Bugs item #1107252, was opened at 2005-01-22 10:53
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105665&aid=1107252&group_id=5665

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Peter Hull (peterhull90)
Assigned to: Nobody/Anonymous (nobody)
Summary: Current CVS does not work on OSX

Initial Comment:
The current CVS version doesn't compile on OSX; the 
problem is in the linker stage. The link command that starts 
like this:
gcc -dynamiclib -prebind -seg1addr 0x30000000 -
dylib_compatibility_version=4.0.0 -
dylib_current_version=4.1.18 -install_name liballeg-4.1.dylib  
-o lib/macosx/liballeg-4.1.18.dylib obj/macosx/alleg/
allegro.o  ...

I get the following error:
ld: multiple definitions of symbol 
__al_normal_packfile_details
obj/macosx/alleg/allegro.o definition of 
__al_normal_packfile_details in section (__DATA,__common)
obj/macosx/alleg/blit.o definition of 
__al_normal_packfile_details in section (__DATA,__common)
...
(repeats for what looks like every .o file in library)

Basically file.h contains something like

struct _al_normal_packfile_details {
blah
} _al_normal_packfile_details;

i.e an instance of this structure is being created in every 
object file.

A patch is attached; I don't know why this is an OSX issue, it 
ought to fail for everyone!

Peter


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

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




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