compile fails under gcc-3.4.1; web site is out of date

"Joel B" <[email protected]> Wed, 22 Sep 2004 00:04:22 +0000
Newsgroups gmane.comp.gnu.gnucap.bugs
Message-ID <[email protected]>
Hi,

I was trying to get gEDA running on an intel gentoo linux machine.  
gcc-3.4.1,  glibc 2.3.4.20040808, libstdc++-v3 3.3.4.  'emerge gnucap' 
fails, so I downloaded things by hand just to verify.

http://www.gnu.org/software/gnucap/ is seriously out-of-date, and it's the 
first thing
that shows up on google.  http://ftp.gnu.org/gnu/gnucap/ is slightly less 
out-of-date, but still out-of-date.   Once I did find where the current 
downloads are kept, I got results identical to the emerge:

gnucap-0.34 # ./configure
#!/bin/sh
(cd ibis; ./configure)
(cd modelgen; ./configure)
(cd src; ./configure)
exit 0
gnucap-0.34 # make
(cd ibis; make -k)
make[1]: Entering directory `/root/packages/gnucap-0.34/ibis'
(cd O; make -k)
make[2]: Entering directory `/root/packages/gnucap-0.34/ibis/O'
g++ -DUNIX -O2 -DNDEBUG -I.. -I. -fexceptions -W -c ../comp-in.cc
../comp-in.cc: In member function `virtual void 
Component::Pin_Die::parse(CS&)':../comp-in.cc:27: error: no matching 
function for call to `set(CS&, const char[4], Component::Pin_Die::<anonymous 
enum>*, Component::Pin_Die::<anonymous enum>)'../comp-in.cc:28: error: no 
matching function for call to `set(CS&, const char[4], 
Component::Pin_Die::<anonymous enum>*, Component::Pin_Die::<anonymous 
enum>)'make[2]: *** [comp-in.o] Error 1
g++ -DUNIX -O2 -DNDEBUG -I.. -I. -fexceptions -W -c ../file-in.cc
../file-in.cc: In member function `virtual void Redistribution::parse(CS&)':
../file-in.cc:28: error: no matching function for call to `set(CS&, const 
char[4], Redistribution::<anonymous enum>*, Redistribution::<anonymous 
enum>)'
../file-in.cc:29: error: no matching function for call to `set(CS&, const 
char[3], Redistribution::<anonymous enum>*, Redistribution::<anonymous 
enum>)'
../file-in.cc:30: error: no matching function for call to `set(CS&, const 
char[9], Redistribution::<anonymous enum>*, Redistribution::<anonymous 
enum>)'
make[2]: *** [file-in.o] Error 1
g++ -DUNIX -O2 -DNDEBUG -I.. -I. -fexceptions -W -c ../model-in.cc
../base.h: In copy constructor `Range<Float>::Range(const Range<Float>&)':
../base.h:43: error: `Base::Base(const Base&)' is private
../model-in.cc:51: error: within this context
../model-in.cc: In member function `virtual void 
Model_Base::Type::parse(CS&)':
../model-in.cc:148: error: no matching function for call to `set(CS&, const 
char[11], Model_Base::Type::<anonymous enum>*, Model_Base::Type::<anonymous 
enum>)'
../model-in.cc:149: error: no matching function for call to `set(CS&, const 
char[10], Model_Base::Type::<anonymous enum>*, Model_Base::Type::<anonymous 
enum>)'
../model-in.cc:150: error: no matching function for call to `set(CS&, const 
char[6], Model_Base::Type::<anonymous enum>*, Model_Base::Type::<anonymous 
enum>)'
../model-in.cc:151: error: no matching function for call to `set(CS&, const 
char[14], Model_Base::Type::<anonymous enum>*, Model_Base::Type::<anonymous 
enum>)'
../model-in.cc:152: error: no matching function for call to `set(CS&, const 
char[15], Model_Base::Type::<anonymous enum>*, Model_Base::Type::<anonymous 
enum>)'
../model-in.cc:153: error: no matching function for call to `set(CS&, const 
char[16], Model_Base::Type::<anonymous enum>*, Model_Base::Type::<anonymous 
enum>)'
../model-in.cc:154: error: no matching function for call to `set(CS&, const 
char[8], Model_Base::Type::<anonymous enum>*, Model_Base::Type::<anonymous 
enum>)'
../model-in.cc:155: error: no matching function for call to `set(CS&, const 
char[4], Model_Base::Type::<anonymous enum>*, Model_Base::Type::<anonymous 
enum>)'
../model-in.cc:156: error: no matching function for call to `set(CS&, const 
char[12], Model_Base::Type::<anonymous enum>*, Model_Base::Type::<anonymous 
enum>)'
../model-in.cc:157: error: no matching function for call to `set(CS&, const 
char[8], Model_Base::Type::<anonymous enum>*, Model_Base::Type::<anonymous 
enum>)'
../model-in.cc:158: error: no matching function for call to `set(CS&, const 
char[11], Model_Base::Type::<anonymous enum>*, Model_Base::Type::<anonymous 
enum>)'
../model-in.cc:159: error: no matching function for call to `set(CS&, const 
char[7], Model_Base::Type::<anonymous enum>*, Model_Base::Type::<anonymous 
enum>)'
../model-in.cc:160: error: no matching function for call to `set(CS&, const 
char[10], Model_Base::Type::<anonymous enum>*, Model_Base::Type::<anonymous 
enum>)'
../model-in.cc:161: error: no matching function for call to `set(CS&, const 
char[11], Model_Base::Type::<anonymous enum>*, Model_Base::Type::<anonymous 
enum>)'
../model-in.cc:162: error: no matching function for call to `set(CS&, const 
char[12], Model_Base::Type::<anonymous enum>*, Model_Base::Type::<anonymous 
enum>)'
../model-in.cc:163: error: no matching function for call to `set(CS&, const 
char[14], Model_Base::Type::<anonymous enum>*, Model_Base::Type::<anonymous 
enum>)'
../model-in.cc:164: error: no matching function for call to `set(CS&, const 
char[7], Model_Base::Type::<anonymous enum>*, Model_Base::Type::<anonymous 
enum>)'
../model-in.cc: In member function `virtual void 
IO_Base::Polarity::parse(CS&)':../model-in.cc:238: error: no matching 
function for call to `set(CS&, const char[14], IO_Base::Polarity::<anonymous 
enum>*, IO_Base::Polarity::<anonymous enum>)'
../model-in.cc:239: error: no matching function for call to `set(CS&, const 
char[10], IO_Base::Polarity::<anonymous enum>*, 
IO_Base::Polarity::<anonymous enum>)'
make[2]: *** [model-in.o] Error 1
make[2]: Target `all' not remade because of errors.
make[2]: Leaving directory `/root/packages/gnucap-0.34/ibis/O'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/root/packages/gnucap-0.34/ibis'
make: *** [ibis] Error 2

