Bug 132964 - gnash-0.7.1 make install fails
Bug#: 132964 Product:  Gentoo Linux Version: 2006.0 Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: genstef@gentoo.org Reported By: sf_kersteinroie@bezeqint.net
Component: Ebuilds
URL: 
Summary: gnash-0.7.1 make install fails
Keywords:  
Status Whiteboard: 
Opened: 2006-05-10 17:12 0000
Description:   Opened: 2006-05-10 17:12 0000
when emerging gnash, it compiles well, but at the install phase it dies with
error:
cannot find -lgnashserver

I think that the order of the installation is wrong in the makefile, because i
issued 'make install' by hand in
/var/tmp/portage/gnash/work/gnaash-0.7.1/server/ and afterwards 'ebuild
gnash-0.7.1.ebuild install merge'. It worked fine.

------- Comment #1 From Stefan Schweizer 2006-05-10 17:24:08 0000 -------
Can you please post a more complete error log+ emerge info? I suppose this
happens only on amd64?

------- Comment #2 From Roie Kerstein 2006-05-10 17:34:15 0000 -------
error message:
make[3]: Entering directory
`/var/tmp/portage/gnash-0.7.1/work/gnash-0.7.1/plugin'
make[3]: Nothing to be done for `install-exec-am'.
test -d "/var/tmp/portage/gnash-0.7.1/image//opt/netscape/plugins" || /bin/sh
../mkinstalldirs "/var/tmp/portage/gnash-0.7.1/image//opt/netscape/plugins"
mkdir -p -- /var/tmp/portage/gnash-0.7.1/image//opt/netscape/plugins
/bin/sh ../libtool --mode=install /bin/install -c -p  libgnashplugin.la
"/var/tmp/portage/gnash-0.7.1/image//opt/netscape/plugins/libgnashplugin.la"
libtool: install: warning: relinking `libgnashplugin.la'
(cd /var/tmp/portage/gnash-0.7.1/work/gnash-0.7.1/plugin; /bin/sh ../libtool 
--tag=CXX --mode=relink x86_64-pc-linux-gnu-g++ -I.. -I. -I../libbase
-I../backend -I../libgeometry -I../server -I./mozilla-sdk
-I./mozilla-sdk/include -I/usr/include/cairo -I/usr/include/SDL
-I/usr/include/SDL -I. -march=k8 -O2 -pipe -fomit-frame-pointer -Wall
-L/usr/lib -lX11 -lXi -lXmu -lSDL -L/usr/lib64 -lSDL_mixer -lGL -lGLU -lcairo
-ljpeg -lpng -logg -o libgnashplugin.la -rpath /opt/netscape/plugins -module
-avoid-version -no-undefined -L/opt/netscape/plugins plugin.lo npn_gate.lo
npp_gate.lo np_entry.lo -L/usr/lib -lX11 -lXi -lXmu -lSDL -L/usr/lib64
-lSDL_mixer -lGL -lGLU -lcairo -ljpeg -lpng -logg ../backend/libgnashbackend.la
../server/libgnashasobjs.la ../server/libgnashserver.la
../libgeometry/libgnashgeo.la ../libbase/libgnashbase.la -lSDL_mixer -lrt -lX11
-lXi -lXmu -inst-prefix-dir /var/tmp/portage/gnash-0.7.1/image/)
x86_64-pc-linux-gnu-g++ -shared -nostdlib
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.0/../../../../lib64/crti.o
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.0/crtbeginS.o  .libs/plugin.o
.libs/npn_gate.o .libs/npp_gate.o .libs/np_entry.o  -Wl,--rpath
-Wl,/usr/lib64/opengl/nvidia/lib -L/usr/lib -L/usr/lib64
-L/opt/netscape/plugins -L/var/tmp/portage/gnash-0.7.1/image//usr/lib64 -lSDL
-L/var/tmp/portage/gnash-0.7.1/image//usr/lib64/opengl/nvidia/lib
-L/usr/lib64/opengl/nvidia/lib -lGL
-L/var/tmp/portage/gnash-0.7.1/image//usr/lib -lGLU -lcairo -ljpeg -lpng -logg
-lgnashbackend -lgnashasobjs -lgnashserver -lgnashgeo -lgnashbase -lSDL_mixer
-lrt -lX11 -lXi -lXmu -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.0
-L/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.0/../../../../x86_64-pc-linux-gnu/lib
-L/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.0/../../../../lib64 -L/lib/../lib64
-L/usr/lib/../lib64
-L/var/tmp/portage/gnash-0.7.1/image//usr/lib/gcc/x86_64-pc-linux-gnu/4.1.0
-lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.0/crtendS.o
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.0/../../../../lib64/crtn.o  -march=k8
-Wl,-soname -Wl,libgnashplugin.so -o .libs/libgnashplugin.so
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.0/../../../../x86_64-pc-linux-gnu/bin/ld:
cannot find -lgnashserver
collect2: ld returned 1 exit status
libtool: install: error: relink `libgnashplugin.la' with the above command
before installing it
make[3]: *** [install-pluginLTLIBRARIES] Error 1
make[3]: Leaving directory
`/var/tmp/portage/gnash-0.7.1/work/gnash-0.7.1/plugin'
make[2]: *** [install-am] Error 2
make[2]: Leaving directory
`/var/tmp/portage/gnash-0.7.1/work/gnash-0.7.1/plugin'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory
`/var/tmp/portage/gnash-0.7.1/work/gnash-0.7.1/plugin'
make: *** [install-recursive] Error 1

!!! ERROR: net-www/gnash-0.7.1 failed.
Call stack:
  ebuild.sh, line 1525:   Called dyn_install
  ebuild.sh, line 1002:   Called src_install
  gnash-0.7.1.ebuild, line 68:   Called die

!!! make install failed
!!! If you need support, post the topmost build error, and the call stack if
relevant.



emerge --info:
Portage 2.1_pre10-r2 (default-linux/amd64/2006.0, gcc-4.1.0, glibc-2.4-r2,
2.6.16-gentoo-r7 x86_64)
=================================================================
System uname: 2.6.16-gentoo-r7 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.12.0_pre19
dev-lang/python:     2.4.3
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env
/usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config
/usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo
/etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=k8 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://213.186.33.38/gentoo-distfiles/
http://213.186.33.37/gentoo-distfiles/ http://213.186.33.38/gentoo-distfiles/
ftp://213.186.33.37/gentoo-distfiles/ http://85.25.128.62"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --delete-after --stats --timeout=180
--exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X a52 aac acpi alsa asf avi bash-completion berkdb bidi bitmap-fonts
bzip2 cli crypt cups dri dvd eds emboss encode ffmpeg foomaticdb fortran gif
gmp gpm gstreamer hal imagemagick imlib isdnlog jpeg jpeg2k kde kdeenablefinal
lzw lzw-tiff mad mp3 mpeg ncurses nls nptl nptlonly nsplugin nvidia opengl pam
pcre pdf pdflib perl pic png pppd python qt quicktime readline reflection sdl
session spell spl ssl tcpd tetex truetype truetype-fonts type1-fonts unicode
usb xcomposite xine xorg xpm xv xvid xvmc zlib elibc_glibc
input_devices_keyboard input_devices_mouse kernel_linux userland_GNU
video_cards_nvidia"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL,
LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS

------- Comment #3 From Stefan Schweizer 2006-05-10 17:51:32 0000 -------
amd64: Please have a look what is wrong here.

------- Comment #4 From Jory A. Pratt 2006-05-10 18:36:50 0000 -------
../server/.libs/libgnashserver.so: undefined reference to `inflate'
../server/.libs/libgnashserver.so: undefined reference to `inflateInit_'
../libbase/.libs/libgnashbase.so: undefined reference to `inflateReset'
../server/.libs/libgnashserver.so: undefined reference to `inflateEnd'

Until such time as-needed support is complete gonna be tough to duplicate the
error.

------- Comment #5 From Todd Merrill 2006-05-10 18:38:48 0000 -------
Same exact problem/error here, but on x86.

Portage 2.1_pre10-r5 (default-linux/x86/2006.0, gcc-4.1.0, glibc-2.4-r2,
2.6.16.15 i686)
=================================================================
System uname: 2.6.16.15 i686 AMD Athlon(tm) Processor
Gentoo Base System version 1.12.0_pre19
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.3.5-r2, 2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r1
dev-util/confcache:  0.4.2
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -Os -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild
/etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -Os -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache confcache distlocks metadata-transfer
parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.chem.wisc.edu/gentoo/"
LANG="en_US"
LC_ALL="en_US"
LDFLAGS="-Wl,-O1"
LINGUAS="en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --delete-after --stats --timeout=180
--exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X a52 aalib acpi aim alsa ares asf audacious avi
bash-completion bitmap-fonts bzip2 cairo cddb cli crypt cups custom-cflags
djbfft dvd emboss encode fbcon ffmpeg firefox flac fontconfig foomaticdb
fortran gif glitz glut gnutls gpm gtk gtk2 icq imlib isdnlog ithreads jabber
jpeg libcaca libg++ libvisual libwww lirc mad mikmod mmap mmx mmxext mng mp3
mpeg msn ncurses nls nodrm nptl nptlonly ogg opengl pam pango pcre pdflib perl
pic png pppd python readline reflection sdl session spell spl sse ssl
startup-notification tcpd truetype truetype-fonts type1-fonts udev unicode usb
v4l v4l2 vcd vda vorbis win32codecs xchat xml xorg xv xvid yahoo zlib
elibc_glibc kernel_linux linguas_en userland_GNU video_cards_sis
video_cards_vesa video_cards_v4l"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK,
PORTAGE_RSYNC_EXTRA_OPTS

------- Comment #6 From Simon Stelling (RETIRED) 2006-05-11 02:28:59 0000 -------
gnash doesn't even have a ~amd64 keywords

------- Comment #7 From Stefan Schweizer 2006-05-11 10:13:38 0000 -------
Added an ugly workaround to the ebuild in portage, but it installs now :)