From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30048 invoked by alias); 11 Dec 2008 21:28:31 -0000 Received: (qmail 30034 invoked by uid 22791); 11 Dec 2008 21:28:30 -0000 X-Spam-Check-By: sourceware.org Received: from ti-out-0910.google.com (HELO ti-out-0910.google.com) (209.85.142.188) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 11 Dec 2008 21:28:03 +0000 Received: by ti-out-0910.google.com with SMTP id d10so783038tib.12 for ; Thu, 11 Dec 2008 13:28:00 -0800 (PST) Received: by 10.110.15.9 with SMTP id 9mr598037tio.26.1229030880348; Thu, 11 Dec 2008 13:28:00 -0800 (PST) Received: by 10.110.57.13 with HTTP; Thu, 11 Dec 2008 13:28:00 -0800 (PST) Message-ID: <239b036a0812111328r2ed15cc6le385c17a20a19dc@mail.gmail.com> Date: Thu, 11 Dec 2008 21:28:00 -0000 From: "Shamik Datta" To: sid@sourceware.org Subject: Error Building SID.. MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Mailing-List: contact sid-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: sid-owner@sourceware.org X-SW-Source: 2008-q4/txt/msg00012.txt.bz2 Hi, I am new to SID and I am having problems setting it up. I am trying to build it on an X86 machine, running Win XP with cygwin. I could fix a few minor errors, but got stuck in the end. The compilation all goes through well. but the build finally breaks in the linking stage, looking for some unresolved X APIs. Attaching the log. You could search for 'XPending'. Though there are stubs present for these APIs, I am not sure if I require some special cygwin pkgs to be installed to resolve these dependencies. Please suggest. regards, Shamik ======================================= /bin/sh ./libtool --tag=CXX --mode=link g++ -DSID_STATIC -DSIDTARGET_MEP -DSIDTARGET_SH -DSIDTARGET_SH64 -g -O2 -o sid.exe -export-dynamic -static -export-symbols-regex '[a-zA-Z0-9]*_library$' -dlpreopen ../../component/audio/libaudio.la -dlpreopen ../../component/cache/libcache.la -dlpreopen ../../component/cfgroot/libconfig.la -dlpreopen ../../component/cgen-cpu/libcgencpu.la -dlpreopen ../../component/bochs/libx86.la -dlpreopen ../../component/consoles/libconsoles.la -dlpreopen ../../component/families/mep/libmepfamily.la -dlpreopen ../../component/gdb/libgdb.la -dlpreopen ../../component/gloss/libgloss.la -dlpreopen ../../component/glue/libglue.la -dlpreopen ../../component/ide/libide.la -dlpreopen ../../component/interrupt/libinterrupt.la -dlpreopen ../../component/lcd/libhd44780u.la -dlpreopen ../../component/lcd/liblcd-char-display.la -dlpreopen ../../component/lcd/libt6963c.la -dlpreopen ../../component/loader/libloader.la -dlpreopen ../../component/mapper/libmapper.la -dlpreopen ../../component/memory/libmemory.la -dlpreopen ../../component/mmu/libmmu.la -dlpreopen ../../component/parport/libparport.la -dlpreopen ../../component/profiling/libprof.la -dlpreopen ../../component/rtc/librtc.la -dlpreopen ../../component/sched/libsched.la -dlpreopen ../../component/tcl/libtclapi.la -dlpreopen ../../component/timers/libtimers.la -dlpreopen ../../component/uart/libuart.la mainDynamic.o baseCfg.o commonCfg.o shCfg.o mepCfg.o -L../../../libiberty/pic -L../../../libiberty -liberty mkdir .libs rm -f .libs/sid.exe.nm .libs/sid.exe.nmS .libs/sid.exe.nmT creating .libs/sid.exeS.c extracting global C symbols from `../../component/audio/.libs/libaudio.a' extracting global C symbols from `../../component/cache/.libs/libcache.a' extracting global C symbols from `../../component/cfgroot/.libs/libconfig.a' extracting global C symbols from `../../component/cgen-cpu/.libs/libcgencpu.a' extracting global C symbols from `../../component/bochs/.libs/libx86.a' extracting global C symbols from `../../component/consoles/.libs/libconsoles.a' extracting global C symbols from `../../component/families/mep/.libs/libmepfamily.a' extracting global C symbols from `../../component/gdb/.libs/libgdb.a' extracting global C symbols from `../../component/gloss/.libs/libgloss.a' extracting global C symbols from `../../component/glue/.libs/libglue.a' extracting global C symbols from `../../component/ide/.libs/libide.a' extracting global C symbols from `../../component/interrupt/.libs/libinterrupt.a' extracting global C symbols from `../../component/lcd/.libs/libhd44780u.a' extracting global C symbols from `../../component/lcd/.libs/liblcd-char-display.a' extracting global C symbols from `../../component/lcd/.libs/libt6963c.a' extracting global C symbols from `../../component/loader/.libs/libloader.a' extracting global C symbols from `../../component/mapper/.libs/libmapper.a' extracting global C symbols from `../../component/memory/.libs/libmemory.a' extracting global C symbols from `../../component/mmu/.libs/libmmu.a' extracting global C symbols from `../../component/parport/.libs/libparport.a' extracting global C symbols from `../../component/profiling/.libs/libprof.a' extracting global C symbols from `../../component/rtc/.libs/librtc.a' extracting global C symbols from `../../component/sched/.libs/libsched.a' extracting global C symbols from `../../component/tcl/.libs/libtclapi.a' extracting global C symbols from `../../component/timers/.libs/libtimers.a' extracting global C symbols from `../../component/uart/.libs/libuart.a' (cd .libs && gcc -c -fno-builtin "sid.exeS.c") rm -f .libs/sid.exeS.c .libs/sid.exe.nm .libs/sid.exe.nmS .libs/sid.exe.nmT g++ -DSID_STATIC -DSIDTARGET_MEP -DSIDTARGET_SH -DSIDTARGET_SH64 -g -O2 -o sid.exe .libs/sid.exeS.o mainDynamic.o baseCfg.o commonCfg.o shCfg.o mepCfg.o -Wl,--export-dynamic ../../component/audio/.libs/libaudio.a ../../component/cache/.libs/libcache.a ../../component/cfgroot/.libs/libconfig.a -ldl ../../component/cgen-cpu/.libs/libcgencpu.a -L/home/Work/Emulation/SID/build/intl /usr/lib/libintl.a -L/usr/lib /usr/lib/libiconv.a -L/home/Work/Emulation/SID/build/libiberty/pic -L/home/Work/Emulation/SID/build/libiberty -lpthread ../../component/bochs/.libs/libx86.a ../../component/consoles/.libs/libconsoles.a -lresolv ../../component/families/mep/.libs/libmepfamily.a ../../component/gdb/.libs/libgdb.a ../../component/gloss/.libs/libgloss.a ../../component/glue/.libs/libglue.a ../../component/ide/.libs/libide.a ../../component/interrupt/.libs/libinterrupt.a ../../component/lcd/.libs/libhd44780u.a ../../component/lcd/.libs/liblcd-char-display.a -lcurses ../../component/lcd/.libs/libt6963c.a ../../component/loader/.libs/libloader.a ../../component/mapper/.libs/libmapper.a ../../component/memory/.libs/libmemory.a ../../component/mmu/.libs/libmmu.a ../../component/parport/.libs/libparport.a ../../component/profiling/.libs/libprof.a ../../component/rtc/.libs/librtc.a ../../component/sched/.libs/libsched.a ../../component/tcl/.libs/libtclapi.a -ltk84 -L/home/Work/Emulation/SID/build/tcl/win -ltcl84 -lgdi32 -lcomdlg32 -lwinspool ../../component/timers/.libs/libtimers.a ../../component/uart/.libs/libuart.a -lwinmm -liberty ../../component/bochs/.libs/libx86.a(x-gui.o): In function `_ZN5x_gui13handle_eventsEj': /home/Work/Emulation/SID/src/sid/component/bochs/gui/x-gui.cc:542: undefined reference to `_XPending' /home/Work/Emulation/SID/src/sid/component/bochs/gui/x-gui.cc:534: undefined reference to `_XLookupString' /home/Work/Emulation/SID/src/sid/component/bochs/gui/x-gui.cc:542: undefined reference to `_XPending' /home/Work/Emulation/SID/src/sid/component/bochs/gui/x-gui.cc:540: undefined reference to `_XLookupString' ../../component/bochs/.libs/libx86.a(x-gui.o): In function `_ZN5x_gui14update_displayEj': /home/Work/Emulation/SID/src/sid/component/bochs/gui/x-gui.cc:566: undefined reference to `_XGetWMNormalHints' /home/Work/Emulation/SID/src/sid/component/bochs/gui/x-gui.cc:634: undefined reference to `_XDrawImageString' /home/Work/Emulation/SID/src/sid/component/bochs/gui/x-gui.cc:608: undefined reference to `_XDrawImageString' /home/Work/Emulation/SID/src/sid/component/bochs/gui/x-gui.cc:570: undefined reference to `_XSetWMNormalHints' /home/Work/Emulation/SID/src/sid/component/bochs/gui/x-gui.cc:656: undefined reference to `_XDrawImageString' ../../component/bochs/.libs/libx86.a(x-gui.o): In function `_ZN5x_gui20palette_change_indexEj': /home/Work/Emulation/SID/src/sid/component/bochs/gui/x-gui.cc:684: undefined reference to `_XStoreColor' ../../component/bochs/.libs/libx86.a(x-gui.o): In function `_ZN5x_gui9load_fontEv': /usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/basic_string.h:1450: undefined reference to `_XLoadQueryFont' ../../component/bochs/.libs/libx86.a(x-gui.o): In function `_ZN5x_gui4initEj': /home/Work/Emulation/SID/src/sid/component/bochs/gui/x-gui.cc:265: undefined reference to `_XOpenDisplay' /home/Work/Emulation/SID/src/sid/component/bochs/gui/x-gui.cc:293: undefined reference to `_XCreateSimpleWindow' /home/Work/Emulation/SID/src/sid/component/bochs/gui/x-gui.cc:404: undefined reference to `_XSetWMProperties' /home/Work/Emulation/SID/src/sid/component/bochs/gui/x-gui.cc:431: undefined reference to `_XSetState' /home/Work/Emulation/SID/src/sid/component/bochs/gui/x-gui.cc:433: undefined reference to `_XSetState' /home/Work/Emulation/SID/src/sid/component/bochs/gui/x-gui.cc:442: undefined reference to `_XSync' /home/Work/Emulation/SID/src/sid/component/bochs/gui/x-gui.cc:488: undefined reference to `_XFlush' /home/Work/Emulation/SID/src/sid/component/bochs/gui/x-gui.cc:312: undefined reference to `_XAllocColorCells' /home/Work/Emulation/SID/src/sid/component/bochs/gui/x-gui.cc:334: undefined reference to `_XStoreColor' /home/Work/Emulation/SID/src/sid/component/bochs/gui/x-gui.cc:267: undefined reference to `_XDisplayName' collect2: ld returned 1 exit status rm -f .libs/sid.exeS.o make[5]: *** [sid.exe] Error 1 make[5]: Leaving directory `/home/Work/Emulation/SID/build/sid/main/dynamic' make[4]: *** [all] Error 2 make[4]: Leaving directory `/home/Work/Emulation/SID/build/sid/main/dynamic' make[4]: Entering directory `/home/Work/Emulation/SID/build/sid/main' make[4]: Nothing to be done for `all-am'. make[4]: Leaving directory `/home/Work/Emulation/SID/build/sid/main' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/Work/Emulation/SID/build/sid/main' Making all in bsp make[3]: Entering directory `/home/Work/Emulation/SID/build/sid/bsp' Making all in . make[4]: Entering directory `/home/Work/Emulation/SID/build/sid/bsp' make[4]: Nothing to be done for `all-am'. make[4]: Leaving directory `/home/Work/Emulation/SID/build/sid/bsp' Making all in pregen make[4]: Entering directory `/home/Work/Emulation/SID/build/sid/bsp/pregen' make[4]: Nothing to be done for `all'. make[4]: Leaving directory `/home/Work/Emulation/SID/build/sid/bsp/pregen' make[3]: Leaving directory `/home/Work/Emulation/SID/build/sid/bsp' Making all in samples make[3]: Entering directory `/home/Work/Emulation/SID/build/sid/samples' make all-am make[4]: Entering directory `/home/Work/Emulation/SID/build/sid/samples' if /bin/sh ./libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I/home/Work/Emulation/SID/src/sid/samples -I. -I. -I../include -I/home/Work/Emulation/SID/src/sid/samples/../include -g -O2 -MT timer.lo -MD -MP -MF ".deps/timer.Tpo" -c -o timer.lo /home/Work/Emulation/SID/src/sid/samples/timer.cxx; \ then mv -f ".deps/timer.Tpo" ".deps/timer.Plo"; else rm -f ".deps/timer.Tpo"; exit 1; fi g++ -DHAVE_CONFIG_H -I. -I/home/Work/Emulation/SID/src/sid/samples -I. -I. -I../include -I/home/Work/Emulation/SID/src/sid/samples/../include -g -O2 -MT timer.lo -MD -MP -MF .deps/timer.Tpo -c /home/Work/Emulation/SID/src/sid/samples/timer.cxx -o timer.o /bin/sh ./libtool --tag=CXX --mode=link g++ -g -O2 -o libexample.la -rpath /home/Work/Emulation/SID/install//lib/sidsamples -module -no-undefined timer.lo mkdir .libs ar rc .libs/libexample.a timer.o ranlib .libs/libexample.a creating libexample.la (cd .libs && rm -f libexample.la && ln -s ../libexample.la libexample.la) make[4]: Leaving directory `/home/Work/Emulation/SID/build/sid/samples' make[3]: Leaving directory `/home/Work/Emulation/SID/build/sid/samples' Making all in demos make[3]: Entering directory `/home/Work/Emulation/SID/build/sid/demos' make all-recursive make[4]: Entering directory `/home/Work/Emulation/SID/build/sid/demos' make[5]: Entering directory `/home/Work/Emulation/SID/build/sid/demos' Type 'make all-demos' to build the demos. make[5]: Leaving directory `/home/Work/Emulation/SID/build/sid/demos' make[4]: Leaving directory `/home/Work/Emulation/SID/build/sid/demos' make[3]: Leaving directory `/home/Work/Emulation/SID/build/sid/demos' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/Work/Emulation/SID/build/sid' make[1]: *** [all-sid] Error 2 make[1]: Leaving directory `/home/Work/Emulation/SID/build' make: *** [all] Error 2