From jstocker@twoflower.liebende.de  Mon Jul 22 01:58:24 2002
Return-Path: <jstocker@twoflower.liebende.de>
Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 7603937B400
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 22 Jul 2002 01:58:24 -0700 (PDT)
Received: from twoflower.liebende.de (pD950794F.dip.t-dialin.net [217.80.121.79])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 2D40343E58
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 22 Jul 2002 01:58:23 -0700 (PDT)
	(envelope-from jstocker@twoflower.liebende.de)
Received: from twoflower.liebende.de (localhost [127.0.0.1])
	by twoflower.liebende.de (8.12.5/8.12.5) with ESMTP id g6M8w8QH016393;
	Mon, 22 Jul 2002 10:58:08 +0200 (CEST)
	(envelope-from jstocker@twoflower.liebende.de)
Received: (from jstocker@localhost)
	by twoflower.liebende.de (8.12.5/8.12.5/Submit) id g6M8w7Ir016392;
	Mon, 22 Jul 2002 10:58:07 +0200 (MEST)
Message-Id: <200207220858.g6M8w7Ir016392@twoflower.liebende.de>
Date: Mon, 22 Jul 2002 10:58:07 +0200 (MEST)
From: Jan Stocker <Jan.Stocker@t-online.de>
Reply-To: Jan Stocker <Jan.Stocker@t-online.de>
To: FreeBSD-gnats-submit@freebsd.org
Cc: mi@aldan.algebra.com
Subject: libfpx wont build / wrong CFLAGS
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         40874
>Category:       ports
>Synopsis:       libfpx wont build / wrong CFLAGS
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jul 22 02:00:08 PDT 2002
>Closed-Date:    Mon Jul 22 11:04:56 PDT 2002
>Last-Modified:  Mon Jul 22 11:04:56 PDT 2002
>Originator:     Jan Stocker
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD twoflower 5.0-CURRENT FreeBSD 5.0-CURRENT #0: Thu Jul 18 08:40:25 CEST 2002 root@twoflower:/usr/obj/usr/src/sys/Twoflower50 i386
>Description:
The needed line 

#CFLAGS+=       -DHAVE_WCHAR_H=1 -DHAVE_DLFCN_H=1

is commented out, but port includes wchar.h, so we get a duplicate definition.

>How-To-Repeat:
make port on -current.

>Fix:
Uncomment line..... cant understand why it is commented... 
My 4.6 box and -current has wchar.h...

>Release-Note:
>Audit-Trail:

From: Jan.Stocker@t-online.de (Jan Stocker)
To: FreeBSD-gnats-submit@FreeBSD.org
Cc: mi@aldan.algebra.com
Subject: Re: ports/40874: libfpx wont build / wrong CFLAGS
Date: 22 Jul 2002 11:18:13 +0200

 Uncommenting leads to no compiling errors, but i think the lib hasn't
 linked correctly, cause building ImageMagick causes:
 
 cc -DHAVE_CONFIG_H -I. -I. -I../magick -I../ -I..  -I/usr/X11R6/include 
 -I/usr/local/include/freetype2 -I/usr/local/include -I/usr/X11R6/include
 -I/X11  -O -pipe -march=pentiumpro -Wall -c `test -f 'composite.c' ||
 echo './'`composite.c
 /usr/local/bin/bash ../libtool --silent --mode=link cc  -O -pipe
 -march=pentiumpro -Wall  -L/usr/local/lib -L/usr/X11R6/lib -o composite
 -L/usr/local/lib -L/usr/X11R6/lib composite.o ../magick/libMagick.la  
 ../magick/.libs/libMagick.so: warning: tempnam() possibly used unsafely;
 consider using mkstemp()
 /usr/local/lib/libfpx.so: undefined reference to `operator
 new[](unsigned)'
 /usr/local/lib/libfpx.so: undefined reference to `operator
 delete(void*)'
 /usr/local/lib/libfpx.so: undefined reference to `__cxa_pure_virtual'
 /usr/local/lib/libfpx.so: undefined reference to
 `std::ios_base::Init::Init()'
 /usr/local/lib/libfpx.so: undefined reference to `operator
 delete[](void*)'
 /usr/local/lib/libfpx.so: undefined reference to
 `std::ios_base::Init::~Init()'
 /usr/local/lib/libfpx.so: undefined reference to `operator
 new(unsigned)'
 gmake[1]: *** [composite] Error 1
 gmake[1]: Leaving directory
 `/ext/usr/ports/graphics/ImageMagick/work/ImageMagick-5.4.7/utilities'
 gmake: *** [all-recursive] Error 1
 *** Error code 2
 
 
 
 

From: Jan.Stocker@t-online.de (Jan Stocker)
To: Mikhail Teterin <mi+mx@aldan.algebra.com>
Cc: FreeBSD-gnats-submit@FreeBSD.org
Subject: Re: ports/40874: libfpx wont build / wrong CFLAGS
Date: 22 Jul 2002 17:08:09 +0200

 But i think it is not the correct way to link stdc++ by hand, you ve to
 use "c++" for linking instead, it will use stdc++ by itself....
 
 
 On Mon, 2002-07-22 at 17:00, Mikhail Teterin wrote:
 > I have just commited a fix (I think). The trouble was with the
 > missing -lstdc++ :-( Please, confirm...
 > 
 > 	-mi
 > 
 
 

From: Mikhail Teterin <mi+mx@aldan.algebra.com>
To: Jan.Stocker@t-online.de, FreeBSD-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: ports/40874: libfpx wont build / wrong CFLAGS
Date: Mon, 22 Jul 2002 11:00:17 -0400

 I have just commited a fix (I think). The trouble was with the
 missing -lstdc++ :-( Please, confirm...
 
 	-mi
 
State-Changed-From-To: open->closed 
State-Changed-By: mi 
State-Changed-When: Mon Jul 22 11:03:37 PDT 2002 
State-Changed-Why:  
Originator confirms the problem is gone now. The question of what 
is better LDADD+=-lstdc++ (used) or LD=${CXX} (suggested by originator) 
remains. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=40874 
>Unformatted:
