LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

RE: problems compiling saru-0.0.1

To: <jimm@xxxxxxxxxxxxxxx>, <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: RE: problems compiling saru-0.0.1
From: "Jim Miller" <jimm@xxxxxxxxxxxxxxx>
Date: Fri, 8 Apr 2005 15:33:48 -0500

> -----Original Message-----
> From: lvs-users-bounces@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:lvs-users-bounces@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Jim Miller
> Sent: Friday, April 08, 2005 11:42 AM
> To: LinuxVirtualServer.org users mailing list.
> Subject: problems compiling saru-0.0.1
>
>
> Hi all,
>
> I'm having trouble compling saru-0.0.1.  I've installed all the prerequsit
> libraries needed:
> libvanessa-adt0_0.0.6-2_i386.deb
> libvanessa-adt-dev_0.0.6-2_i386.deb
> libvanessa-logger0_0.0.7-1_i386.deb
> libvanessa-logger-dev_0.0.7-1_i386.deb
> libvanessa-socket0_0.0.7-1_i386.deb
> libvanessa-socket-dev_0.0.7-1_i386.deb
> libvanessa-socket-pipe_0.0.7-1_i386.deb
> heartbeat-dev-1.2.3-8
> iptables-dev-1.2.11-8
>
> Below I have the results of ./confgure and make and I was hoping for some
> direction for getting this resolved.
>

I have since installed 2.6.11-7 and have a some new issues with compiling
saru-0.0.1

