Bug 202082 - emulators/dynamips-community: port fails to build on recent stable/10 (amd64)
Summary: emulators/dynamips-community: port fails to build on recent stable/10 (amd64)
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Mathieu Arnold
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-04 17:22 UTC by michiel
Modified: 2015-10-21 14:18 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (pavelivolkov)


Attachments
portmaster output (9.40 KB, text/plain)
2015-08-04 17:22 UTC, michiel
no flags Details
Add directory for the "libelf" library installed from ports. (516 bytes, patch)
2015-08-08 13:26 UTC, Pavel Volkov
pavelivolkov: maintainer-approval+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description michiel 2015-08-04 17:22:52 UTC
Created attachment 159543 [details]
portmaster output

Recently port emulators/dynamips-community was upgraded to 0.2.15.
This port does not appear to build on my system (stable/10 amd64)

The error message displayed is

load_elf_image: elf_begin: Request error: invalid ELF_C_* argument

uname -a

FreeBSD charlemagne.a43.boland.org 10.2-PRERELEASE FreeBSD 10.2-PRERELEASE #0 r286284: Tue Aug  4 18:15:35 CEST 2015     root@charlemagne.a43.boland.org:/usr/obj/usr/src/sys/CHARLEMAGNE  amd64
Comment 1 Pavel Volkov 2015-08-08 13:26:24 UTC
Created attachment 159667 [details]
Add directory for the "libelf" library installed from ports.
Comment 2 Pavel Volkov 2015-08-08 13:48:24 UTC
Hello.

If you installed the 'devel/libelf' port - you have 2 the library.
With a different header file:
- The system: '/usr/src/lib/libelf'.
  Header file '/usr/include/libelf.h' having the enumeration:
  typedef enum {
        ELF_C_NULL = 0,
        ELF_C_CLR,
        ELF_C_FDDONE,
        ELF_C_FDREAD,
        ELF_C_RDWR,
        ELF_C_READ,
        ELF_C_SET,
        ELF_C_WRITE,
        ELF_C_NUM
  } Elf_Cmd;
  
- And, installed from the port: '/usr/local/include/libelf/libelf.h'.
  With enumeration:
  typedef enum {
    ELF_C_NULL = 0,     /* must be first, 0 */
    ELF_C_READ,
    ELF_C_WRITE,
    ELF_C_CLR,
    ELF_C_SET,
    ELF_C_FDDONE,
    ELF_C_FDREAD,
    ELF_C_RDWR,
    ELF_C_NUM           /* must be last */
  } Elf_Cmd;

Having different order of the elements.

In cmake used by header from the system library,
and library file from the port.

Thank you.
Comment 3 michiel 2015-08-14 23:49:57 UTC
I confirm that this patch makes the port build again.
Comment 4 commit-hook freebsd_committer freebsd_triage 2015-10-21 14:18:13 UTC
A commit references this bug:

Author: mat
Date: Wed Oct 21 14:17:07 UTC 2015
New revision: 399917
URL: https://svnweb.freebsd.org/changeset/ports/399917

Log:
  Fix on recent stable/10.

  PR:		202082
  Submitted by:	maintainer
  Sponsored by:	Absolight

Changes:
  head/emulators/dynamips-community/Makefile