I also did a make in the other two directories just to see what would 
happen:

in modelgen:
modelgen # make
(cd O; make -k)
make[1]: Entering directory `/root/packages/gnucap-0.34/modelgen/O'
g++ -DUNIX -O2 -DNDEBUG -I.. -I. -fexceptions -W -c ../mg_main.cc
In file included from ../mg_out.h:23,
                 from ../mg_main.cc:22:
../mg_.h: In member function `void List<T, BEGIN, END>::parse(CS&)':
../mg_.h:121: error: `_list' undeclared (first use this function)
../mg_.h:121: error: (Each undeclared identifier is reported only once for 
each function it appears in.)
../mg_.h: In member function `void Collection<T>::parse(CS&)':
../mg_.h:140: error: `_list' undeclared (first use this function)
make[1]: *** [mg_main.o] Error 1
g++ -DUNIX -O2 -DNDEBUG -I.. -I. -fexceptions -W -c ../mg_out_h.cc
In file included from ../mg_out.h:23,
                 from ../mg_out_h.cc:22:
../mg_.h: In member function `void List<T, BEGIN, END>::parse(CS&)':
../mg_.h:121: error: `_list' undeclared (first use this function)
../mg_.h:121: error: (Each undeclared identifier is reported only once for 
each function it appears in.)
../mg_.h: In member function `void Collection<T>::parse(CS&)':
../mg_.h:140: error: `_list' undeclared (first use this function)
make[1]: *** [mg_out_h.o] Error 1
g++ -DUNIX -O2 -DNDEBUG -I.. -I. -fexceptions -W -c ../mg_in.cc
In file included from ../mg_in.cc:24:
../mg_.h: In member function `void List<T, BEGIN, END>::parse(CS&)':
../mg_.h:121: error: `_list' undeclared (first use this function)
../mg_.h:121: error: (Each undeclared identifier is reported only once for 
each function it appears in.)
../mg_.h: In member function `void Collection<T>::parse(CS&)':
../mg_.h:140: error: `_list' undeclared (first use this function)
make[1]: *** [mg_in.o] Error 1
g++ -DUNIX -O2 -DNDEBUG -I.. -I. -fexceptions -W -c ../mg_out_common.cc
In file included from ../mg_out.h:23,
                 from ../mg_out_common.cc:22:
../mg_.h: In member function `void List<T, BEGIN, END>::parse(CS&)':
../mg_.h:121: error: `_list' undeclared (first use this function)
../mg_.h:121: error: (Each undeclared identifier is reported only once for 
each function it appears in.)
../mg_.h: In member function `void Collection<T>::parse(CS&)':
../mg_.h:140: error: `_list' undeclared (first use this function)
make[1]: *** [mg_out_common.o] Error 1
g++ -DUNIX -O2 -DNDEBUG -I.. -I. -fexceptions -W -c ../mg_out_dev.cc
In file included from ../mg_out.h:23,
                 from ../mg_out_dev.cc:22:
../mg_.h: In member function `void List<T, BEGIN, END>::parse(CS&)':
../mg_.h:121: error: `_list' undeclared (first use this function)
../mg_.h:121: error: (Each undeclared identifier is reported only once for 
each function it appears in.)
../mg_.h: In member function `void Collection<T>::parse(CS&)':
../mg_.h:140: error: `_list' undeclared (first use this function)
make[1]: *** [mg_out_dev.o] Error 1
g++ -DUNIX -O2 -DNDEBUG -I.. -I. -fexceptions -W -c ../mg_out_lib.cc
In file included from ../mg_out.h:23,
                 from ../mg_out_lib.cc:22:
../mg_.h: In member function `void List<T, BEGIN, END>::parse(CS&)':
../mg_.h:121: error: `_list' undeclared (first use this function)
../mg_.h:121: error: (Each undeclared identifier is reported only once for 
each function it appears in.)
../mg_.h: In member function `void Collection<T>::parse(CS&)':
../mg_.h:140: error: `_list' undeclared (first use this function)
make[1]: *** [mg_out_lib.o] Error 1
g++ -DUNIX -O2 -DNDEBUG -I.. -I. -fexceptions -W -c ../mg_out_model.cc
In file included from ../mg_out.h:23,
                 from ../mg_out_model.cc:22:
../mg_.h: In member function `void List<T, BEGIN, END>::parse(CS&)':
../mg_.h:121: error: `_list' undeclared (first use this function)
../mg_.h:121: error: (Each undeclared identifier is reported only once for 
each function it appears in.)
../mg_.h: In member function `void Collection<T>::parse(CS&)':
../mg_.h:140: error: `_list' undeclared (first use this function)
make[1]: *** [mg_out_model.o] Error 1
g++ -DUNIX -O2 -DNDEBUG -I.. -I. -fexceptions -W -c ../mg_out_root.cc
In file included from ../mg_out.h:23,
                 from ../mg_out_root.cc:22:
../mg_.h: In member function `void List<T, BEGIN, END>::parse(CS&)':
../mg_.h:121: error: `_list' undeclared (first use this function)
../mg_.h:121: error: (Each undeclared identifier is reported only once for 
each function it appears in.)
../mg_.h: In member function `void Collection<T>::parse(CS&)':
../mg_.h:140: error: `_list' undeclared (first use this function)
make[1]: *** [mg_out_root.o] Error 1
make[1]: Target `gnucap-modelgen' not remade because of errors.
make[1]: Leaving directory `/root/packages/gnucap-0.34/modelgen/O'
make: *** [default] Error 2

in src:
src # make
(cd O; make -k)
make[1]: Entering directory `/root/packages/gnucap-0.34/src/O'
g++ -DHAS_READLINE -DUNIX -O2 -DNDEBUG -I.. -I. -fno-exceptions -W -c 
../e_storag.cc
../e_storag.cc: In member function `virtual void STORAGE::dc_begin()':
../e_storag.cc:81: error: no matching function for call to 
`CPOLY1::CPOLY1(CPOLY1)'
make[1]: *** [e_storag.o] Error 1
g++ -DHAS_READLINE -DUNIX -O2 -DNDEBUG -I.. -I. -fno-exceptions -W -c 
../bm.cc
../bm.cc: In member function `void 
EVAL_BM_ACTION_BASE::tr_finish_tdv(ELEMENT*, double) const':
../bm.cc:210: error: no matching function for call to 
`CPOLY1::CPOLY1(CPOLY1)'
make[1]: *** [bm.o] Error 1
g++ -DHAS_READLINE -DUNIX -O2 -DNDEBUG -I.. -I. -fno-exceptions -W -c 
../d_admit.cc
../d_admit.cc: In member function `virtual bool DEV_ADMITTANCE::do_tr()':
../d_admit.cc:59: error: no matching function for call to 
`CPOLY1::CPOLY1(CPOLY1)'
../d_admit.cc: In member function `virtual bool DEV_CPOLY_G::do_tr()':
../d_admit.cc:174: error: no matching function for call to 
`CPOLY1::CPOLY1(CPOLY1)'
../d_admit.cc: In member function `virtual bool DEV_FPOLY_G::do_tr()':
../d_admit.cc:196: error: no matching function for call to 
`CPOLY1::CPOLY1(CPOLY1)'
make[1]: *** [d_admit.o] Error 1
make[1]: *** No rule to make target `gnucap-modelgen', needed by `d_bjt.cc'.
g++ -DHAS_READLINE -DUNIX -O2 -DNDEBUG -I.. -I. -fno-exceptions -W -c 
../d_cap.cc
../d_cap.cc: In member function `virtual bool DEV_CAPACITANCE::do_tr()':
../d_cap.cc:52: error: no matching function for call to 
`CPOLY1::CPOLY1(CPOLY1)'../d_cap.cc: In member function `virtual bool 
DEV_FPOLY_CAP::do_tr()':
../d_cap.cc:175: error: no matching function for call to 
`CPOLY1::CPOLY1(CPOLY1)'
make[1]: *** [d_cap.o] Error 1
g++ -DHAS_READLINE -DUNIX -O2 -DNDEBUG -I.. -I. -fno-exceptions -W -c 
../d_vcvs.cc
../d_vcvs.cc: In member function `virtual bool DEV_VCVS::do_tr()':
../d_vcvs.cc:61: error: no matching function for call to 
`CPOLY1::CPOLY1(CPOLY1)'
make[1]: *** [d_vcvs.o] Error 1
make[1]: Target `gnucap' not remade because of errors.
make[1]: Leaving directory `/root/packages/gnucap-0.34/src/O'
make: *** [default] Error 2

Cheers,
  Joel