[syslinux] OpenBSD TFTPD remap rules
H. Peter Anvin
hpa at zytor.com
Thu Jan 8 10:12:27 PST 2009
Hans-Guenther Maerkle wrote:
>
> Hi!
>
> I've dowloaded TFTPD-HPA 0.49 to /tmp
> I've installed gnu make 3.81 via pkg_add
>
> Done ./configure - works fine
> gmake to compile - reports an error:
>
> echo \#define VERSION \"tftp-hpa `cat version`\" > version.h
> gmake -C lib
> gmake[1]: Entering directory `/tmp/tftp-hpa-0.49/lib'
> gmake[1]: Nothing to be done for `all'.
> gmake[1]: Leaving directory `/tmp/tftp-hpa-0.49/lib'
> gmake -C common
> gmake[1]: Entering directory `/tmp/tftp-hpa-0.49/common'
> gcc -g -O2 -W -Wall -Wpointer-arith -Wbad-function-cast
> -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations
> -Wnested-externs -Winline -Wwrite-strings -Wundef -Wshadow
> -Wsign-compare -pipe -fno-strict-aliasing -I/tmp/tftp-hpa-0.49 -c
> tftpsubs.c
> tftpsubs.c: In function `set_sock_addr':
> tftpsubs.c:311: error: `AI_ADDRCONFIG' undeclared (first use in this
> function)
> tftpsubs.c:311: error: (Each undeclared identifier is reported only once
> tftpsubs.c:311: error: for each function it appears in.)
> gmake[1]: *** [tftpsubs.o] Error 1
> gmake[1]: Leaving directory `/tmp/tftp-hpa-0.49/common'
> gmake: *** [common.build] Error 2
>
> The error attemps regardless of the build-in OpenBSD TFTP-Daemon is
> running or not.
>
Ah yes... there is a fix for that in git.
You can just add -DAI_ADDRCONFIG=0 to the Makefile.
-hpa
--
H. Peter Anvin, Intel Open Source Technology Center
I work for Intel. I don't speak on their behalf.
More information about the Syslinux
mailing list