Bug 99675 - error: undefined reference to 'lt__PROGRAM__LTX_preloaded_symbols'
Summary: error: undefined reference to 'lt__PROGRAM__LTX_preloaded_symbols'
Status: RESOLVED MOVED
Alias: None
Product: PulseAudio
Classification: Unclassified
Component: core (show other bugs)
Version: unspecified
Hardware: All Linux (All)
: medium major
Assignee: pulseaudio-bugs
QA Contact: pulseaudio-bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-04 11:08 UTC by Tomasz Paweł Gajc
Modified: 2018-07-30 09:58 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Tomasz Paweł Gajc 2017-02-04 11:08:49 UTC
Can't build PulseAudio 10.0 with gcc-6.3.1

make[3]: Leaving directory '/builddir/build/BUILD/pulseaudio-10.0/src'
libtool:   error: not configured to extract global symbols from dlpreopened files
daemon/main.c:528: error: undefined reference to 'lt__PROGRAM__LTX_preloaded_symbols'
daemon/dumpmodules.c:116: error: undefined reference to 'lt__PROGRAM__LTX_preloaded_symbols'
daemon/dumpmodules.c:129: error: undefined reference to 'lt__PROGRAM__LTX_preloaded_symbols'
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:6723: pulseaudio] Error 1
make[2]: *** [Makefile:4891: all] Error 2
make[1]: *** [Makefile:807: all-recursive] Error 1
make: *** [Makefile:622: all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.73086 (%build)

More logs can be found here
http://file-store.openmandriva.org/api/v1/file_stores/b735cedd3c73cf523804b2354a1dfde3641d22e3.log?show=true
Comment 1 Tanu Kaskinen 2017-04-17 08:02:59 UTC
> libtool:   error: not configured to extract global symbols from dlpreopened files

This sounds like your libtool has been configured in an unusual way. I have never seen this error before, and I don't know how to fix this. For now I'll assume that this is not a pulseaudio bug. Feel free to prove me wrong.
Comment 2 Klaus Kusche 2017-06-15 09:51:21 UTC
Exactly the same problem here, also when compiling pulseaudio 10.0.
Comment 3 Klaus Kusche 2017-06-15 10:14:53 UTC
It's a problem of the libtool generated in the pulseaudio build:

In the libtool script in the pulseaudio build tree,
the shell variables global_symbol_pipe and global_symbol_to_cdecl
are both set to empty strings.
In my /usr/bin/libtool, they are both set to sed commands.

Copying these two lines from /usr/bin/libtool to the build-local libtool
fixes the problem.
Comment 4 Klaus Kusche 2017-09-10 13:56:30 UTC
Problem still present in Pulseaudio 10.99.
Comment 5 Tanu Kaskinen 2017-09-17 18:24:13 UTC
The libtool script in the build tree is generated by config.status, which in turn is generated by the configure script, which in turn is generated by autoreconf, which is run from the bootstrap.sh script. Maybe it's a bug in autoconf, maybe it's a bug in libtool, I don't know.

I can't reproduce the problem, so I can't debug this.

Since the libtool script is generated by the PulseAudio build system, I wondered what generates /usr/bin/libtool, but on my machine that file doesn't even exist.
Comment 6 Klaus Kusche 2017-09-17 18:33:50 UTC
(In reply to Tanu Kaskinen from comment #5)
> Since the libtool script is generated by the PulseAudio build system, I
> wondered what generates /usr/bin/libtool, but on my machine that file
> doesn't even exist.

According to the package management, the libtool development package
installed /usr/bin/libtool on my system.
Comment 7 GitLab Migration User 2018-07-30 09:58:33 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/issues/142.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.