On 2017-08-09, Martin Pieuchot <m...@openbsd.org> wrote:

> So here's a first step, introducing /usr/include/elf.h.  Could some of
> you run a bulk with it and report the possible breakages?

This breaks devel/libelf, which indirectly takes out about a quarter
of the tree.

--------------------
>>> Building on amd64-3 under devel/libelf
         BDEPENDS = [devel/metaauto;devel/autoconf/2.13]
         DIST = [devel/libelf:libelf-0.8.13.tar.gz]
         FULLPKGNAME = libelf-0.8.13p3
(Junk lock obtained for amd64-3 at 1502321695)
>>> Running depends in devel/libelf at 1502321695
/usr/sbin/pkg_add -aI -Dunsigned -Drepair autoconf-2.13p4 metaauto-1.0p1
was: /usr/sbin/pkg_add -aI -Dunsigned -Drepair autoconf-2.13p4 metaauto-1.0p1
/usr/sbin/pkg_add -aI -Dunsigned -Drepair autoconf-2.13p4 metaauto-1.0p1
>>> Running show-prepare-results in devel/libelf at 1502321695
===> devel/libelf
===> libelf-0.8.13p3 depends on: metaauto-* -> metaauto-1.0p1
===> libelf-0.8.13p3 depends on: autoconf-2.13 -> autoconf-2.13p4
autoconf-2.13p4
metaauto-1.0p1
(Junk lock released for amd64-3 at 1502321696)
distfiles size=148529
>>> Running build in devel/libelf at 1502321696
===> devel/libelf
===>  Checking files for libelf-0.8.13p3
`/usr/ports/distfiles/libelf-0.8.13.tar.gz' is up to date.
>> (SHA256) libelf-0.8.13.tar.gz: OK
===>  Extracting for libelf-0.8.13p3
===>  Patching for libelf-0.8.13p3
===>   Applying OpenBSD patch patch-aclocal_m4
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$OpenBSD: patch-aclocal_m4,v 1.4 2012/05/19 08:24:50 sthen Exp $
|--- aclocal.m4.orig    Fri May 23 04:17:56 2008
|+++ aclocal.m4 Fri May 18 22:53:37 2012
--------------------------
Patching file aclocal.m4 using Plan A...
Hunk #1 succeeded at 288.
done
===>  Compiler link: clang -> /usr/bin/clang
===>  Compiler link: clang++ -> /usr/bin/clang++
===>  Compiler link: cc -> /usr/bin/cc
===>  Compiler link: c++ -> /usr/bin/c++
Running autoconf-2.13 in /usr/obj/ports/libelf-0.8.13/libelf-0.8.13
Running autoheader-2.13 in /usr/obj/ports/libelf-0.8.13/libelf-0.8.13
===>  Configuring for libelf-0.8.13p3
Using /usr/obj/ports/libelf-0.8.13/config.site (generated)
loading site script /usr/obj/ports/libelf-0.8.13/config.site
creating cache ./config.cache
checking whether make sets ${MAKE}... (cached) yes
checking for gcc... cc
checking whether the C compiler (cc -O2 -pipe ) works... yes
checking whether the C compiler (cc -O2 -pipe ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether cc accepts -g... (cached) yes
checking how to run the C preprocessor... cc -E
checking for a BSD compatible install... 
/usr/obj/ports/libelf-0.8.13/bin/install -c 
checking for ranlib... ranlib
checking whether ln -s works... yes
checking for ANSI C header files... (cached) yes
checking for unistd.h... (cached) yes
checking for stdint.h... (cached) yes
checking for fcntl.h... (cached) yes
checking for elf.h... yes
checking for sys/elf.h... no
checking for link.h... yes
checking for sys/link.h... no
checking if cc can compile elf.h... yes
checking for ar.h... yes
checking for libelf.h... no
checking for nlist.h... (cached) yes
checking for gelf.h... no
checking whether to install <libelf.h>, <nlist.h> and <gelf.h>... no
checking for working const... (cached) yes
checking for off_t... (cached) yes
checking for size_t... (cached) yes
checking size of short... (cached) 2
checking size of int... 4
checking size of long... 8
checking size of long long... (cached) 8
checking size of __int64... 0
checking for struct Elf32_Dyn... yes
checking for struct nlist in elf.h... no
checking for struct Elf64_Ehdr... yes
checking for Elf64_Addr... yes
checking for struct Elf64_Rel... yes
checking for Elf32_Verdef... no
checking for Elf64_Verdef... no
checking for SHT_SUNW_verdef... no
checking for SHT_GNU_verdef... no
checking for 64-bit integer... long
checking for 32-bit integer... int
checking for 16-bit integer... short
checking for unistd.h... (cached) yes
checking for getpagesize... (cached) yes
checking for working mmap... (cached) yes
checking for ftruncate... (cached) yes
checking for memcmp... (cached) yes
checking for memcpy... (cached) yes
checking for memmove... (cached) yes
checking for memset... (cached) yes
checking whether overlapping arrays are copied correctly... yes
checking the coffee machine... empty - operator may not work as expected
checking whether 64-bit ELF support is sufficient... yes
checking whether to include 64-bit support... yes
checking whether versioning support is sufficient... no
checking whether to include versioning support... no
checking whether NLS is requested... no
checking for gettext in -lintl... no
checking host system type... x86_64-unknown-openbsd6.1
checking whether to build a shared library... yes
checking whether GNU naming conventions are requested... no
checking for ld... /usr/bin/ld
updating cache ./config.cache
creating ./config.status
creating Makefile
creating lib/Makefile
creating po/Makefile
creating libelf.pc
creating config.h
creating lib/sys_elf.h
===>  Building for libelf-0.8.13p3
making all in lib
if test -n "-fPIC -DPIC"; then  cc -c -DHAVE_CONFIG_H -I.. -I. -I.  -O2 -pipe  
-fPIC -DPIC gelftrans.c && mv -f gelftrans.o gelftrans.os;  else true; fi
if test -n "-fPIC -DPIC"; then  cc -c -DHAVE_CONFIG_H -I.. -I. -I.  -O2 -pipe  
-fPIC -DPIC gelfshdr.c && mv -f gelfshdr.o gelfshdr.os;  else true; fi
In file included from gelfshdr.cIn file included from :gelftrans.c:2020:
:
In file included from In file included from ./private.h./private.h::120120:
:
./libelf.h./libelf.h::202202::2222::  errorerror: : conflicting types for 
'elf_hash'conflicting types for 'elf_hash'

extern unsigned long elf_hash __P((const unsigned char *__name));
                     ^
extern unsigned long elf_hash __P((const unsigned char *__name));
                     ^
/usr/include/sys/exec_elf.h:532:/usr/include/sys/exec_elf.h14::532 :note14: 
:previous declaration is here 
note: previous declaration is here
unsigned int elf_hash(const unsigned char *name);unsigned int elf_hash(const 
unsigned char *name);

             ^             ^

1 error generated.
1 error generated.
*** Error 1 in target 'gelfshdr.o'
*** Error 1 in lib (Makefile:85 'gelftrans.o')
*** Error 1 (Makefile:85 'gelfshdr.o')
*** Error 1 in /usr/obj/ports/libelf-0.8.13/libelf-0.8.13 (Makefile:78 
'all-recursive')
*** Error 2 in devel/libelf (/usr/ports/infrastructure/mk/bsd.port.mk:2705 
'/usr/obj/ports/libelf-0.8.13/.build_done')
*** Error 1 in devel/libelf (/usr/ports/infrastructure/mk/bsd.port.mk:2408 
'build')
===> Exiting devel/libelf with an error
*** Error 1 in /usr/ports (infrastructure/mk/bsd.port.subdir.mk:147 'build')
Error: job failed with 256 on amd64-3

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

Reply via email to