Operating System - HP-UX
1833875 Members
1656 Online
110063 Solutions
New Discussion

Re: compile of apache 1.3.27 on 10.20

 
HPP
Regular Advisor

compile of apache 1.3.27 on 10.20

Hi,
I am trying to compile Apache 1.3.27 on HP-UX 10.20. I get the following error message:
===========================
ld: Invalid loader fixup for symbol "M$2".
===========================

Below is the few lines before it gives error:
==========================
<=== src/modules
cc -c -I./os/unix -I./include -DHPUX10 -Aa -Ae -D_HPUX_SOURCE -DNO_DBM_REWRITEMAP -DUSE_HSREGEX -DUSE_EXPAT -I./lib/expat-lite +z -DSHARED_CORE `./apaci` modules.c
cc -c -I./os/unix -I./include -DHPUX10 -Aa -Ae -D_HPUX_SOURCE -DNO_DBM_REWRITEMAP -DUSE_HSREGEX -DUSE_EXPAT -I./lib/expat-lite +z -DSHARED_CORE `./apaci` buildmark.c
ld -b -o libhttpd.sl buildmark.o modules.o modules/standard/libstandard.a main/libmain.a ./os/unix/libos.a ap/libap.a regex/libregex.a lib/expat-lite/libexpat.a
ld: Invalid loader fixup for symbol "M$2".
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
*** Error exit code 1
============================

We have some application which works only on 10.20, and i want this compile to work very badly. These are the options i used for configure script

#./configure --prefix=/usr2/apache --enable-rule=SHARED_CORE --enable-module=most --enable-shared=max --enable-module=so --enable-module=rewrite

Thanks in advance.
Be Teachable
2 REPLIES 2
Paddy_1
Valued Contributor

Re: compile of apache 1.3.27 on 10.20

i guess the problem is building dynamically.
see if your makefile has a static target.this is a workaround though.
Ideally you should edit the make file to change one or two compile switches(guess it is +Z).this is to enable shared lib compile properly.
I would also try changing cc to aCC(HPUX)
The sufficiency of my merit is to know that my merit is NOT sufficient
HPP
Regular Advisor

Re: compile of apache 1.3.27 on 10.20

Hi,
It worked yahoooooooooo!!!

I removed older version of HP-ANSI C and installed newer version of ANSI C (B3901BA, B.10.20.15 HP C/ANSI C Developer's Bundle for HP-UX 10.20 (S800)).

Also installed December 2001 patch bundle for HP-UX 10.20.

Then reran configure with the options mentioned above for apache 1.3.27 and compile went smoothly and was able to build DSO.

Thanks for the help.
Be Teachable