Skip to contentSkip to conversation

make errors for autofs 5.0.4/5.0.5

DISCUSSION Philip Ong Jr. 2 participants 2 messages Feb 1, 2011 – Feb 2, 2011 Kernel automounter

lore
Share & tools
lore
#0 lore raw

I've applied all the patches for both trees, but i'm getting these errors.

I'm running a kernel.org kernel 2.6.29.4 64bit RHEL4u5. Are there any specific software requirements for compiling?

make[1]: Leaving directory `/usr/src/autofs-5.0.4/lib'
make[1]: Entering directory `/usr/src/autofs-5.0.4/daemon'
gcc -O2 -Wall -D_REENTRANT -D_FILE_OFFSET_BITS=64 -rdynamic -fPIE -D_GNU_SOURCE -I../include -DAUTOFS_LIB_DIR=\"/usr/lib/autofs\" -DAUTOFS_MAP_DIR=\"/etc\" -DAUTOFS_CONF_DIR=\"/etc/sysconfig\" -DAUTOFS_FIFO_DIR=\"/var/run\" -DAUTOFS_FLAG_DIR=\"/var/run\" -DVERSION_STRING=\"5.0.4\" -c automount.c automount.c:43:27: libxml/parser.h: No such file or directory
automount.c: In function `main':
automount.c:2118: warning: implicit declaration of function `xmlInitParser'
automount.c:2163: warning: implicit declaration of function `xmlCleanupParser'
make[1]: *** [automount.o] Error 1
make[1]: Leaving directory `/usr/src/autofs-5.0.4/daemon'
make: *** [daemon] Error 2

gcc -O2 -Wall -D_REENTRANT -D_FILE_OFFSET_BITS=64 -rdynamic -fPIE -D_GNU_SOURCE -I../include -DAUTOFS_LIB_DIR=\"/usr/lib/autofs\" -DAUTOFS_MAP_DIR=\"/etc\" -DAUTOFS_CONF_DIR=\"/etc/sysconfig\" -DAUTOFS_FIFO_DIR=\"/var/run\" -DAUTOFS_FLAG_DIR=\"/var/run\" -DVERSION_STRING=\"5.0.5\" -c flag.c gcc -s -lpthread -rdynamic -pie -o automount automount.o indirect.o direct.o spawn.o module.o mount.o lookup.o state.o flag.o ../lib/autofs.a -ldl
strip --strip-debug automount
make[1]: Leaving directory `/usr/src/autofs-5.0.5/daemon'
make[1]: Entering directory `/usr/src/autofs-5.0.5/modules'
Makefile:75: Extraneous text after `else' directive
Makefile:80: Extraneous text after `else' directive
Makefile:80: *** only one `else' per conditional. Stop.
make[1]: Leaving directory `/usr/src/autofs-5.0.5/modules'
make: *** [daemon] Error 2

#1 lore raw
Quoted 11 lines · Philip Ong Jr.

I've applied all the patches for both trees, but i'm getting these errors.

I'm running a kernel.org kernel 2.6.29.4 64bit RHEL4u5. Are there any specific software requirements for compiling?

make[1]: Leaving directory /usr/src/autofs-5.0.4/lib' make[1]: Entering directory /usr/src/autofs-5.0.4/daemon' gcc -O2 -Wall -D_REENTRANT -D_FILE_OFFSET_BITS=64 -rdynamic -fPIE

(quoted diff) +0 -4
-D_GNU_SOURCE -I../include -DAUTOFS_LIB_DIR=\"/usr/lib/autofs\" 
-DAUTOFS_MAP_DIR=\"/etc\" -DAUTOFS_CONF_DIR=\"/etc/sysconfig\" 
-DAUTOFS_FIFO_DIR=\"/var/run\" -DAUTOFS_FLAG_DIR=\"/var/run\" 
-DVERSION_STRING=\"5.0.4\" -c automount.c
Quoted 1 line

automount.c:43:27: libxml/parser.h: No such file or directory

                     ^^^^^^^^^^^^^^^

You would need to have the libxml development libraries installed to compile. I am not sure what RedHat calls it (for reference, it's libxml2-devel for OpenSuSE 11.2).

HTH,
Ryan