Can't compile on Solaris
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.
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?
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.
Is opensolaris still alive? http://mail.opensolaris.org/pipermail/opensolaris-discuss/2010-August/059310.html
Should I install openindiana instead of it?
Yes, OpenSolaris was killed by Oracle, you'd get OpenIndiana at www.openindiana.org