NetBSD Problem Report #46825
From www@NetBSD.org Wed Aug 22 15:05:42 2012
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
by www.NetBSD.org (Postfix) with ESMTP id 6E4B663B882
for <gnats-bugs@gnats.NetBSD.org>; Wed, 22 Aug 2012 15:05:42 +0000 (UTC)
Message-Id: <20120822150541.32D7463B85F@www.NetBSD.org>
Date: Wed, 22 Aug 2012 15:05:41 +0000 (UTC)
From: joern.clausen@uni-bielefeld.de
Reply-To: joernc@gmail.com
To: gnats-bugs@NetBSD.org
Subject: bootstrap fails on Solaris 10
X-Send-Pr-Version: www-1.0
>Number: 46825
>Category: pkg
>Synopsis: bootstrap fails on Solaris 10
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Aug 22 15:10:01 +0000 2012
>Last-Modified: Tue Jan 29 06:46:55 +0000 2019
>Originator: Jörn Clausen
>Release:
>Organization:
University of Bielefeld
>Environment:
>Description:
bootstrap fails on Solaris 10 and standalone GCC 4.7.0 while building libfetch for pkg_install:
gcc -O -I/usr/sfw/include -Wall -Wstrict-prototypes -Wmissing-prototypes -Wno-uninitialized -Wreturn-type -Wpointer-arith -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Werror -D_LARGEFILE_SOURCE -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -DDEF_UMASK=022 -I/pkgsrc/source/pkgsrc/bootstrap/work.pkgsrc-i86/wrk/pkgtools/pkg_install/work/libarchive/libarchive -I/pkgsrc/source/pkgsrc/bootstrap/work.pkgsrc-i86/wrk/pkgtools/pkg_install/work/libfetch -DHAVE_NBCOMPAT_H=1 -I/pkgsrc/source/pkgsrc/bootstrap/work.pkgsrc-i86/wrk/pkgtools/pkg_install/work/libnbcompat -I/usr/sfw/include -I. -D_LARGEFILE_SOURCE -D_LARGE_FILES -DINET6 -DWITH_SSL -DFTP_COMBINE_CWDS -c common.c
In file included from /usr/sfw/include/openssl/ui_compat.h:63:0,
from /usr/sfw/include/openssl/des_old.h:439,
from /usr/sfw/include/openssl/des.h:101,
from /usr/sfw/include/openssl/evp.h:93,
from /usr/sfw/include/openssl/x509.h:67,
from common.h:42,
from common.c:70:
/usr/sfw/include/openssl/ui.h:220:1: error: function declaration isn't a prototype [-Werror=strict-prototypes]
In file included from /usr/sfw/include/openssl/rsa.h:62:0,
from /usr/sfw/include/openssl/evp.h:137,
from /usr/sfw/include/openssl/x509.h:67,
from common.h:42,
from common.c:70:
/usr/sfw/include/openssl/asn1.h:478:2: error: function declaration isn't a prototype [-Werror=strict-prototypes]
/usr/sfw/include/openssl/asn1.h:479:2: error: function declaration isn't a prototype [-Werror=strict-prototypes]
/usr/sfw/include/openssl/asn1.h:480:2: error: function declaration isn't a prototype [-Werror=strict-prototypes]
/usr/sfw/include/openssl/asn1.h:481:2: error: function declaration isn't a prototype [-Werror=strict-prototypes]
/usr/sfw/include/openssl/asn1.h:800:4: error: function declaration isn't a prototype [-Werror=strict-prototypes]
/usr/sfw/include/openssl/asn1.h:802:4: error: function declaration isn't a prototype [-Werror=strict-prototypes]
...
After removing "-Wstrict-prototypes" from pkgtools/bootstrap-mk-files/files/mods/SunOS.bsd.sys.mk, hitting another error, trying to fix it again, hitting yet another error, I finally made this change:
--- SunOS.bsd.sys.mk 2012/08/22 14:50:02 1.1
+++ SunOS.bsd.sys.mk 2012/08/22 14:50:13
@@ -26,10 +26,10 @@
.endif
.endif
-.if !defined(NOGCCERROR)
-CFLAGS+= -Werror
-.endif
-CFLAGS+= ${CWARNFLAGS}
+#.if !defined(NOGCCERROR)
+#CFLAGS+= -Werror
+#.endif
+#CFLAGS+= ${CWARNFLAGS}
.if defined(DESTDIR)
CPPFLAGS+= -nostdinc -idirafter ${DESTDIR}/usr/include
I'm not sure where NOGCCERROR is meant to be defined, especially during bootstrap.
And for the record: I'd like to repeat my discontent that I am forced to use /usr/sfw in my pkgsrc installation. I'd rather bootstrap without SSL support and rebuild the package later using security/openssl.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/46825: bootstrap fails on Solaris 10
Date: Wed, 22 Aug 2012 19:19:45 +0000
On Wed, Aug 22, 2012 at 03:10:01PM +0000, joern.clausen@uni-bielefeld.de wrote:
> And for the record: I'd like to repeat my discontent that I am
> forced to use /usr/sfw in my pkgsrc installation. I'd rather
> bootstrap without SSL support and rebuild the package later using
> security/openssl.
ISTM that there should be two bootstrap methods, one with it and one
without it, because both sides of this argument seem to have valid
points.
--
David A. Holland
dholland@netbsd.org
From: =?ISO-8859-1?Q?J=F6rn_Clausen?= <joern.clausen@uni-bielefeld.de>
To: gnats-bugs@NetBSD.org
Cc: David Holland <dholland-pbugs@NetBSD.org>, pkg-manager@NetBSD.org,
gnats-admin@NetBSD.org, pkgsrc-bugs@NetBSD.org
Subject: Re: pkg/46825: bootstrap fails on Solaris 10
Date: Thu, 23 Aug 2012 10:35:22 +0200
There are a good deal of options to the bootstrap script that seem to be
documented nowhere, neither in the local README nor the pkgsrc guide.
Maybe those that added these options care to write a few lines?
--
Jörn Clausen joern.clausen@uni-bielefeld.de
Hochschulrechenzentrum http://www.uni-bielefeld.de/hrz/
Universität Bielefeld
From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/46825: bootstrap fails on Solaris 10
Date: Thu, 23 Aug 2012 18:21:55 +0900
On Thu, 23 Aug 2012 00:10:01 +0900, <joern.clausen@uni-bielefeld.de> wrote:
> And for the record: I'd like to repeat my discontent that I am forced to use /usr/sfw in my pkgsrc installation. I'd rather bootstrap without SSL support and rebuild the package later using security/openssl.
Could you try to put following in a file and specify it as --mk-fragment option for bootstrap script?
PREFER_PKGSRC+=openssl
--
OBATA Akio / obache@NetBSD.org
From: =?ISO-8859-1?Q?J=F6rn_Clausen?= <joern.clausen@uni-bielefeld.de>
To: gnats-bugs@NetBSD.org
Cc: OBATA Akio <obache@NetBSD.org>, pkg-manager@NetBSD.org,
gnats-admin@NetBSD.org, pkgsrc-bugs@NetBSD.org
Subject: Re: pkg/46825: bootstrap fails on Solaris 10
Date: Thu, 23 Aug 2012 14:07:37 +0200
> Could you try to put following in a file and specify it as --mk-fragment option for bootstrap script?
> PREFER_PKGSRC+=openssl
Didn't have any effect on the bootstrap process, except that mk.conf now
contains this definition. pkg_install is still linked against SSL from
/usr/sfw.
--
Jörn Clausen joern.clausen@uni-bielefeld.de
Hochschulrechenzentrum http://www.uni-bielefeld.de/hrz/
Universität Bielefeld
From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/46825: bootstrap fails on Solaris 10
Date: Thu, 23 Aug 2012 23:13:23 +0900
On Thu, 23 Aug 2012 21:10:09 +0900, J=C3=B6rn Clausen <joern.clausen@uni=
-bielefeld.de> wrote:
> > Could you try to put following in a file and specify it as --mk-f=
ragment option for bootstrap script?
> > PREFER_PKGSRC+=3Dopenssl
> Didn't have any effect on the bootstrap process, except that mk.conf n=
ow
> contains this definition. pkg_install is still linked against SSL fro=
m
> /usr/sfw.
Oh, then, is it possible put it as environment variable?
env PREFER_PKGSRC=3Dopenssl ./bootstrap ....
-- =
OBATA Akio / obache@NetBSD.org
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.