NetBSD Problem Report #50043
From www@NetBSD.org Fri Jul 10 09:41:34 2015
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
by mollari.NetBSD.org (Postfix) with ESMTPS id D79B8A6551
for <gnats-bugs@gnats.NetBSD.org>; Fri, 10 Jul 2015 09:41:34 +0000 (UTC)
Message-Id: <20150710094133.8F162A65BA@mollari.NetBSD.org>
Date: Fri, 10 Jul 2015 09:41:33 +0000 (UTC)
From: joern.clausen@uni-bielefeld.de
Reply-To: joernc@gmail.com
To: gnats-bugs@NetBSD.org
Subject: textproc/groff does not compile on Solaris 11.2
X-Send-Pr-Version: www-1.0
>Number: 50043
>Category: pkg
>Synopsis: textproc/groff does not compile on Solaris 11.2
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: solaris-pkg-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Jul 10 09:45:00 +0000 2015
>Last-Modified: Tue Jan 29 06:47:12 +0000 2019
>Originator: Joern Clausen
>Release:
>Organization:
University of Bielefeld
>Environment:
Solaris 11.2/i86, GCC 4.8.2 (Oracle IPS)
>Description:
This is a followup to pkg/50040. At the moment it is purely informational, I don't need this package, for now.
Configuring textproc/groff on Solaris 11.2/i86 with GCC 4.8.2 installed from Oracle IPS fails with:
checking that header files support C++... no
configure: error: header files do not support C++
(if you are using a version of gcc/g++ earlier than 2.5,
you should install libg++)
*** Error code 1
config.log contains these details:
configure:4589: checking that header files support C++
configure:4612: g++ -o conftest -O2 -std=c99 -D_XOPEN_SOURCE=600 -D__EXTENSIONS__ -I/opt/pkg-hrz/20150706/include -I/opt/pkg-hrz/20150706/include -L/opt/pkg-hrz/20150706/lib -Wl,-R/opt/pkg-hrz/20150706/lib conftest.cpp >&5
cc1plus: warning: command line option '-std=c99' is valid for C/ObjC but not for C++ [enabled by default]
<command-line>:0:0: warning: "_XOPEN_SOURCE" redefined [enabled by default]
conftest.cpp:1:0: note: this is the location of the previous definition
/* confdefs.h */
^
In file included from /usr/include/stdio.h:15:0,
from conftest.cpp:27:
/usr/include/sys/feature_tests.h:358:2: error: #error "Compiler or options invalid; UNIX 03 and POSIX.1-2001 applications require the use of c99"
#error "Compiler or options invalid; UNIX 03 and POSIX.1-2001 applications \
^
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->solaris-pkg-people
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Fri, 10 Jul 2015 09:57:01 +0000
Responsible-Changed-Why:
Solaris pkgsrc problem.
Does adding
USE_LANGUAGES= c99
to the Makefile help?
From: =?ISO-8859-15?Q?J=F6rn_Clausen?= <joern.clausen@uni-bielefeld.de>
To: gnats-bugs@NetBSD.org
Cc: wiz@NetBSD.org, solaris-pkg-people@NetBSD.org, pkg-manager@NetBSD.org,
pkgsrc-bugs@NetBSD.org, gnats-admin@NetBSD.org
Subject: Re: pkg/50043 (textproc/groff does not compile on Solaris 11.2)
Date: Mon, 13 Jul 2015 09:49:59 +0200
> Does adding
> USE_LANGUAGES= c99
> to the Makefile help?
Replacing the existing USE_LANGUAGES leads to pkgsrc warnings when g++
is run and configure finally fails as before. Adding "c99" to the
existing definition has no effect.
--
Jörn Clausen
Plattformen & Serverdienste
Hochschulrechenzentrum
Universität Bielefeld
Universitätsstraße 25
33615 Bielefeld
Telefon: +49 521 106-12601
E-Mail: joern.clausen@uni-bielefeld.de
http://www.uni-bielefeld.de/hrz
From: Joerg Sonnenberger <joerg@britannica.bec.de>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/50043: textproc/groff does not compile on Solaris 11.2
Date: Mon, 13 Jul 2015 14:48:42 +0200
On Fri, Jul 10, 2015 at 09:45:00AM +0000, joern.clausen@uni-bielefeld.de wrote:
> configure:4589: checking that header files support C++
> configure:4612: g++ -o conftest -O2 -std=c99 -D_XOPEN_SOURCE=600 ...
First of all, it very likely should be -std=gnu99. Second, please try
changing it to -D_XOPEN_SOURCE=700.
Joerg
From: =?ISO-8859-15?Q?J=F6rn_Clausen?= <joern.clausen@uni-bielefeld.de>
To: gnats-bugs@NetBSD.org
Cc: Joerg Sonnenberger <joerg@britannica.bec.de>,
solaris-pkg-people@NetBSD.org, gnats-admin@NetBSD.org, pkgsrc-bugs@NetBSD.org
Subject: Re: pkg/50043: textproc/groff does not compile on Solaris 11.2
Date: Mon, 13 Jul 2015 16:16:18 +0200
> First of all, it very likely should be -std=gnu99. Second, please try
> changing it to -D_XOPEN_SOURCE=700.
I didn't look very closely at the Makefile, because this PR was just
fallout from pkg/50040 and I don't need textproc/groff. So I didn't see
the special case for SunOS.
After removing the CFLAGS for SunOS, the package compiles just fine on
Solaris 11.2 with GCC 4.8.2, including all examples and documentation.
Solaris 10 might be a different story, though...
Installation of the package then fails with
=> Creating binary package
/opt/pkgsrc/pkg-hrz/pkgsrc/textproc/groff/work.pkgsrc-sol11i86/.packages/groff-1.22.3nb1.tgz
pkg_create: can't stat
`/opt/pkgsrc/pkg-hrz/pkgsrc/textproc/groff/work.pkgsrc-sol11i86/.destdir/opt/pkg-hrz/20150706/bin/chem'
pkg_create: can't stat
`/opt/pkgsrc/pkg-hrz/pkgsrc/textproc/groff/work.pkgsrc-sol11i86/.destdir/opt/pkg-hrz/20150706/bin/eqn'
pkg_create: can't stat
`/opt/pkgsrc/pkg-hrz/pkgsrc/textproc/groff/work.pkgsrc-sol11i86/.destdir/opt/pkg-hrz/20150706/bin/grn'
pkg_create: can't stat
`/opt/pkgsrc/pkg-hrz/pkgsrc/textproc/groff/work.pkgsrc-sol11i86/.destdir/opt/pkg-hrz/20150706/bin/indxbib'
pkg_create: can't stat
`/opt/pkgsrc/pkg-hrz/pkgsrc/textproc/groff/work.pkgsrc-sol11i86/.destdir/opt/pkg-hrz/20150706/bin/lookbib'
and some more. See pkg/49957, for which I haven't seen an answer yet.
--
Jörn Clausen
Plattformen & Serverdienste
Hochschulrechenzentrum
Universität Bielefeld
Universitätsstraße 25
33615 Bielefeld
Telefon: +49 521 106-12601
E-Mail: joern.clausen@uni-bielefeld.de
http://www.uni-bielefeld.de/hrz
>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.