General
cancel
Showing results for 
Search instead for 
Did you mean: 

apache ./configure test compile error.

SOLVED
Go to solution
Jerry Karn_1
Occasional Advisor

apache ./configure test compile error.

hello, I'm having trouble with the configure script for apache. The test compile is returning the errors below. I'm downloading gcc now, but is there any other way to get it to work with the hpux cc?

(Bundled) cc: "helpers/dummy.c", line 3: error 1000: Unexpected symbol: "char".
(Bundled) cc: "helpers/dummy.c", line 4: warning 5: "const" will become a keywor
d.
(Bundled) cc: error 2017: Cannot recover from earlier errors, terminating.
*** Error exit code 1

Stop.
============= End of Error Report =============

Aborting!
9 REPLIES
Ramkumar Devanathan
Honored Contributor
Solution

Re: apache ./configure test compile error.

Hi Jerry,

Which c compiler are you using?

use ansi c compiler! the default c compiler is useless - i wonder why they ship that at all.

http://h21007.www2.hp.com/dspp/tech/tech_TechSoftwareDetailPage_IDX/1,1703,1853,00.html

- ramd.
HPE Software Rocks!
Jerry Karn_1
Occasional Advisor

Re: apache ./configure test compile error.

Thanks (again!)

before I spend a grand on another compiler (my boss wouldn't be happy) I'm going to give gcc a try.

Thanks again for your help!
Ramkumar Devanathan
Honored Contributor

Re: apache ./configure test compile error.

Hi Jerry,

That's ok. you may use gcc or ansic - but not the one that ships with hp-ux.

I guess you are getting the above errors, with the default compiler - am i right?

- ramd.
HPE Software Rocks!
Jerry Karn_1
Occasional Advisor

Re: apache ./configure test compile error.

you are correct. I'm using the default compiler. But I'll completely replace it with with gcc.

btw...configure.guess worked great for determining my hppa level.
Ramkumar Devanathan
Honored Contributor

Re: apache ./configure test compile error.

hi Jerry,

Let us know how it goes.

I guess you are new. It is a common practice to assign points(0-10) on the basis of usefulness of the replies recieved to you queries.

- ramd.
HPE Software Rocks!
Bill Douglass
Esteemed Contributor

Re: apache ./configure test compile error.

Just as a point of reference, I recently downloaded the most recent Apache httpd server (2.0.45).

The stock source code compiles and installs without problem using gcc version 3.2.

HP-UX 11.0, L-class server.
Umapathy S
Honored Contributor

Re: apache ./configure test compile error.

The default compiler shipped with the machine is used in recompiling the kernel only. It is not meant for development.

Between you can download the gcc-depot from porting centre.
http://hpux.connect.org.uk/hppd/hpux/Gnu/gcc-3.2/

HTH
Umapathy
Arise Awake and Stop NOT till the goal is Reached!
Steven E. Protter
Exalted Contributor

Re: apache ./configure test compile error.

You can download depot files and avoid the compile issue at all.

http://www.software.hp.com/cgi-bin/swdepot_parser.cgi/cgi/displayProducts.pl?group_name=HP-UX%20Apache-based%20Web%20Server&group_image=cat_featured.gif&group_type=family

Then swinstall -s /location_of_source \*

You still get a fully configurable apache out of the deal.

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
Jerry Karn_1
Occasional Advisor

Re: apache ./configure test compile error.

(I'll post this as a new topic if nobody sees it in this thread)

Hello,
I'm installing gcc on my hpux box. The configure script worked fine, and made a Makefile. I assume I now need to run 'Make install' or 'Make config'... The problem is that make reports a syntax error in my Makefile at line 125. --1251 is the line beginning with: $(ALL_BUILD_MODULES):

is the "@" character in the following line the possible error? Should it be preceeded by a quote character?

As always, Many Many thanks for any thoughts or comments

# This rule is used to build the modules which are built with the
# build machine's native compiler.
.PHONY: $(ALL_BUILD_MODULES)
$(ALL_BUILD_MODULES):
dir=`echo $@ | sed -e 's/all-build-//'`; if [ -f ./$${dir}/Makefile ] ; then r=`pwd`; export r; s=`cd $(srcdir); pwd`; export s; (cd $(BUILD_SUBDIR)/$${dir} && $(MAKE) all); else true; fi

# This rule is used to configure the modules which are built with the
# native tools.
.PHONY: $(CONFIGURE_BUILD_MODULES)
:q
# make install
Make: line 1251: syntax error. Stop.
#