ports/170107: net/olsrd fails to build with -DWITH_MULTI_IF
William Waites
wwaites at tardis.ed.ac.uk
Tue Jul 24 10:40:10 UTC 2012
>Number: 170107
>Category: ports
>Synopsis: net/olsrd fails to build with -DWITH_MULTI_IF
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Tue Jul 24 10:40:10 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: William Waites
>Release: FreeBSD 8.2-RELEASE amd64
>Organization:
University of Edinburgh
>Environment:
System: FreeBSD gallows.inf.ed.ac.uk 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Thu Feb 17 02:41:51 UTC 2011 root at mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64
>Description:
net/olsrd fails to build with -DWITH_MULTI_IF because the appropriate
CFLAGS and LDFLAGS for finding the libnet library do not make it down
through the build process.
>How-To-Repeat:
cd /usr/ports/net/olsrd && make -DWITH_MULTI_IF
>Fix:
This might not be the best ports-idiomatic way to solve the problem,
but it does work.
diff -ruN net/olsrd.orig/Makefile net/olsrd/Makefile
--- net/olsrd.orig/Makefile 2012-07-24 11:33:34.000000000 +0100
+++ net/olsrd/Makefile 2012-07-24 11:32:46.000000000 +0100
@@ -34,6 +34,8 @@
.if defined(WITH_MULTI_IF)
MAKE_ARGS+= LIBNET=1
+CFLAGS+= -I${PREFIX}/include/libnet11
+LDFLAGS+= -L${PREFIX}/lib/libnet11
.endif
.if defined(PREFIX)
MAKE_ARGS+= PREFIX=${PREFIX}
@@ -45,6 +47,8 @@
CFLAGS+= -fPIC
.endif
+MAKE_ARGS+= CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
+
.if !defined(WITH_MULTI_IF)
pre-everything::
@${ECHO_MSG} ""
--
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list