From alsa-devel-owner@alsa.jcu.cz  Sun Feb 21 13:40:11 1999
Received: from smaux.kusm.kyoto-u.ac.jp (smaux.kusm.kyoto-u.ac.jp [130.54.53.12])
	by marvin.jcu.cz (8.9.1a/8.9.1) with SMTP id NAA10361
	for <alsa-devel@alsa.jcu.cz>; Sun, 21 Feb 1999 13:38:33 +0100
Received: (qmail 28602 invoked from network); 21 Feb 1999 21:38:30 +0900
Received: from smdoc2.kusm.kyoto-u.ac.jp (130.54.53.38)
  by smaux.kusm.kyoto-u.ac.jp with SMTP; 21 Feb 1999 21:38:30 +0900
Received: (qmail 11981 invoked by uid 2161); 21 Feb 1999 12:38:29 -0000
Message-ID: <19990221213828.A11936@smdoc2.kusm.kyoto-u.ac.jp>
Date: Sun, 21 Feb 1999 21:38:28 +0900
From: Yamahata Isaku <yamahata@kusm.kyoto-u.ac.jp>
To: ahermans@vf.telia.no
Cc: alsa-devel@alsa.jcu.cz
Subject: Re: Compiling WIDI with pgcc-1.1.1
References: <Pine.LNX.4.04.9902211227390.23149-100000@pluto.andeby>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
In-Reply-To: <Pine.LNX.4.04.9902211227390.23149-100000@pluto.andeby>; from Anders Semb Hermansen on Sun, Feb 21, 1999 at 12:36:37PM +0100
Reply-To: alsa-devel@alsa.jcu.cz
Sender: alsa-devel-owner@alsa.jcu.cz
Precedence: list

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?)
Try
% CC=/opt/pgcc/bin/gcc CXX=/opt/pgcc/bin/g++ ./configure
% make clean
% make

---
Isaku Yamahata
yamahata@kusm.kyoto-u.ac.jp
CQG00274@nifty.ne.jp
http://www.kusm.kyoto-u.ac.jp/%7Eyamahata/
  

