기술지원 문의

hp-ux에서 설치하는데 에러가 나요..
송정근 / 2003-01-21 00:00

./configure --with-apache=/SAS/wsas/web-app/apache
이렇게 하면..

checking build system type... hppa2.0w-hp-hpux11.11
checking host system type... hppa2.0w-hp-hpux11.11
checking target system type... hppa2.0w-hp-hpux11.11
checking for a BSD compatible install... /opt/imake/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets ${MAKE}... yes
checking for gcc... no
checking for cc... cc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for executable suffix...
checking for object suffix... o
checking whether we are using the GNU C compiler... no
checking whether cc accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of cc... none
checking for non-GNU ld... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... no
Cant locate strict.pm in @INC (@INC contains: /opt/perl5/lib/5.00502/PA-RISC1.1 /opt/perl5/lib/5.00502 /opt/perl5/lib/site_perl/5..
BEGIN failed--compilation aborted at /SAS/wsas/web-app/apache/bin/apxs line 67.
Cant locate strict.pm in @INC (@INC contains: /opt/perl5/lib/5.00502/PA-RISC1.1 /opt/perl5/lib/5.00502 /opt/perl5/lib/site_perl/5..
BEGIN failed--compilation aborted at /SAS/wsas/web-app/apache/bin/apxs line 67.
Cant locate strict.pm in @INC (@INC contains: /opt/perl5/lib/5.00502/PA-RISC1.1 /opt/perl5/lib/5.00502 /opt/perl5/lib/site_perl/5..
BEGIN failed--compilation aborted at /SAS/wsas/web-app/apache/bin/apxs line 67.
Cant locate strict.pm in @INC (@INC contains: /opt/perl5/lib/5.00502/PA-RISC1.1 /opt/perl5/lib/5.00502 /opt/perl5/lib/site_perl/5..
BEGIN failed--compilation aborted at /SAS/wsas/web-app/apache/bin/apxs line 67.
Using Apache configuration /SAS/wsas/web-app/apache/conf/httpd.conf
Cant locate strict.pm in @INC (@INC contains: /opt/perl5/lib/5.00502/PA-RISC1.1 /opt/perl5/lib/5.00502 /opt/perl5/lib/site_perl/5..
BEGIN failed--compilation aborted at /SAS/wsas/web-app/apache/bin/apxs line 67.
Cant locate strict.pm in @INC (@INC contains: /opt/perl5/lib/5.00502/PA-RISC1.1 /opt/perl5/lib/5.00502 /opt/perl5/lib/site_perl/5..
BEGIN failed--compilation aborted at /SAS/wsas/web-app/apache/bin/apxs line 67.
Cant locate strict.pm in @INC (@INC contains: /opt/perl5/lib/5.00502/PA-RISC1.1 /opt/perl5/lib/5.00502 /opt/perl5/lib/site_perl/5..
BEGIN failed--compilation aborted at /SAS/wsas/web-app/apache/bin/apxs line 67.
Cant locate strict.pm in @INC (@INC contains: /opt/perl5/lib/5.00502/PA-RISC1.1 /opt/perl5/lib/5.00502 /opt/perl5/lib/site_perl/5..
BEGIN failed--compilation aborted at /SAS/wsas/web-app/apache/bin/apxs line 67.
Using shared library flags from /SAS/wsas/web-app/apache/bin/apxs
checking for JAVA_HOME...
/opt/java1.4
checking for JNI in /opt/java1.4/include/hp-ux ... found
configure: creating ./config.status
config.status: creating Makefile
config.status: creating bin/wrapper.pl
config.status: creating src/c/plugin/Makefile
config.status: creating src/c/plugin/common/Makefile
config.status: creating src/c/plugin/nsapi/Makefile
config.status: creating src/c/plugin/apache/Makefile
config.status: creating src/c/plugin/apache2/Makefile
config.status: creating src/c/plugin/resin/Makefile
config.status: creating src/c/plugin/hardcore/Makefile
config.status: creating src/c/plugin/common/version.h
config.status: creating src/c/jni/Makefile
config.status: creating contrib/init.resin
config.status: executing default-1 commands

이렇게 되고...
make 하면...

marine: /SAS/wsas/web-app/resin-2.1.4> marine: /SAS/wsas/web-app/resin-2.1.4> make
        (cd src/c/plugin; make)
        for dir in common apache ; do (cd $dir; make); done
        cc -c  -g stream.c
cc: \"stream.c\", line 403: warning 604: Pointers are not assignment-compatible.
cc: \"stream.c\", line 440: warning 604: Pointers are not assignment-compatible.
cc: \"stream.c\", line 440: warning 563: Argument #2 is not the correct type.
cc: \"stream.c\", line 450: warning 604: Pointers are not assignment-compatible.
cc: \"stream.c\", line 450: warning 563: Argument #2 is not the correct type.
        cc -c  -g registry.c
        cc -c  -g config.c
        cc -c  -g memory.c
        /usr/bin/ld -r -o common.o stream.o registry.o config.o memory.o
        /usr/bin/ld -r -o common.lo stream.lo registry.lo config.lo memory.lo
        /usr/bin/ld -o mod_caucho.so -b mod_caucho.lo ../common/common.lo
/usr/bin/ld: DP relative code in file mod_caucho.lo - shared library must be position
    independent.  Use +z or +Z to recompile.
*** 오류 종료 코드 1

종료
*** 오류 종료 코드 1

종료
*** 오류 종료 코드 1

종료


이런 에러가 나네요..왜 그럴까요?
급합니다...알려주세요..

Re:hp-ux에서 설치하는데 에러가 나요..
관리자 / 2003-01-22 00:00

경험에 비추어 볼때 HP 기본시스템에서 
오픈소스들을 컴파일해서 설치하기가 좀 까다롭더라구요.

메세지를 보면
아마 아파치도 디폴트로 
./configure -enable-module=so 
make
make install 
하면 잘 안될 것 같습니다.

한번 시도해 보고 싶은 것은
perl버전을 일단 올리고
gmake 를 설치하시고 테스트해보세요
가능하다면 gcc를 설치하는 것이 오픈소스컴파일하기엔
좀 수월합니다.

이런 상황에서도 컴파일이 제대로 안되면
Makefile의 옵션을 일부 수정해주어야 할 수 도 있습니다.






--송정근 님의 글 [2003-01-21 22:21:54]
>./configure --with-apache=/SAS/wsas/web-app/apache
이렇게 하면..

checking build system type... hppa2.0w-hp-hpux11.11
checking host system type... hppa2.0w-hp-hpux11.11
checking target system type... hppa2.0w-hp-hpux11.11
checking for a BSD compatible install... /opt/imake/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets ${MAKE}... yes
checking for gcc... no
checking for cc... cc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for executable suffix...
checking for object suffix... o
checking whether we are using the GNU C compiler... no
checking whether cc accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of cc... none
checking for non-GNU ld... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... no
Cant locate strict.pm in @INC (@INC contains: /opt/perl5/lib/5.00502/PA-RISC1.1 /opt/perl5/lib/5.00502 /opt/perl5/lib/site_perl/5..
BEGIN failed--compilation aborted at /SAS/wsas/web-app/apache/bin/apxs line 67.
Cant locate strict.pm in @INC (@INC contains: /opt/perl5/lib/5.00502/PA-RISC1.1 /opt/perl5/lib/5.00502 /opt/perl5/lib/site_perl/5..
BEGIN failed--compilation aborted at /SAS/wsas/web-app/apache/bin/apxs line 67.
Cant locate strict.pm in @INC (@INC contains: /opt/perl5/lib/5.00502/PA-RISC1.1 /opt/perl5/lib/5.00502 /opt/perl5/lib/site_perl/5..
BEGIN failed--compilation aborted at /SAS/wsas/web-app/apache/bin/apxs line 67.
Cant locate strict.pm in @INC (@INC contains: /opt/perl5/lib/5.00502/PA-RISC1.1 /opt/perl5/lib/5.00502 /opt/perl5/lib/site_perl/5..
BEGIN failed--compilation aborted at /SAS/wsas/web-app/apache/bin/apxs line 67.
Using Apache configuration /SAS/wsas/web-app/apache/conf/httpd.conf
Cant locate strict.pm in @INC (@INC contains: /opt/perl5/lib/5.00502/PA-RISC1.1 /opt/perl5/lib/5.00502 /opt/perl5/lib/site_perl/5..
BEGIN failed--compilation aborted at /SAS/wsas/web-app/apache/bin/apxs line 67.
Cant locate strict.pm in @INC (@INC contains: /opt/perl5/lib/5.00502/PA-RISC1.1 /opt/perl5/lib/5.00502 /opt/perl5/lib/site_perl/5..
BEGIN failed--compilation aborted at /SAS/wsas/web-app/apache/bin/apxs line 67.
Cant locate strict.pm in @INC (@INC contains: /opt/perl5/lib/5.00502/PA-RISC1.1 /opt/perl5/lib/5.00502 /opt/perl5/lib/site_perl/5..
BEGIN failed--compilation aborted at /SAS/wsas/web-app/apache/bin/apxs line 67.
Cant locate strict.pm in @INC (@INC contains: /opt/perl5/lib/5.00502/PA-RISC1.1 /opt/perl5/lib/5.00502 /opt/perl5/lib/site_perl/5..
BEGIN failed--compilation aborted at /SAS/wsas/web-app/apache/bin/apxs line 67.
Using shared library flags from /SAS/wsas/web-app/apache/bin/apxs
checking for JAVA_HOME...
/opt/java1.4
checking for JNI in /opt/java1.4/include/hp-ux ... found
configure: creating ./config.status
config.status: creating Makefile
config.status: creating bin/wrapper.pl
config.status: creating src/c/plugin/Makefile
config.status: creating src/c/plugin/common/Makefile
config.status: creating src/c/plugin/nsapi/Makefile
config.status: creating src/c/plugin/apache/Makefile
config.status: creating src/c/plugin/apache2/Makefile
config.status: creating src/c/plugin/resin/Makefile
config.status: creating src/c/plugin/hardcore/Makefile
config.status: creating src/c/plugin/common/version.h
config.status: creating src/c/jni/Makefile
config.status: creating contrib/init.resin
config.status: executing default-1 commands

이렇게 되고...
make 하면...

marine: /SAS/wsas/web-app/resin-2.1.4> marine: /SAS/wsas/web-app/resin-2.1.4> make
        (cd src/c/plugin; make)
        for dir in common apache ; do (cd $dir; make); done
        cc -c  -g stream.c
cc: \"stream.c\", line 403: warning 604: Pointers are not assignment-compatible.
cc: \"stream.c\", line 440: warning 604: Pointers are not assignment-compatible.
cc: \"stream.c\", line 440: warning 563: Argument #2 is not the correct type.
cc: \"stream.c\", line 450: warning 604: Pointers are not assignment-compatible.
cc: \"stream.c\", line 450: warning 563: Argument #2 is not the correct type.
        cc -c  -g registry.c
        cc -c  -g config.c
        cc -c  -g memory.c
        /usr/bin/ld -r -o common.o stream.o registry.o config.o memory.o
        /usr/bin/ld -r -o common.lo stream.lo registry.lo config.lo memory.lo
        /usr/bin/ld -o mod_caucho.so -b mod_caucho.lo ../common/common.lo
/usr/bin/ld: DP relative code in file mod_caucho.lo - shared library must be position
    independent.  Use +z or +Z to recompile.
*** 오류 종료 코드 1

종료
*** 오류 종료 코드 1

종료
*** 오류 종료 코드 1

종료


이런 에러가 나네요..왜 그럴까요?
급합니다...알려주세요..