Forum

CentOS 5.x

Ahcor Werdna
20 October 2011, 03:56
I am trying to install Hiawatha-Webserver on CentOS. This is the error that I have run into.

[root@ajr0cha hiawatha-7.7]# make
make all-am
make[1]: Entering directory `/root/ha/hiawatha-7.7'
gcc -DHAVE_CONFIG_H -I. -I/usr/include/libxml2 -pthread -g -O2 -MT hiawatha-xslt.o -MD -MP -MF .deps/hiawatha-xslt.Tpo -c -o hiawatha-xslt.o `test -f 'xslt.c' || echo './'`xslt.c
mv -f .deps/hiawatha-xslt.Tpo .deps/hiawatha-xslt.Po
gcc -pthread -g -O2 -o hiawatha hiawatha-alternative.o hiawatha-cache.o hiawatha-cgi.o hiawatha-client.o hiawatha-command.o hiawatha-envir.o hiawatha-hiawatha.o hiawatha-httpauth.o hiawatha-libfs.o hiawatha-libip.o hiawatha-liblist.o hiawatha-libmd5.o hiawatha-libstr.o hiawatha-libssl.o hiawatha-log.o hiawatha-mimetype.o hiawatha-monitor.o hiawatha-send.o hiawatha-serverconfig.o hiawatha-session.o hiawatha-target.o hiawatha-toolkit.o hiawatha-userconfig.o hiawatha-xslt.o -lcrypt -lxml2
hiawatha-xslt.o: In function `apply_xslt_sheet':
/root/ha/hiawatha-7.7/xslt.c:370: undefined reference to `xsltParseStylesheetDoc'
/root/ha/hiawatha-7.7/xslt.c:388: undefined reference to `xsltApplyStylesheet'
/root/ha/hiawatha-7.7/xslt.c:396: undefined reference to `xsltFreeStylesheet'
/root/ha/hiawatha-7.7/xslt.c:388: undefined reference to `xsltApplyStylesheet'
/root/ha/hiawatha-7.7/xslt.c:408: undefined reference to `xsltFreeStylesheet'
/root/ha/hiawatha-7.7/xslt.c:404: undefined reference to `xsltSaveResultTo'
/root/ha/hiawatha-7.7/xslt.c:429: undefined reference to `xsltFreeStylesheet'
collect2: ld returned 1 exit status
make[1]: *** [hiawatha] Error 1
make[1]: Leaving directory `/root/ha/hiawatha-7.7'
make: *** [all] Error 2

Do you know as to why this would happen? Thank you.


Hiawatha version: 7.7
Operating System: CentOS release 5.7 Kernel 2.6.18-194.3.1.el5xen on an x86_64
Hugo Leisink
20 October 2011, 14:09
Try installing the libxslt library.
Ahcor Werdna
20 October 2011, 18:58
I did that with yum install libxslt and I also installed yum install libxslt-devel. I ran into the same problem I also did yum update then tried. With the same outcome. I'm going to run a clean install and hopefully I will have this issue resolved. I will post my results.
Ahcor Werdna
21 October 2011, 05:18
This is the outcome. Still the same error.

[root@ajr0cha hiawatha-7.7]# yum install libxslt
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* Webmin: download.webmin.com
* base: linux.mirrors.es.net
* extras: mirrors.usc.edu
* updates: mirrors.200p-sf.sonic.net
Setting up Install Process
Package libxslt-1.1.17-2.el5_2.2.x86_64 already installed and latest version
Package libxslt-1.1.17-2.el5_2.2.i386 already installed and latest version
Nothing to do

[root@ajr0cha hiawatha-7.7]# yum install libxslt-devel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* Webmin: download.webmin.com
* base: linux.mirrors.es.net
* extras: mirrors.usc.edu
* updates: mirrors.200p-sf.sonic.net
Setting up Install Process
Package libxslt-devel-1.1.17-2.el5_2.2.x86_64 already installed and latest version
Package libxslt-devel-1.1.17-2.el5_2.2.i386 already installed and latest version
Nothing to do

