Operating System - HP-UX
1834645 Members
2141 Online
110069 Solutions
New Discussion

Re: compile xinetd on HP-UX11.0

 
SOLVED
Go to solution
BJ CG DATA
Advisor

compile xinetd on HP-UX11.0

when I compile xinetd-2.3.3 on HP-UX11.0(using ANSI C), I got following error message:
# make
for lib in sio str misc xlog pset pq timer ; do make -C libs/src/$lib CC=cc CFLAGS='-g -I../../include' insta
; done
Make: Unknown flag argument C. Stop.
*** Error exit code 1

Stop.
4 REPLIES 4
Mark Fenton
Esteemed Contributor

Re: compile xinetd on HP-UX11.0

Difference is that the command you're executing was written for gcc make not HP's ANSI C make.

make -C = change to directory before reading the makefiles or doing anything else.

Unfortunately, there is no equivalent in HP's make, you'll either have to get the gcc compiler or rewrite the makefile to explicitly cd to the appropriate directories.

best of compiling
Mark
BJ CG DATA
Advisor

Re: compile xinetd on HP-UX11.0

I installed gcc3.0.2 for HP11.0, changed cc to /usr/local/bin/gcc in makefile, still got following error message:

# make
for lib in sio str misc xlog pset pq timer ; do make -C libs/src/$lib CC=/usr/local/bin/gcc CFLAGS='-g -I../../
include' install; done
Make: Unknown flag argument C. Stop.
*** Error exit code 1

Stop.
Steven Gillard_2
Honored Contributor
Solution

Re: compile xinetd on HP-UX11.0

Mark is right - but I'm not sure if GNU's version of make is shipped with the compiler. You can download a precompiled version of gmake from:

http://hpux.connect.org.uk/hppd/hpux/Gnu/make-3.79.1/

Once its installed, ensure the gnu make is called instead of HP's. You may need to put the gmake bin directory at the front of your PATH.

Regards,
Steve
BJ CG DATA
Advisor

Re: compile xinetd on HP-UX11.0

Thanks all.
I download the gmake, the problem have been solved:)

juli