[hatari-devel] Unable to compile hatari on Solaris 11
Eero Tamminen
oak at helsinkinet.fi
Sat Apr 30 15:08:47 CEST 2011
Hi,
On perjantai 29 huhtikuu 2011, Christer Solskogen wrote:
> Now I see this:
...
> CMakeFiles/hatari.dir/ymFormat.c.o -o hatari
> -L/home/et0640/source/hatari/src/debug
> -L/home/et0640/source/hatari/src/falcon
> -L/home/et0640/source/hatari/src/gui-sdl
> -L/home/et0640/source/hatari/src/uae-cpu debug/libDebug.a
> falcon/libFalcon.a gui-sdl/libGuiSdl.a libFloppy.a uae-cpu/libUaeCpu.a
> -lSDL -lthread -lm -lz -lpng -lX11
> -Wl,-R/home/et0640/source/hatari/src/debug:/home/et0640/source/hatari/src
> /falcon:/home/et0640/source/hatari/src/gui-sdl:/home/et0640/source/hatari
> /src/uae-cpu: Undefined first referenced
> symbol in file
> socket CMakeFiles/hatari.dir/control.c.o
> (symbol belongs to implicit dependency /usr/lib/libsocket.so.1)
> connect CMakeFiles/hatari.dir/control.c.o
> (symbol belongs to implicit dependency /usr/lib/libsocket.so.1)
> ld: fatal: symbol referencing errors. No output written to hatari
> collect2: ld returned 1 exit status
It would seem that your compiler has enabled errors on using functions
from libraries that aren't directly linked.
On Linux socket() is in the C-library, but it seems that no Solaris you need
to add "-lsocket" to CMAKE_EXE_LINKER_FLAGS, at least when
HAVE_UNIX_DOMAIN_SOCKETS is enabled (socket() function is found by CMake).
Does that fix your problem?
Eero
More information about the hatari-devel
mailing list