pgadmin3-lts icon indicating copy to clipboard operation
pgadmin3-lts copied to clipboard

ld: error: utils/sshTunnel.o: unable to find library from dependent library specifier: Ws2_32.lib

Open VVD opened this issue 2 years ago • 7 comments

Without this patch:

--- pgadmin/utils/sshTunnel.cpp.orig	2016-02-08 10:25:13 UTC
+++ pgadmin/utils/sshTunnel.cpp
@@ -19,7 +19,9 @@
 #include "utils/sshTunnel.h"
 #include "frm/frmMain.h"
 
+#ifdef WIN32
 #pragma comment (lib, "Ws2_32.lib")
+#endif
 
 typedef const char *(*inet_ntop_t) (int af, const void *src, char *dst, socklen_t size);
 

https://cgit.freebsd.org/ports/tree/databases/pgadmin3/files/patch-pgadmin_utils_sshTunnel.cpp I get this error during build:

ld: error: utils/sshTunnel.o: unable to find library from dependent library specifier: Ws2_32.lib
c++: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[4]: *** [Makefile:5227: pgadmin3] Error 1

VVD avatar Jul 18 '22 10:07 VVD

Please create Pull Requests for all such changes. The fix is straight forward and I'll gladly accept it.

allentc avatar Jul 18 '22 19:07 allentc

How to do Pull Request without fork repo? :-o

VVD avatar Jul 19 '22 18:07 VVD

The usual thing to do is fork the repo and submit the PR from your fork. If you don't anticipate making further PRs then delete your fork after the PR is merged. See: Pull request without forking?

allentc avatar Jul 19 '22 19:07 allentc

This way require fork… :-(

VVD avatar Aug 14 '22 13:08 VVD

Well, that's standard practice with Git/GitHub. Takes about 3 seconds to make a fork.

allentc avatar Aug 15 '22 18:08 allentc

@VVD I understand you are building under FreeBSD? Do you know, why the build on Linux does not require such a patch?

SebDieBln avatar Aug 17 '22 20:08 SebDieBln

@SebDieBln, yes, FreeBSD. Maybe it's clang vs gcc issue?

VVD avatar Sep 19 '22 01:09 VVD