[Iohack-users 110] Re: gphoto2 on USL-5P

Zurück zum Archiv-Index

Kaz Kojima kkoji****@rr*****
2005年 1月 18日 (火) 20:28:14 JST


小島です。

Junichi Akita <akita****@is*****> wrote:
> 結論から言うと、libgphoto2のmake install時にエラーが出るのですが、
> その前のmakeの時に、次のようなWarningが出ていました。
> (./configureはデフォルトのまま)
> 
> ----
> (中略)
> /bin/sh ../libtool --mode=link gcc  -g -O2 -g -Wall -Wmissing-declarations -Wmissing-prototypes  -g -Wall -o libgphoto2_port.la -rpath /usr/local/lib -version-info 5:1:5 gphoto2-port-info-list.lo gphoto2-port-log.lo gphoto2-port-version.lo gphoto2-port.lo gphoto2-port-portability.lo gphoto2-port-result.lo -ldl  
> rm -fr .libs/libgphoto2_port.la .libs/libgphoto2_port.* .libs/libgphoto2_port.*
> 
> *** Warning: linker path does not have real file for library -ldl.
> *** I have the capability to make that library automatically link in when
> *** you link to this library.  But I can only do this if you have a
> *** shared version of the library, which you do not appear to have
> *** because I did check the linker path looking for a file starting
> *** with libdl and none of the candidates passed a file format test
> *** using a file magic. Last file checked: /lib/libdl-2.2.5.so
> *** The inter-library dependencies that have been dropped here will be
> *** automatically added whenever a program is linked with this library
> *** or is declared to -dlopen it.
> (以下略)

手元のあやしい環境(glibc-2.3.3 nptl/2.4.22+FC1)で libgphoto2-2.1.5
を展開して

./configure --prefix=/usr/local
make

としてみたのですが、この警告がでていなくて

gcc -shared  .libs/gphoto2-port-info-list.o .libs/gphoto2-port-log.o .libs/gpho\to2-port-version.o .libs/gphoto2-port.o .libs/gphoto2-port-portability.o .libs/\gphoto2-port-result.o  -ldl  -Wl,-soname -Wl,libgphoto2_port.so.0 -o .libs/libg\photo2_port.so.0.5.1

と引き続いています。 ここが static library を作るものに変わって
しまっていたりしているならそれが原因で install 時に error になって
いるのだろうと思います。
その場合は libgphoto2_port/libgphoto2_port/Makefile で -ldl を
-Wl,-ldl にすると libtool をごまかせるかもしれません。



Iohack-users メーリングリストの案内
Zurück zum Archiv-Index