Re: (Gnucap+) Severals questions and problems compiling gnucap-python

Rubén Gómez Antolí <[email protected]>
Newsgroups gmane.comp.gnu.gnucap.general
Message-ID <[email protected]>
Hello Henrik:

Henrik Johansson escribió:
> Hi Rubén,
> 
>> I have several questions about Gnucap+ (0):
>>
>> 1· The Gnucap's sources are sync with development snapshot from Al Davis?
>>
>> The Gnucap compiled from included gnucap+'s sources says:
>>
>> gnucap
>> Gnucap 2009.02.02 RCS 26.109
>> The Gnu Circuit Analysis Package
> 
> It seems that the gnucap+ source is not updated against Al's latest 
> development version, The gnucap+ repo was based on my shared library version 
> of gnucap at github (http://github.com/henjo/gnucap) which was based on Al's 
> 2009.02.02 development  snapshot. But now this repo is up to date with the 
> latest development snapshot.
> 

Ok, I compiled gnucap from your git repo and now I Gnucap up to date:

Gnucap 2009.11.10 RCS 26.129
The Gnu Circuit Analysis Package
Never trust any version less than 1.0
Copyright 1982-2009, Albert Davis


> (...)
>> 2· I'm having some issues with python plugin.
>>
>> Configure stops with:
>>
>> checking gnucap/c_comand.h usability... no
>> checking gnucap/c_comand.h presence... no
>> checking for gnucap/c_comand.h... no
>> checking for status in -lgnucap... no
>> configure: error: Error, gnucap as shared library not found.
> 
> You need to install the shared library version of gnucap first. I guess the 
> documentation is somewhat lacking here. But you have to build gnucapplus (or 
> http://github.com/henjo/gnucap) using the automake tools. Running:
>> autogen.sh
>> ./configure
>> make
> should work

At this moment I have Gnucap installed from your sources.

Aclaration: I make a Deb package of gnucap's Henrik sources; I supposed 
that there are not difference with compile directly from sources.

There aren't anything c_comand.h in these package:

dpkg -L gnucap
/.
/usr
/usr/share
/usr/share/gnucap
/usr/share/gnucap/doc
/usr/share/gnucap/doc/acs-tutorial
/usr/share/gnucap/doc/COPYING
/usr/share/gnucap/doc/history
/usr/share/gnucap/doc/INSTALL
/usr/share/gnucap/doc/relnotes.029
/usr/share/gnucap/doc/relnotes.030
/usr/share/gnucap/doc/relnotes.031
/usr/share/gnucap/doc/relnotes.032
/usr/share/gnucap/doc/relnotes.033
/usr/share/gnucap/doc/relnotes.034
/usr/share/gnucap/doc/whatisit
/usr/share/gnucap/examples
/usr/share/gnucap/examples/eq.doc
/usr/share/gnucap/examples/eq2-145.ckt
/usr/share/gnucap/examples/eq2-289.ckt
/usr/share/gnucap/examples/eq2-577.ckt
/usr/share/gnucap/examples/eq3-1153.ckt
/usr/share/gnucap/examples/eq4-2305.ckt
/usr/share/gnucap/examples/eq4-4609.ckt
/usr/share/gnucap/examples/eq4-6913.ckt
/usr/share/gnucap/examples/eq4-9217.ckt
/usr/share/gnucap/examples/eq4-9217.tran-slow.ckt
/usr/share/gnucap/examples/eq4-9217.tran.ckt
/usr/share/gnucap/examples/eq5-.ac.ckt
/usr/share/gnucap/examples/eq5-.tran.ckt
/usr/share/gnucap/examples/eq5-.tran.euler.fast.ckt
/usr/share/gnucap/examples/eq5-.tran.fast.ckt
/usr/share/gnucap/examples/eq5-.tran.like-spice.ckt
/usr/share/gnucap/examples/eq5-.tran.slow.ckt
/usr/share/gnucap/examples/eq5-.tran.vfast.ckt
/usr/share/gnucap/examples/eq5-.tran.vvfast.ckt
/usr/share/gnucap/examples/eq5-.tran.vvvfast.ckt
/usr/share/gnucap/examples/eq6-.tran.vvvfast.ckt
/usr/share/gnucap/examples/eq7-.tran.vvvfast.ckt
/usr/share/gnucap/examples/eqboost.ckt
/usr/share/gnucap/examples/eqflat.ckt
/usr/share/gnucap/examples/eqmodify.ckt
/usr/share/gnucap/examples/killzap.ckt
/usr/share/gnucap/examples/killzap.doc
/usr/share/gnucap/examples/nmos.doc
/usr/share/gnucap/examples/nmos100.ckt
/usr/share/gnucap/examples/nmos15.ckt
/usr/share/gnucap/examples/nmos18.ckt
/usr/share/gnucap/examples/nmos30.ckt
/usr/share/gnucap/examples/nmosgen.c
/usr/share/gnucap/examples/nmp100.ckt
/usr/share/gnucap/examples/nmpgen.c
/usr/share/gnucap/examples/opamp-ol.ckt
/usr/share/gnucap/examples/opamp-vf.ckt
/usr/share/gnucap/examples/opamp.doc
/usr/share/gnucap/examples/runall
/usr/share/gnucap/examples/runall.out
/usr/share/gnucap/examples/sc18.ckt
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/gnucap.1.gz
/usr/share/man/man1/gnucap-ibis.1.gz
/usr/share/doc
/usr/share/doc/gnucap
/usr/share/doc/gnucap/README
/usr/share/doc/gnucap/README.Debian
/usr/share/doc/gnucap/copyright
/usr/share/doc/gnucap/changelog.Debian.gz
/usr/share/doc/gnucap/changelog.gz
/usr/bin
/usr/bin/gnucap-modelgen
/usr/bin/gnucap

Configure still stop with same problem.

If I skip configure (autogen.sh don't stop here) problem and compile 
with "make install", fails with:

(CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh 
/media/Aldaxcorb/Fuentes/Electronica/Gnucap_Henjo/gnucap-python-2009.11.28/missing 
--run autoheader)
rm -f stamp-h1 
 

touch config.h.in 
 

cd . && /bin/sh ./config.status config.h 
 

config.status: creating config.h 
 

config.status: config.h is unchanged 
 

/bin/sh ./libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. 
-I/usr/include/python2.5 -DPYTHON_SO=\"/usr/lib/libpython2.5.so\"   -g 
-O2 -MT python_la-gnucap_wrap.lo -MD -MP -MF 
.deps/python_la-gnucap_wrap.Tpo -c -o python_la-gnucap_wrap.lo `test -f 
'gnucap_wrap.cxx' || echo './'`gnucap_wrap.cxx 

libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I/usr/include/python2.5 
-DPYTHON_SO=\"/usr/lib/libpython2.5.so\" -g -O2 -MT 
python_la-gnucap_wrap.lo -MD -MP -MF .deps/python_la-gnucap_wrap.Tpo -c 
gnucap_wrap.cxx  -fPIC -DPIC -o .libs/python_la-gnucap_wrap.o 
 

gnucap/m_matrix.h: In function ‘PyObject* _wrap_BSMATRIXd_m(PyObject*, 
PyObject*)’: 

gnucap/m_matrix.h:443: error: ‘T& BSMATRIX<T>::m(int, int) [with T = 
double]’ is private 

gnucap_wrap.cxx:7557: error: within this context 
 

gnucap/m_matrix.h: In function ‘PyObject* _wrap_BSMATRIXc_m(PyObject*, 
PyObject*)’: 

gnucap/m_matrix.h:443: error: ‘T& BSMATRIX<T>::m(int, int) [with T = 
std::complex<double>]’ is private 

gnucap_wrap.cxx:8689: error: within this context 
 

gnucap_wrap.cxx: In function ‘PyObject* 
_wrap_CARD_LIST_precalc(PyObject*, PyObject*)’: 

gnucap_wrap.cxx:8891: error: ‘class CARD_LIST’ has no member named 
‘precalc’ 

gnucap_wrap.cxx: In function ‘PyObject* 
_wrap_CARD_param_exists(PyObject*, PyObject*)’: 

gnucap_wrap.cxx:10285: error: ‘const class CARD’ has no member named 
‘param_exists’ 

gnucap_wrap.cxx:10287: error: ‘const class CARD’ has no member named 
‘param_exists’ 

make: *** [python_la-gnucap_wrap.lo] Error 1

(I admit, I'd trying to make a Deb package of gnucap-python extension 
too. That is the reason for strange 2009.11.28 add in directory)

Well, Where are the problem? Do you need my python's packages installed?

>> 4· What differences have gnucap-arails with gnucap? 
> The difference between gnucap and gnucap-arails is my shared library version of 
> gnucap/my python extension for gnucap and Analog Rails modifications they need 
> to make it run with their IC design tools.

Ok, thanks for explanation.

> Best regards,
> 
> Henrik Johansson

Regards.

Salud y Revolución.

Lobo.
-- 
Libertad es poder elegir en cualquier momento. Ahora yo elijo GNU/Linux,
para no atar mis manos con las cadenas del soft propietario.
---------
Desde El Ejido, en Almería, usuario registrado Linux #294013
http://www.counter.li.org
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.