Below is the output from
'./configure --sysconfdir=/etc --prefix=/usr --with-ha-config/etc/ha.d/ha.cf
'

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets $(MAKE)... yes
checking for working aclocal-1.4... found
checking for working autoconf... found
checking for working automake-1.4... found
checking for working autoheader... found
checking for working makeinfo... found
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking for a sed that does not truncate output... /bin/sed
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking command to parse /usr/bin/nm -B output... ok
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for ranlib... ranlib
checking for strip... strip
checking for objdir... .libs
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.lo... yes
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking whether the linker (/usr/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking whether -lc should be explicitly linked in... no
creating libtool
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking for ranlib... (cached) ranlib
checking for glib-config... /usr/bin/glib-config
checking for glib12-config... (cached) /usr/bin/glib-config
checking for glib13-config... (cached) /usr/bin/glib-config
checking for poptGetContext in -lpopt... yes
checking for vanessa_logger_closelog in -lvanessa_logger... yes
checking for vanessa_queue_create in -lvanessa_adt... yes
checking for vanessa_socket_daemon_inetd_process in -lvanessa_socket... yes
checking which glib config exists... "using /usr/bin/glib-config"
checking ipt (libiptc/libiptc.h) include path... /usr/include
checking for /usr/src/linux/include/linux/version.h... yes
checking kernel release... 2.6.11.7-3
checking kernel module install path...
/usr/lib/modules/2.6.11.7-3/kernel/net/ipv4/netfilter
checking for ll_cluster_new in -lhbclient... yes
checking heartbeat (heartbeat.h) include path... /usr/include/heartbeat
checking for iptables... /sbin/iptables
checking iptables version... "1.2.11"
checking for ANSI C header files... (cached) yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for an ANSI C-conforming const... yes
checking for uid_t in sys/types.h... yes
checking for size_t... yes
checking return type of signal handlers... void
checking for wait3 that fills in rusage... yes
checking for flim... no
configure: creating ./config.status
config.status: creating debian/Makefile
config.status: creating iptables/Makefile
config.status: creating iptables/extensions/Makefile
config.status: creating iptables/kernel/Makefile
config.status: creating etc/Makefile
config.status: creating etc/init.d/Makefile
config.status: creating etc/init.d/saru.rh
config.status: creating etc/init.d/saru.debian
config.status: creating etc/saru/Makefile
config.status: creating saru/Makefile
config.status: creating patches/Makefile
config.status: creating Makefile
config.status: creating saru.spec
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing default-1 commands



I commented out all of the _heartbeat_h_Id and _ha_msg_h_Id reference from
all of the .c files and did a make

here's the output from make:
make  all-recursive
make[1]: Entering directory `/usr/src/saru-0.0.1'
Making all in saru
make[2]: Entering directory `/usr/src/saru-0.0.1/saru'
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/src/linux/include -I/usr/include/hea
rtbeat
`/usr/bin/glib-config --cflags` -I../iptables/kernel -DSARU_SYSCONFDIR=\"/et
c/saru\"    -g -O2 -c ping.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/src/linux/include -I/usr/include/hea
rtbeat
`/usr/bin/glib-config --cflags` -I../iptables/kernel -DSARU_SYSCONFDIR=\"/et
c/saru\"    -g -O2 -c setid.c
/bin/sh ../libtool --mode=link gcc  -g -O2  -o saru_ping  ping.o
setid.o -lhbclient -lplumb -lglib -lpopt -lvanessa_adt -lvanessa_logger -lva
nessa_socket
mkdir .libs
gcc -g -O2 -o saru_ping ping.o setid.o  /usr/lib/libhbclient.so
/usr/lib/libplumb.so -lc -lrt -ldl /usr/lib/libglib.so /usr/lib/libpopt.so
/usr/lib/libvanessa_adt.so /usr/lib/libvanessa_socket.so
/usr/lib/libvanessa_logger.so
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/src/linux/include -I/usr/include/hea
rtbeat
`/usr/bin/glib-config --cflags` -I../iptables/kernel -DSARU_SYSCONFDIR=\"/et
c/saru\"    -g -O2 -c saru.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/src/linux/include -I/usr/include/hea
rtbeat
`/usr/bin/glib-config --cflags` -I../iptables/kernel -DSARU_SYSCONFDIR=\"/et
c/saru\"    -g -O2 -c saru_cluster.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/src/linux/include -I/usr/include/hea
rtbeat
`/usr/bin/glib-config --cflags` -I../iptables/kernel -DSARU_SYSCONFDIR=\"/et
c/saru\"    -g -O2 -c saru_glib.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/src/linux/include -I/usr/include/hea
rtbeat
`/usr/bin/glib-config --cflags` -I../iptables/kernel -DSARU_SYSCONFDIR=\"/et
c/saru\"    -g -O2 -c block.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/src/linux/include -I/usr/include/hea
rtbeat
`/usr/bin/glib-config --cflags` -I../iptables/kernel -DSARU_SYSCONFDIR=\"/et
c/saru\"    -g -O2 -c block_state.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/src/linux/include -I/usr/include/hea
rtbeat
`/usr/bin/glib-config --cflags` -I../iptables/kernel -DSARU_SYSCONFDIR=\"/et
c/saru\"    -g -O2 -c candidate.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/src/linux/include -I/usr/include/hea
rtbeat
`/usr/bin/glib-config --cflags` -I../iptables/kernel -DSARU_SYSCONFDIR=\"/et
c/saru\"    -g -O2 -c cluster_util.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/src/linux/include -I/usr/include/hea
rtbeat
`/usr/bin/glib-config --cflags` -I../iptables/kernel -DSARU_SYSCONFDIR=\"/et
c/saru\"    -g -O2 -c election.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/src/linux/include -I/usr/include/hea
rtbeat
`/usr/bin/glib-config --cflags` -I../iptables/kernel -DSARU_SYSCONFDIR=\"/et
c/saru\"    -g -O2 -c ipt.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/src/linux/include -I/usr/include/hea
rtbeat
`/usr/bin/glib-config --cflags` -I../iptables/kernel -DSARU_SYSCONFDIR=\"/et
c/saru\"    -g -O2 -c master.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/src/linux/include -I/usr/include/hea
rtbeat
`/usr/bin/glib-config --cflags` -I../iptables/kernel -DSARU_SYSCONFDIR=\"/et
c/saru\"    -g -O2 -c modprobe.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/src/linux/include -I/usr/include/hea
rtbeat
`/usr/bin/glib-config --cflags` -I../iptables/kernel -DSARU_SYSCONFDIR=\"/et
c/saru\"    -g -O2 -c node_state.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/src/linux/include -I/usr/include/hea
rtbeat
`/usr/bin/glib-config --cflags` -I../iptables/kernel -DSARU_SYSCONFDIR=\"/et
c/saru\"    -g -O2 -c options.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/src/linux/include -I/usr/include/hea
rtbeat
`/usr/bin/glib-config --cflags` -I../iptables/kernel -DSARU_SYSCONFDIR=\"/et
c/saru\"    -g -O2 -c state.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/src/linux/include -I/usr/include/hea
rtbeat
`/usr/bin/glib-config --cflags` -I../iptables/kernel -DSARU_SYSCONFDIR=\"/et
c/saru\"    -g -O2 -c us.c
/bin/sh ../libtool --mode=link gcc  -g -O2  -o saru  saru.o saru_cluster.o
saru_glib.o setid.o block.o block_state.o candidate.o cluster_util.o
election.o ipt.o master.o modprobe.o node_state.o options.o state.o
us.o -lhbclient -lplumb -lglib -lpopt -lvanessa_adt -lvanessa_logger -lvanes
sa_socket
gcc -g -O2 -o saru saru.o saru_cluster.o saru_glib.o setid.o block.o
block_state.o candidate.o cluster_util.o election.o ipt.o master.o
modprobe.o node_state.o options.o state.o us.o  /usr/lib/libhbclient.so
/usr/lib/libplumb.so -lc -lrt -ldl /usr/lib/libglib.so /usr/lib/libpopt.so
/usr/lib/libvanessa_adt.so /usr/lib/libvanessa_socket.so
/usr/lib/libvanessa_logger.so
make[2]: Leaving directory `/usr/src/saru-0.0.1/saru'
Making all in iptables
make[2]: Entering directory `/usr/src/saru-0.0.1/iptables'
Making all in extensions
make[3]: Entering directory `/usr/src/saru-0.0.1/iptables/extensions'
( old_pwd=`pwd` ; cd . &&
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/src/linux/include  -I../../ -I../
../iptables/kernel    -g -O2 -fPIC \
         -o $old_pwd/libipt_saru.o -c libipt_saru.c )
ld  -lc -shared -o libipt_saru.so libipt_saru.o
make[3]: Leaving directory `/usr/src/saru-0.0.1/iptables/extensions'
Making all in kernel
make[3]: Entering directory `/usr/src/saru-0.0.1/iptables/kernel'
( old_pwd=`pwd` ; cd . &&
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/src/linux/include    -g -O2 -D__K
ERNEL__ -DMODULE -DEXPORT_SYMTAB -DMODVERSIONS           -include
/usr/src/linux/include/linux/modversions.h \
         -o $old_pwd/ipt_saru.o -c ipt_saru.c )
<command line>:138473939:61976: /usr/src/linux/include/linux/modversions.h:
No such file or directory
In file included from /usr/src/linux/include/asm/smp.h:18,
                 from /usr/src/linux/include/linux/smp.h:19,
                 from /usr/src/linux/include/linux/sched.h:25,
                 from /usr/src/linux/include/linux/module.h:10,
                 from ipt_saru.c:33:
/usr/src/linux/include/asm/mpspec.h:6:25: mach_mpspec.h: No such file or
directory
In file included from /usr/src/linux/include/asm/smp.h:18,
                 from /usr/src/linux/include/linux/smp.h:19,
                 from /usr/src/linux/include/linux/sched.h:25,
                 from /usr/src/linux/include/linux/module.h:10,
                 from ipt_saru.c:33:
/usr/src/linux/include/asm/mpspec.h:8: error: `MAX_MP_BUSSES' undeclared
here (not in a function)
/usr/src/linux/include/asm/mpspec.h:9: error: `MAX_MP_BUSSES' undeclared
here (not in a function)
/usr/src/linux/include/asm/mpspec.h:10: error: `MAX_MP_BUSSES' undeclared
here (not in a function)
/usr/src/linux/include/asm/mpspec.h:12: error: `MAX_MP_BUSSES' undeclared
here (not in a function)
/usr/src/linux/include/asm/mpspec.h:20: error: `MAX_MP_BUSSES' undeclared
here (not in a function)
/usr/src/linux/include/asm/mpspec.h:20: error: conflicting types for
`mp_bus_id_to_type'
/usr/src/linux/include/asm/mpspec.h:8: error: previous declaration of
`mp_bus_id_to_type'
/usr/src/linux/include/asm/mpspec.h:22: error: `MAX_IRQ_SOURCES' undeclared
here (not in a function)
/usr/src/linux/include/asm/mpspec.h:24: error: `MAX_MP_BUSSES' undeclared
here (not in a function)
/usr/src/linux/include/asm/mpspec.h:24: error: conflicting types for
`mp_bus_id_to_pci_bus'
/usr/src/linux/include/asm/mpspec.h:12: error: previous declaration of
`mp_bus_id_to_pci_bus'
In file included from /usr/src/linux/include/asm/smp.h:20,
                 from /usr/src/linux/include/linux/smp.h:19,
                 from /usr/src/linux/include/linux/sched.h:25,
                 from /usr/src/linux/include/linux/module.h:10,
                 from ipt_saru.c:33:
/usr/src/linux/include/asm/io_apic.h:158: error: `MAX_IRQ_SOURCES'
undeclared here (not in a function)
/usr/src/linux/include/asm/io_apic.h:158: error: conflicting types for
`mp_irqs'
/usr/src/linux/include/asm/mpspec.h:22: error: previous declaration of
`mp_irqs'
In file included from /usr/src/linux/include/linux/smp.h:19,
                 from /usr/src/linux/include/linux/sched.h:25,
                 from /usr/src/linux/include/linux/module.h:10,
                 from ipt_saru.c:33:
/usr/src/linux/include/asm/smp.h:73:26: mach_apicdef.h: No such file or
directory
In file included from /usr/src/linux/include/linux/irq.h:21,
                 from /usr/src/linux/include/asm/hardirq.h:6,
                 from /usr/src/linux/include/linux/hardirq.h:6,
                 from /usr/src/linux/include/linux/interrupt.h:11,
                 from /usr/src/linux/include/asm/highmem.h:24,
                 from /usr/src/linux/include/linux/highmem.h:12,
                 from /usr/src/linux/include/linux/skbuff.h:27,
                 from /usr/src/linux/include/linux/if_ether.h:107,
                 from /usr/src/linux/include/linux/netdevice.h:29,
                 from /usr/src/linux/include/net/sock.h:48,
                 from /usr/src/linux/include/linux/udp.h:40,
                 from ipt_saru.c:35:
/usr/src/linux/include/asm/irq.h:16:25: irq_vectors.h: No such file or
directory
In file included from /usr/src/linux/include/asm/hardirq.h:6,
                 from /usr/src/linux/include/linux/hardirq.h:6,
                 from /usr/src/linux/include/linux/interrupt.h:11,
                 from /usr/src/linux/include/asm/highmem.h:24,
                 from /usr/src/linux/include/linux/highmem.h:12,
                 from /usr/src/linux/include/linux/skbuff.h:27,
                 from /usr/src/linux/include/linux/if_ether.h:107,
                 from /usr/src/linux/include/linux/netdevice.h:29,
                 from /usr/src/linux/include/net/sock.h:48,
                 from /usr/src/linux/include/linux/udp.h:40,
                 from ipt_saru.c:35:
/usr/src/linux/include/linux/irq.h:72: error: `NR_IRQS' undeclared here (not
in a function)
In file included from /usr/src/linux/include/linux/irq.h:74,
                 from /usr/src/linux/include/asm/hardirq.h:6,
                 from /usr/src/linux/include/linux/hardirq.h:6,
                 from /usr/src/linux/include/linux/interrupt.h:11,
                 from /usr/src/linux/include/asm/highmem.h:24,
                 from /usr/src/linux/include/linux/highmem.h:12,
                 from /usr/src/linux/include/linux/skbuff.h:27,
                 from /usr/src/linux/include/linux/if_ether.h:107,
                 from /usr/src/linux/include/linux/netdevice.h:29,
                 from /usr/src/linux/include/net/sock.h:48,
                 from /usr/src/linux/include/linux/udp.h:40,
                 from ipt_saru.c:35:
/usr/src/linux/include/asm/hw_irq.h:28: error: `NR_IRQ_VECTORS' undeclared
here (not in a function)
/usr/src/linux/include/asm/hw_irq.h:32: error: `NR_IRQS' undeclared here
(not in a function)
In file included from /usr/src/linux/include/asm/hardirq.h:6,
                 from /usr/src/linux/include/linux/hardirq.h:6,
                 from /usr/src/linux/include/linux/interrupt.h:11,
                 from /usr/src/linux/include/asm/highmem.h:24,
                 from /usr/src/linux/include/linux/highmem.h:12,
                 from /usr/src/linux/include/linux/skbuff.h:27,
                 from /usr/src/linux/include/linux/if_ether.h:107,
                 from /usr/src/linux/include/linux/netdevice.h:29,
                 from /usr/src/linux/include/net/sock.h:48,
                 from /usr/src/linux/include/linux/udp.h:40,
                 from ipt_saru.c:35:
/usr/src/linux/include/linux/irq.h:79: error: `NR_IRQS' undeclared here (not
in a function)
ipt_saru.c: In function `block_map_list_update':
ipt_saru.c:187: error: `MOD_INC_USE_COUNT' undeclared (first use in this
function)
ipt_saru.c:187: error: (Each undeclared identifier is reported only once
ipt_saru.c:187: error: for each function it appears in.)
ipt_saru.c: In function `block_map_list_zero_saru_refcount_and_map':
ipt_saru.c:228: error: `MOD_DEC_USE_COUNT' undeclared (first use in this
function)
ipt_saru.c: In function `block_map_list_delete':
ipt_saru.c:294: error: `MOD_DEC_USE_COUNT' undeclared (first use in this
function)
ipt_saru.c: In function `saru_show_procfs':
ipt_saru.c:558: error: `MOD_INC_USE_COUNT' undeclared (first use in this
function)
ipt_saru.c:626: error: `MOD_DEC_USE_COUNT' undeclared (first use in this
function)
ipt_saru.c: At top level:
ipt_saru.c:638: warning: initialization makes integer from pointer without a
cast
ipt_saru.c:638: error: initializer element is not computable at load time
ipt_saru.c:638: error: (near initialization for `saru_match.revision')
ipt_saru.c:638: warning: initialization from incompatible pointer type
ipt_saru.c:638: warning: initialization from incompatible pointer type
ipt_saru.c:639: warning: initialization from incompatible pointer type
make[3]: *** [ipt_saru.o] Error 1
make[3]: Leaving directory `/usr/src/saru-0.0.1/iptables/kernel'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/saru-0.0.1/iptables'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/saru-0.0.1'
make: *** [all-recursive-am] Error 2


<Prev in Thread] Current Thread [Next in Thread>