From owner-freebsd-ports@FreeBSD.ORG Sat Feb 14 20:37:54 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2224E16A4CE for ; Sat, 14 Feb 2004 20:37:54 -0800 (PST) Received: from harrier.mail.pas.earthlink.net (harrier.mail.pas.earthlink.net [207.217.120.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0A9FA43D2D for ; Sat, 14 Feb 2004 20:37:54 -0800 (PST) (envelope-from chris@behanna.org) Received: from user183.net446.oh.sprint-hsd.net ([65.40.131.183] helo=localhost.invalid) by harrier.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 1AsE2T-0005ia-00 for freebsd-ports@freebsd.org; Sat, 14 Feb 2004 20:37:53 -0800 From: Chris BeHanna Organization: Western Pennsylvania Pizza Disposal Unit To: freebsd-ports@freebsd.org Date: Sat, 14 Feb 2004 23:37:52 -0500 User-Agent: KMail/1.6 References: <20040211183025.B37219@waumbek.panasas.com> In-Reply-To: <20040211183025.B37219@waumbek.panasas.com> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200402142337.52168.chris@behanna.org> Subject: Re: Problem Building audio/id3lib X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: chris@behanna.org List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Feb 2004 04:37:54 -0000 Following up to myself, sorry. On Wednesday 11 February 2004 18:36, Chris BeHanna wrote: > I'm building audio/id3lib (a dependency of kdemultimedia3) on > 4.9-STABLE as of a few weeks ago. It falls over during linking, like > so: > > /usr/local/bin/g++33 -O -pipe -march=pentiumpro -Wall -Wno-unused -Wno-inline -Woverloaded-virtual -Wmissing-declarations -L/usr/local/lib -o .libs/id3info demo_info_options.o demo_info.o ../src/.libs/libid3.so -liconv -lz getopt.o getopt1.o -liconv -Wl,--rpath -Wl,/usr/local/lib > ../src/.libs/libid3.so: undefined reference to `std::char_traits::compare(wchar_t const*, wchar_t const*, unsigned)' > ../src/.libs/libid3.so: undefined reference to `std::char_traits::assign(wchar_t*, unsigned, wchar_t)' > ../src/.libs/libid3.so: undefined reference to `std::char_traits::copy(wchar_t*, wchar_t const*, unsigned)' > ../src/.libs/libid3.so: undefined reference to `std::char_traits::move(wchar_t*, wchar_t const*, unsigned)' > collect2: ld returned 1 exit status > *** Error code 1 > > Stop in /usr0/ports/build/usr0/ports/ports/audio/id3lib/work/id3lib-3.8.3/examples. > *** Error code 1 > > Stop in /usr0/ports/build/usr0/ports/ports/audio/id3lib/work/id3lib-3.8.3. > *** Error code 1 > > Stop in /usr0/ports/build/usr0/ports/ports/audio/id3lib/work/id3lib-3.8.3. > *** Error code 1 > > Stop in /usr0/ports/ports/audio/id3lib. > *** Error code 1 taglib had the same problem, as do a few other ports. I've found that when the above error appears, the port will often build just fine with lang/gcc34. Thus far, I have had no problems mixing and matching C++ ports built with lang/gcc33 and with lang/gcc34, but there's always the possibility that there will be a link-time error or a random crash. portupgrade -M "CC=/path/to/C/compiler CXX=/path/to/C++/compiler" is your friend. -- Chris BeHanna Software Engineer (Remove "bogus" before responding.) chris@bogus.behanna.org Turning coffee into software since 1990.