Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 436762 - media-sound/fluidsynth-1.1.6 USE=lash - CMakeFiles/libfluidsynth.dir/bindings/fluid_lash.c.o: In function `fluid_lash_create_thread': fluid_lash.c:(.text+0x314): undefined reference to `pthread_create'
Summary: media-sound/fluidsynth-1.1.6 USE=lash - CMakeFiles/libfluidsynth.dir/bindings...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-01 09:15 UTC by Maxim Britov
Modified: 2012-11-23 03:56 UTC (History)
3 users (show)

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


Attachments
emerge --info (emerge-info.txt,6.35 KB, text/plain)
2012-10-01 09:16 UTC, Maxim Britov
Details
MAKEOPTS='-j1' emerge media-sound/fluidsynth (build.log,141.90 KB, text/plain)
2012-10-02 18:30 UTC, Maxim Britov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Maxim Britov 2012-10-01 09:15:30 UTC
With # USE='lash' emerge media-sound/fluidsynth:

[ 97%] Building C object src/CMakeFiles/libfluidsynth.dir/bindings/fluid_filerenderer.c.o
In file included from /var/tmp/portage/media-sound/fluidsynth-1.1.6/work/fluidsynth-1.1.6/src/synth/fluid_event_queue.h:24:0,
                 from /var/tmp/portage/media-sound/fluidsynth-1.1.6/work/fluidsynth-1.1.6/src/synth/fluid_synth.h:35,
                 from /var/tmp/portage/media-sound/fluidsynth-1.1.6/work/fluidsynth-1.1.6/src/bindings/fluid_filerenderer.c:27:
/var/tmp/portage/media-sound/fluidsynth-1.1.6/work/fluidsynth-1.1.6/src/utils/fluid_sys.h: In function 'new_fluid_cond_mutex':
/var/tmp/portage/media-sound/fluidsynth-1.1.6/work/fluidsynth-1.1.6/src/utils/fluid_sys.h:161:3: warning: 'g_thread_init' is deprecated (declared at /usr/include/glib-2.0/glib/deprecated/gthread.h:259) [-Wdeprecated-declarations]
/var/tmp/portage/media-sound/fluidsynth-1.1.6/work/fluidsynth-1.1.6/src/utils/fluid_sys.h:162:3: warning: 'g_mutex_new' is deprecated (declared at /usr/include/glib-2.0/glib/deprecated/gthread.h:271) [-Wdeprecated-declarations]
Linking C shared library libfluidsynth.so
CMakeFiles/libfluidsynth.dir/bindings/fluid_lash.c.o: In function `fluid_lash_create_thread':
fluid_lash.c:(.text+0x314): undefined reference to `pthread_create'
collect2: ld returned 1 exit status
make[2]: *** [src/libfluidsynth.so.1.5.2] Error 1
make[1]: *** [src/CMakeFiles/libfluidsynth.dir/all] Error 2
make: *** [all] Error 2
Comment 1 Maxim Britov 2012-10-01 09:16:59 UTC
Created attachment 325454 [details]
emerge --info
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2012-10-02 13:16:38 UTC
Please attach the entire build log to this bug report.
Comment 3 Maxim Britov 2012-10-02 18:30:16 UTC
Created attachment 325546 [details]
MAKEOPTS='-j1' emerge media-sound/fluidsynth
Comment 4 Dominique Michel 2012-11-03 17:31:25 UTC
Portage ebuild use the cmake build system. When merging fluidsynth with it, I get the same error as described here.

If I change into ${S} and run configure and make, it success.

The autotools stuffs are marked as obsoletes. On the other hand, the cmake stuffs are marked as experimental. Maybe a good move, as it succeed to compile and install fluidsynth, would be that the ebuild use the autotools stuffs.
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2012-11-03 17:56:33 UTC
(In reply to comment #4)
> Portage ebuild use the cmake build system. When merging fluidsynth with it,
> I get the same error as described here.
> 
> If I change into ${S} and run configure and make, it success.
> 
> The autotools stuffs are marked as obsoletes. On the other hand, the cmake
> stuffs are marked as experimental. Maybe a good move, as it succeed to
> compile and install fluidsynth, would be that the ebuild use the autotools
> stuffs.

no plans in moving backwards with something as simple as missing -pthread and gnome/gtk+/glib specific -D.*DEPRECATED flags that need to be patched out from the build system

(that was an educated guess based on the warnings/errors posted here)
Comment 6 Samuli Suominen (RETIRED) gentoo-dev 2012-11-23 03:56:01 UTC
added append-flags -pthread to the ebuild, no sign of gnome specific DEPRECATED flags, might be inherited from the system