Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 496128 - media-libs/freeverb3-3.1.0/1 USE=jack - libjack_common.a(libjack_common_la-jack_main.o): undefined reference to symbol 'gdk_threads_init'
Summary: media-libs/freeverb3-3.1.0/1 USE=jack - libjack_common.a(libjack_common_la-ja...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sebastian Pipping
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-27 04:52 UTC by jospezial
Modified: 2015-06-08 23:58 UTC (History)
2 users (show)

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


Attachments
freeverb3-3.1.0_build.log (build.log,309.77 KB, text/plain)
2013-12-27 04:52 UTC, jospezial
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jospezial 2013-12-27 04:52:57 UTC
Created attachment 366270 [details]
freeverb3-3.1.0_build.log

../libtool: line 6458: get_libdir: command not found
libtool: link: x86_64-pc-linux-gnu-g++ -march=native -O2 -pipe -march=native -O2 -pipe -fPIC -fopenmp -Wl,-O1 -Wl,--as-needed -fopenmp 
-o fv3_jack_nrev ../audacious/fv3_jack_nrev-nrev.o -pthread  /usr/lib64/libjack.so -ldl -lgtk-3 -lgdk-3 -lpangocairo-1.0 -latk-1.0 -lca
iro-gobject -lgdk_pixbuf-2.0 -lgio-2.0 -lgthread-2.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lcairo ../freeverb/.libs/libfreeverb3.so -lf
ftw3 -lfftw3l -lfftw3f ./.libs/libbmp_int.a ./.libs/libjack_common.a /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/libgomp.so -lm -lpthread -p
thread -fopenmp -Wl,-rpath -Wl,/var/tmp/portage/media-libs/freeverb3-3.1.0/work/freeverb3-3.1.0/freeverb/.libs
libtool: link: x86_64-pc-linux-gnu-g++ -march=native -O2 -pipe -march=native -O2 -pipe -fPIC -fopenmp -Wl,-O1 -Wl,--as-needed -fopenmp -o fv3_jack_strev ../audacious/fv3_jack_strev-strev.o -pthread  /usr/lib64/libjack.so -ldl -lgtk-3 -lgdk-3 -lpangocairo-1.0 -latk-1.0 -lcairo-gobject -lgdk_pixbuf-2.0 -lgio-2.0 -lgthread-2.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lcairo ../freeverb/.libs/libfreeverb3.so -lfftw3 -lfftw3l -lfftw3f ./.libs/libbmp_int.a ./.libs/libjack_common.a /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/libgomp.so -lm -lpthread -pthread -fopenmp -Wl,-rpath -Wl,/var/tmp/portage/media-libs/freeverb3-3.1.0/work/freeverb3-3.1.0/freeverb/.libs
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../../x86_64-pc-linux-gnu/bin/ld: ./.libs/libjack_common.a(libjack_common_la-jack_main.o): undefined reference to symbol 'gdk_threads_init'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../../x86_64-pc-linux-gnu/bin/ld: note: 'gdk_threads_init' is defined in DSO /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../../lib64/libgdk-3.so so try adding it to the linker command line
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../../lib64/libgdk-3.so: could not read symbols: Invalid operation
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../../x86_64-pc-linux-gnu/bin/ld: ./.libs/libjack_common.a(libjack_common_la-jack_main.o): undefined reference to symbol 'gdk_threads_init'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../../x86_64-pc-linux-gnu/bin/ld: note: 'gdk_threads_init' is defined in DSO /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../../lib64/libgdk-3.so so try adding it to the linker command line
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../../lib64/libgdk-3.so: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
collect2: error: ld returned 1 exit status
Makefile:695: recipe for target 'fv3_jack_nrev' failed
make[3]: *** [fv3_jack_nrev] Error 1
make[3]: *** Waiting for unfinished jobs....
Makefile:723: recipe for target 'fv3_jack_strev' failed
make[3]: *** [fv3_jack_strev] Error 1
make[3]: Leaving directory '/var/tmp/portage/media-libs/freeverb3-3.1.0/work/freeverb3-3.1.0/jack


With USE="-jack" it compiles fine.

jlgentoo ~ # emerge --info freeverb3
Portage 2.2.7 (default/linux/amd64/13.0, gcc-4.8.2, glibc-2.17, 3.13.0-rc5 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.13.0-rc5-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_4400+-with-gentoo-2.2
KiB Mem:     4049704 total,    385320 free
KiB Swap:    6012920 total,   6012808 free
Timestamp of tree: Fri, 27 Dec 2013 02:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
ccache version 3.1.9 [enabled]
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.6, 3.2.5-r3, 3.3.3
dev-util/ccache:          3.1.9-r3
dev-util/cmake:           2.8.12.1-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.14.1
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.8.2
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.12 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo overlay_jl
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask-write=y --keep-going --quiet-build=y"
FCFLAGS="-march=native -O2 -pipe"
FEATURES="assume-digests binpkg-logs ccache config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 64bit X Xaw3d a52 aac aacplus aacs aalib ace acl acpi activefilter ads aften alsa amd64 ap apm apng archive async audacious audiofile automount avcodec bash-completion bazaar berkdb binary-drivers binfilter blender-game bluray boost bzip2 bzr cairo canusb ccache cdda cddb cdio cdparanoia cdr cdrdao cdrom cgi charconv chm chroot city cjk clang cleartype cli colordiff colors compress consolekit corefonts cpio cracklib crypt css cue cups curl curlwrappers cvs cxx daemon dbus declarative demo device-mapper dga dhcp doom doomsday dos dri dts dv dvb dvd dvdnav eap eap-sim eap-tls ebook egl emerald emoticon enca encode enscript equalizer exif extensions extras faac faad fam farsight farstream fat fax fbcon fdformat ffmpeg fftw firefox flac fluidsynth fontconfig foomaticdb fortran freedoom ftp fts3 fuse g3dvl gallium gbm gd gdbm gdu geoip gif gimp git glamor glib glut gme gnutls gphoto2 gpm graphite gsm gstreamer gtk gtk3 gudev gui gzip hddtemp hdf hdf5 heretic hexen highlight hwdb iconv icq icu id3 id3tag idn imagemagick introspection ios ipc ipod ipv6 irc jack java javascript jit jpeg jpeg2k kde keymap ladspa lame laptop lcms ldap lensfun lha libass libcaca libcanberra libkms libnl libnotify libsamplerate libssh2 libv4l libv4l2 libwww live llvm llvm-shared-libs lm_sensors logrotate lua lxde lzma lzo mad madwifi magic man matroska md5sum metalink midi mikmod mime minizip mixer mjpeg mmap mms mmx mmxext mng mobi mod modplug modules mono mouse mozilla mp3 mp4 mpeg mplayer mtp mudflap multilib multislot musepack musicbrainz nano-syntax ncat ncurses ndiff network nfs nfsidmap nfsv3 nfsv4 nfsv41 nls nmap nmap-update nokia normalize nowlistening nping nptl nsplugin nss ntfs ntfsprogs ntp nvidia nvram obex ocr ogg ogm openal opencl opengl openmp openvg optimized-qmake oscar osdmenu osmesa otr p2p pam pango panorama parport parse-clocks pcap pci pcre pdf pdfimport phonon pipes plasma plugins pm-utils pmu png policykit postscript ppds privacy projectm projectx pulseaudio pvr python3 qalculate qt3support qt4 quicktime r600-llvm-compiler radio rar raw rdesktop readline recording redeyes reiser4 reiserfs remote-access remoteosd replaygain resources rpm rtc rtmp rtsp rubberband samba sbsms scanner schroedinger sdl secure-delete semantic-desktop sensord session sftp sha512 shorten shout skins slang smbclient smi sndfile snowberry sockets sound soundtouch speex spell sql sqlite sqlite3 sse sse2 sse3 ssh ssl startup-notification statistics stk stream subtitles subversion svg swat symlink syslog szip taglib tcpd texteffect tftp theora threads thumbnail tiff translator truetype twolame udev udisks unicode upcall upower urlpicpreview usb v4l vaapi vamp vboxwebsrv vcd vcdx vdpau video videos vidmode vim-syntax virtualbox vlm vnc vorbis vpx vroot vst wad wav wavpack webgl webkit webm webpresence wifi winbind winpopup wireshark wmf wps wxwidgets x264 xa xattr xcb xcomposite xfs xine xinerama xinetd xml xmp xorg xosd xpm xrandr xscreensaver xv xvfb xvid xvmc zip zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 sheets stage tables krita karbon braindump author" 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 ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2 python3_3" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev vesa svga vga radeon v4l modesetting r600" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

media-libs/freeverb3-3.1.0 was built with the following:
USE="3dnow audacious openmp sse sse2 sse3 threads -avx -forcefpu -jack -plugdouble -sse4"
Comment 1 jospezial 2014-03-16 17:54:15 UTC
https://developer.gnome.org/gdk3/unstable/gdk3-Threads.html#gdk-threads-init

gdk_threads_init has been deprecated since version 3.6 and should not be used in newly-written code.

All GDK and GTK+ calls should be made from the main thread


Does this help us or has the upstream developer to do there something?
Comment 2 Sebastian Pipping gentoo-dev 2014-09-20 01:06:37 UTC
For --enable jack --disable-audacious we run into:

 1) Link errors for gdk_threads_init

      /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../
      x86_64-pc-linux-gnu/bin/ld: ./.libs/libjack_common.a(libjack_common_la-
      jack_main.o): undefined reference to symbol 'gdk_threads_init'
      /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../lib64/libgdk-3.so:
      error adding symbols: DSO missing from command line
      collect2: error: ld returned 1 exit status

 2) Compile errors for calls to aud_set_str/aud_get_str:

      ../audacious/impulser2.cpp: In function ‘void slot_save(SlotConfiguration*,
      int)’:
      ../audacious/impulser2.cpp:278:86: error: ‘aud_set_str’ was not declared in
      this scope
      ../audacious/impulser2.cpp: In function ‘void slot_load(SlotConfiguration*,
      int)’:
      ../audacious/impulser2.cpp:293:62: error: ‘aud_get_str’ was not declared in
      this scope

Teru, any chance you could help with patches for these issues?
Comment 3 jospezial 2015-06-01 23:36:10 UTC
media-libs/freeverb3-3.1.1 still does not compile with these useflags and dependent packages.

USE="jack audacious" emerge -vaD freeverb3

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N     ] media-libs/libcue-1.4.0::gentoo  USE="-static-libs" 244 KiB
[ebuild  N     ] media-libs/bio2jack-0.9-r1::gentoo  USE="-static-libs" 516 KiB
[ebuild  N     ] media-sound/audacious-3.5.1::gentoo  USE="nls -chardet" 487 KiB
[ebuild  N     ] media-plugins/audacious-plugins-3.5.1::gentoo  USE="aac alsa cdda cue ffmpeg flac fluidsynth jack lame libnotify libsamplerate midi mms mp3 nls pulseaudio sdl sndfile vorbis wavpack -adplug -bs2b -gnome -lirc -scrobbler -sid" 1.674 KiB
[ebuild  N     ] media-libs/freeverb3-3.1.1::gentoo  USE="audacious jack openmp threads -forcefpu -plugdouble" CPU_FLAGS_X86="3dnow sse sse2 sse3 -avx -sse4_1" 0 KiB

Total: 5 packages (5 new), Size of downloads: 2.920 KiB


