[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: gEDA-user: gnetlist: ERROR: Unbound variable: primitive-fork



On Mon, Apr 12, 2004 at 10:12:03PM -0400, Ales Hvezda wrote:
> 	One more thing that is important is the LD_LIBRARY_PATH.  This 
> needs to point to the newly built guile libraries.  You could set this
> variable to all the directories where libguile* live, but that isn't always
> easy, so a better way to accomplish this is to install guile into some user
> writable path like this:
> 
> 	cd guile-1.6.4
> 	make clean
> 	./configure --prefix=$HOME/newguile
> 	(or pick some directory where you can install to)
> 	make install

yesterday I played around with some of the scripts, so I have preferred to
removed the directory and re-create it from the tar file, instead of make
clean.

> 
> Then set: 
> export GUILE_LOAD_PATH=$HOME/newguile/share/guile/1.6 
> 
> and also:
> 
> export LD_LIBRARY_PATH=$HOME/newguile/lib
> 
> and also:
> 
> export PATH=$HOME/newguile/bin:$PATH
> 
> then run:
> 
> which guile		
> 		Make sure $HOME/newguile/bin/guile is found
> ldd `which guile`	
> 		Make sure all the libguile* libs are from $HOME/newguile/lib 

Done, the paths are correctly set.

> 
> If the above checks out, then run do the previously mentioned run guile and
> type primitive-fork at the command line and see what happens.

Yes! now it knows everything about primitive-fork, and .. yes gsch2pcb gives me
errors about missing footprints and footprint attributes which is great!


> Also, before you do the above make clean etc... Run the following command
> in the guile-1.6.4 directory:
> 
> cat config.h | grep HAVE_FORK
> 
> and send the output to me; it should be similar to: 
> 
> #define HAVE_FORK 1
> 
> or such.  (not #undef HAVE_FORK).

Had done that before rebuilding and I got:
#define HAVE_FORK 1

> 
> Finally, something else to do is find the file: libguile.a on your machine
> somewhere (you many not have it if you do not have libguile-dev rpm installed
> on your box), but it should be in the new guile that you built and run:
> 
> nm libguile.a | grep fork
> 
> The output from this should be:
> 
>          U fork
> 000000f7 r s_scm_fork
> 00000d7c T scm_fork
> 
> scm_fork is "primitive-fork".
>   

I get a very similar output (before the rebuild):
$ nm /usr/local/lib/libguile.a  | grep fork
         U fork
00000df4 T scm_fork
000000f7 r s_scm_fork

> Really, gEDA/gaf should have worked "out-of-the-box", however the forces
> of evil (particularly those that are friends with guile :) are apparently
> infesting your machine. :(

When I installed the latest gEDA rpms, if I remember correctly, I had not
removed (rpm -e) the previous version .. maybe I should have.

Any way, it seems that I can get gsch2pcb to run and start work on my board
now.  This morning I don't have time left for this, but I will try to reinstall
guile into /usr/local/bin

Many many thanks to all of you for helping me getting this to work,
Berni