Hello to all,

 I am trying to compile latest heartbeat 2.1.3 with libnet 1.1.2.1
 (also compiled from sources) on RH 5.1 on 32bit platform.

 ./configure --prefix=/usr/local/hb LDFLAGS="-L/usr/local/libnet/lib"
 CPPFLAGS="-I/usr/local/libnet/include"

 Unfortunately, I am constantly getting errors concerning
 libnet-functions.h header file. I found somewhere that this warning
 can be suppressed by removing -Werror from Makefile after initial
 "configure" but it doesn't seem to work. My knowledge re: linking and
 compiling is limited and I am not able on my own to establish whether
 these errors are major enough to be able to skip them and if there is
 still something wrong with my setup. Any hints will be much
 appreciated.

 Regards
 Simon

 if gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I. -I../../include
 -I../../include -I../../include -I../../include -I../../linux-ha
 -I../../linux-ha -I../../libltdl -I../../libltdl
 -I/usr/local/libnet/include -I/usr/include/glib-2.0
 -I/usr/lib/glib-2.0/include   -I/usr/include/libxml2 -g -O2  -Wall
 -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes
 -Wdeclaration-after-statement -Wpointer-arith -Wwrite-strings
 -Wcast-qual -Wcast-align -Wbad-function-cast -Winline
 -Wmissing-format-attribute -Wformat=2 -Wformat-security
 -Wformat-nonliteral -Wno-long-long -Wno-strict-aliasing -Werror
 -ggdb3 -funsigned-char  -g -O2  -Wall -Wmissing-prototypes
 -Wmissing-declarations -Wstrict-prototypes
 -Wdeclaration-after-statement -Wpointer-arith -Wwrite-strings
 -Wcast-qual -Wcast-align -Wbad-function-cast -Winline
 -Wmissing-format-attribute -Wformat=2 -Wformat-security
 -Wformat-nonliteral -Wno-long-long -Wno-strict-aliasing -Werror
 -ggdb3 -funsigned-char -MT send_arp.o -MD -MP -MF ".deps/send_arp.Tpo"
 \
          -c -o send_arp.o `test -f 'send_arp.c' || echo './'`send_arp.c; \
        then mv -f ".deps/send_arp.Tpo" ".deps/send_arp.Po"; \
        else rm -f ".deps/send_arp.Tpo"; exit 1; \
        fi
 cc1: warnings being treated as errors
 In file included from /usr/local/libnet/include/libnet.h:124,
                 from send_arp.c:33:
 /usr/local/libnet/include/./libnet/libnet-functions.h:1840: warning:
 function declaration isnât a prototype
 /usr/local/libnet/include/./libnet/libnet-functions.h:1862: warning:
 function declaration isnât a prototype
 /usr/local/libnet/include/./libnet/libnet-functions.h:1870: warning:
 function declaration isnât a prototype
 /usr/local/libnet/include/./libnet/libnet-functions.h:1878: warning:
 function declaration isnât a prototype
 /usr/local/libnet/include/./libnet/libnet-functions.h:1886: warning:
 function declaration isnât a prototype
 gmake[2]: *** [send_arp.o] Error 1
 gmake[2]: Leaving directory `/home/simon/heartbeat-2.1.3/heartbeat/libnet_util'
 gmake[1]: *** [all-recursive] Error 1
 gmake[1]: Leaving directory `/home/simon/heartbeat-2.1.3/heartbeat'
 make: *** [all-recursive] Error 1
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to