[root@ajr0cha hiawatha-7.7]# make
make all-am
make[1]: Entering directory `/root/ha/hiawatha-7.7'
gcc -pthread -g -O2 -o hiawatha hiawatha-alternative.o hiawatha-cache.o hiawatha-cgi.o hiawatha-client.o hiawatha-command.o hiawatha-envir.o hiawatha-hiawatha.o hiawatha-httpauth.o hiawatha-libfs.o hiawatha-libip.o hiawatha-liblist.o hiawatha-libmd5.o hiawatha-libstr.o hiawatha-libssl.o hiawatha-log.o hiawatha-mimetype.o hiawatha-monitor.o hiawatha-send.o hiawatha-serverconfig.o hiawatha-session.o hiawatha-target.o hiawatha-toolkit.o hiawatha-userconfig.o hiawatha-xslt.o -lcrypt
hiawatha-monitor.o: In function `sync_monitor_buffer':
/root/ha/hiawatha-7.7/monitor.c:98: undefined reference to `gzdopen'
/root/ha/hiawatha-7.7/monitor.c:106: undefined reference to `gzwrite'
/root/ha/hiawatha-7.7/monitor.c:107: undefined reference to `gzclose'
/root/ha/hiawatha-7.7/monitor.c:116: undefined reference to `gzclose'
hiawatha-xslt.o: In function `apply_xslt_sheet':
/root/ha/hiawatha-7.7/xslt.c:365: undefined reference to `xmlReadFile'
/root/ha/hiawatha-7.7/xslt.c:370: undefined reference to `xsltParseStylesheetDoc'
/root/ha/hiawatha-7.7/xslt.c:372: undefined reference to `xmlFreeDoc'
/root/ha/hiawatha-7.7/xslt.c:388: undefined reference to `xsltApplyStylesheet'
/root/ha/hiawatha-7.7/xslt.c:395: undefined reference to `xmlFreeDoc'
/root/ha/hiawatha-7.7/xslt.c:396: undefined reference to `xsltFreeStylesheet'
/root/ha/hiawatha-7.7/xslt.c:388: undefined reference to `xsltApplyStylesheet'
/root/ha/hiawatha-7.7/xslt.c:399: undefined reference to `xmlAllocOutputBuffer'
/root/ha/hiawatha-7.7/xslt.c:407: undefined reference to `xmlFreeDoc'
/root/ha/hiawatha-7.7/xslt.c:408: undefined reference to `xsltFreeStylesheet'
/root/ha/hiawatha-7.7/xslt.c:404: undefined reference to `xsltSaveResultTo'
/root/ha/hiawatha-7.7/xslt.c:406: undefined reference to `xmlOutputBufferClose'
/root/ha/hiawatha-7.7/xslt.c:427: undefined reference to `xmlOutputBufferClose'
/root/ha/hiawatha-7.7/xslt.c:428: undefined reference to `xmlFreeDoc'
/root/ha/hiawatha-7.7/xslt.c:429: undefined reference to `xsltFreeStylesheet'
hiawatha-xslt.o: In function `show_index':
/root/ha/hiawatha-7.7/xslt.c:844: undefined reference to `xmlReadMemory'
/root/ha/hiawatha-7.7/xslt.c:849: undefined reference to `xmlFreeDoc'
hiawatha-xslt.o: In function `transform_xml':
/root/ha/hiawatha-7.7/xslt.c:444: undefined reference to `xmlReadFile'
/root/ha/hiawatha-7.7/xslt.c:446: undefined reference to `xmlFreeDoc'
hiawatha-xslt.o: In function `init_xslt_module':
/root/ha/hiawatha-7.7/xslt.c:267: undefined reference to `xmlInitMemory'
/root/ha/hiawatha-7.7/xslt.c:268: undefined reference to `xmlInitParser'
collect2: ld returned 1 exit status
make[1]: *** [hiawatha] Error 1
make[1]: Leaving directory `/root/ha/hiawatha-7.7'
make: *** [all] Error 2
Ahcor Werdna
21 October 2011, 06:46
I'm going to ditch Cent OS, it has given me too many errors and all the fixes I have tried fail also. So I'm going back to Debian 6. Thank you.

Quick question, what is "CommandChannel" I don't see too much info about it in your HOWTO's.
Hugo Leisink
21 October 2011, 08:01
I'll take a look at Cent OS myself soon. But I agree that Debian is a better choice

The CommandChannel is an internal console which can be used to get status information and to handle the cache and bans.
Martin Tournoij
25 October 2011, 21:22
/root/ha/hiawatha-7.7/monitor.c:107: undefined reference to `gzclose'
[...]
/root/ha/hiawatha-7.7/xslt.c:365: undefined reference to `xmlReadFile'
[...]
/root/ha/hiawatha-7.7/xslt.c:429: undefined reference to `xsltFreeStylesheet'


You're missing "-lz", "-lxslt", and "-lxml" in your cc command.

Depending on Hiawatha's Makefile, this will solve the issue:
make LDFLAGS="-lz -lxslt -lxml2

You may also need to ass some paths with -L (i.e. -L/usr/lib/libxml2/)

Also take note that CentOS ships with old (*very* old) packages, as in, 4-5-6+ years old, "recent" (In CentOS terms) applications (Such as hiawatha) may not compile ...
Hugo Leisink
25 October 2011, 23:59
The autoconf files that come with Hiawatha have checks for the xslt and z library. I have no idea why that doesn't work for CentOS.

Personally, I hate CentOS. Guess I have just found another extra reason
This topic has been closed.