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

Can't compile on Solaris #35

Open
a9tm opened this issue Oct 11, 2012 · 4 comments
Open

Can't compile on Solaris #35

a9tm opened this issue Oct 11, 2012 · 4 comments

Comments

@a9tm
Copy link

a9tm commented Oct 11, 2012

Hi, I'm trying to compile redsocks on OpenIndiana 151a system, but it failed as seen as below:

make

Unknown system, only generic firewall code is compiled
gcc -g -O2 -std=gnu99 -Wall -c -o parser.o parser.c
gcc -g -O2 -std=gnu99 -Wall -c -o main.o main.c
main.c: In function âmainâ:
main.c:139:3: warning: format â%dâ expects argument of type âintâ, but argument 3 has type âpid_tâ [-Wformat]
gcc -g -O2 -std=gnu99 -Wall -c -o redsocks.o redsocks.c
gcc -g -O2 -std=gnu99 -Wall -c -o log.o log.c
gcc -g -O2 -std=gnu99 -Wall -c -o http-connect.o http-connect.c
gcc -g -O2 -std=gnu99 -Wall -c -o socks4.o socks4.c
gcc -g -O2 -std=gnu99 -Wall -c -o socks5.o socks5.c
gcc -g -O2 -std=gnu99 -Wall -c -o http-relay.o http-relay.c
gcc -g -O2 -std=gnu99 -Wall -c -o base.o base.c
gcc -g -O2 -std=gnu99 -Wall -c -o base64.o base64.c
gcc -g -O2 -std=gnu99 -Wall -c -o md5.o md5.c
gcc -g -O2 -std=gnu99 -Wall -c -o http-auth.o http-auth.c
gcc -g -O2 -std=gnu99 -Wall -c -o utils.o utils.c
In file included from utils.c:28:0:
libc-compat.h:11:5: warning: #warning Using hardcoded value for IP_ORIGDSTADDR as libc headers do not define it. [-Wcpp]
libc-compat.h:16:5: warning: #warning Using hardcoded value for IP_RECVORIGDSTADDR as libc headers do not define it. [-Wcpp]
libc-compat.h:21:5: warning: #warning Using hardcoded value for IP_TRANSPARENT as libc headers do not define it. [-Wcpp]
utils.c: In function âred_recv_udp_pktâ:
utils.c:43:5: error: âstruct msghdrâ has no member named âmsg_controlâ
utils.c:44:5: error: âstruct msghdrâ has no member named âmsg_controllenâ
utils.c:56:15: warning: implicit declaration of function âCMSG_FIRSTHDRâ [-Wimplicit-function-declaration]
utils.c:56:31: warning: initialization makes pointer from integer without a cast [enabled by default]
utils.c:56:3: error: declaration of non-variable âCMSG_FIRSTHDRâ in âforâ loop initial declaration
utils.c:56:15: warning: implicit declaration of function âCMSG_NXTHDRâ [-Wimplicit-function-declaration]
utils.c:56:63: warning: assignment makes pointer from integer without a cast [enabled by default]
utils.c:58:25: error: âSOL_IPâ undeclared (first use in this function)
utils.c:58:25: note: each undeclared identifier is reported only once for each function it appears in
utils.c:60:5: warning: implicit declaration of function âCMSG_LENâ [-Wimplicit-function-declaration]
utils.c:62:44: warning: implicit declaration of function âCMSG_DATAâ [-Wimplicit-function-declaration]
make: *** [utils.o] Error 1

I don't know how could redsocks be compiled on Solaris system or not, please give a hand on it. Thanks.

@a9tm a9tm closed this as completed Oct 11, 2012
@a9tm a9tm reopened this Oct 11, 2012
@darkk
Copy link
Owner

darkk commented Oct 11, 2012

There is no solaris-specific code in redsocks now. Can I get virtualbox image of solaris development environment somewhere to test it?
Can you point me to some documentation regarding transparent proxy in openindiana kernel?

@a9tm
Copy link
Author

a9tm commented Oct 11, 2012

You should find virtualbox image of OpenSolaris 2009.06 here: http://virtualboxes.org/images/opensolaris/ it's compatible with older VirtualBox v2.2.4

For the documentation, I have to say I can't find it, Solaris could work in stealth mode but it's long ago and I've asked some guys at OpenIndiana but they seem to have no clue. Btw, I hope you could do something with OpenSolaris virtualbox.

@darkk
Copy link
Owner

darkk commented Oct 11, 2012

Is opensolaris still alive?
http://mail.opensolaris.org/pipermail/opensolaris-discuss/2010-August/059310.html

Should I install openindiana instead of it?

@a9tm
Copy link
Author

a9tm commented Oct 11, 2012

Yes, OpenSolaris was killed by Oracle, you'd get OpenIndiana at www.openindiana.org

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

2 participants