Bug 180227 - net/libnet/ doesn't build with any options checked
Summary: net/libnet/ doesn't build with any options checked
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Dirk Meyer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-03 09:50 UTC by kuhn.frederic
Modified: 2013-07-07 10:47 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kuhn.frederic 2013-07-03 09:50:00 UTC
This port doesn't build when any of the option is checked. The kernel is build with PF support and here is the output when I tryied to build it with PF support :
===>  Building for libnet11-1.1.6_1,1
Making all in include
make  all-recursive
Making all in libnet
Making all in win32
Making all in src
/bin/sh /usr/local/bin/libtool --tag=CC    --mode=compile cc -DHAVE_CONFIG_H -I. -I../include -I../include     -O2 -pipe -fPIC -fno-strict-aliasing -std=gnu89 -c -o libnet_link_pf.lo libnet_link_pf.c
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I../include -I../include -O2 -pipe -fPIC -fno-strict-aliasing -std=gnu89 -c libnet_link_pf.c  -fPIC -DPIC -o .libs/libnet_link_pf.o
libnet_link_pf.c:36:35: error: ../include/low_libnet.h: No such file or directory
libnet_link_pf.c:44: error: expected ')' before '*' token
libnet_link_pf.c:62:23: warning: unknown escape sequence '\y'
libnet_link_pf.c: In function 'libnet_close_link_interface':
libnet_link_pf.c:137: error: dereferencing pointer to incomplete type
libnet_link_pf.c: At top level:
libnet_link_pf.c:151: error: expected ';', ',' or ')' before '*' token
*** [libnet_link_pf.lo] Error code 1

Stop in /usr/ports/net/libnet/work/libnet-1.1.6/src.
*** [all-recursive] Error code 1

Stop in /usr/ports/net/libnet/work/libnet-1.1.6.
*** [do-build] Error code 1

Stop in /usr/ports/net/libnet.
*** [install] Error code 1

Stop in /usr/ports/net/libnet.

Fix: 

Uncheck all the options and it builds.
How-To-Repeat: Check one of the options and try to build it.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2013-07-03 14:10:07 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-ports-bugs

ports PR.
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2013-07-03 14:10:32 UTC
Responsible Changed
From-To: freebsd-ports-bugs->dinoex

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 3 dfilter service freebsd_committer freebsd_triage 2013-07-07 07:10:01 UTC
Author: dinoex
Date: Sun Jul  7 06:09:53 2013
New Revision: 322418
URL: http://svnweb.freebsd.org/changeset/ports/322418

Log:
  - remove broken options SNOOP and PF
  PR:		180227
  
  - remove PKGNAMESUFFIX

Modified:
  head/net/libnet/Makefile

Modified: head/net/libnet/Makefile
==============================================================================
--- head/net/libnet/Makefile	Sun Jul  7 05:46:09 2013	(r322417)
+++ head/net/libnet/Makefile	Sun Jul  7 06:09:53 2013	(r322418)
@@ -8,7 +8,6 @@ PORTEPOCH=	1
 CATEGORIES=	net
 MASTER_SITES=	SF/libnet-dev
 MASTER_SITE_SUBDIR=	distfiles
-PKGNAMESUFFIX=	11${PKGNAMESUFFIX2}
 
 MAINTAINER=	dinoex@FreeBSD.org
 COMMENT=	A C library for creating IP packets
@@ -35,26 +34,14 @@ DOCS=		README doc/CHANGELOG doc/CONTRIB 
 		doc/RAWSOCKET_NON_SEQUITUR doc/TODO
 EXAMPLES=	sample/*.c
 
-OPTIONS_DEFINE=	EXAMPLES DOCS
-OPTIONS_RADIO=	LINK
-OPTIONS_RADIO_LINK=	SNOOP PF BPF
+OPTIONS_DEFINE=	EXAMPLES DOCS BPF
 OPTIONS_DEFAULT=	BPF
-SNOOP_DESC=	link layer (snoop.h)
 PF_DESC=	link layer pf
-BPF_DESC=	link layer bpf
 
 .include <bsd.port.options.mk>
 
 LIBNET_LINK=	none
 
-.if ${PORT_OPTIONS:MSNOOP}
-LIBNET_LINK=	snoop
-.endif
-
-.if ${PORT_OPTIONS:MPF}
-LIBNET_LINK=	pf
-.endif
-
 .if ${PORT_OPTIONS:MBPF}
 LIBNET_LINK=	bpf
 .endif
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 4 Dirk Meyer freebsd_committer freebsd_triage 2013-07-07 10:47:04 UTC
State Changed
From-To: open->closed

the bpf option is working.