Peter~

I was installing owfs on my gentoo laptop and I noticed the following
message during the make install process:

Libraries have been installed in:
   /opt/owfs/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,--rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.

Could this be the solution (or part of it) to get owpython to work on gentoo?

George Bobeck

On 1/17/06, Peter Kropf <[EMAIL PROTECTED]> wrote:
> Been digging a bit myself. It seems that the compile / link line that's
> executed on gentoo is a bit different that that of my ubuntu system. On
> ubuntu, it looks as:
>
> gcc -pthread -shared build/temp.linux-i686-2.4/ow_wrap.o
> -L../../owlib/src/c/.libs -Wl,-R/opt/owfs/lib -low -lusb -o build/lib.linux-
> i686-2.4/ow/_OW.so
>
> while on gentoo it looks like:
>
> i386-pc-linux-gnu-gcc -pthread -shared build/temp.linux-i686-2.3/ow_wrap.o
> -L../../owlib/src/c/.libs -R/opt/owfs/lib -low -o
> build/lib.linux-i686-2.3/ow/_OW.so
>
> It seems that the -Wl, is missing from the gentoo command. The -Wl causes
> gcc to pass the parameters after the , on to the linker. Since it's not
> there on gentoo and gcc doesn't know what -R means, it spits out a warning
> and finishes the build. But the resultant shared library is missing the
> references to the /opt/owfs/lib directory that allow the loader to find the
> libow.so.0 shared library.
>
> Next course is to find out why the Python build on gentoo isn't behaving as
> expected...
>
> - Peter


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to