기술지원 문의

make 시 에러 좀 잡아 주실분...
임경호 / 2003-06-23 00:00

환경 : redhat 9.0(intel 2.8 / mem : 2기가/hdd 200 기가)

apache 설치는 잘 되었구요(2.0.45)
아파치와 연동하려구 resin을 cofigure(configure --with-apxs=/usr/local/apache/bin/apxs) 까지는 잘 되었는데 make 에서 다음과 같은 에러가 나내요.

> make

(cd src/c/plugin; make)
make[1]: 들어감 `/home/test/resin-2.1.8/src/c/plugin 디렉토리
for dir in common apache2 resin; do (cd $dir; make); done
make[2]: 들어감 `/home/test/resin-2.1.8/src/c/plugin/common 디렉토리
gcc -c -I/usr/include -g -O2 stream.c
gcc -c -I/usr/include -g -O2 registry.c
gcc -c -I/usr/include -g -O2 config.c
gcc -c -I/usr/include -g -O2 memory.c
/usr/bin/ld -r -o common.o stream.o registry.o config.o memory.o
gcc -c -I/usr/include -g -O2 -fpic stream.c && mv stream.o stream.lo
gcc -c -I/usr/include -g -O2 -fpic registry.c && mv registry.o registry.lo
gcc -c -I/usr/include -g -O2 -fpic config.c && mv config.o config.lo
gcc -c -I/usr/include -g -O2 -fpic memory.c && mv memory.o memory.lo
/usr/bin/ld -r -o common.lo stream.lo registry.lo config.lo memory.lo
make[2]: 나감 `/home/test/resin-2.1.8/src/c/plugin/common 디렉토리
make[2]: 들어감 `/home/test/resin-2.1.8/src/c/plugin/apache2 디렉토리
gcc -c -I/usr/local/apache/include -DRESIN_HOME=\\\"/home/test/resin-2.1.8\\\" -I../common -g -O2 -fpic mod_caucho.c && mv mod_caucho.o mod_caucho.lo
/usr/bin/ld -o mod_caucho.so -shared mod_caucho.lo ../common/stream.lo ../common/registry.lo ../common/config.lo ../common/memory.lo
make[2]: 나감 `/home/test/resin-2.1.8/src/c/plugin/apache2 디렉토리
make[2]: 들어감 `/home/test/resin-2.1.8/src/c/plugin/resin 디렉토리
gcc -g -O2 -DRESIN_HOME=\\\"/home/test/resin-2.1.8\\\" -I/usr/include -I/usr/local/j2se/include -I/usr/local/j2se/include/linux -I../common -DCPU=\\\"i386\\\" -DOS=  -DSSL_ENGINE   -c -o resin.o resin.c
gcc -g -O2 -DRESIN_HOME=\\\"/home/test/resin-2.1.8\\\" -I/usr/include -I/usr/local/j2se/include -I/usr/local/j2se/include/linux -I../common -DCPU=\\\"i386\\\" -DOS=  -DSSL_ENGINE   -c -o std.o std.c
gcc -g -O2 -DRESIN_HOME=\\\"/home/test/resin-2.1.8\\\" -I/usr/include -I/usr/local/j2se/include -I/usr/local/j2se/include/linux -I../common -DCPU=\\\"i386\\\" -DOS=  -DSSL_ENGINE   -c -o memory.o memory.c
gcc -g -O2 -DRESIN_HOME=\\\"/home/test/resin-2.1.8\\\" -I/usr/include -I/usr/local/j2se/include -I/usr/local/j2se/include/linux -I../common -DCPU=\\\"i386\\\" -DOS=  -DSSL_ENGINE   -c -o ssl.o ssl.c
In file included from /usr/include/openssl/ssl.h:179,
                 from ssl.c:62:
/usr/include/openssl/kssl.h:72:18: krb5.h: 그런 파일이나 디렉토리가 없음
In file included from /usr/include/openssl/ssl.h:179,
                 from ssl.c:62:
