Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
VVD opened this issue Jul 18, 2022 · 7 comments

Comments

@VVD
Copy link

VVD commented Jul 18, 2022

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
@allentc
Copy link
Owner

allentc commented Jul 18, 2022

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

@VVD
Copy link
Author

VVD commented Jul 19, 2022

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

@allentc
Copy link
Owner

allentc commented Jul 19, 2022

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?

@VVD
Copy link
Author

VVD commented Aug 14, 2022

This way require fork… :-(

@allentc
Copy link
Owner

allentc commented Aug 15, 2022

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

@SebDieBln
Copy link
Collaborator

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

@VVD
Copy link
Author

VVD commented Sep 19, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants