binarycrusader / libproxy

Automatically exported from code.google.com/p/libproxy
GNU Lesser General Public License v2.1
0 stars 0 forks source link

Build failure on FreeBSD/DragonFly #147

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
just build it

What is the expected output? What do you see instead?
I got libmodman.so linking failure, because of missing libdl.so.
We don't have libdl.so on FreeBSD/DragonFly. We have dl*() functions in libc on 
these OSs.

What version of the product are you using? On what operating system?
libproxy-0.4.6 on Gentoo/FreeBSD-8.0

Please provide any additional information below.
part of the build log

Linking CXX shared library libmodman.so
/usr/lib/gcc/i686-gentoo-freebsd7.2/4.4.4/../../../../i686-gentoo-freebsd7.2/bin
/ld: cannot find -ldl
collect2: ld returned 1 exit status
gmake[2]: *** [libmodman/libmodman.so.1.0.0] Error 1
gmake[1]: *** [libmodman/CMakeFiles/modman.dir/all] Error 2
gmake: *** [all] Error 2

Original issue reported on code.google.com by Nao.A...@gmail.com on 22 Oct 2010 at 10:08

GoogleCodeExporter commented 9 years ago
Sorry, we don't use FreeBSD, but any clean patch will be accepted.

Original comment by nicolas.dufresne@gmail.com on 7 Nov 2010 at 2:14

GoogleCodeExporter commented 9 years ago
How about using pre-defined variable ${CMAKE_DL_LIBS} instead of hardcoding 
"dl"? It should work on cmake-working OSes.
Patch attached.

Original comment by Nao.A...@gmail.com on 9 Mar 2012 at 2:58

Attachments:

GoogleCodeExporter commented 9 years ago
Fixed in r832.

Original comment by dominiqu...@gmail.com on 10 Mar 2012 at 9:14