Complete.Org: Mailing Lists: Archives: freeciv-dev: January 2005:
[Freeciv-Dev] Re: (PR#11825) os x building
Home

[Freeciv-Dev] Re: (PR#11825) os x building

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: [Freeciv-Dev] Re: (PR#11825) os x building
From: "Ruben Zilibowitz" <rzilibow@xxxxxxxxxxxxxx>
Date: Thu, 6 Jan 2005 17:35:40 -0800
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=11825 >

No, I don't think that is it. The linker is only generating lots of 
warnings about the two libs - I am not sure how to deal with those 
exactly, but I know why it is the case. If you install using fink os 
Mac OS X, chances are you will get these double ups. Fink installs only 
into paths beginning with /sw.

The actual error is here:

ld: /usr/lib/crt1.o illegal reference to symbol: __objcInit defined in
indirectly referenced dynamic library /usr/lib/libobjc.A.dylib

This is my diagnosis... on os x, you can't just link with SDL_mixer. 
You must use -lSDL_mixer -lSDLmain -lSDL -framework Cocoa

if I do:
gcc -o conftest conftest.c `sdl-config --cflags --libs` -lSDL_mixer
The test program compiles without a single error or warning.

So, I'm thinking, shouldn't the configure script be responsible for 
calling sdl-config somewhere in the following line:

configure:14467: gcc -no-cpp-precomp -o conftest -Wall -Wpointer-arith 
-Wcast-align -Wmissing-prototypes -Wmissing-declarations -O3 
-I/sw/include -L/sw/lib conftest.c -lSDL_mixer  -lz  -liconv >&5

Ruben


On 07/01/2005, at 7:58 AM, Jason Short wrote:

>
> <URL: http://bugs.freeciv.org/Ticket/Display.html?id=11825 >
>
> Ruben Zilibowitz wrote:
>> <URL: http://bugs.freeciv.org/Ticket/Display.html?id=11825 >
>>
>> I am building freeciv 2 beta 6 on mac os x using gtk+ 2.0. I am having
>> trouble getting it to work with sdl_mixer. Below is the relevant
>> portion of config.log after running the configure script.
>
> The problem appears to be that you have two copies of the iconv library
> installed.  SDL mixer already links to one and Freeciv tries to link to
> the other.  The two conflict.
>
> -jason
>
>
>
>





[Prev in Thread] Current Thread [Next in Thread]