Comments (14)
Same problem here
When compiled in CentOS 7, everything is OK and proxychains4 runs fine
but in Ubuntu 14.10, compilation is OK, but when I ran any program, all results as:
symbol lookup error: ./libproxychains4.so: undefined symbol: pthread_once
If I change the lpthread to pthread, then results like this:
symbol lookup error: ./libproxychains4.so: undefined symbol: dlsym
have no idea how to change the compile option
from proxychains-ng.
in Makefile line 85
change to:
$(CC) -shared $(LDFLAGS) $(LD_SET_SONAME)$(LDSO_PATHNAME) -lpthread $(LIBDL) -o $@ $(LOBJS)
from proxychains-ng.
@jackyzy823 THX so much!
Now everything works as the original proxychains3 does
from proxychains-ng.
Thank you @jackyzy823 !
This has solved the issue for me too.
from proxychains-ng.
You may google gcc link order
for more detail and further understanding. :-)
from proxychains-ng.
@jackyzy823 care to create a pull request with your fix ?
from proxychains-ng.
This just breaks the linking on archlinux using gcc5.
from proxychains-ng.
@proudzhu how weird. are you using the latest commit? and please paste output of the make invocation including the error.
from proxychains-ng.
I'm using release 4.9.
the output of running proxychains ls
[proxychains] config file found: /etc/proxychains.conf
[proxychains] preloading /usr/lib/libproxychains4.so
ls: symbol lookup error: /usr/lib/libproxychains4.so: undefined symbol: pthread_once
but running proxychains curl ***
is fine.
revert this commit 377b474, everything works.
I think it is related with gcc versions, maybe they change some default behaviours during gcc updates.
@Kieters @jryaonj Can you provides your gcc versions?
And the PKGBUILD is here proxychains-ng
from proxychains-ng.
@proudzhu try to revert e79e05a as well. does that work ? this commit seems to be the original cause of the regression
from proxychains-ng.
@rofl0r
Finally I found that I have "--as-needed" in my local LDFLAGS, it is set in the default makepkg.conf which will be loaded when building a package in archlinux.
Then I found this wiki, in section "Fixing problems with --as-needed", it says "libraries don't create problems, because they are allowed to have undefined symbols".
So in my system, $(CC) -shared -lpthread $(LIBDL) $(LDFLAGS) $(LD_SET_SONAME)$(LDSO_PATHNAME) -o $@ $(LOBJS)
works, but $(CC) -shared $(LDFLAGS) $(LD_SET_SONAME)$(LDSO_PATHNAME) -lpthread $(LIBDL) -o $@ $(LOBJS)
fails.
Maybe we should move "-lpthread
But I cannot figure out why the other users in the post failed to link against libpthread.
If it is a gcc link order issue as @jackyzy823 says ( but I'm confused as there is not other library in the argument), maybe we could change to
$(CC) -shared $(LD_SET_SONAME)$(LDSO_PATHNAME) -lpthread $(LIBDL) $(LDFLAGS) -o $@ $(LOBJS)
?
from proxychains-ng.
The package proxychains-ng 4.9-1 I installed from the Arch Linux repository also throws out the error below when I run proxychains firefox
[proxychains] config file found: /etc/proxychains.conf
[proxychains] preloading /usr/lib/libproxychains4.so
sh: symbol lookup error: /usr/lib/libproxychains4.so undefined symbol: pthread_once
But the version proxychains-ng 4.8.1-1 works fine.
from proxychains-ng.
rather than putting more ducttape (#65) on the broken linker command line,
i reverted the original commit that introduced the breakage by shuffling the ld arguments around, and the following fixup by @jackyzy823, and introduced a clean way to deal with user-supplied LDFLAGS. please check if that fixes your issues.
from proxychains-ng.
@rofl0r it works now, thanks.
from proxychains-ng.
Related Issues (20)
- Q: Is there a way to list the Tor proxies that are being used? HOT 2
- Feature request: SPNEGO Authentication HOT 5
- How to prevent WebRTC IP leaks? HOT 2
- what should I do if I encountered something like below? I'm working with MacOS m1 pro silicon. HOT 1
- can't access local vpn with proxychains: "curl: (52) Empty reply from server" HOT 1
- proxychains4 error HOT 7
- proxychains4 fail on curl check while proxychains-ng successfully installed on macOS with Homebrew `brew` and config looks good HOT 1
- How m2 chip should use proxychains4 HOT 3
- dnsleak with brave browser HOT 9
- Request: use proxy list / import HOT 1
- FFmpeg hangs when with proxychain HOT 4
- How to let an application that started or enabled by "systemctl " use proxychains-ng on Linux? HOT 1
- Incompatible architecture error on macOS 13.5 with proxychains-ng and Ruby HOT 6
- New requirement: Need all purpose ACL in configuration HOT 10
- Problem with UDP in proxychains-ng fork hc-syn/proxychains-ng branch "udp-associate": Segmentation fault when dealing with sendto(*) HOT 4
- proxychains does not work with firefox HOT 16
- Firefox canβt establish a connection to the server at wss:// (<--socket error or timeout!) with proxychains-ng 4.17 HOT 4
- Couldn't connect to server using proxychains-ng, but works fine with curl -x HOT 5
- Build error on macOS: `core.c: error: macro "memcpy" passed 6 arguments, but takes just 3`
- Build fails on Sonoma with clang: `libproxychains.c: error: incompatible function pointer types assigning to 'freeaddrinfo_t' (aka 'int (*)(struct addrinfo *)') from 'void (*)(struct addrinfo *)' [-Wincompatible-function-pointer-types]` HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from proxychains-ng.