From alsa-devel-owner@alsa.jcu.cz  Sun Feb 21 12:37:20 1999
Received: from pluto.andeby (IDENT:ahermans@t1o210p45.telia.com [195.204.224.45])
	by marvin.jcu.cz (8.9.1a/8.9.1) with ESMTP id MAA05884
	for <alsa-devel@alsa.jcu.cz>; Sun, 21 Feb 1999 12:35:49 +0100
Received: from localhost (ahermans@localhost)
	by pluto.andeby (8.8.7/8.8.7) with ESMTP id MAA23187;
	Sun, 21 Feb 1999 12:36:37 +0100
Date: Sun, 21 Feb 1999 12:36:37 +0100 (CET)
From: Anders Semb Hermansen <ahermans@vf.telia.no>
To: Yamahata Isaku <yamahata@kusm.kyoto-u.ac.jp>
cc: ALSA devel mailinglist <alsa-devel@alsa.jcu.cz>
Subject: Compiling WIDI with pgcc-1.1.1
Message-ID: <Pine.LNX.4.04.9902211227390.23149-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

Hello Yamahata

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
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

Is this because of pgcc? 

My libstdc++ is of version 2.8.0 as shipped with RH5.2
GTK+ 1.1.13
The rest of the installation is mostly plain RH5.2. 

Tanx in advance for all replies, I relly want this to work with my ALSA
sequencer.


mvh,
Anders

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


