From alsa-devel-owner@alsa.jcu.cz  Sun Feb 21 15:57:41 1999
Received: from pluto.andeby (IDENT:ahermans@t1o210p14.telia.com [195.204.224.14])
	by marvin.jcu.cz (8.9.1a/8.9.1) with ESMTP id PAA19674
	for <alsa-devel@alsa.jcu.cz>; Sun, 21 Feb 1999 15:55:56 +0100
Received: from localhost (ahermans@localhost)
	by pluto.andeby (8.8.7/8.8.7) with ESMTP id PAA29411;
	Sun, 21 Feb 1999 15:56:39 +0100
Date: Sun, 21 Feb 1999 15:56:38 +0100 (CET)
From: Anders Semb Hermansen <ahermans@vf.telia.no>
To: Yamahata Isaku <yamahata@kusm.kyoto-u.ac.jp>
cc: alsa-devel@alsa.jcu.cz
Subject: Re: Compiling WIDI with pgcc-1.1.1
In-Reply-To: <19990221213828.A11936@smdoc2.kusm.kyoto-u.ac.jp>
Message-ID: <Pine.LNX.4.04.9902211512460.23562-100000@pluto.andeby>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Reply-To: alsa-devel@alsa.jcu.cz
Sender: alsa-devel-owner@alsa.jcu.cz
Precedence: list

On Sun, 21 Feb 1999, Yamahata Isaku wrote:
> On Sun, Feb 21, 1999 at 12:36:37PM +0100,
> Anders Semb Hermansen <ahermans@vf.telia.no> wrote:
> 
> > I'm trying to get your widi program to compile. I understand that you need
> > egcs-1.1.1 or better to compile. I didn't want to compile and install egcs
> > on my machine so I asked people on alsa-devel malinglist for rpms, and I
> > got a respone with pgcc which IMO is an optimized version of egcs for i586
> > and i686 machines.
> > 
> > It installed in /opt/pgcc/bin so I put that first in my path so that make
> > would use the new compiler.
> > Which gives this output which should be correct.
> > # which g++
> > /opt/pgcc/bin/g++
> > # which gcc
> > /opt/pgcc/bin/gcc
> > 
> > I had to compile with
> > CXXFLAGS="-I/usr/include/g++" CPPFLAGS="-I/usr/include/g++" ./configure
> > make
> > 
> > But it stops after a long time :-(
> > The error is:
> > 
> > c++ -DHAVE_GETOPT_LONG -Wall -ggdb3 -D_REENTRANT -D_THREAD_SAFE
> > -DWIDI_LIB_DIR=\"/usr/local/lib/widi\"
> > -DWIDI_DATA_DIR=\"/usr/local/share/widi\" -DDEBUG -lpthread -ldl -o widi
> > -rdynamic -Wl,-rpath -Wl,/usr/local/lib/widi ServerCommand.o State.o
> > WidiServer.o widi.o PlayingStyle.o SongFileItem.o SongFileList.o
> > SongManager.o Timer.o TimerSignal.o ../../src/IO/libIO.a
> > ../../src/Sequencer/libSequencer.a ../../src/util/libutil.a
> > ../../src/Song/libSong.a ../../src/util/libutil.a -lpthread -ldl -lz -lnsl
> > -L/usr/X11R6/lib -lX11 -lpthread
>   ... snip ...
> > make: *** [all-recursive] Error 1
> > Is this because of pgcc? 
> 
> It seems that you compiled with c++, not pgcc.
> (c++ == /usr/bin/c++ != g++, isn't it?)

Well `which c++` shows /opt/pgcc/bin/c++. What I don't know is the
difference between c++ and g++.

> Try
> % CC=/opt/pgcc/bin/gcc CXX=/opt/pgcc/bin/g++ ./configure
> % make clean
> % make
> 

Tried this + CXXFLAGS="-I/usr/include/g++"
which makes:

% CC=/opt/pgcc/bin/gcc CXX=/opt/pgcc/bin/g++ CXXFLAGS="-I/usr/include/g++" 
./configure
% make clean
% make

But it still makes the error.

/opt/pgcc/bin/g++ -DHAVE_GETOPT_LONG -Wall -ggdb3 -D_REENTRANT
-D_THREAD_SAFE -DWIDI_LIB_DIR=\"/usr/local/lib/widi\"
-DWIDI_DATA_DIR=\"/usr/local/share/widi\" -DDEBUG -lpthread -ldl -o widi
-rdynamic
-Wl,-rpath -Wl,/usr/local/lib/widi ServerCommand.o State.o WidiServer.o
widi.o PlayingStyle.o SongFileItem.o SongFileList.o SongManager.o Timer.o
TimerSignal.o ../../src/IO/libIO.a ../../src/Sequencer/libSequencer.a
../../src/util/libutil.a ../../src/Song/libSong.a ../../src/util/libutil.a
-lpthread -ldl -lz -lnsl -L/usr/X11R6/lib -lX11 -lpthread
ServerCommand.o: In function `basic_string<char, string_char_traits<char>,
__default_alloc_template<true, 0> >::Rep::release(void)':
ServerCommand.o(.gnu.linkonce.t.release__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b1i0_3Rep+0x12):
undefined reference to `basic_string<char, string_char_traits<char>,
__default_alloc_template<true, 0> >::Rep::operator delete(void *)'
ServerCommand.o: In function `basic_string<char, string_char_traits<char>,
__default_alloc_template<true, 0> >::Rep::grab(void)':
ServerCommand.o(.gnu.linkonce.t.grab__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b1i0_3Rep+0xf):
undefined reference to `basic_string<char, string_char_traits<char>,
__default_alloc_template<true, 0> >::Rep::clone(void)'
make[2]: *** [widi] Error 1
make[2]: Leaving directory `/home/ahermans/widi-19990218-SNAP/src/Widi'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/ahermans/widi-19990218-SNAP/src'
make: *** [all-recursive] Error 1


> ---
> Isaku Yamahata
> yamahata@kusm.kyoto-u.ac.jp
> CQG00274@nifty.ne.jp
> http://www.kusm.kyoto-u.ac.jp/%7Eyamahata/
>   
> ------
> To unsubscribe from <alsa-devel@alsa.jcu.cz> mailing list send message
> 'unsubscribe' in the body of message to <alsa-devel-request@alsa.jcu.cz>.
> 

Thanx for any help,
Anders

--
Anders Semb Hermansen
E-Mail: <ahermans@vf.telia.no>
Cellmail: <93802837@sms.netcom.no>


