GNOME Bugzilla – Bug 568481
GStreamer linking failures.
Last modified: 2009-01-23 08:58:58 UTC
Several GStreamer libraries fail to build on Solaris due to missing -lm, -lsocket, and/or -lnsl libraries on the link line. This patch fixes GStreamer so it builds. Not sure if this patch needs additional work to go upstream.
Created attachment 126866 [details] [review] patch
We obviously can't use Solaris-only libraries unconditionally.
Understood. I just wasn't sure how this would be be handled in configure. Do you have any suggestions? I'm happy to update this patch based on any advice on how to best fix the problem.
Created attachment 127061 [details] [review] updated patch This updated patch fixes configure to check for libsocket and libnsl, so the libraries get added to LIBS if present on the system. This seems cleaner and hopefully can go upstream. Also note the gst//Makefile.am needs to also be updated to link with LIBM since it uses libm math functions.
commit 0bf1bd0db059b5e2e51e9293cea72cfb557ac567 Author: Brian Cameron <brian.cameron@sun.com> Date: Fri Jan 23 09:54:53 2009 +0100 Fix linking failures on Solaris. Fixes bug #568481. Link libgstreamer with $(LIBM) as it uses math functions. Add a configure check for socket and nsl library and add them to LIBS if they're found. This is needed on Solaris for socket() and gethostbyname().