pgadmin3-lts
pgadmin3-lts copied to clipboard
ld: error: utils/sshTunnel.o: unable to find library from dependent library specifier: Ws2_32.lib
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
Please create Pull Requests for all such changes. The fix is straight forward and I'll gladly accept it.
How to do Pull Request without fork repo? :-o
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?
This way require fork… :-(
Well, that's standard practice with Git/GitHub. Takes about 3 seconds to make a fork.
@VVD I understand you are building under FreeBSD? Do you know, why the build on Linux does not require such a patch?
@SebDieBln, yes, FreeBSD. Maybe it's clang vs gcc issue?