[Linux-HA] Problem compiling heartbeat 2.0.8
Andrew Beekhof
beekhof at gmail.com
Sat Feb 10 02:48:24 MST 2007
On 2/9/07, Louis Guillaume <lguillaume at berklee.edu> wrote:
> Doug Knight wrote:
> > Not sure on this one, but I did have a bit of trouble finding the right
> > version of libnet. Apparently there is something else out there also
> > called libnet that is for game development. The one I used I built from
> > a tar file, and was tagged as version 1.1.0. I can send it as an
> > attachment directly to you if you like. I got it from:
> >
>
>
> Ok - I figured out the problem with libnet. It has function prototypes
> that look like this...
>
> void
> libnet_cq_destroy();
>
> ... I guess that gcc doesn't care for this with `-Wstrict-prototypes'.
> So we can use `-Wno-strict-prototypes' and get past this. But now I have
> this problem...
>
>
> gcc -O2 -fno-unit-at-a-time -D_SVID_SOURCE -I/usr/pkg/include
> -I/usr/include -I/usr/pkg/include/python2.4 -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 -o ccdv ../tools/ccdv.c
> ../tools/ccdv.c: In function `SlurpProgress':
> ../tools/ccdv.c:118: warning: implicit declaration of function `snprintf'
um, thats a pretty standard C-function... normally thats in stdio.h
what are you building this on again?
what does "man snprintf" say?
> ../tools/ccdv.c: In function `main':
> ../tools/ccdv.c:283: warning: implicit declaration of function `strcasecmp'
> ../tools/ccdv.c:287: warning: implicit declaration of function `strncasecmp'
> make: *** [ccdv] Error 1
> _______________________________________________
> Linux-HA mailing list
> Linux-HA at lists.linux-ha.org
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
>
More information about the Linux-HA
mailing list