/usr/include/openssl/kssl.h:132: parse error before \"krb5_enctype\"
/usr/include/openssl/kssl.h:134: parse error before \"FAR\"
/usr/include/openssl/kssl.h:135: parse error before } token
/usr/include/openssl/kssl.h:147: parse error before \"kssl_ctx_setstring\"
/usr/include/openssl/kssl.h:147: parse error before * token
/usr/include/openssl/kssl.h:148: parse error before * token
/usr/include/openssl/kssl.h:149: parse error before * token
/usr/include/openssl/kssl.h:149: parse error before * token
/usr/include/openssl/kssl.h:150: parse error before * token
/usr/include/openssl/kssl.h:151: parse error before \"kssl_ctx_setprinc\"
/usr/include/openssl/kssl.h:151: parse error before * token
/usr/include/openssl/kssl.h:153: parse error before \"kssl_cget_tkt\"
/usr/include/openssl/kssl.h:153: parse error before * token
/usr/include/openssl/kssl.h:155: parse error before \"kssl_sget_tkt\"
/usr/include/openssl/kssl.h:155: parse error before * token
/usr/include/openssl/kssl.h:157: parse error before \"kssl_ctx_setkey\"
/usr/include/openssl/kssl.h:157: parse error before * token
/usr/include/openssl/kssl.h:159: parse error before \"context\"
/usr/include/openssl/kssl.h:160: parse error before \"kssl_build_principal_2\"
/usr/include/openssl/kssl.h:160: parse error before \"context\"
/usr/include/openssl/kssl.h:163: parse error before \"kssl_validate_times\"
/usr/include/openssl/kssl.h:163: parse error before \"atime\"
/usr/include/openssl/kssl.h:165: parse error before \"kssl_check_authent\"
/usr/include/openssl/kssl.h:165: parse error before * token
/usr/include/openssl/kssl.h:167: parse error before \"enctype\"
In file included from ssl.c:62:
/usr/include/openssl/ssl.h:909: parse error before \"KSSL_CTX\"
/usr/include/openssl/ssl.h:931: parse error before } token
make[2]: *** [ssl.o] 오류 1
make[2]: 나감 `/home/test/resin-2.1.8/src/c/plugin/resin 디렉토
make[1]: *** [plugins] 오류 2
make[1]: 나감 `/home/test/resin-2.1.8/src/c/plugin 디렉토
make: *** [all] 오류 2

