On 2011/12/05 10:00, Vitali wrote:
> Anyway I decided to go on with the experiments and poked about
> libproxy in ports.
> In the patch file
> "/usr/ports/net/libproxy/patches/patch-libproxy_cmake_libproxy_cmk"
> there was a replacement line:
> 
> - target_link_libraries(libproxy modman;m;pthread;dl;${LIBPROXY_LIBRARIES})
> + target_link_libraries(libproxy modman;m;${LIBPROXY_LIBRARIES})
> 
> which I edited for:
> 
> + target_link_libraries(libproxy modman;m;pthread;${LIBPROXY_LIBRARIES})
> 
> I put back only "pthread" as you see, rebuilt libproxy and gave
> openconnect a new try, and this time it built with no errors.
>
> Here is my conversation with the openconnect developer
> https://plus.google.com/u/0/113990329890790578682/posts/fxytv9BTkcY
> 
> I wonder why "pthread" had been removed from libproxy? Or maybe I've
> lost something? I found no information on the OpenBSD site about this.

The problem is you are then linking with -lpthread, which is incorrect,
on OpenBSD this should be -pthread instead. I don't know of a good way to
express this via a .cmk file but I think maybe we could patch the
generated pkg-config file.

Reply via email to