Operating System - HP-UX
1833323 Members
2951 Online
110051 Solutions
New Discussion

compiling socks_cstc-4.2.pre1

 
Christophe MAILHE
Frequent Advisor

compiling socks_cstc-4.2.pre1

Hi,

I am trying to compile socks_cstc-4.2.pre1 on a HP9000 K100 running HP-UX 11.00 with gcc and I have the following error message during compilation :

(cd lib; /usr/local/bin/gmake CC="gcc" GETPASS="" \
OPTIMIZE="+O3" \
RCMD="" SUPPORT_RCMD="" \
DNS_THROUGH_NIS="" \
OTHER_CFLAGS="+z -DGETCWD -DSHORTENED_RBIND -DCOMPAT -Dhpux " \
RANLIB="/bin/true" SHARED="notshared")
gmake[1]: Entering directory `/sw_depot/socks/socks_cstc-4.2.pre1/lib'
/sw_depot/socks/socks_cstc-4.2.pre1/lib
gcc -I../include +O3 +z -DGETCWD -DSHORTENED_RBIND -DCOMPAT -Dhpux -c -o Rconnect.o Rconnect.c
gcc: cannot specify -o with -c or -S and multiple compilations
gmake[1]: *** [Rconnect.o] Error 1
gmake[1]: Leaving directory `/sw_depot/socks/socks_cstc-4.2.pre1/lib'
gmake: *** [LIB] Error 2

Could someone help ?

Cheers,

Christophe
1 REPLY 1
Amin Jaffer_1
Occasional Advisor

Re: compiling socks_cstc-4.2.pre1


it looks like -c and -o are not supported together by the compiler.

Try to remove the flag -o Rconnect.o as if you use -c it will automatically create the object file called Rconnect.o