이런식으로 않하고 그냥 resin 만 실행하면 잘 됩니다(http://localhost:8080 ==> ok)

Re:make 시 에러 좀 잡아 주실분...
관리자 / 2003-06-24 00:00

저는 Openssl을 직접 컴파일해놓고
이를 이용해서 resin을 컴파일해보았는데
유사한 에러가 나네요.

그러나 보통 기본적으로 설치되는 RPM을
이용하도록하면 mod_caucho.so파일을
컴파일하는데는 문제가 없을 것으로 생각됩니다..



--임경호 님의 글 [2003-06-23 13:16:22]
>환경 : redhat 9.0(intel 2.8 / mem : 2기가/hdd 200 기가)

apache 설치는 잘 되었구요(2.0.45)
아파치와 연동하려구 resin을 cofigure(configure --with-apxs=/usr/local/apache/bin/apxs) 까지는 잘 되었는데 make 에서 다음과 같은 에러가 나내요.

> make

(cd src/c/plugin; make)
make[1]: 들어감 `/home/test/resin-2.1.8/src/c/plugin 디렉토리
for dir in common apache2 resin; do (cd $dir; make); done
make[2]: 들어감 `/home/test/resin-2.1.8/src/c/plugin/common 디렉토리
gcc -c -I/usr/include -g -O2 stream.c
gcc -c -I/usr/include -g -O2 registry.c
gcc -c -I/usr/include -g -O2 config.c
gcc -c -I/usr/include -g -O2 memory.c
/usr/bin/ld -r -o common.o stream.o registry.o config.o memory.o
gcc -c -I/usr/include -g -O2 -fpic stream.c && mv stream.o stream.lo
gcc -c -I/usr/include -g -O2 -fpic registry.c && mv registry.o registry.lo
gcc -c -I/usr/include -g -O2 -fpic config.c && mv config.o config.lo
gcc -c -I/usr/include -g -O2 -fpic memory.c && mv memory.o memory.lo
/usr/bin/ld -r -o common.lo stream.lo registry.lo config.lo memory.lo
make[2]: 나감 `/home/test/resin-2.1.8/src/c/plugin/common 디렉토리
make[2]: 들어감 `/home/test/resin-2.1.8/src/c/plugin/apache2 디렉토리
gcc -c -I/usr/local/apache/include -DRESIN_HOME=\\\"/home/test/resin-2.1.8\\\" -I../common -g -O2 -fpic mod_caucho.c && mv mod_caucho.o mod_caucho.lo
/usr/bin/ld -o mod_caucho.so -shared mod_caucho.lo ../common/stream.lo ../common/registry.lo ../common/config.lo ../common/memory.lo
make[2]: 나감 `/home/test/resin-2.1.8/src/c/plugin/apache2 디렉토리
make[2]: 들어감 `/home/test/resin-2.1.8/src/c/plugin/resin 디렉토리
gcc -g -O2 -DRESIN_HOME=\\\"/home/test/resin-2.1.8\\\" -I/usr/include -I/usr/local/j2se/include -I/usr/local/j2se/include/linux -I../common -DCPU=\\\"i386\\\" -DOS=  -DSSL_ENGINE   -c -o resin.o resin.c
gcc -g -O2 -DRESIN_HOME=\\\"/home/test/resin-2.1.8\\\" -I/usr/include -I/usr/local/j2se/include -I/usr/local/j2se/include/linux -I../common -DCPU=\\\"i386\\\" -DOS=  -DSSL_ENGINE   -c -o std.o std.c
gcc -g -O2 -DRESIN_HOME=\\\"/home/test/resin-2.1.8\\\" -I/usr/include -I/usr/local/j2se/include -I/usr/local/j2se/include/linux -I../common -DCPU=\\\"i386\\\" -DOS=  -DSSL_ENGINE   -c -o memory.o memory.c
gcc -g -O2 -DRESIN_HOME=\\\"/home/test/resin-2.1.8\\\" -I/usr/include -I/usr/local/j2se/include -I/usr/local/j2se/include/linux -I../common -DCPU=\\\"i386\\\" -DOS=  -DSSL_ENGINE   -c -o ssl.o ssl.c
In file included from /usr/include/openssl/ssl.h:179,
                 from ssl.c:62:
/usr/include/openssl/kssl.h:72:18: krb5.h: 그런 파일이나 디렉토리가 없음
In file included from /usr/include/openssl/ssl.h:179,
                 from ssl.c:62:
/usr/include/openssl/kssl.h:132: parse error before \"krb5_enctype\"
/usr/include/openssl/kssl.h:134: parse error before \"FAR\"
/usr/include/openssl/kssl.h:135: parse error before } token
/usr/include/openssl/kssl.h:147: parse error before \"kssl_ctx_setstring\"
/usr/include/openssl/kssl.h:147: parse error before * token
/usr/include/openssl/kssl.h:148: parse error before * token
/usr/include/openssl/kssl.h:149: parse error before * token
/usr/include/openssl/kssl.h:149: parse error before * token
/usr/include/openssl/kssl.h:150: parse error before * token
/usr/include/openssl/kssl.h:151: parse error before \"kssl_ctx_setprinc\"
/usr/include/openssl/kssl.h:151: parse error before * token
/usr/include/openssl/kssl.h:153: parse error before \"kssl_cget_tkt\"
/usr/include/openssl/kssl.h:153: parse error before * token
/usr/include/openssl/kssl.h:155: parse error before \"kssl_sget_tkt\"
/usr/include/openssl/kssl.h:155: parse error before * token
/usr/include/openssl/kssl.h:157: parse error before \"kssl_ctx_setkey\"
/usr/include/openssl/kssl.h:157: parse error before * token
/usr/include/openssl/kssl.h:159: parse error before \"context\"
/usr/include/openssl/kssl.h:160: parse error before \"kssl_build_principal_2\"
/usr/include/openssl/kssl.h:160: parse error before \"context\"
/usr/include/openssl/kssl.h:163: parse error before \"kssl_validate_times\"
/usr/include/openssl/kssl.h:163: parse error before \"atime\"
/usr/include/openssl/kssl.h:165: parse error before \"kssl_check_authent\"
/usr/include/openssl/kssl.h:165: parse error before * token
/usr/include/openssl/kssl.h:167: parse error before \"enctype\"
In file included from ssl.c:62:
/usr/include/openssl/ssl.h:909: parse error before \"KSSL_CTX\"
/usr/include/openssl/ssl.h:931: parse error before } token
make[2]: *** [ssl.o] 오류 1
make[2]: 나감 `/home/test/resin-2.1.8/src/c/plugin/resin 디렉토
make[1]: *** [plugins] 오류 2
make[1]: 나감 `/home/test/resin-2.1.8/src/c/plugin 디렉토
make: *** [all] 오류 2

이런식으로 않하고 그냥 resin 만 실행하면 잘 됩니다(http://localhost:8080 ==> ok)