Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 391887 - media-video/gpac-0.4.5-r5 fails because of broken spidermonkey support (libgpac.so undefined reference)
Summary: media-video/gpac-0.4.5-r5 fails because of broken spidermonkey support (libgp...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-25 19:26 UTC by Attila Tóth
Modified: 2011-11-28 22:13 UTC (History)
2 users (show)

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


Attachments
media-video/gpac-0.4.5-r5 build.log with spidermonkey installed (build.log,146.74 KB, text/plain)
2011-11-28 01:57 UTC, Attila Tóth
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Attila Tóth 2011-11-25 19:26:36 UTC
Disabling javascript for gpac-0.4.5-r4 was a reasonable workaround for bug #363575. But the recent version dropped javascript use flag. Now gpac-0.4.5-r5 cannot be compiled for the same reason as gpac-0.4.5-r4. However I cannot diasble javascript.
It seems removing $(my_use javascript js) from the ebuild would still result in an attempt to use the broken spidermonkey support anyway.
Please reintroduce javascript use flag, or explicitly make gpac forget about spidermonkey support.

Reproducible: Always

Steps to Reproduce:
i686-pc-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed -Wl,--warn-common -o ../../bin/gcc/MP4Box main.o filedump.o fileimport.o -L../../bin/gcc -lgpac -lz  -lGL -lglut
../../bin/gcc/libgpac.so: undefined reference to `JS_GetStringChars'
../../bin/gcc/libgpac.so: undefined reference to `JS_GetStringBytes'
../../bin/gcc/libgpac.so: undefined reference to `JS_AddRoot'
../../bin/gcc/libgpac.so: undefined reference to `JS_NewDouble'
../../bin/gcc/libgpac.so: undefined reference to `JS_RemoveRoot'
collect2: ld returned 1 exit status
make[2]: *** [MP4Box] Error 1
make[2]: Leaving directory `/var/tmp/portage/media-video/gpac-0.4.5-r5/work/gpac/applications/mp4box'
make[1]: *** [apps] Error 2
make[1]: Leaving directory `/var/tmp/portage/media-video/gpac-0.4.5-r5/work/gpac/applications'
make: *** [apps] Error 2
emake failed
Comment 1 Ian Stakenvicius (RETIRED) gentoo-dev 2011-11-26 03:00:26 UTC
Wow..  ok, so the build system does indeed appear to be more broken than I ever expected.  I'd like to note that I did not have this error during my tests, though, which is a little puzzling.  Could you attach the full build.log and the output of emerge --info =media-video/gpac-0.4.5-r5 for me?
Comment 2 Attila Tóth 2011-11-28 01:43:43 UTC
(In reply to comment #1)
> Wow..  ok, so the build system does indeed appear to be more broken than I ever
> expected.  I'd like to note that I did not have this error during my tests,
> though, which is a little puzzling.  Could you attach the full build.log and
> the output of emerge --info =media-video/gpac-0.4.5-r5 for me?

# emerge --info =media-video/gpac-0.4.5-r5
Portage 2.1.10.11 (hardened/linux/x86, gcc-4.5.3, glibc-2.13-r4, 3.1.1-hardened-r1 i686)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.1.1-hardened-r1-i686-Intel-R-_Pentium-R-_M_processor_1600MHz-with-gentoo-2.0.3
Timestamp of tree: Thu, 24 Nov 2011 07:00:01 +0000
ccache version 2.4 [disabled]
app-shells/bash:          4.1_p9
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.1.4-r3
dev-util/ccache:          2.4-r9
dev-util/cmake:           2.8.4-r1
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.8.3-r1
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.4_p6-r1, 1.5-r1, 1.6.3::<unknown repository>, 1.7.9-r2, 1.8.5-r3, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:       2.22
sys-devel/gcc:            4.4.6-r1, 4.5.3-r1
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo x-portage hardened-dev anarchy x-overlay
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -mtune=pentium-m -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=i686 -mtune=pentium-m -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages metadata-transfer news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://gentoo.inf.elte.hu/ http://gentoo.inode.at/"
LANG="hu_HU.utf8"
LC_ALL="hu_HU.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="hu en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /var/lib/layman/hardened-development /var/lib/layman/anarchy /home/atoth/public_html/overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="32bit 7zip GNU R X X509 Xaw3d a52 aac aalib acl acpi aiglx aio alsa amr aotuv apache2 apng applet archive ares asf atmo audio audiofile bash-completion battstat bazaar bcmath bdf berkdb bidi binfilter bitmap-fonts bittorrent blas bluetooth bonobo boost branding browserplugin bugzilla bzip2 cairo canvas caps cdaudio cdda cddax cddb cdio cdparanoia cdr cdrom celt chardet charmap checkpath clamdtop cli consolekit context contrib coverage cracklib cramfs crashreporter crypt css cue cups curl cvs cxx dba dbm dbus dcmtk ddate deskbar detex devhelp device-mapper dga dhcp dia dicom dirac discard-path divx divx4linux djbfft djvu dlloader dmi doc-pdf dot dri dselect dtmf dts dv dvd dvdnav dvdr dvdread dvi dvi2tty dvipdfm eap-sim eds egl emerald enca enchant encode epiphany evo exif expat extensions extra extrafilters extras faac faad fam fame fat fax ffmpeg fftw finger firefox flac flash flatfile floppy fltk fontconfig fontforge foomaticdb force-cgi-redirect fortran fpx ftdi ftp gadu gajim galago gallium gbm gconf gd gdb gdbm gdl gdu gedit gif gimp gimpprint ginac git glade gles glibc gme gmedia gmp gnet gnome gnome-keyring gnome-print gnomecanvas gnomecd gnumeric gopher gpac gpg gphoto2 gpm graphics graphicsmagick graphviz groupwise gs gsl gsm gstreamer gtalk gtk gtk2 gtkhtml guile h224 h281 h323 hardened hdaps hdf5 hpcups hpijs html http httpd hub i8x0 iconv icu id3tag idle idn ieee1394 imagemagick imap imlib inherit-graph inkjar introspection ipc iplayer iplsrc irc irda ivr jabber jadetex java java6 javascript jemalloc jingle jpeg jpeg2k jrtplib juju kate kdrive kpathsea ladspa lame lapack latex latex3 lcms ldb libass libburn libcaca libffi libgda libkms libnl libnotify libplot libsamplerate libssh2 libv4l2 lightning llvm lm_sensors log4j logitech-mouse loop-aes lyx lzma lzo lzw m17n-lib mad matroska mbox mcal md5sum meanwhile memlimit mercurial midi mikmod mjpeg mktemp mmap mmx mng mode-owner modules motif mozbranding mozcalendar mp2 mp3 mp4 mpeg mpeg1 mpeg2 mplayer mudflap musepack mysql mysqli nautilus ncurses nemesi netlink network networking nifti nls nntp nokia nopop3d nptl nptlonly nsplugin nss ntfs nut nuv oav ocr odbc odk ofx ogg oggvorbis ogm oil onaccess opencore-amr openct openexr opengl openmp openssl openvg optimisememory otr pam pam_chroot pam_ssh pam_timestamp pango passwdqc paste64 pasteafter pax_kernel pccts pcmcia pcre pcsc-lite pda pdf pdfannotextractor pdfimport pear perl php pic pidgin plotutils plugins png pnm policykit posix postscript ppds pppd projectm pstricks publishers pvr python python2 qhull qt3support quicktime quotas rar rc5 rcs readline realmedia reiserfs remote remoteosd replytolist rle rtc rtf samba sasl sbc scanner scenarios schroedinger science screen scsi sdl sdl-sound sdlgfx secure-delete sensord serprog session sftplogging shared-dricore shared-glapi shm showtabbar sid sidebar silc sip sipim skins slang smbsharemodes smime smp sms smtp sndfile soap sockets sound soundex soundtouch sourceview sox sparse speex spell spf sqlite3 srt srtp sse sse2 ssh ssl startup-notification stats stun subtitles subversion svg swat sysfs syslog system-sqlite systray sysvipc t1lib taglib tagwriting tcl tcltk tcpd templates terminal tetex tex4ht tga themes theora threads threadsafe tiff tilepath tk tlen tokenizer toolbar tools totem tracker transcode trayicon truetype truetype-fonts twolame type1-fonts type3 udev underscores unicode unlock-notify urandom usb userlocales utils v4l v4l2 vala valgrind vcd vcdinfo vcdx video vidix virus-scan vista visualization vlc vlm volpack vorbis vtk vxml wav wavplay webkit webm webp wifi wimax win32codecs wma wmf wmp wps wxwidgets wxwindows x264 x86 xattr xcap xcb xchatdccserver xetex xforms xine xmedcon xml xml2 xmlrpc xmp xnest xorg xosd xpm xsl xulrunner xv xvfb xvid xvmc yahoo zip zlib zvbi" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse acecad evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="hu en" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" SANE_BACKENDS="epson epson2 gt68xx ma1509 mustek mustek_usb mustek_usb2 plustek snapscan umax" USERLAND="GNU" VIDEO_CARDS="radeon v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Attila Tóth 2011-11-28 01:57:07 UTC
Created attachment 294017 [details]
media-video/gpac-0.4.5-r5 build.log with spidermonkey installed
Comment 4 Attila Tóth 2011-11-28 02:00:14 UTC
media-video/gpac-0.4.5-r4 -javascript:
./configure --prefix=/usr --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --enable-svg --enable-pic --disable-amr --disable-debug --enable-opengl --disable-oss-audio --enable-ssl --disable-ipv6 --disable-jack=yes --disable-pulseaudio=yes --use-ffmpeg=system --use-faad=system --use-jpeg=system --use-mad=system --use-js=no --use-png=system --use-ft=system --use-xvid=system --use-openjpeg=system --use-a52=system --cc=i686-pc-linux-gnu-gcc --use-ogg=system --use-vorbis=system --use-theora=system

** Extra Libraries used **
SpiderMonkey: no
FreeType: system
...

media-video/gpac-0.4.5-r5:
./configure --prefix=/usr --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --enable-svg --enable-pic --disable-amr --disable-debug --enable-opengl --disable-oss-audio --enable-ssl --disable-ipv6 --disable-jack=yes --disable-pulseaudio=yes --use-ffmpeg=system --use-faad=system --use-jpeg=system --use-mad=system --use-png=system --use-ft=system --use-xvid=system --use-openjpeg=system --use-a52=system --cc=i686-pc-linux-gnu-gcc --use-ogg=system --use-vorbis=system --use-theora=system

** Extra Libraries used **
SpiderMonkey: system
FreeType: system
...

If spidermonkey is installed, gpac's configure finds it and tries to use it if js is not explicitly disabled.

Regards:
Dw.
Comment 5 Ian Stakenvicius (RETIRED) gentoo-dev 2011-11-28 22:13:36 UTC
+  28 Nov 2011; Ian Stakenvicius <axs@gentoo.org> gpac-0.4.5-r5.ebuild:
+  added explicit javascript disable to econf, bug 391887
+