I have an up2date version of freetype (2.1.5-r1) installed by portage yet: checking for wx-config... /usr/bin/wx-config checking for wxWindows version >= 2.4.0... yes (version 2.4.2) checking for freetype-config... /usr/bin/freetype-config checking for FreeType -- version >= 7.0.1... no configure: WARNING: The FreeType test program failed to run. If your system uses shared libraries and they are installed outside the normal system library path, make sure the variable LD_LIBRARY_PATH (or whatever is appropiate for your system) is correctly set. configure: error: FreeType2 must be installed on your system but freetype-config couldn't be found. Please check that freetype-config is in the path, the directory where the freetype libraries are installed (returned by 'wx-config --libs' command) is in LD_LIBRARY_PATH or equivalent variable and wxWindows version is 7.0.1 or above Try http://www.freetype.org to download freetype. !!! ERROR: games-strategy/scorched3d-37 failed. !!! Function egamesconf, Line 47, Exitcode 1 !!! egamesconf failed Reproducible: Always Steps to Reproduce: 1. 2. 3.
please attach the config.log from the build directory
Created attachment 28786 [details] config.log As requested...
/usr/lib/libwx_gtk2-2.4.so: undefined reference to `_gtk_accel_group_detach' /usr/lib/libwx_gtk2-2.4.so: undefined reference to `_gtk_accel_group_attach' /usr/lib/libwx_gtk2-2.4.so: undefined reference to `_gtk_rc_context_get_default_font_name' does this little test work for you ? echo 'int main(){return 0;}' > test.c gcc test.c -lwx_gtk2-2.4
mightymax root # echo 'int main(){return 0;}' > test.c mightymax root # gcc test.c -lwx_gtk2-2.4 /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/../../../libwx_gtk2-2.4.so: undefined reference to `_gtk_accel_group_detach' /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/../../../libwx_gtk2-2.4.so: undefined reference to `_gtk_accel_group_attach' /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/../../../libwx_gtk2-2.4.so: undefined reference to `_gtk_rc_context_get_default_font_name' collect2: ld returned 1 exit status I do have gtk2.4 installed, although it _may_ have been the BMG ebuilds, I'm unsure. (I was initially using BMG Gnome2.6 ebuilds but switched when Gnome2.6 got into portage.)
please re-emerge wxGTK ... `ldd /usr/lib/libwx_gtk2-2.4.so` should show /usr/lib/libgtk-x11-2.0.so which provides those functions
I'm having the same problem as Charles, I've run the same tests that you suggested for him. First, I'm using the ~x86 branch of portage, and have wxGTK version 2.4.2 which I have just recompiled after trying the current "stable" version 2.4.1-r1 which gave me the same error. I have obtained the following: there is no file named /usr/lib/libwx_gtk2-2.4.so however, there is a /usr/lib/libwx_gtk2u-2.4.so and when I run gcc test.c -lwx_gtk2u-2.4 on the test file, I get: /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/../../../libwx_gtk2u-2.4.so: undefined reference to `_gtk_accel_group_detach' /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/../../../libwx_gtk2u-2.4.so: undefined reference to `_gtk_accel_group_attach' /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/../../../libwx_gtk2u-2.4.so: undefined reference to `_gtk_rc_context_get_default_font_name' collect2: ld returned 1 exit status and 'ldd /usr/lib/libwx_gtk2u-2.4.so | grep libgtk' gives me: libgtk-x11-2.0.so.0 => /usr/lib/libgtk-x11-2.0.so.0 (0x404e1000) Is there anything else you need?
Re-emerging wxGTK fixed this for me. I'd wager it was the gtk+-2.4 ebuild nuking some stuff it wasn't supposed to.
And suddenly (after re-compiling GTK) it's working for me too (or at least it's getting past the config part and dying during the compilation stage)... go figure
Does scorched3d-37.1 work any better for you guys?
I got it to compile after, by downgrading to wxGTK 2.4.1-r1. I havn't tried 37.1 yet, I'll tell you when it hits portage.
37.1 is in portage as of 2004/04/07 19:24:40. should be able to resync and get it.
I just emerged 37.1 (still using wxGTK 2.4.1-r1) without a hitch.
Great. Everyone seems to be working. yes? I'll go ahead and close.
Out of curiosity while I wait for some deps to build, what does freetype-config --version return on your systems?
Bargh, ignore that.. wrong tab.
I'm seeing this with 39.1: checking for freetype-config... /usr/bin/freetype-config checking for FreeType -- version >= 7.0.1... no configure: WARNING: The FreeType test program failed to run. If your system uses shared libraries and they are installed outside the normal system library path, make sure the variable LD_LIBRARY_PATH (or whatever is appropiate for your system) is correctly set. configure: error: FreeType2 must be installed on your system but freetype-config couldn't be found. Please check that freetype-config is in the path, the directory where the freetype libraries are installed (returned by 'freetype-onfig --libs' command) is in LD_LIBRARY_PATH or equivalent variable and freetype version is 7.0.1 or above Try http://www.freetype.org to download freetype. # emerge -pv freetype These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild U ] media-libs/freetype-2.1.10 [2.1.9-r1] -bindist -doc +zlib 1,012 kB I notice the configure says it's looking for at least version 7.0.1. It also says it can't find freetype-config, but I have it: # whereis freetype-config freetype-config: /usr/bin/freetype-config /usr/X11R6/bin/freetype-config /usr/bin/X11/freetype-config Portage 2.0.51.22-r1 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.4.20041006-r0, 2.6.14-rc2-mm1 i686) ================================================================= System uname: 2.6.14-rc2-mm1 i686 Pentium III (Katmai) Gentoo Base System version 1.12.0_pre6 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.4 [enabled] dev-lang/python: 2.2.3-r1, 2.3.4-r1, 2.4.1-r1 sys-apps/sandbox: 1.2.11 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9, 1.8.5-r2, 1.9.6 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.4.19 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=pentium3 -mtune=pentium3 -O2 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium3 -mtune=pentium3 -O2 -pipe" DISTDIR="/var/portage/distfiles" FEATURES="autoconfig buildpkg ccache distlocks notitles sandbox sfperms strict" GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://adelie.polymtl.ca/ ftp://cs.ubishops.ca/pub/gentoo ftp://gentoo.risq.qc.ca/ ftp://distro.ibiblio.org/pub/linux/distributions/gentoo/" MAKEOPTS="-j2" PKGDIR="/var/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/var/portage" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="x86 X apache2 apm avi berkdb bitmap-fonts cdr chroot crypt cscope cups curl dvdr eds emboss encode esd fam flac foomaticdb fortran gd gdbm gif gnome gpm gstreamer gtk gtk2 imagemagick imlib java jpeg kde kerberos libg++ libwww mad mikmod mmx motif mozilla mp3 mpeg mysql ncurses nls ogg oggvorbis opengl oss pam pdflib perl png python qt quicktime readline samba sdl slang snmp spell sse ssl svga tcltk tcpd tiff truetype truetype-fonts type1-fonts vorbis xml xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
dont post to old bugs also, you didnt look at the file that actually matters, config.log