pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/44111: net/nmap does not compile on Solaris 10
>Number: 44111
>Category: pkg
>Synopsis: net/nmap does not compile on Solaris 10
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Nov 18 12:25:02 +0000 2010
>Originator: Jörn Clausen
>Release:
>Organization:
University of Bielefeld
>Environment:
>Description:
Compiling net/nmap on Solaris 10 fails with
g++ -c -I../liblua -I../libdnet-stripped/include -I/usr/pkgsrc/20101105/include
-I/usr/pkgsrc/20101105/include -I/usr/pkgsrc/20101105/include
-I/usr/pkgsrc/20101105/gcc34/include -I/usr/include
-I/usr/pkgsrc/20101105/include -I/usr/pkgsrc/20101105/include -I../nbase
-I../nsock/include -DHAVE_CONFIG_H -D_FORTIFY_SOURCE=2 -O
-I/usr/pkgsrc/20101105/gcc34/include -I/usr/include
-I/usr/pkgsrc/20101105/include -Wall -fno-strict-aliasing netutil.cc -o
netutil.o
netutil.cc: In function `interface_info* getinterfaces_siocgifconf(int*, char*,
size_t)':
netutil.cc:1064: error: `SIOCGIFCONF' was not declared in this scope
netutil.cc:1064: warning: unused variable 'SIOCGIFCONF'
netutil.cc:1129: error: `SIOCGIFNETMASK' was not declared in this scope
netutil.cc:1147: error: `SIOCGIFFLAGS' was not declared in this scope
netutil.cc:1129: warning: unused variable 'SIOCGIFNETMASK'
netutil.cc:1147: warning: unused variable 'SIOCGIFFLAGS'
gmake[1]: *** [netutil.o] Error 1
>How-To-Repeat:
>Fix:
This is copied from tcpip.h in the same package:
--- libnetutil/netutil.cc.orig 2010-07-14 05:43:19.000000000 +0000
+++ libnetutil/netutil.cc
@@ -128,6 +128,10 @@
#define NETINET_IP_H
#endif
+#if HAVE_SYS_SOCKIO_H
+#include <sys/sockio.h> /* SIOCGIFCONF for Solaris */
+#endif
+
#include "netutil.h"
#define NBASE_MAX_ERR_STR_LEN 1024 /* Max length of an error message */
The problem has been reported upstream.
Home |
Main Index |
Thread Index |
Old Index