Saturday, September 16, 2017

Re: Port bulk with

Karel Gardas:

> I think it should be just enough if you remove this problematic hunk:

Building a release fails.
I should not be the one discovering this when you are asking for a ports
build.

cc -o rdsetroot /usr/src/distrib/amd64/ramdisk_cd/../../common/elfrdsetroot.c
/usr/src/distrib/amd64/ramdisk_cd/../../common/elf32.c /usr/src/distrib/amd64/ramdisk_cd/../../common/elf64.c
In file included from /usr/src/distrib/amd64/ramdisk_cd/../../common/elfrdsetroot.c:48:
/usr/src/distrib/amd64/ramdisk_cd/../../common/elfrdsetroot.h:2:35: warning:
declaration of 'struct elfhdr' will not be visible outside of this
function [-Wvisibility]
void (*locate_image)(int, struct elfhdr *, char *, long *, long *,
^
/usr/src/distrib/amd64/ramdisk_cd/../../common/elfrdsetroot.c:124:28: error:
invalid application of 'sizeof' to an incomplete type 'struct elfhdr'
n = read(fd, &head, sizeof(head));
^~~~~~

--
Christian "naddy" Weisgerber naddy@mips.inka.de

No comments:

Post a Comment