buildworld fails on FreeBSD 7.x for HEAD from 19.04.2012

From: Jan Sieka <jps_at_semihalf.com>
Date: Fri, 20 Apr 2012 14:16:04 +0200
Hello!

I can't build world from recent sources (HEAD as of 2012.04.19 11:06:48 UTC) on 
a machine running FreeBSD 7.3. I know it's EoLed, but I have found information 
in getline(3) manual that this function first appeared in FreeBSD 8, so I 
presume that the problem is present also for FreeBSD 7.4 (which is still before 
EoL). I have confirmed that problem doesn't exists for FreeBSD 9.0.

Here's excerpt from build log:

===> lib/libmagic (obj,build-tools)
cc -O2 -pipe -DMAGIC='"/usr/share/misc/magic"' -DHAVE_CONFIG_H
-I/usr/src/current/lib/libmagic
-I/usr/src/current/lib/libmagic/../../contrib/file
-std=gnu99
-I/usr/obj/usr/src/current/tmp/legacy/usr/include
-DCOMPILE_ONLY
-L/usr/obj/usr/src/current/tmp/legacy/usr/lib
-o mkmagic
/usr/src/current/lib/libmagic/../../contrib/file/apprentice.c
/usr/src/current/lib/libmagic/../../contrib/file/funcs.c
/usr/src/current/lib/libmagic/../../contrib/file/magic.c
/usr/src/current/lib/libmagic/../../contrib/file/print.c
/usr/src/current/lib/libmagic/../../contrib/file/apprentice.c:
In function 'load_1':
/usr/src/current/lib/libmagic/../../contrib/file/apprentice.c:701:
warning: implicit declaration of function 'getline'
/var/tmp//cc7NqjVu.o(.text+0x699): In function `load_1':
: undefined reference to `getline'
*** Error code 1

Stop in /usr/src/current/lib/libmagic.
*** Error code 1

Stop in /usr/src/current.
*** Error code 1

Stop in /usr/src/current.
*** Error code 1

Stop in /usr/src/current.


Regards,

Jan Sieka
Received on Fri Apr 20 2012 - 10:16:14 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:26 UTC