[hatari-devel] Unable to compile hatari on Solaris 11

Thomas Huth huth at users.berlios.de
Mon May 9 08:06:00 CEST 2011


Am Mon, 9 May 2011 07:52:36 +0200
schrieb Christer Solskogen <christer.solskogen at gmail.com>:

> On Sun, May 8, 2011 at 9:29 PM, Thomas Huth <huth at users.berlios.de>
> wrote:
> > Am Fri, 29 Apr 2011 08:56:17 +0200
> > schrieb Christer Solskogen <christer.solskogen at gmail.com>:
> >
> > /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 make[2]: *** [src/hatari] Error 1
> >> make[2]: Leaving directory `/home/et0640/source/hatari'
> >> make[1]: *** [src/CMakeFiles/hatari.dir/all] Error 2
> >> make[1]: Leaving directory `/home/et0640/source/hatari'
> >> make: *** [all] Error 2
> >
> > If I get the FindX11 module of CMake right, it already checks for
> > libsocket... we just used the wrong variable in our
> > CMakeLists.txt... could you please try the following patch to see
> > whether this fixes this issue:
> >
> > diff -r 75b86c628507 src/CMakeLists.txt
> > --- a/src/CMakeLists.txt        Sun May 01 23:02:05 2011 +0300
> > +++ b/src/CMakeLists.txt        Sun May 08 21:27:12 2011 +0200
> > @@ -122,7 +122,7 @@
> >  endif(PNG_FOUND)
> >
> >  if(X11_FOUND)
> > -       target_link_libraries(hatari ${X11_X11_LIB})
> > +       target_link_libraries(hatari ${X11_LIBRARIES})
> >  endif(X11_FOUND)
> >
> >  if(PORTAUDIO_FOUND)
> >
> >
> 
> That patch was already applied to mercurial.
> Linking worked perfect :-) hatari works on Solaris (11) now :-)

Great to hear that! Thanks for trying it out!

 Thomas



More information about the hatari-devel mailing list