From: Andrew Burton <adb@ii...> - 2009-03-30 10:20:44
On Mon, 2009-03-30 at 11:27 +0200, Heinz Wiesinger wrote:
> On Monday 30 March 2009 11:00:33 Andrew Burton wrote:
> > Which version of glib-dev are you running?
> > For some reason, the gio.h that defines the missing items is not
> > picked up. It is within glib, so should be available.
> Grrrr, I was working on the wrong file :(
> That file works now, thanks.
> However, I get another error later on:
> gcc -g -O2 -o .libs/pcsx LnxMain.o Plugin.o Config.o configure-dlg.o
> memcard-dlg.o plugin-file-handler.o pcsx-file-handler.o
> pcsx-memcard-handler.o Gtk2Gui.o pcsx-main-win.o
> hdebug.o /usr/lib/libgio-2.0.so/usr/lib/libglade-2.0.so /usr/lib/libgtk-x11-2.0.so /usr/lib/libxml2.so /usr/lib/libgdk-x11-2.0.so /usr/lib/libatk-1.0.so /usr/lib/libgdk_pixbuf-2.0.so /usr/lib/libpangocairo-1.0.so /usr/lib/libpango-1.0.so/usr/lib/libcairo.so /usr/lib/libgobject-2.0.so /usr/lib/libgmodule-2.0.so -ldl /usr/lib/libglib-2.0.so ../libpcsxcore/.libs/libpcsxcore.so
> LnxMain.o: In function `main':
> /mnt/progs/slack/test/pcsx-df-1.10/gui/LnxMain.c:104: undefined
> reference to `check_sub_directories'
> hdebug.o: In function `hdb_start':
> /mnt/progs/slack/test/pcsx-df-1.10/gui/hdebug.c:383: undefined
> reference to `pthread_create'
> collect2: ld returned 1 exit status
> make: *** [pcsx] Error 1
So looks like we are:
1. missing a few linker items (-lpthread)
2. missing a few #includes - LnxMain.c should have a #include
Evidently for 2. the compile flags currently in use are not picking this
up, but Slackware might have additional ones that are more strict.
Try also adding -Wno-implicit to gui/Makefile.am, running autogen.sh
from the TLD and reconfiguring/compiling to get past this issues.
In the meantime, will have to fix them in CVS!
> I can fix the last error by adding -lpthread to the command manually,
> but have no idea about the first one.