[Linux-HA] Problems building 2.0.2 on FreeBSD 5.4
emfau at t-online.de
emfau at t-online.de
Thu Oct 20 12:22:26 MDT 2005
Hi Matt,
> 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
Thanks for pointing out this issue - but I had to wade through a bunch of the
make files out of the ports tree and am well aware of this problem.
This symlink was only for the first test as I wasn't sure if calling gmake
initially would guarantee that all subsequent steps also use gmake - now I know
better.
Thanks,
Michael
> 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
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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