Operating System - HP-UX
1827293 Members
2765 Online
109717 Solutions
New Discussion

Re: Apache configure using cc - inode sharing problem

 
Chander-shakher Pal
Occasional Contributor

Apache configure using cc - inode sharing problem

iam trying to compile Apache 1.3.19 using cc.
However when running the configure script i get the following error :
./configure --prefix=/apps/apachebca --enable-rule=SHARED_CORE --enable-module=so
Configuring for Apache, Version 1.3.19
+ Hint: please use CFLAGS instead of EXTRA_CFLAGS next time
+ using installation path layout: Apache (config.layout)
Creating Makefile
Creating Configuration.apaci in src
Creating Makefile in src
+ configured for HP-UX 11 platform
+ setting C pre-processor to cc -E
+ checking for system header files
+ adding selected modules
+ enabling generation of Apache core as DSO
+ checking sizeof various data types
+ doing sanity check on compiler and options
** A test compilation with your Makefile configuration
** failed. The below error output from the compilation
** test will give you an idea what is failing. Note that
** Apache requires an ANSI C Compiler, such as gcc.

cd ..; cc -DHPUX11 -Aa -Ae -D_HPUX_SOURCE -DUSE_HSREGEX -DUSE_EXPAT -I./lib/expat-lite +z -DSHARED_CORE -fPIC `./apaci` -L/apps/bo/webibca/Server
/WebIntelligence2.5/wiqt/lib -lospace -L/apps/bo/webibca/Server/ORB2.5/lib -lorb_r -lcl -lCsup -lm -lpthread /apps/bo/webibca/Server/WebIntelligence2.5/wiset
up/cpprt0.o -o helpers/dummy helpers/dummy.c -lm -lpthread
cc: warning 422: Unknown option "f" ignored.
cc: error 1411: "cpprt0.c" shares inode with "cpprt0.o". Can't overwrite source file.
*** Error exit code 8

Stop.
======== Error Output for sanity check ========
============= End of Error Report =============

Aborting!


I checked the inode numbers for .o and .s file, and they are different.

I saw a similar posting sometime back.
Is this problem related to C compiler installation ?

Any ideas/solutions ?
Chander
5 REPLIES 5
Mike Hassell
Respected Contributor

Re: Apache configure using cc - inode sharing problem

I believe this relates back to your C complier 'cc'. The one that ships with HP-UX is rather brain dead (just K&R), you need to get the HP ANSI C
compiler, or use GCC.

The easiest way to get apache up and running, would be to use the precompiled version found here:

http://hpux.connect.org.uk/hppd/hpux/Networking/WWW/apache-1.3.26/

However, if you want to compile your own apache, you can download a precompiled version of gcc here:

http://hpux.connect.org.uk/hppd/hpux/Gnu/gcc-3.1/

Hope that helps.

-Mike

The network is the computer, yeah I stole it from Sun, so what?
Chander-shakher Pal
Occasional Contributor

Re: Apache configure using cc - inode sharing problem

Thanks Mike !
But i do have an installation of HP's ANSI C compiler on the box. And it appears correctly in the path too.

I can't use the pre-built apache as I require to include some files provided for a specific application (Business Objects)

Another restriction is w.r.t version of gcc, as the vendor suggests - 2.95.3 where as HP says the only valid version for HPUX11.0 is ver3.0+

Any further ideas !
Chander
Michael Tully
Honored Contributor

Re: Apache configure using cc - inode sharing problem

Are you sure your using the right compiler?

# which cc
/usr/bin/cc
# echo $PATH
/usr/bin:/usr/sbin:/sbin
# PATH=/opt/ansic/bin:/usr/bin:/usr/sbin:/sbin
# export PATH
# which cc
/opt/ansic/bin/cc
Anyone for a Mutiny ?
Jordan Bean
Honored Contributor

Re: Apache configure using cc - inode sharing problem

Michael, /usr/bin/cc is a symlink to /opt/ansic/bin/cc when the ANSI C bundle is installed.

I'm looking at this error:

cc: error 1411: "cpprt0.c" shares inode with "cpprt0.o". Can't overwrite source file.

which I've never, to my short memory, run across. It would appear that the source and object file names are the same file (hard linked) as if an ln was done rather than an ld at some point. Try deleting the object file and starting over and reconfigure.

Michael Tully
Honored Contributor

Re: Apache configure using cc - inode sharing problem

For some unknown reason my system that has the ANSI/C compiler does not have that link.....

more work.........
Anyone for a Mutiny ?