1833059 Members
2604 Online
110049 Solutions
New Discussion

Apache error (cc)

 
Kenn Chen_1
Advisor

Apache error (cc)

i got this meesage during my apache 2.0 installation in my HP-UX 11 & Oracle 8.1.7

ANy idea of this error message ? Thanks.

Make: No arguments or description file. Stop.
eoffice:eoffice/home/eoffice/httpd-2.0.49/build>cd ..
eoffice:eoffice/home/eoffice/httpd-2.0.49>make
Making all in srclib
Making all in apr
Making all in strings
/bin/sh /home/eoffice/httpd-2.0.49/srclib/apr/libtool --silent --mode=compile cc -g -Ae +Z +DAportable -DHAVE_CONFIG_H -Do
(Bundled) cc: warning 480: The -g option is available only with the C/ANSI C product; ignored.
(Bundled) cc: warning 480: The -A option is available only with the C/ANSI C product; ignored.
(Bundled) cc: warning 480: The +Z option is available only with the C/ANSI C product; ignored.
cpp: "../include/apr.h", line 393: warning 2013: Unknown preprocessing directive.
cpp: "../include/apr.h", line 393: warning 2013: Unknown preprocessing directive.
cpp: "../include/apr.h", line 393: warning 2013: Unknown preprocessing directive.
cpp: "../include/apr.h", line 393: warning 2013: Unknown preprocessing directive.
cpp: "../include/apr.h", line 393: warning 2013: Unknown preprocessing directive.
cpp: "../include/apr.h", line 393: warning 2013: Unknown preprocessing directive.
cpp: "../include/apr.h", line 393: warning 2013: Unknown preprocessing directive.
cpp: "../include/apr.h", line 393: warning 2013: Unknown preprocessing directive.
cpp: "../include/apr.h", line 393: warning 2013: Unknown preprocessing directive.
cpp: "../include/apr.h", line 393: warning 2013: Unknown preprocessing directive.
cpp: "../include/apr.h", line 393: warning 2013: Unknown preprocessing directive.
cpp: "../include/apr.h", line 393: warning 2013: Unknown preprocessing directive.
(Bundled) cc: "../include/apr_errno.h", line 51: error 1000: Unexpected symbol: "statcode".
(Bundled) cc: "../include/apr_errno.h", line 52: error 1000: Unexpected symbol: "apr_size_t".
(Bundled) cc: "../include/apr_general.h", line 178: error 1000: Unexpected symbol: "apr_initialize".
(Bundled) cc: error 2017: Cannot recover from earlier errors, terminating.
*** Error exit code 1

Stop.
*** Error exit code 1

6 REPLIES 6
Armin Kunaschik
Esteemed Contributor

Re: Apache error (cc)

It looks like you are using the HP-UX built-in compiler.
This compiler is intended to build the kernel but nothing else.
Install either C/ANSI C developers bundle or
aCC++ compiler.
The product numbers are:
B3901BA B.11.11.06 HP C/ANSI C Developer's Bundle for HP-UX 11.i (S800)
B3913DB C.03.37.01 HP aC++ Compiler (S800)

The current version numbers may be different.

Hope this helps,
Armin
And now for something completely different...
Joseph Loo
Honored Contributor

Re: Apache error (cc)

hi,

check if the compiler is available:

# ls /usr/bin/cc
if it is installed:
# what /usr/bin/cc
what version of compiler r u using?

also, u may refer to this post:

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=193764

regards.
(p.s. this post actually went under my radar.)
what you do not see does not mean you should not believe
Anupam Anshu_1
Valued Contributor

Re: Apache error (cc)

Armin,

cpp: is not cplusplus, its c-preprocessor. I think the compiler used is 'cc'.

---


Seems some unexpected symbols in line no. 51,52 of apr_errno.h, and unsatisfied symbol in apr_general.h (in line no. 178).

Without looking into these lines, it will be difficult to debug the problem.

Some pointers can be, please verify redefinition of some variables, may be you can use #ifndef just before the error lines.

I am not sure how much help I can provide, but try debuging and let us know about those error lines.

Anshu

KapilRaj
Honored Contributor

Re: Apache error (cc)

Compiling apache ?. Get a gnuversion of c "gcc" and use it as CC

Kaps
Nothing is impossible
ranganath ramachandra
Esteemed Contributor

Re: Apache error (cc)

bundled cc is of no practical use other than for building the kernel. get the ansi c compiler.
 
--
ranga
hp-ux 11i v3[i work for hpe]

Accept or Kudo

Steven E. Protter
Exalted Contributor

Re: Apache error (cc)

Yet another reason for the depot version of the apache compiler for HP-UX at http://software.hp.com

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com