You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Inclusion of libssh2 via pkg-config causes harmless build warning #11538
When building --with-libssh2 a minor warning is triggered during the configure process where the "-L" specification erroneously gets added to LIBS. Also "-lssh2" appears twice (some other libraries like ssl+crypto, zstd, z, and brotlidec also appear multiple times for some reason, but that doesn't trigger warnings at least.)
…
configure: using LIBS: -lcares -lnghttp2 -lidn2 -lrtmp -lz -lssl -lcrypto -lssh2 -L/usr/local/mystuff/libssh2/latest/lib -lssh2 -lssl -lcrypto -lssl -lcrypto -lzstd -lzstd -lbrotlidec -lbrotlidec -lz -lpsl -lgsasl
configure: LIBS note: LIBS should only be used to specify libraries (-lname).
configure: WARNING: Continuing even with errors mentioned immediately above this line.
…
The specifications only can get generated via the pkg-config system (I only hotlink the .pc files in /usr/local/lib/pkgconfig, and nothing else directly in the standard paths). So I'm guessing the configure script itself causes the problem. Maybe it is not using the correct --libs-only-l?
@bagder I think it will go much quicker for you to do it. Basically I'm just a user here and I'm not familiar with the git and github stuff at all (I still use Subversion for my own stuff), and before I would figure this out curl probably would have reached version 9 already. 😃
Activity
bagder commentedon Jul 28, 2023
Scarily accurate guess 😨 !
curl/configure.ac
Line 2245 in 40c6329
Do you want to make the PR?
TurtleWilly commentedon Jul 28, 2023
@bagder I think it will go much quicker for you to do it. Basically I'm just a user here and I'm not familiar with the git and github stuff at all (I still use Subversion for my own stuff), and before I would figure this out curl probably would have reached version 9 already. 😃
configure: use the pkg-config --libs-only-l flag for libssh2
configure: use the pkg-config --libs-only-l flag for libssh2
configure: use the pkg-config --libs-only-l flag for libssh2