NetBSD Problem Report #33662
From www@NetBSD.org Wed Jun 7 14:50:31 2006
Return-Path: <www@NetBSD.org>
Received: by narn.NetBSD.org (Postfix, from userid 31301)
id 2449963BA6E; Wed, 7 Jun 2006 14:50:31 +0000 (UTC)
Message-Id: <20060607145031.2449963BA6E@narn.NetBSD.org>
Date: Wed, 7 Jun 2006 14:50:31 +0000 (UTC)
From: jdbaker@mylinuxisp.com
Reply-To: jdbaker@mylinuxisp.com
To: gnats-bugs@NetBSD.org
Subject: net/net-snmp build failures on MacOS X 10.3.9
X-Send-Pr-Version: www-1.0
>Number: 33662
>Category: pkg
>Synopsis: net/net-snmp build failures on MacOS X 10.3.9
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: macos-pkg-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Jun 07 14:55:00 +0000 2006
>Closed-Date: Thu Apr 11 12:20:24 +0000 2013
>Last-Modified: Thu Apr 11 12:20:24 +0000 2013
>Originator: John D. Baker
>Release: MacOS X 10.3.9, pkgsrc-current
>Organization:
>Environment:
Darwin bondi.local 7.9.0 Darwin Kernel Version 7.9.0: Wed Mar 30 20:11:17 PST 2005; root:xnu/xnu-517.12.7.obj~1/RELEASE_PPC Power Macintosh powerpc
>Description:
Building net/net-snmp on MacOS X 10.3.9 fails as follows:
First:
[...]
gcc -pipe -I../include -I. -I../agent -I../agent/helpers -I../agent/mibgroup -I../snmplib -no-cpp-precomp -I/Volumes/NetBSD/tmp/pkgsrc/net/net-snmp/work/.buildlink/include -O2 -Ddarwin7 -c snmptrapd_auth.c -fno-common -DPIC -o .libs/snmptrapd_auth.o
In file included from snmptrapd_auth.c:10:
/usr/include/netinet/in.h:255: error: parse error before "in_addr_t"
/usr/include/netinet/in.h:312: error: parse error before "u_char"
/usr/include/netinet/in.h:314: error: parse error before "sin_port"
/usr/include/netinet/in.h:317: error: parse error before '}' token
/usr/include/netinet/in.h:329: error: field `ip_dst' has incomplete type
/usr/include/netinet/in.h:398: error: field `imr_multiaddr' has incomplete type
/usr/include/netinet/in.h:399: error: field `imr_interface' has incomplete type
In file included from /usr/include/netinet/in.h:518,
from snmptrapd_auth.c:10:
/usr/include/netinet6/in6.h:625: error: parse error before "inet6_rthdr_space"
/usr/include/netinet6/in6.h:637: error: parse error before "size_t"
/usr/include/netinet6/in6.h:639: error: parse error before "size_t"
/usr/include/netinet6/in6.h:640: error: parse error before "size_t"
/usr/include/netinet6/in6.h:641: error: parse error before "size_t"
/usr/include/netinet6/in6.h:644: error: parse error before "size_t"
/usr/include/netinet6/in6.h:646: error: parse error before "size_t"
/usr/include/netinet6/in6.h:647: error: parse error before "size_t"
/usr/include/netinet6/in6.h:648: error: parse error before "inet6_rth_space"
/usr/include/netinet/in.h:315: error: storage size of `sin_addr' isn't known
*** Error code 1
Stop.
bmake: stopped in /Volumes/NetBSD/tmp/pkgsrc/net/net-snmp/work/net-snmp-5.3.0.1/apps
[...]
After applying the first patch below, the build proceeds up until
the following:
[...]
gcc -pipe -I../include -I. -I../agent -I../agent/helpers -I../agent/mibgroup -I../snmplib -no-cpp-precomp -I/Volumes/NetBSD/tmp/pkgsrc/net/net-snmp/work/.buildlink/include -O2 -Ddarwin7 -c snmptrapd.c -o snmptrapd.o >/dev/null 2>&1
/bin/sh ../libtool --mode=link gcc -pipe -o snmptrapd snmptrapd.lo libnetsnmptrapd.la -L../snmplib -L../agent -L../agent/helpers -L/usr/pkg/lib -L/usr/lib ../agent/libnetsnmpagent.la ../agent/libnetsnmpmibs.la ../agent/helpers/libnetsnmphelpers.la ../snmplib/libnetsnmp.la -ldl -lkvm -lz -lcrypto -lm -L/usr/lib/lib -lwrap
gcc -pipe -o .libs/snmptrapd .libs/snmptrapd.o ./.libs/libnetsnmptrapd.dylib -L/Volumes/NetBSD/tmp/pkgsrc/net/net-snmp/work/.buildlink/lib -L/Volumes/NetBSD/tmp/pkgsrc/net/net-snmp/work/net-snmp-5.3.0.1/snmplib -L/Volumes/NetBSD/tmp/pkgsrc/net/net-snmp/work/net-snmp-5.3.0.1/agent -L/Volumes/NetBSD/tmp/pkgsrc/net/net-snmp/work/net-snmp-5.3.0.1/agent/helpers ../agent/.libs/libnetsnmpagent.dylib ../agent/.libs/libnetsnmpmibs.dylib ../agent/helpers/.libs/libnetsnmphelpers.dylib ../snmplib/.libs/libnetsnmp.dylib -ldl -lkvm -lz -lcrypto -lm -L/usr/lib/lib -lwrap
ld: warning -L: directory name (/usr/lib/lib) does not exist
ld: Undefined symbols:
_init_vacm_config_tokens
_vacm_check_view
*** Error code 1
Stop.
bmake: stopped in /Volumes/NetBSD/tmp/pkgsrc/net/net-snmp/work/net-snmp-5.3.0.1/apps
[...]
>How-To-Repeat:
On MacOS X 10.3.9, attempt to build net/net-snmp
>Fix:
The first problem is solved by the following patch:
--- work/net-snmp-5.3.0.1/apps/snmptrapd_auth.c.orig Wed Jun 7 08:09:25 2006
+++ work/net-snmp-5.3.0.1/apps/snmptrapd_auth.c Wed Jun 7 08:09:46 2006
@@ -7,6 +7,7 @@
#if HAVE_WINSOCK_H
#include <winsock.h>
#else
+#include <sys/types.h>
#include <netinet/in.h>
#include <netdb.h>
#endif
I expect this to be sufficiently benign that it could be applied
universally?
The second problem I don't know about. The curious bit is
"-L/usr/lib/lib" I don't know where that comes from. Perhaps
there is an incomplete edit someplace and "-L/usr/pkg/lib" is
what was intended?
A search for the string in relevant files returns:
find . -type f -exec grep -e "-L[ ]*/usr/lib/lib" {} \; -print
OUR_AGENT_LIBS = $(INSTALLLIBS) $(HELPERLIB) -L/usr/lib/lib -lwrap $(LIBS)
./agent/Makefile
TRAPLIBS = $(TRAPDWITHAGENT) -L/usr/lib/lib -lwrap $(PERLLDOPTS)
./apps/Makefile
configure:15740: gcc -pipe -o conftest -O2 -I/usr/pkg/include -I/usr/include -Ddarwin7 -no-cpp-precomp -I/usr/pkg/include -I/usr/include -I/usr/lib/include -L/usr/pkg/lib -L/usr/lib -L/usr/lib/lib conftest.c -lcrypto -lm -lwrap >&5
WRAPLIBS='-L/usr/lib/lib -lwrap'
./config.log
s,@WRAPLIBS@,-L/usr/lib/lib -lwrap,;t t
./config.status
NSC_AGENTLIBS="-ldl -lkvm -lz -lcrypto -lm -L/usr/lib/lib -lwrap "
./net-snmp-config
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->darwin-pkg-people
Responsible-Changed-By: wiz@netbsd.org
Responsible-Changed-When: Sat, 10 Jun 2006 08:10:42 +0000
Responsible-Changed-Why:
Darwin pkgsrc problem.
State-Changed-From-To: open->feedback
State-Changed-By: asau@NetBSD.org
State-Changed-When: Sun, 12 Apr 2009 19:46:38 +0000
State-Changed-Why:
The package was updated, some of Darwin problems were addressed,
does the problem persist?
From: "John D. Baker" <jdbaker@mylinuxisp.com>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/33662
Date: Fri, 8 May 2009 20:57:52 -0500 (CDT)
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
---2139810480-1726963923-1241834272=:13759
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
Content-Transfer-Encoding: QUOTED-PRINTABLE
The first problem described in this PR seems to have been fixed.
The second problem (undefined symbols) still exists, but in a slightly
different form. Build attempts now fail with:
[...]
gcc -pipe -O2 -I/Volumes/NetBSD/tmp/pkgsrc/net/net-snmp/work/.buildlink/inc=
lude -Udarwin7 -Ddarwin7=3Ddarwin7 -fno-common -DPERL_DARWIN -no-cpp-precom=
p -fno-strict-aliasing -pipe -I/Volumes/NetBSD/tmp/pkgsrc/net/net-snmp/work=
/.buildlink/lib/perl5/5.10.0/darwin-thread-multi-2level/CORE -o .libs/snmpd=
.libs/snmpd.o -L/Volumes/NetBSD/tmp/pkgsrc/net/net-snmp/work/net-snmp-5.4=
=2E2.1/agent/.libs -L/Volumes/NetBSD/tmp/pkgsrc/net/net-snmp/work/net-snmp-=
5.4.2.1/agent/helpers/.libs -L/Volumes/NetBSD/tmp/pkgsrc/net/net-snmp/work/=
net-snmp-5.4.2.1/snmplib/.libs -L/Volumes/NetBSD/tmp/pkgsrc/net/net-snmp/wo=
rk/net-snmp-5.4.2.1/snmplib -L/Volumes/NetBSD/tmp/pkgsrc/net/net-snmp/work/=
net-snmp-5.4.2.1/agent/helpers -L/Volumes/NetBSD/tmp/pkgsrc/net/net-snmp/wo=
rk/.buildlink/lib ./.libs/libnetsnmpagent.dylib -L/usr/lib/lib helpers/.lib=
s/libnetsnmphelpers.dylib ./.libs/libnetsnmpmibs.dylib /Volumes/NetBSD/tmp/=
pkgsrc/net/net-snmp/work/net-snmp-5.4.2.1/agent/helpers/.libs/libnetsnmphel=
pers.dylib /Volumes/NetBSD/tmp/pkgsrc/net/net-snmp/work/net-snmp-5.4.2.1/ag=
ent/.libs/libnetsnmpagent.dylib -lwrap -lkvm /Volumes/NetBSD/tmp/pkgsrc/net=
/net-snmp/work/net-snmp-5.4.2.1/snmplib/.libs/libnetsnmp.dylib ../snmplib/.=
libs/libnetsnmp.dylib -L/Volumes/NetBSD/tmp/pkgsrc/net/net-snmp/work/.build=
link/lib/perl5/5.10.0/darwin-thread-multi-2level/CORE -lperl -lm -lc -lpthr=
ead=20
ld: warning -L: directory name (/usr/lib/lib) does not exist
ld: warning suggest use of -bind_at_load, as lazy binding may result in err=
ors or different symbols being used
symbol __fdlib_version used from dynamic library /Volumes/NetBSD/tmp/pkgsrc=
/net/net-snmp/work/.buildlink/lib/perl5/5.10.0/darwin-thread-multi-2level/C=
ORE/libperl.dylib(pp.o) not from earlier dynamic library /usr/lib/libSystem=
=2EB.dylib(libversion.o)
ld: Undefined symbols:
_vacm_standard_views
*** Error code 1
Stop.
bmake: stopped in /Volumes/NetBSD/tmp/pkgsrc/net/net-snmp/work/net-snmp-5.4=
=2E2.1/agent
*** Error code 1
Stop.
bmake: stopped in /Volumes/NetBSD/tmp/pkgsrc/net/net-snmp/work/net-snmp-5.4=
=2E2.1
*** Error code 1
Stop.
bmake: stopped in /usr/pkgsrc/net/net-snmp
*** Error code 1
Stop.
bmake: stopped in /usr/pkgsrc/net/net-snmp
--=20
John D. Baker, KN5UKS NetBSD Darwin/MacOS X
jdbaker[snail]mylinuxisp[flyspeck]com OpenBSD FreeBSD
BSD -- It just sits there and _works_!
GPG fingerprint: D703 4A7E 479F 63F8 D3F4 BD99 9572 8F23 E4AD 1645
---2139810480-1726963923-1241834272=:13759--
State-Changed-From-To: feedback->open
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sun, 17 May 2009 22:39:03 +0000
State-Changed-Why:
A linking problem still exists.
State-Changed-From-To: open->feedback
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Thu, 04 Nov 2010 05:15:21 +0000
State-Changed-Why:
does this break on more recent macos?
From: "John D. Baker" <jdbaker@mylinuxisp.com>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/33662 (net/net-snmp build failures on MacOS X 10.3.9)
Date: Thu, 4 Nov 2010 10:20:53 -0500 (CDT)
On Thu, 4 Nov 2010, dholland@NetBSD.org wrote:
> does this break on more recent macos?
Yes. But differently. On MacOS X 10.4.11, it fails with:
[...]
/bin/sh ../../libtool --mode=compile gcc -I../../include -I. -I../../agent -I../../agent/mibgroup -I../../snmplib -no-cpp-precomp -isystem /usr/include -I/usr/pkg/include -I/usr/include -pipe -O2 -I/usr/pkg/include -I/usr/include -Udarwin8 -Ddarwin8=darwin8 -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -pipe -I/usr/local/include -I/usr/pkg/lib/perl5/5.12.0/darwin-thread-multi-2level/CORE -c -o host/hr_swrun.lo host/hr_swrun.c
libtool: compile: gcc -I../../include -I. -I../../agent -I../../agent/mibgroup -I../../snmplib -no-cpp-precomp -isystem /usr/include -I/Volumes/d0/tmp/pkgsrc/net/net-snmp/work/.buildlink/include -pipe -O2 -Udarwin8 -Ddarwin8=darwin8 -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -pipe -I/Volumes/d0/tmp/pkgsrc/net/net-snmp/work/.buildlink/lib/perl5/5.12.0/darwin-thread-multi-2level/CORE -c host/hr_swrun.c -fno-common -DPIC -o host/.libs/hr_swrun.o
host/hr_swrun.c: In function 'var_hrswrun':
host/hr_swrun.c:1003: error: invalid use of undefined type 'struct proc'
host/hr_swrun.c:1003: error: dereferencing pointer to incomplete type
host/hr_swrun.c:1161: error: invalid use of undefined type 'struct proc'
host/hr_swrun.c:1161: error: dereferencing pointer to incomplete type
host/hr_swrun.c:1162: error: invalid use of undefined type 'struct proc'
host/hr_swrun.c:1162: error: dereferencing pointer to incomplete type
host/hr_swrun.c:1163: error: invalid use of undefined type 'struct proc'
host/hr_swrun.c:1163: error: dereferencing pointer to incomplete type
host/hr_swrun.c:1164: error: invalid use of undefined type 'struct proc'
host/hr_swrun.c:1164: error: dereferencing pointer to incomplete type
host/hr_swrun.c: In function 'Init_HR_SWRun':
host/hr_swrun.c:1497: error: 'NPROC_SYMBOL' undeclared (first use in this function)
host/hr_swrun.c:1497: error: (Each undeclared identifier is reported only once
host/hr_swrun.c:1497: error: for each function it appears in.)
host/hr_swrun.c:1502: error: invalid application of 'sizeof' to incomplete type 'struct proc'
host/hr_swrun.c:1515: error: 'PROC_SYMBOL' undeclared (first use in this function)
host/hr_swrun.c: In function 'Get_Next_HR_SWRun':
host/hr_swrun.c:1556: error: invalid use of undefined type 'struct proc'
host/hr_swrun.c:1556: error: dereferencing pointer to incomplete type
host/hr_swrun.c:1557: error: invalid use of undefined type 'struct proc'
host/hr_swrun.c:1557: error: dereferencing pointer to incomplete type
host/hr_swrun.c: In function 'count_processes':
host/hr_swrun.c:1590: error: invalid use of undefined type 'struct proc'
host/hr_swrun.c:1590: error: dereferencing pointer to incomplete type
*** Error code 1
Stop.
bmake: stopped in /Volumes/d0/tmp/pkgsrc/net/net-snmp/work/net-snmp-5.4.3/agent/mibgroup
*** Error code 1
Stop.
bmake: stopped in /Volumes/d0/tmp/pkgsrc/net/net-snmp/work/net-snmp-5.4.3/agent
*** Error code 1
Stop.
bmake: stopped in /Volumes/d0/tmp/pkgsrc/net/net-snmp/work/net-snmp-5.4.3
*** Error code 1
Stop.
bmake: stopped in /usr/pkgsrc/net/net-snmp
[...]
--
|/"\ John D. Baker, KN5UKS NetBSD Darwin/MacOS X
|\ / jdbaker[snail]mylinuxisp[flyspeck]com OpenBSD FreeBSD
| X No HTML/proprietary data in email. BSD just sits there and works!
|/ \ GPGkeyID: D703 4A7E 479F 63F8 D3F4 BD99 9572 8F23 E4AD 1645
State-Changed-From-To: feedback->open
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sun, 07 Nov 2010 21:01:07 +0000
State-Changed-Why:
still broken.
Responsible-Changed-From-To: darwin-pkg-people->macos-pkg-people
Responsible-Changed-By: dholland@NetBSD.org
Responsible-Changed-When: Wed, 07 Mar 2012 06:17:35 +0000
Responsible-Changed-Why:
darwin-pkg-people has been changed to macos-pkg-people
State-Changed-From-To: open->feedback
State-Changed-By: christos@NetBSD.org
State-Changed-When: Thu, 04 Apr 2013 19:56:23 -0400
State-Changed-Why:
this is probably fixed by now
From: "John D. Baker" <jdbaker@mylinuxisp.com>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/33662 (net/net-snmp build failures on MacOS X 10.3.9)
Date: Tue, 9 Apr 2013 20:34:13 -0500 (CDT)
> Synopsis: net/net-snmp build failures on MacOS X 10.3.9
>
> State-Changed-From-To: open->feedback
> State-Changed-Why:
> this is probably fixed by now
The issue has been overtaken by events as my last MacOS X 10.3.9-capable
machine has recently ceased to function. I hope to replace all MacOS X
with NetBSD eventually.
This PR may be closed.
--
|/"\ John D. Baker, KN5UKS NetBSD Darwin/MacOS X
|\ / jdbaker[snail]mylinuxisp[flyspeck]com OpenBSD FreeBSD
| X No HTML/proprietary data in email. BSD just sits there and works!
|/ \ GPGkeyID: D703 4A7E 479F 63F8 D3F4 BD99 9572 8F23 E4AD 1645
State-Changed-From-To: feedback->closed
State-Changed-By: obache@NetBSD.org
State-Changed-When: Thu, 11 Apr 2013 12:20:24 +0000
State-Changed-Why:
per submitter's notification.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.