x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I..  -DJACK -I.. -I../libgdither -I../audacious      -pthread -I/usr/incl
ude/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/inc
lude -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/
harfbuzz -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/inc
lude/pango-1.0 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/u
sr/include/freetype2 -I/usr/include/libdrm -I/usr/include/libpng16  -I../samples   -march=native -O2 -pipe -march=nati
ve -O2 -pipe -fPIC -fopenmp -c -o ../audacious/fv3_jack_impulser2-impulser2.o `test -f '../audacious/impulser2.cpp' ||
 echo './'`../audacious/impulser2.cpp
../audacious/impulser2.cpp: In function ‘void slot_save(SlotConfiguration*, int)’:
../audacious/impulser2.cpp:278:84: error: ‘aud_set_str’ was not declared in this scope
   aud_set_str   (configSectionString, key_i("file",i), (gchar*)slot->filename.c_str());
                                                                                    ^
../audacious/impulser2.cpp: In function ‘void slot_load(SlotConfiguration*, int)’:
../audacious/impulser2.cpp:293:62: error: ‘aud_get_str’ was not declared in this scope
   filename = aud_get_str(configSectionString, key_i("file",i));
                                                              ^


A lot of deprecated warnings follow that:


../audacious/impulser2.cpp: In function ‘void showSplash(const char*, const char*, const char*)’:
../audacious/impulser2.cpp:357:17: warning: ‘GtkWidget* gtk_table_new(guint, guint, gboolean)’ is deprecated: Use 'GtkGrid' instead [-Wdeprecated-declarations]
   splashTable = gtk_table_new(5, 5, FALSE);
                 ^
