dear Alan Robertson,

Thank you very much for fast the reply and sorry for my late one.

After following your suggestion by adding --disable-fatal-warnings ,
the source can be compiled.

FYI :
my configure command is :
**./env \
CFLAGS="-I/opt/include -Wl,--rpath=/opt/lib" \
LDFLAGS="-L/opt/lib"      \
./configure --prefix=/opt \
--enable-largefile        \
--enable-pretty           \
--enable-thread-safe      \
--enable-mgmt             \
--enable-lrm --disable-fatal-warnings

all of the prerequisite library was compiled with --prefix=/opt

Once again, thank you for your help. :)


On 3/23/07, Alan Robertson <[EMAIL PROTECTED]> wrote:

Athrun Zara wrote:
> Dear Linux HA experts,
>
> I am trying to build Linux HA from scratch.
> but I have an error when compiling the package :
>
> Making all in libnet_util
> Compiling send_arp.c:
> [ERROR]
>  gcc -DHAVE_CONFIG_H -I. -I. -I../../linux-ha -I../../include
> -I../../include -I../../include -I../../linux-ha -I../../linux-ha
> -I../../libltdl -I../../libltdl -pthread
> -I/usr/include/glib-2.0-I/usr/lib/glib-
> 2.0/include -I/usr/include/libxml2 -I/opt/include -Wl,--rpath=/opt/lib
> -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 -DVAR_RUN_D=""
> -DVAR_LIB_D="" -DHA_D="" -DHALIB="/opt/lib/heartbeat" -I/opt/include
> -Wl,--rpath=/opt/lib -Wall -Wmissing-prototypes -Wmissing-declarations
> -Wstrict-prototypes -Wdeclaration-afIn file included from
> /opt/include/libnet.h:124,
>                   from send_arp.c:37:
>  /opt/include/./libnet/libnet-functions.h:1839: warning: function
> declaration isn't a prototype
>  /opt/include/./libnet/libnet-functions.h:1861: warning: function
> declaration isn't a prototype
>  /opt/include/./libnet/libnet-functions.h:1868: warning: function
> declaration isn't a prototype
>  /opt/include/./libnet/libnet-functions.h:1876: warning: function
> declaration isn't a prototype
>  /opt/include/./libnet/libnet-functions.h:1884: warning: function
> declaration isn't a prototype
> gmake[2]: *** [send_arp.o] Error 1
> gmake[1]: *** [all-recursive] Error 1
> make: *** [all-recursive] Error 1
>
> ----------------------------------------------------------
> Linux : Centos 4.3 with recompiled kernel 2.6.19.1
> Linux HA : ver 2.0.8
> LibNet : ver 1.1.2.1
>
> Both LinuxHA and Libnet are configured with --prefix=/opt

void libnet_cq_destroy();

It ought to have a (void) instead of the ().

You can either patch those ()'s into (void)'s or you can configure
heartbeat with --disable-fatal-warnings.

Hmmm... I'm not sure why we don't get that error (?).  Obviously you're
doing something differently ;-)  I don't think the CentOS people got
that error.


--
    Alan Robertson <[EMAIL PROTECTED]>

"Openness is the foundation and preservative of friendship...  Let me
claim from you at all times your undisguised opinions." - William
Wilberforce
_______________________________________________
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

_______________________________________________
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to