Opened 5 years ago

Closed 5 years ago

#58815 closed defect (fixed)

unbound @1.9.2: fails to build in trace mode

Reported by: satraul (Satryaji Aulia) Owned by: neverpanic (Clemens Lang)
Priority: Normal Milestone:
Component: ports Version: 2.5.4
Keywords: tracemode Cc: neverpanic (Clemens Lang), nerdling (Jeremy Lavergne), MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Port: unbound

Description

I have expat installed in both my prefixes /opt/local/ and /opt/macports-test/. Installing unbound on /opt/macports-test/ with tracemode fails because it tries to access expat.h in /opt/local/

:info:configure Command failed:  cd "/opt/macports-test/var/macports/build/_Users_satraul_git_macports-ports_net_unbound/unbound/work/unbound-1.9.2" && ./configure --prefix=/opt/macports-test --with-pidfile=/opt/macports-test/var/run/unbound/unbound.pid --with-ssl=/opt/macports-test --with-rootkey-file=/opt/macports-test/etc/unbound/root.key 
:info:configure Exit code: 1
:error:configure Failed to configure unbound, consult /opt/macports-test/var/macports/build/_Users_satraul_git_macports-ports_net_unbound/unbound/work/unbound-1.9.2/config.log
:warn:configure The following existing files were hidden from the build system by trace mode:
:msg:configure   /opt/local/include/expat.h
:msg:configure   /opt/macports-test/bin/ar
:msg:configure   /opt/macports-test/bin/bison

Attachments (2)

main.log (90.0 KB) - added by satraul (Satryaji Aulia) 5 years ago.
config.log (299.9 KB) - added by satraul (Satryaji Aulia) 5 years ago.

Download all attachments as: .zip

Change History (6)

Changed 5 years ago by satraul (Satryaji Aulia)

Attachment: main.log added

comment:1 Changed 5 years ago by jmroot (Joshua Root)

Cc: nerdling added

The config.log may be helpful to see as well.

comment:2 Changed 5 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Cc: MarcusCalhoun-Lopez added

Changed 5 years ago by satraul (Satryaji Aulia)

Attachment: config.log added

comment:4 Changed 5 years ago by neverpanic (Clemens Lang)

Owner: set to neverpanic
Resolution: fixed
Status: newclosed

In e4a3accc807a08ffc588657e49f196bea0a4d8bc/macports-ports (master):

unbound: Fix build in non-default prefix

Unbound needs to be told where to look for libexpat, because it will
otherwise always attempt to use it from /opt/local.

Closes: #58815

Note: See TracTickets for help on using tickets.