Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 46957 - scorched3d-37 can't find freetype when emerging
Summary: scorched3d-37 can't find freetype when emerging
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-06 06:55 UTC by Charles Goodwin
Modified: 2005-09-26 22:36 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
config.log (config.log,20.60 KB, text/plain)
2004-04-06 07:17 UTC, Charles Goodwin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Charles Goodwin 2004-04-06 06:55:12 UTC
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.
Comment 1 SpanKY gentoo-dev 2004-04-06 06:58:48 UTC
please attach the config.log from the build directory
Comment 2 Charles Goodwin 2004-04-06 07:17:47 UTC
Created attachment 28786 [details]
config.log

As requested...
Comment 3 SpanKY gentoo-dev 2004-04-06 07:30:47 UTC
/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
Comment 4 Charles Goodwin 2004-04-06 07:40:57 UTC
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.)
Comment 5 SpanKY gentoo-dev 2004-04-06 08:22:38 UTC
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
Comment 6 Peter Howell 2004-04-06 16:41:23 UTC
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?
Comment 7 Charles Goodwin 2004-04-06 17:25:13 UTC
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.
Comment 8 Peter Howell 2004-04-06 17:39:43 UTC
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
Comment 9 Mr. Bones. (RETIRED) gentoo-dev 2004-04-07 12:27:01 UTC
Does scorched3d-37.1 work any better for you guys?
Comment 10 Peter Howell 2004-04-07 15:11:00 UTC
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.
Comment 11 Mr. Bones. (RETIRED) gentoo-dev 2004-04-07 15:38:48 UTC
37.1 is in portage as of 2004/04/07 19:24:40.  should be able to resync and get it.
Comment 12 Peter Howell 2004-04-07 16:09:24 UTC
I just emerged 37.1 (still using wxGTK 2.4.1-r1) without a hitch.
Comment 13 Mr. Bones. (RETIRED) gentoo-dev 2004-04-07 16:53:59 UTC
Great.  Everyone seems to be working. yes?  I'll go ahead and close.
Comment 14 Andrew Bevitt 2004-12-21 00:19:55 UTC
Out of curiosity while I wait for some deps to build, what does
freetype-config --version 
return on your systems?
Comment 15 Andrew Bevitt 2004-12-21 00:20:31 UTC
Bargh, ignore that.. wrong tab.
Comment 16 FieldySnuts 2005-09-26 10:16:26 UTC
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
Comment 17 SpanKY gentoo-dev 2005-09-26 22:36:20 UTC
dont post to old bugs

also, you didnt look at the file that actually matters, config.log