Bug 52038 - failure linking PA statically
Summary: failure linking PA statically
Status: RESOLVED FIXED
Alias: None
Product: PulseAudio
Classification: Unclassified
Component: build-system (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: pulseaudio-bugs
QA Contact: pulseaudio-bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-13 07:27 UTC by Peter Meerwald
Modified: 2015-05-20 22:44 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Peter Meerwald 2012-07-13 07:27:33 UTC
gcc -static  x.c `PKG_CONFIG_PATH=/usr/local/lib/pkgconfig pkg-config --static --libs libpulse-simple`

/usr/bin/ld: error: cannot find -lpulsecommon-2.98
pulse/simple.c:373: error: undefined reference to 'pa_log_level_meta'
pulse/simple.c:374: error: undefined reference to 'pa_log_level_meta'
pulse/simple.c:134: error: undefined reference to 'pa_log_level_meta'

reason is that libpulse-simple.pc  should include a library search path in Libs.private:

-Libs.private: -lpulsecommon-2.98
+Libs.private: -L${libdir}/pulseaudio -lpulsecommon-2.98
Comment 1 Peter Meerwald 2012-07-13 07:32:51 UTC
fix posted


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.