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

Re: gEDA-user: GTKWave build problem



Hi,

Looks like an LD_LIBRARY_PATH problem to me. Keep in mind that LD_LIBRARY_PATH is a colon separated list of directories to search for `.so' (shared object libraries) files, when a program starts. Try to find the file `libiconv.so' on your system using `locate' and/or `find / -name libiconv.so\*'. Wait till it searches the whole file system, in case you have multiple versions installed. You could also try to paste the program into an editor and compile it yourself with the supplied command line, then run `ldd' on the resulting binary, this will list all the shared libraries that it wants to load, and where they can be found, or not found as the case may be.

Mike

Paul Anderson wrote:

Maybe you got me a little closer - I looked at the config.log for building GTKWave, here's what I found:

...
...
configure:8148: checking for xml2-config
configure:8166: found /usr/local/bin/xml2-config
configure:8179: result: /usr/local/bin/xml2-config
configure:8187: checking for libxml - version >= 2.4.0
configure:8291: gcc -o conftest -g -O2 -I/usr/local/include/libxml2 conftest.c -L/usr/local/lib -lxml2 -lz -lpthread -liconv -lm >&5
configure:8294: $? = 0
configure:8296: ./conftest
./conftest: error while loading shared libraries: libiconv.so.2: cannot open shared object file: No such file or directory
configure:8299: $? = 127
configure: program exited with status 127
configure: failed program was:
#line 8210 "configure"
#include "confdefs.h"

#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <libxml/xmlversion.h>

int
main()
...
...

----- When I run xml2-config I get -----

[root@PaulsLinux root]# xml2-config --cflags
-I/usr/local/include/libxml2

----- So I tried setting LD_LIBRARY_PATH -----

[root@PaulsLinux gtkwave-2.0.0pre3-20030319]# LD_LIBRARY_PATH=/usr/local/include
[root@PaulsLinux gtkwave-2.0.0pre3-20030319]# export LD_LIBRARY_PATH

sigh, to no avail, same message.

any thoughts? Maybe I need to learn how to handle the mysterious "prefix" stuff... paul

Charles Lepple wrote:

Paul Anderson said:

Hi folks, one more build hurdle and I'll be gEDA-ing! In running
configure for GTKWave, I get

[...]

checking for GTK - version >= 1.2.0... yes
checking for xml2-config... /usr/local/bin/xml2-config
checking for libxml - version >= 2.4.0... no


What probably happens is that xml2-config is called with flags such as
'--cflags' and '--ldflags'. These specify where the xml2 library has been
installed. You might check the config log to see what was returned, and if
in fact libxml2.* lives in the directory returned by 'xml2-config
--ldflags'.


--
--------------------------------------------------
                             Mike Jarabek
                               FPGA/ASIC Designer
http://www.istop.com/~mjarabek
--------------------------------------------------