In file included from /usr/include/gtk-3.0/gtk/gtk.h:261:0,
                 from ../audacious/impulser2.cpp:36:
/usr/include/gtk-3.0/gtk/deprecated/gtktable.h:119:12: note: declared here
 GtkWidget* gtk_table_new       (guint  rows,
            ^
../audacious/impulser2.cpp:357:17: warning: ‘GtkWidget* gtk_table_new(guint, guint, gboolean)’ is deprecated: Use 'GtkGrid' instead [-Wdeprecated-declarations]
   splashTable = gtk_table_new(5, 5, FALSE);
                 ^
In file included from /usr/include/gtk-3.0/gtk/gtk.h:261:0,
                 from ../audacious/impulser2.cpp:36:
/usr/include/gtk-3.0/gtk/deprecated/gtktable.h:119:12: note: declared here
 GtkWidget* gtk_table_new       (guint  rows,
            ^
../audacious/impulser2.cpp:357:40: warning: ‘GtkWidget* gtk_table_new(guint, guint, gboolean)’ is deprecated: Use 'GtkGrid' instead [-Wdeprecated-declarations]
   splashTable = gtk_table_new(5, 5, FALSE);
                                        ^
In file included from /usr/include/gtk-3.0/gtk/gtk.h:261:0,
                 from ../audacious/impulser2.cpp:36:
/usr/include/gtk-3.0/gtk/deprecated/gtktable.h:119:12: note: declared here
 GtkWidget* gtk_table_new       (guint  rows,
            ^
../audacious/impulser2.cpp:358:3: warning: ‘void gtk_table_attach(GtkTable*, GtkWidget*, guint, guint, guint, guint, GtkAttachOptions, GtkAttachOptions, guint, guint)’ is deprecated: Use 'GtkGrid' instead [-Wdeprecated-declarations]
   gtk_table_attach(GTK_TABLE(splashTable), logo,         0,5, 0,1, GTK_FILL, GTK_FILL, 0,0);  
   ^
...
Comment 4 Sebastian Pipping gentoo-dev 2015-06-08 23:58:26 UTC
+*freeverb3-3.1.1-r1 (08 Jun 2015)
+
+  08 Jun 2015; Sebastian Pipping <sping@gentoo.org> +freeverb3-3.1.1-r1.ebuild,
+  +files/freeverb3-3.1.1-jack-compilation.patch,
+  +files/freeverb3-3.1.1-jack-linking.patch:
+  Fix compilation for USE=jack (bug #496128)
+