I used truss and found that it searches for libucb under .libs directory (the hidden directory created during installation). I copied that from /usr/ucblib and then I could run the demos. Even appending /usr/ucblib to LD_LIBRARY_PATH did n't help. Perhaps some changes may be required in installation scripts to read LD_LIBRARY_PATH.
Thanks. -Ulhas -----Original Message----- From: Brian S. Julin [SMTP:[EMAIL PROTECTED]] Sent: Friday, September 28, 2001 7:12 PM To: Ulhas Samant Cc: [EMAIL PROTECTED] Subject: Re: Libgii demos:Run-time problems On Fri, 28 Sep 2001, Ulhas Samant wrote: > Is there any-thing specific we have to set for Solaris during run-time. I would examine first the output of ldd on the mhub demo program after it is built. If libtool does it the same way on Solaris as it does on Linux, this will be the file ggi-core/libgii/demos/.libs/mhub (or, if you have built in a separate build directory, look for the corresponding .libs directory in the build tree.) My bet is that you will find that the line designating the binding for libucb says it is not found. Then try running ldd on the stock sun binary /usr/ucb/reset, and see if linucb is not found there either. If it is not, you have a system wide misconfiguration of the dynamic linker. Unfortunately I know little about configuring this on Sun. If it is found for /lib/ucb/reset but not for the mhub binary, then there is a problem during build-time. Try touching mhub.c and rebuilding and seeing if it was just that you didn't have things all set up right when you built. If that doesn't do it, I would suspect that there is a bug in the version of libtool you are using. I would help more, but I'm not allowed to use any of our Solaris boxes as sandboxes here. > P.S.- Is there any documentation on these demo.s ? Well, for mhub, there is the mhub.1 manpage in the source directory. This by extension covers xsendbut, which is made for use with mhub. filter.c and demo.c are more considered to be literate programming documents in and of themselves, than actual programs, though the comments in them could be much more verbose. -- Brian Hello, > We downloaded stable version (v 0.8.1) of LIBGII, and compiled it on > SUN-SOLARIS (OS version 5.5.1).We could compile it successfully and create > various dynamic link libs (.SOs) in the directory > /usr/local/lib/ggi/.. .We added these paths in LD_LIBRARY_PATH variable > and tried to run 'mhub' sample and tried to run it. We get the error > message > " > ld.so.1:mhub: fatal: libucb.so.1 open failed: No such file or directory : > Killed " > > However we have included libucb (i.e. /usr/ucblib) also in our library > path. Could you use truss on any of the demos (./demo should be a good start, mhub is a bit special) to see why it doesn't find that obscure libucb ? > (Perhaps, somebody who has worked with libgii on solaris can help.) I used to compile LibGGI on Solaris regularly a while ago and have never experienced that problem. > P.S.- Is there any documentation on these demo.s ? Yes - in the source, as they are primarily intended to be sample programs, which is why most of them aren't installed by default. CU, Andy -- Andreas Beck | Email : <[EMAIL PROTECTED]>
