Forum

installation issue

Shashank
18 February 2009, 11:31
hi
i am getting following issue when i try to install the hiawatha server.
i am not sure what is causing the error.
first i ran the configure script
then the make, which produces the following error.
i hope someone can help me regarding this.

-------------------------------------------------------------------------------------------------------------------------------------------------------------
[root@shangrila hiawatha-6.11]# make
make all-am
make[1]: Entering directory `/home/rgupta/hiawatha-6.11'
gcc -DHAVE_CONFIG_H -I. -pthread -g -O2 -MT hiawatha-cache.o -MD -MP -MF .de
ps/hiawatha-cache.Tpo -c -o hiawatha-cache.o `test -f 'cache.c' || echo './'`cac
he.c
In file included from /usr/include/openssl/ssl.h:179,
from libssl.h:6,
from session.h:6,
from cache.c:19:
/usr/include/openssl/kssl.h:72:18: krb5.h: No such file or directory
In file included from /usr/include/openssl/ssl.h:179,
from libssl.h:6,
from session.h:6,
from cache.c:19:
/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 libssl.h:6,
from session.h:6,
from cache.c:19:
/usr/include/openssl/ssl.h:909: parse error before "KSSL_CTX"
/usr/include/openssl/ssl.h:931: parse error before '}' token
make[1]: *** [hiawatha-cache.o] Error 1
make[1]: Leaving directory `/home/rgupta/hiawatha-6.11'
make: *** [all] Error 2
-------------------------------------------------------------------------------------------------------------------------------------------------------------


Hugo Leisink
18 February 2009, 11:34
According to the line "/usr/include/openssl/kssl.h:72:18: krb5.h: No such file or directory", you are missing some OpenSSL development files. Have you installed libssl-dev? What OS are you using?
Shashank
18 February 2009, 11:47
we are using
debian Linux version 2.6.21
as the OS.

i have the openssl in this machine.
Hugo Leisink
18 February 2009, 12:40
Try installing the package 'libkrb5-dev'. What is the content of /etc/debian_version? If you run
apt-get update
apt-get upgrade

do you recieve an error?
Danny
18 February 2009, 16:44
Hi Hugo

Fantastic work you've done! I'm really impressed. I installed Hiawatha using the Debian package (i'm on Linux Mint - descendant of Ubuntu) and all worked fine... But when i try to compile from source, i get this error....

gcc -DHAVE_CONFIG_H -I. -g -O2 -MT alternative.o -MD -MP -MF .deps/alternative.Tpo -c -o alternative.o alternative.c
mv -f .deps/alternative.Tpo .deps/alternative.Po
gcc -DHAVE_CONFIG_H -I. -g -O2 -MT cgi-wrapper.o -MD -MP -MF .deps/cgi-wrapper.Tpo -c -o cgi-wrapper.o cgi-wrapper.c
mv -f .deps/cgi-wrapper.Tpo .deps/cgi-wrapper.Po
gcc -DHAVE_CONFIG_H -I. -g -O2 -MT userconfig.o -MD -MP -MF .deps/userconfig.Tpo -c -o userconfig.o userconfig.c
mv -f .deps/userconfig.Tpo .deps/userconfig.Po
gcc -DHAVE_CONFIG_H -I. -g -O2 -MT libfs.o -MD -MP -MF .deps/libfs.Tpo -c -o libfs.o libfs.c
libfs.c: In function ?touch_logfile?:
libfs.c:245: warning: ignoring return value of ?fchown?, declared with attribute warn_unused_result
In function ?open?,
inlined from ?touch_logfile? at libfs.c:242:
/usr/include/bits/fcntl2.h:51: error: call to ?__open_missing_mode? declared with attribute error: open with O_CREAT in second argument needs 3 arguments
make: *** [libfs.o] Error 1

Any ideas?
Thanks mate
Hugo Leisink
18 February 2009, 18:10
I'm aware of that issue. The latest release of Ubuntu (and descendants) have a newer version of GCC installed. It causes these errors. I've already fixed it (works now with the latest GCC and older versions). Hiawatha 6.12 will have this issue fixed.

There was already a topic about this issue: http://www.hiawatha-webserver.org/forum/topic/147
Danny
19 February 2009, 08:30
Thanks Hugo!
This topic has been closed.