rofl0r / rofl0r/proxychains-ng

build fails with error in function 'proxy_getaddrinfo' on SmartOS (Illumios/Solaris)

Open
#61 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
10.7k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

cat /etc/motd

__ . .
| | | .-. . . .-. :--. |-
|_ _| ;| || |(.-' | | |
|__| --'-' ;-|-' ' ' -' / ; Instance (base-64-lts 14.4.1) -' https://docs.joyent.com/images/smartos/base

]# make
cc -Wall -O0 -g -std=c99 -D_GNU_SOURCE -pipe -DLIB_DIR="/usr/local/lib" -DSYSCONFDIR="/usr/local/etc" -DDLL_NAME="libproxychains4.so" -fPIC -c -o src/core.o src/core.c
src/core.c: In function 'proxy_getaddrinfo':
src/core.c:839:2: error: too many arguments to function 'getservbyname_r'
In file included from src/core.c:23:0:
/usr/include/netdb.h:247:17: note: declared here
Makefile:82: recipe for target 'src/core.o' failed
make: *** [src/core.o] Error 1

I'm try to use the patch in this bug report:
https://github.com/rofl0r/proxychains-ng/issues/52

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with src/core.c, especially proxy_getaddrinfo, and compare its getservbyname_r call with the signature in /usr/include/netdb.h on SmartOS. Review the patch referenced in issue #52, then run make on SmartOS; done means the project builds without the reported argument-count error.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
networking
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.