NetBSD Problem Report #50315

From rhialto@falu.nl  Thu Oct  8 18:48:20 2015
Return-Path: <rhialto@falu.nl>
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 001C9A5858
	for <gnats-bugs@gnats.NetBSD.org>; Thu,  8 Oct 2015 18:48:19 +0000 (UTC)
Message-Id: <201510081848.t98ImF0D015503@murthe.falu.nl>
Date: Thu, 8 Oct 2015 20:48:15 +0200 (CEST)
From: rhialto@falu.nl
Reply-To: rhialto@falu.nl
To: gnats-bugs@gnats.NetBSD.org
Subject: textproc/link-grammar fails to configure (pkgsrc-2015Q3)
X-Send-Pr-Version: 3.95

>Number:         50315
>Category:       pkg
>Synopsis:       textproc/link-grammar fails to configure (pkgsrc-2015Q3)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Oct 08 18:50:00 +0000 2015
>Closed-Date:    Sat Dec 18 11:42:51 +0000 2021
>Last-Modified:  Sat Dec 18 11:42:51 +0000 2021
>Originator:     Rhialto
>Release:        NetBSD 6.1.5
>Organization:

>Environment:


System: NetBSD murthe.falu.nl 6.1.5 NetBSD 6.1.5 (MURTHE6.1.5) #0: Sun Oct 5 01:15:04 CEST 2014 rhialto@vargaz.falu.nl:/usr/src/sys/arch/amd64/compile/MURTHE6.1.5 amd64
Architecture: x86_64
Machine: amd64
>Description:
	When building textproc/link-grammar  from pkgsrc-2015Q3, the
	following happens:


Script started on Thu Oct  8 20:36:45 2015
...
checking how to run the C++ preprocessor... c++ -E
checking for ld used by c++... /home/tmp/textproc/link-grammar/work.x86_64/.wrapper/bin/ld
checking if the linker (/home/tmp/textproc/link-grammar/work.x86_64/.wrapper/bin/ld) is GNU ld... yes
checking whether the c++ linker (/home/tmp/textproc/link-grammar/work.x86_64/.wrapper/bin/ld) supports shared libraries... yes
checking for c++ option to produce PIC... -fPIC -DPIC
checking if c++ PIC flag -fPIC -DPIC works... yes
checking if c++ static flag -static works... yes
checking if c++ supports -c -o file.o... rm: conftest*: No such file or directory
yes
checking if c++ supports -c -o file.o... (cached) yes
checking whether the c++ linker (/home/tmp/textproc/link-grammar/work.x86_64/.wrapper/bin/ld) supports shared libraries... yes
...
checking stdio.h usability... no
checking stdio.h presence... yes
configure: WARNING: stdio.h: present but cannot be compiled
configure: WARNING: stdio.h:     check for missing prerequisite headers?
configure: WARNING: stdio.h: see the Autoconf documentation
configure: WARNING: stdio.h:     section "Present But Cannot Be Compiled"
configure: WARNING: stdio.h: proceeding with the compiler's result
configure: WARNING:     ## -------------------------------------------- ##
configure: WARNING:     ## Report this to link-grammar@googlegroups.com ##
configure: WARNING:     ## -------------------------------------------- ##
checking for stdio.h... no
configure: error: C++ compiler not found; it is needed for the SAT parser
*** Error code 1

Stop.
make: stopped in /mnt/vol1/rhialto/cvs/pkgsrc/textproc/link-grammar
*** Error code 1

Stop.
make: stopped in /mnt/vol1/rhialto/cvs/pkgsrc/textproc/link-grammar

Script done on Thu Oct  8 20:36:53 2015

	Looking at the configure.log file where stdio occurs, I see:


configure:16772: checking stdio.h usability
configure:16772: c++ -c -O2 -O3 -Wall -std=c++03  -DUSE_SAT_SOLVER=1 conftest.cpp >&5
cc1plus: error: unrecognized command line option "-std=c++03"
configure:16772: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "link-grammar"
| #define PACKAGE_TARNAME "link-grammar"
...

	in other words, in this test it supplies an option to g++ which
	it didn't do before.

	I don't know if it really required a C++03 compiler or not.
	The g++ I have is from NetBSD/amd64 6.1.5:

Using built-in specs.
COLLECT_GCC=gcc
Target: x86_64--netbsd
Configured with: /usr/src2/tools/gcc/../../external/gpl3/gcc/dist/configure --target=x86_64--netbsd --enable-long-long --enable-threads --with-bugurl=http://www.NetBSD.org/Misc/send-pr.html --with-pkgversion='NetBSD nb2 20111202' --enable-__cxa_atexit --with-tune=nocona --with-mpc=/var/obj/mknative/amd64/usr/src2/destdir.amd64/usr --with-mpfr=/var/obj/mknative/amd64/usr/src2/destdir.amd64/usr --with-gmp=/var/obj/mknative/amd64/usr/src2/destdir.amd64/usr --enable-tls --disable-multilib --disable-symvers --disable-libstdcxx-pch --build=x86_64-unknown-netbsd5.99.56 --host=x86_64--netbsd
Thread model: posix
gcc version 4.5.3 (NetBSD nb2 20110806) 

>How-To-Repeat:

>Fix:
	Use a C++ 2003 compiler? Which one is that?
	However that would probably force all programs using the library
	to also use that compiler, due to the appalling lack of ABI
	compatibility between g++ versions.

-Olaf.
-- 
___ Olaf 'Rhialto' Seibert  -- The Doctor: No, 'eureka' is Greek for
\X/ rhialto/at/xs4all.nl    -- 'this bath is too hot.'

>Release-Note:

>Audit-Trail:
From: Joerg Sonnenberger <joerg@britannica.bec.de>
To: gnats-bugs@NetBSD.org
Cc: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org
Subject: Re: pkg/50315: textproc/link-grammar fails to configure
 (pkgsrc-2015Q3)
Date: Thu, 8 Oct 2015 21:04:26 +0200

 On Thu, Oct 08, 2015 at 06:50:00PM +0000, rhialto@falu.nl wrote:
 > >Fix:
 > 	Use a C++ 2003 compiler? Which one is that?

 Essentially, any modernish C++ compiler. It's C++98 with some additional
 corrections to the runtime. The flag should really not be added in first
 place.

 Joerg

State-Changed-From-To: open->feedback
State-Changed-By: bsiegert@NetBSD.org
State-Changed-When: Fri, 17 Dec 2021 17:22:16 +0000
State-Changed-Why:
NetBSD 6 is end of life.
Is this still an issue with a more modern version?


From: Rhialto <rhialto@falu.nl>
To: gnats-bugs@netbsd.org
Cc: pkg-manager@netbsd.org, pkgsrc-bugs@netbsd.org, gnats-admin@netbsd.org,
	bsiegert@NetBSD.org, rhialto@falu.nl
Subject: Re: pkg/50315 (textproc/link-grammar fails to configure
 (pkgsrc-2015Q3))
Date: Sat, 18 Dec 2021 12:36:53 +0100

 I built a current version of this and had no problems.
 I'll close it for being obsolete.

State-Changed-From-To: feedback->closed
State-Changed-By: rhialto@NetBSD.org
State-Changed-When: Sat, 18 Dec 2021 11:42:51 +0000
State-Changed-Why:
Report is obsolete and the problem no longer occurs.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.