Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 117659 - Blender fails to compile on fresh gentoo install
Summary: Blender fails to compile on fresh gentoo install
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Philip Walls (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-03 13:26 UTC by Greg Phillips
Modified: 2006-01-04 15:46 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Greg Phillips 2006-01-03 13:26:11 UTC
Both blender-2.37 and blender-2.40 fail to compile on a freshly installed gentoo system.  The error I get when trying to compile blender is:

g++ -pipe -funsigned-char -O3 -march=athlon-xp -pipe -fomit-frame-pointer -Wall -W -DGAMEBLENDER=1 -DUSE_BULLET -DUSE_SUMO_SOLID -DNDEBUG -DFTGL_STATIC_LIBRARY -I/usr/include/freetype2 -I/usr/include/FTGL -I/var/tmp/portage/blender-2.40/work/build/linux2/source/blender/ftfont -Isource/blender/ftfont -Isource/blender/ftfont -I/var/tmp/portage/blender-2.40/work/build/linux2/source/blender/ftfont/intern -Isource/blender/ftfont/intern -Isource/blender/ftfont/intern -I/var/tmp/portage/blender-2.40/work/build/linux2/source/blender/blenkernel -Isource/blender/blenkernel -Isource/blender/blenkernel -I/var/tmp/portage/blender-2.40/work/build/linux2/source/blender/blenlib -Isource/blender/blenlib -Isource/blender/blenlib -I/var/tmp/portage/blender-2.40/work/build/linux2/source/blender/makesdna -Isource/blender/makesdna -Isource/blender/makesdna -c -o /var/tmp/portage/blender-2.40/work/build/linux2/source/blender/ftfont/intern/FTF_Api.o source/blender/ftfont/intern/FTF_Api.cpp
In file included from source/blender/ftfont/intern/FTF_Api.cpp:44:
source/blender/ftfont/intern/FTF_TTFont.h:40:28: FTGLPixmapFont.h: No such file or directory
source/blender/ftfont/intern/FTF_TTFont.h:41:29: FTGLTextureFont.h: No such file or directory
In file included from source/blender/ftfont/intern/FTF_Api.cpp:44:
source/blender/ftfont/intern/FTF_TTFont.h:115: error: ISO C++ forbids declaration of `FTFont' with no type
source/blender/ftfont/intern/FTF_TTFont.h:115: error: expected `;' before '*' token
source/blender/ftfont/intern/FTF_TTFont.h:117: error: ISO C++ forbids declaration of `FTFont' with no type
source/blender/ftfont/intern/FTF_TTFont.h:117: error: expected `;' before '*' token
source/blender/ftfont/intern/FTF_TTFont.h:118: error: ISO C++ forbids declaration of `FTFont' with no type
source/blender/ftfont/intern/FTF_TTFont.h:118: error: expected `;' before '*' token
source/blender/ftfont/intern/FTF_TTFont.h:119: error: ISO C++ forbids declaration of `FTFont' with no type
source/blender/ftfont/intern/FTF_TTFont.h:119: error: expected `;' before '*' token
scons: *** [/var/tmp/portage/blender-2.40/work/build/linux2/source/blender/ftfont/intern/FTF_Api.o] Error 1
scons: building terminated because of errors.

I have done some searching on the forums and everything I found seems to point to the fact that blender dosn't play well with freetype-2.1 and suggest downgrading to freetype-2.0 but the oldest ebuild for freetype is freetype-2.1.9-r1.

The output of my `emerge info` is as follows:

vine ~ # emerge info
Portage 2.0.53 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5-r2, 2.6.14-gentoo-r5-vine i686)
=================================================================
System uname: 2.6.14-gentoo-r5-vine i686 AMD Athlon(tm) XP 2200+
Gentoo Base System version 1.6.13
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=athlon-xp -pipe -fomit-frame-pointer"
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/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=athlon-xp -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://gentoo.seren.com/gentoo http://gentoo.chem.wisc.edu/gentoo/ http://lug.mtu.edu/gentoo http://gentoo.netnitco.net"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow X a52 aac aalib acpi alsa apache2 arts audiofile avi berkdb bitmap-fonts bonobo bzip2 cdparanoia cdr crypt cups curl divx4linux doc dvd dvdr dvdread eds emboss encode exif expat fam ffmpeg foomaticdb fortran ftp gd gdbm gif glut gnome gpm gstreamer gtk gtk2 gtkhtml guile idn imagemagick imlib ipv6 java jpeg kde lcms libg++ libwww mad mbox mikmod mng motif mp3 mpeg ncurses nls ogg oggvorbis openal opengl oss pam pcre pdflib perl png postgres python qt quicktime readline recode samba sdl sox spell ssl tcpd tiff truetype truetype-fonts type1-fonts udev vorbis xine xml xml2 xmms xv xvid zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY

Any help in getting blender installed would be greatly appreciated!

--
Greg Phillips
greg at desynched dot net
Comment 1 Luca Barbato gentoo-dev 2006-01-03 17:54:01 UTC
notes:

- looks like you are missing a package that is pulled on nls useflag I'll hard depend on it if that solves the problem

- oggvorbis is gone, use vorbis
Comment 2 Greg Phillips 2006-01-03 19:09:38 UTC
I just ran `emerge sync` and tried to emerge blender, both 2.40 and 2.36-r1, and both failed with the same error.  Also I have niether the nls or oggvorbis USE flag in my make.conf, those must be comming from the portage default flags.  A grep shows:

vine etc # grep -r oggvorbis make.profile/
make.profile/make.defaults:USE="alsa apm arts avi bitmap-fonts cups eds emboss encode fortran foomaticdb gdbm gif gnome gpm gstreamer gtk gtk2 imlib jpeg kde libg++ libwww mad mikmod motif mp3 mpeg ogg oggvorbis opengl oss pdflib png qt quicktime sdl spell truetype truetype-fonts type1-fonts vorbis X xml2 xmms xv"

Which package am I missing?  I can try to emerge that then try blender again.

Comment 3 Luca Barbato gentoo-dev 2006-01-03 19:17:00 UTC
media-libs/ftgl
Comment 4 Greg Phillips 2006-01-03 19:52:15 UTC
emerge showed that media-libs/ftgl-2.1.2 was already installed on the system, but just for good measure I re-emerged it and tried blender again.  This time around blender compiled without error.

Earlier in the re-installation of gentoo I ran across a problem where firehol wouldn't run because netstat wasn't working but emerge showed  sys-apps/net-tools was already installed.  I had to `emerge --oneshot sys-apps/net-tools` to get netstat installed.

To install gentoo this time I used stage1-x86-2005.1-r1.tar.bz2 and continued on as outlined in the "Gentoo 2005.1 Handbook".  Maybe there is a diffrent/more fundamental problem that needs reported elsewhere?
Comment 5 Greg Phillips 2006-01-03 19:53:47 UTC
s/netstat wasn't working/netstat wasn't installed/
Comment 6 Greg Phillips 2006-01-03 20:27:19 UTC
Anyways, Thanks a lot for your help, I really was missing my blender!  If you think that the issue of packages showing installed that really are not needs attention please forward this bug to the proper maintainer, I'll help where I can.

--
Greg
Comment 7 Pawel Madej aka Nysander 2006-01-04 15:17:47 UTC
request for closing this bug as it was resolved (broken user portage)
Comment 8 Greg Phillips 2006-01-04 15:46:27 UTC
Yes, the issue is resolved, again thank you.  I would set this as fixed but am not sure if that is my place or not.  Not quite sure of the protocol here.