pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/54694: security/libssh does not build on Solaris



>Number:         54694
>Category:       pkg
>Synopsis:       security/libssh does not build on Solaris
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Nov 12 08:15:00 +0000 2019
>Originator:     Joern Clausen
>Release:        
>Organization:
Bielefeld University
>Environment:
>Description:
Compiling security/libssh lately fails with

[ 63%] Linking C executable keygen
[ 63%] Built target keygen
Scanning dependencies of target sshd_direct-tcpip
[ 64%] Building C object examples/CMakeFiles/sshd_direct-tcpip.dir/sshd_direct-tcpip.c.o
[ 64%] Linking C executable sshd_direct-tcpip
Undefined                       first referenced
 symbol                             in file
recv                                CMakeFiles/sshd_direct-tcpip.dir/sshd_direct-tcpip.c.o  (symbol belongs to implicit dependency /lib/amd64/libsocket.so.1)
send                                CMakeFiles/sshd_direct-tcpip.dir/sshd_direct-tcpip.c.o  (symbol belongs to implicit dependency /lib/amd64/libsocket.so.1)
gethostbyname                       CMakeFiles/sshd_direct-tcpip.dir/sshd_direct-tcpip.c.o  (symbol belongs to implicit dependency /lib/amd64/libnsl.so.1)
socket                              CMakeFiles/sshd_direct-tcpip.dir/sshd_direct-tcpip.c.o  (symbol belongs to implicit dependency /lib/amd64/libsocket.so.1)
connect                             CMakeFiles/sshd_direct-tcpip.dir/sshd_direct-tcpip.c.o  (symbol belongs to implicit dependency /lib/amd64/libsocket.so.1)
shutdown                            CMakeFiles/sshd_direct-tcpip.dir/sshd_direct-tcpip.c.o  (symbol belongs to implicit dependency /lib/amd64/libsocket.so.1)
ld: fatal: symbol referencing errors

>How-To-Repeat:

>Fix:
A workaround is to add "-lsocket -lnsl" to

work/build/examples/CMakeFiles/sshd_direct-tcpip.dir/link.txt

As I don't know how to influence the cmake build process to do this automatically (as it does for some link.txt files in other subdirectories), I'll leave a proper patch to someone with more insight.



Home | Main Index | Thread Index | Old Index