[Linux-HA] Problems building 2.0.2 on FreeBSD 5.4
Matthew Soffen
msoffen at iso-ne.com
Thu Oct 20 11:40:36 MDT 2005
I wouldn't do that.
I would explicitly type gmake instead of make.
If you want to use ports, ports require BSD make to function properly.
Matt
On Thu, 2005-10-20 at 15:19 +0200, emfau at t-online.de wrote:
> >>Same thing, so I removed libuuid from lib/lrm/Makefile as well and restarted
> >>'make'. Now it runs until
> >>
> >> Making all in ldirectord
> >> Making all in logrotate.d
> >> Making all in init.d
> >> pod2man --section=8 > ldirectord.8
>
> pod2man --section=8 ldirectord > ldirectord.8
>
> > The problem here is that your 'make' command substitutes the "$<"
> > macro in the line
>
> Sorry for the noise - my fault. I did acutally install gmake but forgot to make
> sure that it is really called in favour of the stock BSD make. After symlinking
> make to gmake the build worked fine until
>
> gmake[2]: Entering directory
> `/var/tmp/work/heartbeat-2.0.2/heartbeat/libnet_util'
> if 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 -I/usr/local/include -DLIBNET_BSDISH_OS
> -DLIBNET_BSD_BYTE_SWAP -DHAVE_SOCKADDR_SA_LEN -DLIBNET_LIL_ENDIAN
> -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include
> -g -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes
> -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='"/var/opt/ha/lib/heartbeat"' -DLIBNET_BSDISH_OS
> -DLIBNET_BSD_BYTE_SWAP -DHAVE_SOCKADDR_SA_LEN -DLIBNET_LIL_ENDIAN
> -g -O2 -Wall -Wmissing-prototypes -Wmissing-declarations
> -Wstrict-prototypes -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 send_arp.c; \
> then mv -f ".deps/send_arp.Tpo" ".deps/send_arp.Po";
> else rm -f ".deps/send_arp.Tpo"; exit 1; fi
>
> In file included from /usr/local/include/libnet.h:81,
> from send_arp.c:37:
> /usr/local/include/./libnet/libnet-functions.h:85:
> warning: function declaration isn't a prototype
> send_arp.c: In function `get_hw_addr':
> send_arp.c:283:
> warning: format not a string literal, argument types not checked
> send_arp.c:289:
> warning: format not a string literal, argument types not checked
>
> gmake[2]: *** [send_arp.o] Error 1
> gmake[2]: Leaving directory
> `/var/tmp/work/heartbeat-2.0.2/heartbeat/libnet_util'
> gmake[1]: *** [all-recursive] Error 1
> gmake[1]: Leaving directory `/var/tmp/work/heartbeat-2.0.2/heartbeat'
> make: *** [all-recursive] Error 1
>
> I would retry later without -Werror as this seems to a only a warning.
> I'm not sure about the whole autoconf/automake thing - what's the best way to
> remove -Werror from all Makefiles? Manually?
>
> > Does your 'rm' command support "-r" option?
>
> Even though the problem seems to be simply not using gmake - yes, the -r switch
> is available on FreeBSD. (just in case it ever happens to be of interest to you
> - view FreeBSD manpages online at http://www.freebsd.org/cgi/man.cgi)
>
> Thanks,
> Michael
> _______________________________________________
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.community.tummy.com/pipermail/linux-ha/attachments/20051020/f0c0daa3/attachment.htm
More information about the Linux-HA
mailing list