>Number:         5759
>Category:       os-hpux
>Synopsis:       apxs fails due to linker error with php3 on HP-UX 10.20
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Mon Feb 14 15:30:00 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     [EMAIL PROTECTED]
>Release:        1.3.11
>Organization:
apache
>Environment:
HP-UX 10.20 with gcc 2.8.1 and PHP 3.0.14 as DSO
>Description:
Apache is configured with DSO enabled

./configure --with-apxs=/path/to/apache/bin/apxs --without-gd 
--with-pgsql=/path/to/pgsql 
--with-config-file-path=/path/to/apache/conf --enable-debug=no 
--enable-track-vars=yes --enable-bcmath=yes

/path/to/apache/bin/apxs -c -o libphp3.so  -I. -I.  -L'/path/to/pgsql/lib' 
./mod_php3.c libmodphp3-so.a -L/usr/local/lib  -L/path/to/pgsql/lib -lpq  
-lgdbm  pcrelib/libpcre.a -lm   -Lpcrelib -lpcre
gcc -O2 -DHPUX10 -DMOD_PERL -DUSE_PERL_SSI -D_HPUX_SOURCE -I/usr/local/include 
-DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -fpic -DSHARED_MODULE 
-I/path/to/apache/include -I. -I.  -c ./mod_php3.c
ld -b -o libphp3.so mod_php3.o libmodphp3-so.a -L/usr/local/lib 
-L/path/to/pgsql/lib -lpq -lgdbm pcrelib/libpcre.a -lm -Lpcrelib -lpcre 
-L/path/to/pgsql/lib 
/usr/ccs/bin/ld: DP relative code in file libmodphp3-so.a(maketables.o) - 
shared library must be position
    independent.  Use +z or +Z to recompile.
apxs:Break: Command failed with rc=65536
make: *** [libphp3.so] Error 1
>How-To-Repeat:
This happens consistantly on HP-UX 10.20 and I can reproduce it everytime.
>Fix:
I have no idea how to fix it; however, if someone has some suggestions, I would 
be willing to try/help find a solution.
>Release-Note:
>Audit-Trail:
>Unformatted:
 [In order for any reply to be added to the PR database, you need]
 [to include <[EMAIL PROTECTED]> in the Cc line and make sure the]
 [subject line starts with the report component and number, with ]
 [or without any 'Re:' prefixes (such as "general/1098:" or      ]
 ["Re: general/1098:").  If the subject doesn't match this       ]
 [pattern, your message will be misfiled and ignored.  The       ]
 ["apbugs" address is not added to the Cc line of messages from  ]
 [the database automatically because of the potential for mail   ]
 [loops.  If you do not include this Cc, your reply may be ig-   ]
 [nored unless you are responding to an explicit request from a  ]
 [developer.  Reply only with text; DO NOT SEND ATTACHMENTS!     ]
 
 

Reply via email to