install: error: relink `libtiffxx.la' with the above command


Page 1 of 3 123 LastLast
Results 1 to 15 of 43

Thread: install: error: relink `libtiffxx.la' with the above command

  1. #1
    Join Date
    Jul 2003
    Posts
    2,021

    install: error: relink `libtiffxx.la' with the above command

    Hi folks,

    Encountered problem on installing Libtiff-3.7.3. Steps performed as follows;

    Libtiff-3.7.3
    http://www.linuxfromscratch.org/blfs...l/libtiff.html

    bash-3.00$ cd ..
    bash-3.00$ tar zxf tiff-3.7.3.tar.gz
    bash-3.00$ cd tiff-3.7.3
    bash-3.00$ ./configure --prefix=/usr &&
    > make
    Code:
    Making all in images
    make[2]: Entering directory `/sources/tiff-3.7.3/html/images'
    make[2]: Nothing to be done for `all'.
    make[2]: Leaving directory `/sources/tiff-3.7.3/html/images'
    Making all in man
    make[2]: Entering directory `/sources/tiff-3.7.3/html/man'
    make[2]: Nothing to be done for `all'.
    make[2]: Leaving directory `/sources/tiff-3.7.3/html/man'
    make[2]: Entering directory `/sources/tiff-3.7.3/html'
    make[2]: Nothing to be done for `all-am'.
    make[2]: Leaving directory `/sources/tiff-3.7.3/html'
    make[1]: Leaving directory `/sources/tiff-3.7.3/html'
    make[1]: Entering directory `/sources/tiff-3.7.3'
    make[1]: Nothing to be done for `all-am'.
    make[1]: Leaving directory `/sources/tiff-3.7.3'
    bash-3.00$ make check
    Code:
    ....
     /bin/sh ../libtool --mode=install /bin/install -c  'libtiffxx.la'
    '/usr/lib/libtiffxx.la'
    libtool: install: warning: relinking `libtiffxx.la'
    (cd /sources/tiff-3.7.3/libtiff; /bin/sh ../libtool  --tag=CXX
    --mode=relink g++ -g -O2 -o libtiffxx.la -rpath /usr/lib -no-undefined
    -version-number 3:7:3 tif_stream.lo ../libtiff/libtiff.la -ljpeg -lz -lm
    -lc )
    g++ -shared -nostdlib
    /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../crti.o
    /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/crtbeginS.o  .libs/tif_stream.o
    -L/usr/lib -ltiff -ljpeg -lz -L/usr/lib/gcc/i686-pc-linux-gnu/3.4
    .......
    Making check in images
    make[2]: Entering directory `/sources/tiff-3.7.3/html/images'
    make[2]: Nothing to be done for `check'.
    make[2]: Leaving directory `/sources/tiff-3.7.3/html/images'
    Making check in man
    make[2]: Entering directory `/sources/tiff-3.7.3/html/man'
    make[2]: Nothing to be done for `check'.
    make[2]: Leaving directory `/sources/tiff-3.7.3/html/man'
    make[2]: Entering directory `/sources/tiff-3.7.3/html'
    make[2]: Nothing to be done for `check-am'.
    make[1]: Leaving directory `/sources/tiff-3.7.3'
    bash-3.00$ su
    Password:
    root@localhost:/sources/tiff-3.7.3# make install
    Code:
    ......
    tbeginS.o  .libs/tif_stream.o  -L/usr/lib -ltiff -ljpeg -lz
    -L/usr/lib/gcc/i686-pc-linux-gnu/3.4.3 -L/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../.. -lstdc++
    -lm -lc -lgcc_s /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/crtendS.o
    /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../crtn.o  -Wl,-soname -Wl,libtiffxx.so.3 -o
    .libs/libtiffxx.so.3.7.3
    collect2: cannot find `ld'
    libtool: install: error: relink `libtiffxx.la' with the above command
    before installing it
    make[2]: *** [install-libLTLIBRARIES] Error 1
    make[2]: Leaving directory `/sources/tiff-3.7.3/libtiff'
    make[1]: *** [install-am] Error 2
    make[1]: Leaving directory `/sources/tiff-3.7.3/libtiff'
    make: *** [install-recursive] Error 1
    # find / -name ld
    Code:
    /tools/bin/ld
    /tools/i686-pc-linux-gnu/bin/ld
    /usr/bin/ld
    Which of them I have to make symbolic-link and where to???

    root@localhost:/sources/tiff-3.7.3# find / -name libtiffxx.la
    Code:
    /sources/tiff-3.7.3/libtiff/.libs/libtiffxx.la
    /sources/tiff-3.7.3/libtiff/libtiffxx.la   
    /usr/lib/libtiffxx.la
    root@localhost:/sources/tiff-3.7.3# ls -al /sources/tiff-3.7.3/libtiff/libtiffxx.la
    Code:
    -rw-rw-r--  1 satimis satimis 1352 Sep 10 19:25 /sources/tiff-3.7.3/libtiff/libtiffxx.la
    root@localhost:/sources/tiff-3.7.3# ls -al /sources/tiff-3.7.3/libtiff/.libs/libtiffxx.la
    Code:
    rwxrwxrwx  1 satimis satimis 15 Sep 10 19:25 /sources/tiff-3.7.3/libtiff/.libs/libtiffxx.la ->
    ../libtiffxx.la
    root@localhost:/sources/tiff-3.7.3# ls -al /usr/lib/libtiffxx.la
    Code:
    -rwxr-xr-x  1 root root 990 Aug 19 07:28 /usr/lib/libtiffxx.la (in green colour.  Suppose
    having a symbolic link to some where)
    BR
    satimis

  2. #2
    Join Date
    Apr 2001
    Location
    SF Bay Area, CA
    Posts
    14,936
    Quote Originally Posted by satimis
    # make install
    Code:
    ......
    tbeginS.o  .libs/tif_stream.o  -L/usr/lib -ltiff -ljpeg -lz
    -L/usr/lib/gcc/i686-pc-linux-gnu/3.4.3 -L/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../.. -lstdc++
    -lm -lc -lgcc_s /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/crtendS.o
    /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../crtn.o  -Wl,-soname -Wl,libtiffxx.so.3 -o
    .libs/libtiffxx.so.3.7.3
    collect2: cannot find `ld'
    libtool: install: error: relink `libtiffxx.la' with the above command
    before installing it
    make[2]: *** [install-libLTLIBRARIES] Error 1
    make[2]: Leaving directory `/sources/tiff-3.7.3/libtiff'
    make[1]: *** [install-am] Error 2
    make[1]: Leaving directory `/sources/tiff-3.7.3/libtiff'
    make: *** [install-recursive] Error 1
    Fun fun fun, this error again.

    OK, first, try this:

    cd /sources/tiff-3.7.3/libtiff
    make install

    and see if it gives the same error. If so:

    cd /sources/tiff-3.7.3/libtiff
    <run the last "libtool" command from the output you posted -- you chopped some of the last part off, so I can't see the whole command >

    and see if it, again, gives the same error. If so, post the full libtool command, and the full output, and I'll see if there's a way to add a -v switch (verbose mode) to see if we can figure out where it's looking for ld.

    Which of them I have to make symbolic-link and where to???
    I don't think a symlink is the answer, although I don't know for sure what is. Try the troubleshooting stuff above.

  3. #3
    Join Date
    Jul 2003
    Posts
    2,021
    Hi bwkaz,

    cd /sources/tiff-3.7.3/libtiff
    make install

    and see if it gives the same error.
    bash-3.00$ cd /sources/
    bash-3.00$ rm -Rf tiff-3.7.3
    bash-3.00$ tar zxf tiff-3.7.3.tar.gz
    bash-3.00$ cd tiff-3.7.3
    bash-3.00$ ./configure --prefix=/usr &&
    > make
    Code:
    ...
    .....
    Making all in test
    make[1]: Entering directory `/sources/tiff-3.7.3/test'
    make[1]: Nothing to be done for `all'.
    make[1]: Leaving directory `/sources/tiff-3.7.3/test'   
    Making all in man
    make[1]: Entering directory `/sources/tiff-3.7.3/man'
    make[1]: Nothing to be done for `all'.
    make[1]: Leaving directory `/sources/tiff-3.7.3/man'
    Making all in html
    make[1]: Entering directory `/sources/tiff-3.7.3/html'
    Making all in images
    make[2]: Entering directory `/sources/tiff-3.7.3/html/images'
    make[2]: Nothing to be done for `all'.
    make[2]: Leaving directory `/sources/tiff-3.7.3/html/images'
    Making all in man
    make[2]: Entering directory `/sources/tiff-3.7.3/html/man'
    make[2]: Nothing to be done for `all'.
    make[2]: Leaving directory `/sources/tiff-3.7.3/html/man'
    make[2]: Entering directory `/sources/tiff-3.7.3/html'
    make[2]: Nothing to be done for `all-am'.
    make[2]: Leaving directory `/sources/tiff-3.7.3/html'
    make[1]: Leaving directory `/sources/tiff-3.7.3/html'
    make[1]: Entering directory `/sources/tiff-3.7.3'
    make[1]: Nothing to be done for `all-am'.
    make[1]: Leaving directory `/sources/tiff-3.7.3'
    bash-3.00$
    bash-3.00$ cd libtiff/
    bash-3.00$ su
    Password:
    root@localhost:/sources/tiff-3.7.3/libtiff# make install
    Code:
    make[1]: Entering directory `/sources/tiff-3.7.3/libtiff'
    test -z "/usr/lib" || mkdir -p -- "/usr/lib"
     /bin/sh ../libtool --mode=install /bin/install -c  'libtiff.la' '/usr/lib/libtiff.la'
    /bin/install -c .libs/libtiff.so.3.7.3 /usr/lib/libtiff.so.3.7.3
    (cd /usr/lib && rm -f libtiff.so.3 && ln -s libtiff.so.3.7.3 libtiff.so.3)
    (cd /usr/lib && rm -f libtiff.so && ln -s libtiff.so.3.7.3 libtiff.so)
    /bin/install -c .libs/libtiff.lai /usr/lib/libtiff.la
    /bin/install -c .libs/libtiff.a /usr/lib/libtiff.a
    ranlib /usr/lib/libtiff.a
    chmod 644 /usr/lib/libtiff.a
    PATH="$PATH:/sbin" ldconfig -n /usr/lib
    ----------------------------------------------------------------------
    Libraries have been installed in:
       /usr/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.
    ----------------------------------------------------------------------
     /bin/sh ../libtool --mode=install /bin/install -c  'libtiffxx.la' '/usr/lib/libtiffxx.la'
    libtool: install: warning: relinking `libtiffxx.la'
    (cd /sources/tiff-3.7.3/libtiff; /bin/sh ../libtool  --tag=CXX --mode=relink g++ -g -O2 -o
    libtiffxx.la -rpath /usr/lib -no-undefined -version-number 3:7:3 tif_stream.lo
    ../libtiff/libtiff.la -ljpeg -lz -lm -lc )
    g++ -shared -nostdlib /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../crti.o
    /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/crtbeginS.o  .libs/tif_stream.o  -L/usr/lib -ltiff
    -ljpeg -lz -L/usr/lib/gcc/i686-pc-linux-gnu/3.4.3
    -L/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../.. -lstdc++ -lm -lc -lgcc_s
    /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/crtendS.o
    /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../crtn.o  -Wl,-soname -Wl,libtiffxx.so.3 -o
    .libs/libtiffxx.so.3.7.3
    collect2: cannot find `ld'
    libtool: install: error: relink `libtiffxx.la' with the above command before installing it
    make[1]: *** [install-libLTLIBRARIES] Error 1
    make[1]: Leaving directory `/sources/tiff-3.7.3/libtiff' 
    make: *** [install-am] Error 2
    root@localhost:/sources/tiff-3.7.3/libtiff#
    If so:

    cd /sources/tiff-3.7.3/libtiff
    <run the last "libtool" command from the output you posted -- you chopped some of the last part off, so I can't see the whole command >
    root@localhost:/sources/tiff-3.7.3/libtiff# /bin/sh ../libtool --mode=install /bin/install
    -c 'libtiffxx.la' '/usr/lib/libtiffxx.la'
    Code:
    libtool: install: warning: relinking `libtiffxx.la'
    (cd /sources/tiff-3.7.3/libtiff; /bin/sh ../libtool  --tag=CXX --mode=relink g++ -g -O2 -o
    libtiffxx.la -rpath /usr/lib -no-undefined -version-number 3:7:3 tif_stream.lo
    ../libtiff/libtiff.la -ljpeg -lz -lm -lc )
    mv: cannot stat `libtiffxx.so.3.7.3': No such file or directory
    libtool: install: error: relink `libtiffxx.la' with the above command before installing it
    root@localhost:/sources/tiff-3.7.3/libtiff#
    BR
    satimis

  4. #4
    Join Date
    Nov 2002
    Location
    Sheridan, Michigan
    Posts
    320
    Try this:

    Code:
    ./configure --prefix=/usr --disable-cxx
    Patrick Verner
    www.partedmagic.com

  5. #5
    Join Date
    Apr 2001
    Location
    SF Bay Area, CA
    Posts
    14,936
    Quote Originally Posted by Exodus2001
    Try this:

    Code:
    ./configure --prefix=/usr --disable-cxx
    Yeah, that'll work around the problem. But satimis has had this issue before with a different package (lesstif, IIRC). I want to actually fix the problem, instead of just working around it. It may show up later in yet another package, where it can't be worked around.

    Quote Originally Posted by satimis
    bash-3.00$ rm -Rf tiff-3.7.3
    Actually, I didn't mean for you to delete everything and start from scratch, but it turned out not to matter. In any case, in the future, for this specific problem, don't remove the directory.

    [code]# /bin/sh ../libtool --mode=install /bin/install
    -c 'libtiffxx.la' '/usr/lib/libtiffxx.la'
    Code:
    libtool: install: warning: relinking `libtiffxx.la'
    (cd /sources/tiff-3.7.3/libtiff; /bin/sh ../libtool  --tag=CXX --mode=relink g++ -g -O2 -o
    libtiffxx.la -rpath /usr/lib -no-undefined -version-number 3:7:3 tif_stream.lo
    ../libtiff/libtiff.la -ljpeg -lz -lm -lc )
    mv: cannot stat `libtiffxx.so.3.7.3': No such file or directory
    libtool: install: error: relink `libtiffxx.la' with the above command before installing it
    OK... first, from the libtiff directory, do another "make".

    Then, from the same directory:

    /bin/sh ../libtool --tag=CXX --mode=relink g++ -g -O2 -o libtiffxx.la -rpath /usr/lib -no-undefined -version-number 3:7:3 tif_stream.lo libtiff.la -ljpeg -lz -lm -lc -v -Wl,-v

    and post the full output. This should turn on the "verbose" flag, and hopefully give some more information.

  6. #6
    Join Date
    Jul 2003
    Posts
    2,021
    Hi bwkaz,

    first, from the libtiff directory, do another "make".
    bash-3.00$ cd /sources/tiff-3.7.3/libtiff/
    root@localhost:/sources/tiff-3.7.3/libtiff# make
    Code:
    make  all-am
    make[1]: Entering directory `/sources/tiff-3.7.3/libtiff'
    make[1]: Leaving directory `/sources/tiff-3.7.3/libtiff'
    Then, from the same directory:

    /bin/sh ../libtool --tag=CXX --mode=relink g++ -g -O2 -o libtiffxx.la -rpath /usr/lib -no-undefined -version-number 3:7:3 tif_stream.lo libtiff.la -ljpeg -lz -lm -lc -v -Wl,-v

    and post the full output. This should turn on the "verbose" flag, and hopefully give some more information.
    root@localhost:/sources/tiff-3.7.3/libtiff# /bin/sh ../libtool --tag=CXX --mode=relink g++ -g -O2 -o libtiffxx.la -rpath /usr/lib -no-undefined -version-number 3:7:3 tif_stream.lo libtiff.la -ljpeg -lz -lm -lc -v -Wl,-v
    Code:
    mv: cannot stat `libtiffxx.so.3.7.3': No such file or directory
    As User/satimis, result was the same.

    Others noted with tks

    satimis

  7. #7
    Join Date
    Apr 2001
    Location
    SF Bay Area, CA
    Posts
    14,936
    Quote Originally Posted by satimis
    # /bin/sh ../libtool --tag=CXX --mode=relink g++ -g -O2 -o libtiffxx.la -rpath /usr/lib -no-undefined -version-number 3:7:3 tif_stream.lo libtiff.la -ljpeg -lz -lm -lc -v -Wl,-v
    Code:
    mv: cannot stat `libtiffxx.so.3.7.3': No such file or directory
    Ah, crap.

    It might help to add a "-x" before ../libtool in the above command. This will print a ton of debugging information (like what commands are about to be run); that might hold a clue.

    Also, try this:

    g++ -v -Wl,-v -shared -nostdlib /usr/lib/gcc/*/*/../../../crti.o /usr/lib/gcc/*/*/crtbeginS.o .libs/tif_stream.o -L/usr/lib -ltiff -ljpeg -lz -L/usr/lib/gcc/*/* -L/usr/lib/gcc/*/*/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/*/*/crtendS.o /usr/lib/gcc/*/*/../../../crtn.o -Wl,-soname -Wl,libtiffxx.so.3 -o .libs/libtiffxx.so.3.7.3

    I don't think that'll fix the problem, but I want to see if it gives the same error about not finding ld.

  8. #8
    Join Date
    Jul 2003
    Posts
    2,021
    HI bwkaz,

    It might help to add a "-x" before ../libtool in the above command. ...
    As USER/satimis

    Remark: as root on another posting followed

    bash-3.00$ cd /sources/tiff-3.7.3/libtiff/
    bash-3.00$ make
    Code:
    make  all-am
    make[1]: Entering directory `/sources/tiff-3.7.3/libtiff'
    make[1]: Leaving directory `/sources/tiff-3.7.3/libtiff'
    bash-3.00$ /bin/sh -x ../libtool --tag=CXX --mode=relink g++ -g -O2 -o libtiffxx.la
    -rpath /usr/lib -no-undefined -version-number 3:7:3 tif_stream.lo libtiff.la -ljpeg
    Code:
    ..
    ...
    + linklib=libstdc++.so.6
    + for l in '$old_library' '$library_names'
    + linklib=libstdc++.so
    + test -z libstdc++.so
    + test link = dlopen
    + case $ladir in
    + abs_ladir=/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../
    ++ echo X/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../..//libstdc++.la
    ++ /bin/sed -e '1s/^X//' -e 's%^.*/%%'
    + laname=libstdc++.la
    + test Xyes = Xyes
    + test '!' -f /usr/lib/libstdc++.so
    + dir=/usr/lib  
    + absdir=/usr/lib  
    + test Xno = Xyes
    ++ echo Xlibstdc++.la
    ++ /bin/sed -e '1s/^X//' -e 's/\.la$//' -e 's/^lib//'
    + name=stdc++
    + test link = dlpreopen
    + test -z /usr/lib
    + test lib = prog
    + test lib,link = prog,link
    + link_static=no
    + test -n 'libstdc++.so.6.0.3 libstdc++.so.6 libstdc++.so'
    + test no = no
    + test yes = no
    + test no = yes
    + test lib = lib
    + test no = yes
    + test lib = lib
    + test yes = yes
    + case " $sys_lib_dlsearch_path " in
    + case " $sys_lib_dlsearch_path " in
    + test -n ''
    + test lib = prog
    + test relink '!=' relink
    + test lib = prog
    + test relink = relink
    + add_shlibpath=
    + add_dir=
    + add=
    + test no = yes
    + test no = yes
    + test '' = yes 
    ...
    
    <snip>
    
    ....
    -lz -lm -lc -v -Wl,-v
    + test yes = yes
    + hardcode_libdirs=
    + dep_rpath=
    + rpath=
    + test relink '!=' relink
    + test -n '' 
    + test -n LD_RUN_PATH  
    + test -n ''
    + test -n ''
    + shlibpath=
    + test relink '!=' relink
    + test -n ''
    + eval 'shared_ext=".so"'
    ++ shared_ext=.so
    + eval 'library_names="${libname}${release}${shared_ext}$versuffix'
    '${libname}${release}${shared_ext}$major' '$libname${shared_ext}"'
    + eval 'library_names="${libname}${release}${shared_ext}$versuffix'
    '${libname}${release}${shared_ext}$major' '$libname${shared_ext}"'
    ++ library_names='libtiffxx.so.3.7.3 libtiffxx.so.3 libtiffxx.so'
    + set dummy libtiffxx.so.3.7.3 libtiffxx.so.3 libtiffxx.so
    + realname=libtiffxx.so.3.7.3
    + shift
    + shift
    + test -n '${libname}${release}${shared_ext}$major'
    + eval 'soname="${libname}${release}${shared_ext}$major"'
    ++ soname=libtiffxx.so.3
    + test -z ''
    + dlname=libtiffxx.so.3
    + lib=.libs/libtiffxx.so.3.7.3
    + for link in '"$@"'
    + linknames=' libtiffxx.so.3'
    + for link in '"$@"'
    + linknames=' libtiffxx.so.3 libtiffxx.so'
    + test -z ' -fPIC -DPIC'
    + test -z ''
    + test no = yes
    + test -n ''
    + test -n ''
    + tmp_deplibs=  
    + for test_deplib in '$deplibs'
    + case " $convenience " in
    + tmp_deplibs=' -L/usr/lib'
    + for test_deplib in '$deplibs'
    + case " $convenience " in
    + tmp_deplibs=' -L/usr/lib -ltiff'
    + for test_deplib in '$deplibs'
    + case " $convenience " in
    + tmp_deplibs=' -L/usr/lib -ltiff -ljpeg'
    + for test_deplib in '$deplibs'
    + case " $convenience " in
    + tmp_deplibs=' -L/usr/lib -ltiff -ljpeg -lz'
    + for test_deplib in '$deplibs'
    + case " $convenience " in
    + tmp_deplibs=' -L/usr/lib -ltiff -ljpeg -lz -L/usr/lib/gcc/i686-pc-linux-gnu/3.4.3'
    + case " $convenience " in
    + tmp_deplibs=' -L/usr/lib -ltiff -ljpeg -lz -L/usr/lib/gcc/i686-pc-linux-gnu/3.4.3'
    + for test_deplib in '$deplibs'
    + case " $convenience " in
    + tmp_deplibs=' -L/usr/lib -ltiff -ljpeg -lz -L/usr/lib/gcc/i686-pc-linux-gnu/3.4.3
    -L/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../..'
    + for test_deplib in '$deplibs'
    + case " $convenience " in
    + tmp_deplibs=' -L/usr/lib -ltiff -ljpeg -lz -L/usr/lib/gcc/i686-pc-linux-gnu/3.4.3
    -L/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../.. -lstdc++'
    + for test_deplib in '$deplibs'
    + case " $convenience " in
    + tmp_deplibs=' -L/usr/lib -ltiff -ljpeg -lz -L/usr/lib/gcc/i686-pc-linux-gnu/3.4.3
    -L/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../.. -lstdc++ -lm'
    + for test_deplib in '$deplibs'
    + case " $convenience " in
    + tmp_deplibs=' -L/usr/lib -ltiff -ljpeg -lz -L/usr/lib/gcc/i686-pc-linux-gnu/3.4.3
    -L/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../.. -lstdc++ -lm -lc'
    + for test_deplib in '$deplibs'
    + case " $convenience " in
    + tmp_deplibs=' -L/usr/lib -ltiff -ljpeg -lz -L/usr/lib/gcc/i686-pc-linux-gnu/3.4.3
    -L/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../.. -lstdc++ -lm -lc -lgcc_s'
    + deplibs=' -L/usr/lib -ltiff -ljpeg -lz -L/usr/lib/gcc/i686-pc-linux-gnu/3.4.3
    -L/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../.. -lstdc++ -lm -lc -lgcc_s'
    + test -n ''
    + test no = yes
    + test relink = relink
    + eval '(cd $output_objdir && $rm ${realname}U && $mv $realname ${realname}U)'
    ++ cd .libs
    ++ rm -f libtiffxx.so.3.7.3U   
    ++ mv -f libtiffxx.so.3.7.3 libtiffxx.so.3.7.3U
    mv: cannot stat `libtiffxx.so.3.7.3': No such file or directory
    + exit 1
    Can't go back to the beginning.

    Also, try this:

    g++ -v -Wl,-v -shared -nostdlib /usr/lib/gcc/*/*/../../../crti.o /usr/lib/gcc/*/*/crtbeginS.o .libs/tif_stream.o -L/usr/lib -ltiff -ljpeg -lz -L/usr/lib/gcc/*/* -L/usr/lib/gcc/*/*/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/*/*/crtendS.o /usr/lib/gcc/*/*/../../../crtn.o -Wl,-soname -Wl,libtiffxx.so.3 -o .libs/libtiffxx.so.3.7.3
    bash-3.00$ g++ -v -Wl,-v -shared -nostdlib /usr/lib/gcc/*/*/../../../crti.o
    /usr/lib/gcc/*/*/crtbeginS.o .libs/tif_stream.o -L/usr/lib -ltiff -ljpeg -lz
    -L/usr/lib/gcc/*/* -L/usr/lib/gcc/*/*/../../.. -lstdc++ -lm -lc -lgcc_s
    /usr/lib/gcc/*/*/crtendS.o /usr/lib/gcc/*/*/../../../crtn.o -Wl,-soname
    -L/usr/lib/gcc/*/* -L/usr/lib/gcc/*/*/../../.. -lstdc++ -lm -lc -lgcc_s
    /usr/lib/gcc/*/*/crtendS.o /usr/lib/gcc/*/*/../../../crtn.o -Wl,-soname
    -Wl,libtiffxx.so.3 -o .libs/libtiffxx.so.3.7.3
    Code:
    Reading specs from
    /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/specs
    Configured with: ../gcc-3.4.3/configure --prefix=/usr --libexecdir=/usr/lib
    --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
    --enable-languages=c,c++
    Thread model: posix
    gcc version 3.4.3
     /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/collect2 --eh-frame-hdr -m elf_i386 -shared -o
    .libs/libtiffxx.so.3.7.3 -L/usr/lib -L/usr/lib/gcc/*/* -L/usr/lib/gcc/*/*/../../..
    -L/usr/lib/gcc/i686-pc-linux-gnu/3.4.3 -L/usr/lib/gcc/i686-pc-linux-gnu/3.4.3
    -L/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../.. -v
    /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../crti.o
    /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/crtbeginS.o .libs/tif_stream.o -ltiff -ljpeg
    -lz -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/crtendS.o
    /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../crtn.o -soname libtiffxx.so.3
    collect2 version 3.4.3 (i386 Linux/ELF)
    /usr/bin/ld --eh-frame-hdr -m elf_i386 -shared -o .libs/libtiffxx.so.3.7.3
    -L/usr/lib -L/usr/lib/gcc/*/* -L/usr/lib/gcc/*/*/../../..
    -L/usr/lib/gcc/i686-pc-linux-gnu/3.4.3 -L/usr/lib/gcc/i686-pc-linux-gnu/3.4.3
    -L/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../.. -v
    /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../crti.o
    /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/crtbeginS.o .libs/tif_stream.o -ltiff -ljpeg
    -lz -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/crtendS.o
    /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../crtn.o -soname libtiffxx.so.3
    GNU ld version 2.15.94.0.2.2 20041220
    satimis

  9. #9
    Join Date
    Jul 2003
    Posts
    2,021
    Hi bwkaz,

    bash-3.00$ su
    Password:
    root@localhost:/sources/tiff-3.7.3/libtiff#
    Code:
    make  all-am
    make[1]: Entering directory `/sources/tiff-3.7.3/libtiff'
    make[1]: Leaving directory `/sources/tiff-3.7.3/libtiff'
    root@localhost:/sources/tiff-3.7.3/libtiff#
    root@localhost:/sources/tiff-3.7.3/libtiff# /bin/sh -x ../libtool --tag=CXX
    --mode=relink g++ -g -O2 -o libtiffxx.la -rpath /usr/lib -no-undefined
    -version-number 3:7:3 tif_stream.lo libtiff.la -ljpeg -lz -lm -lc -v -Wl,-v
    Code:
    ....
    ..
    ....
    + IFS='~'
    + for cmd in '$cmds'
    + IFS='
    '
    + eval 'cmd="$CC' -shared -nostdlib '$predep_objects' '$libobjs' '$deplibs'
    '$postdep_objects' '$compiler_flags' '${wl}-soname' '$wl$soname' -o '$lib"'
    ++ cmd='g++ -shared -nostdlib /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../crti.o
    /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/crtbeginS.o  .libs/tif_stream.o  -L/usr/lib
    -ltiff -ljpeg -lz -L/usr/lib/gcc/i686-pc-linux-gnu/3.4.3
    -L/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../.. -lstdc++ -lm -lc -lgcc_s
    /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/crtendS.o
    /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../crtn.o  -Wl,-v -Wl,-soname
    -Wl,libtiffxx.so.3 -o .libs/libtiffxx.so.3.7.3'
    + echo 'g++ -shared -nostdlib /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../crti.o
    -Wl,libtiffxx.so.3 -o .libs/libtiffxx.so.3.7.3'
    + echo 'g++ -shared -nostdlib /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../crti.o
    /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/crtbeginS.o  .libs/tif_stream.o  -L/usr/lib
    -ltiff -ljpeg -lz -L/usr/lib/gcc/i686-pc-linux-gnu/3.4.3
    -L/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../.. -lstdc++ -lm -lc -lgcc_s
    /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/crtendS.o
    /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../crtn.o  -Wl,-v -Wl,-soname   
    -Wl,libtiffxx.so.3 -o .libs/libtiffxx.so.3.7.3'
    g++ -shared -nostdlib /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../crti.o
    /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/crtbeginS.o  .libs/tif_stream.o  -L/usr/lib
    -ltiff -ljpeg -lz -L/usr/lib/gcc/i686-pc-linux-gnu/3.4.3
    -L/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../.. -lstdc++ -lm -lc -lgcc_s
    /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/crtendS.o   
    /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../crtn.o  -Wl,-v -Wl,-soname
    -Wl,libtiffxx.so.3 -o .libs/libtiffxx.so.3.7.3
    + eval 'g++ -shared -nostdlib /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../crti.o
    /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/crtbeginS.o  .libs/tif_stream.o  -L/usr/lib
    -ltiff -ljpeg -lz -L/usr/lib/gcc/i686-pc-linux-gnu/3.4.3
    -L/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../.. -lstdc++ -lm -lc -lgcc_s
    /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/crtendS.o
    /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../crtn.o  -Wl,-v -Wl,-soname
    -Wl,libtiffxx.so.3 -o .libs/libtiffxx.so.3.7.3'
    ++ g++ -shared -nostdlib /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../crti.o
    /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/crtbeginS.o .libs/tif_stream.o -L/usr/lib
    -ltiff -ljpeg -lz -L/usr/lib/gcc/i686-pc-linux-gnu/3.4.3
    -L/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../.. -lstdc++ -lm -lc -lgcc_s
    /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/crtendS.o
    /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../crtn.o -Wl,-v -Wl,-soname
    -Wl,libtiffxx.so.3 -o .libs/libtiffxx.so.3.7.3
    collect2 version 3.4.3 (i386 Linux/ELF)
    [cannot find ld] --eh-frame-hdr -m elf_i386 -shared -o .libs/libtiffxx.so.3.7.3   
    -L/usr/lib -L/usr/lib/gcc/i686-pc-linux-gnu/3.4.3
    -L/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../..
    -L/usr/lib/gcc/i686-pc-linux-gnu/3.4.3 -L/usr/lib/gcc/i686-pc-linux-gnu/3.4.3
    -L/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../..
    /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../crti.o
    /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/crtbeginS.o .libs/tif_stream.o -ltiff -ljpeg
    -lz -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/crtendS.o
    /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/crtbeginS.o .libs/tif_stream.o -ltiff -ljpeg
    -lz -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/crtendS.o
    /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../crtn.o -v -soname libtiffxx.so.3  
    collect2: cannot find `ld'
    + exit 1
    root@localhost:/sources/tiff-3.7.3/libtiff# g++ -v -Wl,-v -shared -nostdlib
    /usr/lib/gcc/*/*/../../../crti.o /usr/lib/gcc/*/*/crtbeginS.o .libs/tif_stream.o
    -L/usr/lib -ltiff -ljpeg -lz -L/usr/lib/gcc/*/* -L/usr/lib/gcc/*/*/../../.. -lstdc++
    -lm -lc -lgcc_s /usr/lib/gcc/*/*/crtendS.o /usr/lib/gcc/*/*/../../../crtn.o
    -Wl,-soname -Wl,libtiffxx.so.3 -o .libs/libtiffxx.so.3.7.3
    Code:
    Reading specs from /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/specs
    Configured with: ../gcc-3.4.3/configure --prefix=/usr --libexecdir=/usr/lib
    --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
    --enable-languages=c,c++
    Thread model: posix
    gcc version 3.4.3
     /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/collect2 --eh-frame-hdr -m elf_i386 -shared -o
    .libs/libtiffxx.so.3.7.3 -L/usr/lib -L/usr/lib/gcc/*/* -L/usr/lib/gcc/*/*/../../..
    -L/usr/lib/gcc/i686-pc-linux-gnu/3.4.3 -L/usr/lib/gcc/i686-pc-linux-gnu/3.4.3
    -L/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../.. -v
    /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../crti.o
    /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/crtbeginS.o .libs/tif_stream.o -ltiff -ljpeg
    -lz -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/crtendS.o
    /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../crtn.o -soname libtiffxx.so.3
    collect2 version 3.4.3 (i386 Linux/ELF)
    [cannot find ld] --eh-frame-hdr -m elf_i386 -shared -o .libs/libtiffxx.so.3.7.3   
    -L/usr/lib -L/usr/lib/gcc/*/* -L/usr/lib/gcc/*/*/../../..
    -L/usr/lib/gcc/i686-pc-linux-gnu/3.4.3 -L/usr/lib/gcc/i686-pc-linux-gnu/3.4.3
    -L/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../.. -v
    /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../crti.o
    /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/crtbeginS.o .libs/tif_stream.o -ltiff -ljpeg
    -lz -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/crtendS.o
    /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../crtn.o -soname libtiffxx.so.3
    collect2: cannot find `ld'
    root@localhost:/sources/tiff-3.7.3/libtiff#
    satimis

  10. #10
    Join Date
    Jul 2003
    Posts
    2,021

    Same problem on istalling libusb package

    Hi folks,

    I just tried to install Libusb-0.1.10a and met the same problem.

    http://www.linuxfromscratch.org/blfs...al/libusb.html

    Steps performed as follows;
    bash-3.00$ cd /sources/
    bash-3.00$ tar zxf libusb-0.1.10a.tar.gz
    bash-3.00$ cd libusb-0.1.10a
    bash-3.00$ ./configure --prefix=/usr --disable-build-docs &&
    > make
    Code:
    ...
    ....
    creating driver_name
    make[2]: Leaving directory `/sources/libusb-0.1.10a/tests'
    Making all in doc
    make[2]: Entering directory `/sources/libusb-0.1.10a/doc'
    make[2]: Nothing to be done for `all'.
    make[2]: Leaving directory `/sources/libusb-0.1.10a/doc'
    make[1]: Leaving directory `/sources/libusb-0.1.10a'
    root@localhost:/sources/libusb-0.1.10a# make install
    Code:
    Making install in .
    make[1]: Entering directory `/sources/libusb-0.1.10a'
    make[2]: Entering directory `/sources/libusb-0.1.10a'
    test -z "/usr/bin" || mkdir -p -- . "/usr/bin"
     /bin/install -c 'libusb-config' '/usr/bin/libusb-config'
    test -z "/usr/lib" || mkdir -p -- . "/usr/lib"
     /bin/sh ./libtool --mode=install /bin/install -c  'libusb.la'
    '/usr/lib/libusb.la'
    /bin/install -c .libs/libusb-0.1.so.4.4.2 /usr/lib/libusb-0.1.so.4.4.2
    (cd /usr/lib && rm -f libusb-0.1.so.4 && ln -s libusb-0.1.so.4.4.2
    libusb-0.1.so.4)
    (cd /usr/lib && rm -f libusb.so && ln -s libusb-0.1.so.4.4.2 libusb.so)
    /bin/install -c .libs/libusb.lai /usr/lib/libusb.la
    /bin/install -c .libs/libusb.a /usr/lib/libusb.a
    ranlib /usr/lib/libusb.a
    chmod 644 /usr/lib/libusb.a
    PATH="$PATH:/sbin" ldconfig -n /usr/lib
    ----------------------------------------------------------------------
    Libraries have been installed in:
       /usr/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.
    ----------------------------------------------------------------------
     /bin/sh ./libtool --mode=install /bin/install -c  'libusbpp.la'
    '/usr/lib/libusbpp.la'
    libtool: install: warning: relinking `libusbpp.la'
    (cd /sources/libusb-0.1.10a; /bin/sh ./libtool  --mode=relink g++ -g -O2
    -o libusbpp.la -rpath /usr/lib -version-info 8:2:
    4 -release 0.1 -export-dynamic -lusb usbpp.lo )
    g++ -shared -nostdlib
    /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../crti.o
    /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/crtbeginS.
    o  .libs/usbpp.o  -L/sources/gcc-build/gcc
    -L/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3/src/.libs
    -L/sources/gcc-bu
    ild/i686-pc-linux-gnu/libstdc++-v3/src -L/usr/lib -lusb
    -L/usr/lib/gcc/i686-pc-linux-gnu/3.4.3 -L/usr/lib/gcc/i686-pc-linu
    x-gnu/3.4.3/../../.. -lstdc++ -lm -lc -lgcc_s
    /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/crtendS.o
    /usr/lib/gcc/i686-pc-linux-gn
    u/3.4.3/../../../crtn.o  -Wl,-soname -Wl,libusbpp-0.1.so.4 -o
    .libs/libusbpp-0.1.so.4.4.2
    collect2: cannot find `ld'
    libtool: install: error: relink `libusbpp.la' with the above command
    before installing it
    make[2]: *** [install-libLTLIBRARIES] Error 1
    make[2]: Leaving directory `/sources/libusb-0.1.10a'
    make[1]: *** [install-am] Error make[1]: Leaving directory `/sources/libusb-0.1.10a'
    make: *** [install-recursive] Error 1
    root@localhost:/sources/libusb-0.1.10a#
    However I got it installed on chroot without problem (both "configure" and "make install" as root)

    root@localhost:/sources/libusb-0.1.10a# make install
    Code:
    ...
    .....
    test -z "/usr/include" || mkdir -p -- . "/usr/include"
     /bin/install -c -m 644 'usbpp.h' '/usr/include/usbpp.h'
    test -z "/usr/include" || mkdir -p -- . "/usr/include"
     /bin/install -c -m 644 'usb.h' '/usr/include/usb.h'
    make[2]: Leaving directory `/sources/libusb-0.1.10a'
    make[1]: Leaving directory `/sources/libusb-0.1.10a'
    Making install in tests
    make[1]: Entering directory `/sources/libusb-0.1.10a/tests'
    make[2]: Entering directory `/sources/libusb-0.1.10a/tests'
    make[2]: Nothing to be done for `install-exec-am'.
    make[2]: Nothing to be done for `install-data-am'.
    make[2]: Leaving directory `/sources/libusb-0.1.10a/tests'
    make[1]: Leaving directory `/sources/libusb-0.1.10a/tests'
    Making install in doc
    make[1]: Entering directory `/sources/libusb-0.1.10a/doc'
    make[2]: Entering directory `/sources/libusb-0.1.10a/doc'
    make[2]: Nothing to be done for `install-exec-am'.
    make[2]: Nothing to be done for `install-data-am'.
    make[2]: Leaving directory `/sources/libusb-0.1.10a/doc'
    make[1]: Leaving directory `/sources/libusb-0.1.10a/doc'
    root@localhost:/sources/libusb-0.1.10a#
    BR
    satimis

  11. #11
    Join Date
    Apr 2001
    Location
    SF Bay Area, CA
    Posts
    14,936
    OK, don't do any more stuff as root, unless the BLFS instructions tell you to (for example, installing as root is fine). The user that you are during compilation shouldn't make any difference, but if it is, something's broken. I need to find out what.

    I'll go through your first post (the one as a normal user) here.

    Quote Originally Posted by satimis
    $ /bin/sh -x ../libtool --tag=CXX --mode=relink g++ -g -O2 -o libtiffxx.la -rpath /usr/lib -no-undefined -version-number 3:7:3 tif_stream.lo libtiff.la -ljpeg
    Code:
    + test relink = relink
    + eval '(cd $output_objdir && $rm ${realname}U && $mv $realname ${realname}U)'
    ++ cd .libs
    ++ rm -f libtiffxx.so.3.7.3U   
    ++ mv -f libtiffxx.so.3.7.3 libtiffxx.so.3.7.3U
    mv: cannot stat `libtiffxx.so.3.7.3': No such file or directory
    + exit 1
    cd into .libs and see whether libtiff.so.3.7.3 exists.

    $ g++ -v -Wl,-v -shared -nostdlib /usr/lib/gcc/*/*/../../../crti.o
    /usr/lib/gcc/*/*/crtbeginS.o .libs/tif_stream.o -L/usr/lib -ltiff -ljpeg -lz
    -L/usr/lib/gcc/*/* -L/usr/lib/gcc/*/*/../../.. -lstdc++ -lm -lc -lgcc_s
    /usr/lib/gcc/*/*/crtendS.o /usr/lib/gcc/*/*/../../../crtn.o -Wl,-soname
    -L/usr/lib/gcc/*/* -L/usr/lib/gcc/*/*/../../.. -lstdc++ -lm -lc -lgcc_s
    /usr/lib/gcc/*/*/crtendS.o /usr/lib/gcc/*/*/../../../crtn.o -Wl,-soname
    -Wl,libtiffxx.so.3 -o .libs/libtiffxx.so.3.7.3
    Code:
    <...>
    /usr/bin/ld --eh-frame-hdr -m elf_i386 -shared -o .libs/libtiffxx.so.3.7.3
    -L/usr/lib -L/usr/lib/gcc/*/* -L/usr/lib/gcc/*/*/../../..
    -L/usr/lib/gcc/i686-pc-linux-gnu/3.4.3 -L/usr/lib/gcc/i686-pc-linux-gnu/3.4.3
    -L/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../.. -v
    /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../crti.o
    /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/crtbeginS.o .libs/tif_stream.o -ltiff -ljpeg
    -lz -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/crtendS.o
    /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../crtn.o -soname libtiffxx.so.3
    So as you, it can find ld just fine. The problem is that it can't find .libs/libtiff.so.3.7.3, so the libtool script doesn't work right. See what happens when you do the cd I talked about above.

    Quote Originally Posted by satimis
    I just tried to install Libusb-0.1.10a and met the same problem.
    Please, don't install ANYTHING else until this gets fixed.

    However I got it installed on chroot without problem (both "configure" and "make install" as root)
    And please, forget about chrooting from FC3. It's doing something different when you do that, and I have no idea what, so PLEASE don't do it anymore. Even though it does make the program install -- you have problems with your LFS toolchain, which are not getting fixed.

    Once we get the first issue (with libtiff) figured out, then go ahead and try libusb again. (But please, still not from chroot.)

    Sorry if this is taking longer than you wanted, but I can't really troubleshoot a ton of different problems that are all interrelated...

  12. #12
    Join Date
    Jul 2003
    Posts
    2,021
    Hi bwkaz,

    cd into .libs and see whether libtiff.so.3.7.3 exists.
    # cd /sources/tiff-3.7.3/libtiff/.libs/
    root@localhost:/sources/tiff-3.7.3/libtiff/.libs# ls -al
    Code:
    total 2968
    drwxrwxr-x  2 satimis satimis   4096 Sep 12 15:47 .
    drwxrwxr-x  4 satimis satimis   4096 Sep 11 05:59 ..
    -rw-rw-r--  1 satimis satimis 934084 Sep 11 05:59 libtiff.a
    lrwxrwxrwx  1 satimis satimis     13 Sep 11 05:59 libtiff.la -> ../libtiff.la
    -rw-rw-r--  1 satimis satimis    819 Sep 11 05:59 libtiff.lai
    lrwxrwxrwx  1 satimis satimis     16 Sep 11 05:59 libtiff.so -> libtiff.so.3.7.3
    lrwxrwxrwx  1 satimis satimis     16 Sep 11 05:59 libtiff.so.3 -> libtiff.so.3.7.3
    -rwxrwxr-x  1 satimis satimis 666004 Sep 11 05:59 libtiff.so.3.7.3
    -rw-rw-r--  1 satimis satimis  84194 Sep 11 05:59 libtiffxx.a
    lrwxrwxrwx  1 satimis satimis     15 Sep 11 05:59 libtiffxx.la -> ../libtiffxx.la
    -rw-rw-r--  1 satimis satimis   1010 Sep 11 05:59 libtiffxx.lai
    lrwxrwxrwx  1 satimis satimis     18 Sep 11 05:59 libtiffxx.so -> libtiffxx.so.3.7.3
    lrwxrwxrwx  1 satimis satimis     18 Sep 11 05:59 libtiffxx.so.3 -> libtiffxx.so.3.7.3
    -rwxrwxr-x  1 satimis satimis  73577 Sep 11 06:01 libtiffxx.so.3.7.3T
    -rwxrwxr-x  1 satimis satimis  73577 Sep 12 15:43 libtiffxx.so.3.7.3U
    -rw-rw-r--  1 satimis satimis  17296 Sep 11 05:58 tif_aux.o
    -rw-rw-r--  1 satimis satimis  13556 Sep 11 05:58 tif_close.o
    -rw-rw-r--  1 satimis satimis  14824 Sep 11 05:58 tif_codec.o
    -rw-rw-r--  1 satimis satimis  10468 Sep 11 05:58 tif_color.o
    -rw-rw-r--  1 satimis satimis  20216 Sep 11 05:58 tif_compress.o
    -rw-rw-r--  1 satimis satimis  37840 Sep 11 05:58 tif_dir.o
    -rw-rw-r--  1 satimis satimis  28028 Sep 11 05:58 tif_dirinfo.o
    -rw-rw-r--  1 satimis satimis  41532 Sep 11 05:58 tif_dirread.o
    -rw-rw-r--  1 satimis satimis  35840 Sep 11 05:58 tif_dirwrite.o
    -rw-rw-r--  1 satimis satimis  14372 Sep 11 05:58 tif_dumpmode.o
    -rw-rw-r--  1 satimis satimis   4776 Sep 11 05:58 tif_error.o
    -rw-rw-r--  1 satimis satimis  14452 Sep 11 05:58 tif_extension.o
    -rw-rw-r--  1 satimis satimis  61876 Sep 11 05:58 tif_fax3.o
    -rw-rw-r--  1 satimis satimis 101576 Sep 11 05:58 tif_fax3sm.o
    -rw-rw-r--  1 satimis satimis  12600 Sep 11 05:58 tif_flush.o
    -rw-rw-r--  1 satimis satimis  87328 Sep 11 05:58 tif_getimage.o
    -rw-rw-r--  1 satimis satimis  59676 Sep 11 05:58 tif_jpeg.o
    -rw-rw-r--  1 satimis satimis  52692 Sep 11 05:58 tif_luv.o
    -rw-rw-r--  1 satimis satimis  27156 Sep 11 05:58 tif_lzw.o
    -rw-rw-r--  1 satimis satimis  13804 Sep 11 05:58 tif_next.o
    -rw-rw-r--  1 satimis satimis   2944 Sep 11 05:58 tif_ojpeg.o
    -rw-rw-r--  1 satimis satimis  23120 Sep 11 05:58 tif_open.o
    -rw-rw-r--  1 satimis satimis  16204 Sep 11 05:59 tif_packbits.o
    -rw-rw-r--  1 satimis satimis  46552 Sep 11 05:59 tif_pixarlog.o
    -rw-rw-r--  1 satimis satimis  27280 Sep 11 05:59 tif_predict.o
    -rw-rw-r--  1 satimis satimis  30552 Sep 11 05:59 tif_print.o
    -rw-rw-r--  1 satimis satimis  26800 Sep 11 05:59 tif_read.o
    -rw-rw-r--  1 satimis satimis  85076 Sep 11 05:59 tif_stream.o
    -rw-rw-r--  1 satimis satimis  17428 Sep 11 05:59 tif_strip.o
    -rw-rw-r--  1 satimis satimis   7572 Sep 11 05:59 tif_swab.o
    -rw-rw-r--  1 satimis satimis  14916 Sep 11 05:59 tif_thunder.o
    -rw-rw-r--  1 satimis satimis  17528 Sep 11 05:59 tif_tile.o
    -rw-rw-r--  1 satimis satimis  20044 Sep 11 05:59 tif_unix.o
    -rw-rw-r--  1 satimis satimis   4232 Sep 11 05:59 tif_version.o
    -rw-rw-r--  1 satimis satimis   4796 Sep 11 05:59 tif_warning.o
    -rw-rw-r--  1 satimis satimis  24632 Sep 11 05:59 tif_write.o
    -rw-rw-r--  1 satimis satimis  21676 Sep 11 05:59 tif_zip.o
    ".libs/libtiff.so.3.7.3" is there.

    others noted with tks.

    P.S. Would rerun ldconfig help?

    BR
    satimis
    Last edited by satimis; 09-12-2005 at 08:12 PM.

  13. #13
    Join Date
    Jul 2003
    Posts
    2,021
    Hi bwkaz,

    Further to my previous posting I ran following command to find the full path of "ldconfig";

    As User
    bash-3.00$ which ldconfig
    Code:
    which: no ldconfig in (/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin)
    As root
    root@localhost:/home/satimis# which ldconfig
    Code:
    which: no ldconfig in ((null))
    Both failed.

    Then as User again

    bash-3.00$ locate ldconfig
    Code:
    /sbin/ldconfig
    /sources/mozilla/toolkit/content/buildconfig.html
    /sources/mozilla/toolkit/content/buildconfig.html.in
    /sources/mozilla/xpfe/global/buildconfig.html
    /sources/mozilla/xpfe/global/buildconfig.html.in
    /tools/sbin/ldconfig
    /usr/share/man/man8/ldconfig.8
    Now I found it. It seems "which" command was not working.

    However "/tools/sbin/ldconfig" made me remember the device "/tools/". It was created on building LFS 6.1 and has not been removed. Would it be the cause of making some packages unable to be installed on BLFS 6.1???

    (remark: "ldconfig" not run yet)

    B.R.
    satimis
    Last edited by satimis; 09-13-2005 at 11:35 AM.

  14. #14
    Join Date
    Apr 2001
    Location
    SF Bay Area, CA
    Posts
    14,936
    Quote Originally Posted by satimis
    # ls -al
    Code:
    -rwxrwxr-x  1 satimis satimis 666004 Sep 11 05:59 libtiff.so.3.7.3
    OK, I'm confused. The error coming from mv makes very little sense. (Like I need to tell you that -- I'm sure you already know.)

    P.S. Would rerun ldconfig help?
    No, it would not help. The problem is that "mv" can't find the filename it was given, so either you don't have permission to the directory (not likely...), the directory doesn't exist (I don't think so) or the file doesn't exist (but it does). It's a problem with finding files, not loading shared libraries, so ldconfig won't help.

    Quote Originally Posted by satimis
    Further to my previous posting I ran following command to find the full path of "ldconfig";

    As User
    bash-3.00$ which ldconfig
    Code:
    which: no ldconfig in (/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin)
    Notice which directories it looked in.

    bash-3.00$ locate ldconfig
    Code:
    /sbin/ldconfig
    And notice how it wasn't in any of those directories.

    It seems "which" command was not working.
    No, which was working just fine. It only searches your $PATH, and /sbin was not in your normal user's $PATH. (Apparently it wasn't in your root user's $PATH, either.)

    However "/tools/sbin/ldconfig" made me remember the device "/tools/". It was created on building LFS 6.1 and has not been removed. Would it be the cause of making some packages unable to be installed on BLFS 6.1???
    I don't know. You could try moving it somewhere else (mv /tools /old-tools, for example, as root), and see if that helps.
    Last edited by bwkaz; 09-13-2005 at 07:23 PM.

  15. #15
    Join Date
    Jul 2003
    Posts
    2,021
    Hi bwkaz,

    Notice which directories it looked in.
    # locate ldconfig
    Code:
    /sbin/ldconfig
    .....
    /tools/sbin/ldconfig
    in "/sbin/"

    And notice how it wasn't in any of those directories.
    How to check it. OR run;

    # export PATH=........ : /sbin/:

    On another boot it may not be there again.

    No, which was working just fine. It only searches your $PATH, and /sbin was not in your normal user's $PATH. (Apparently it wasn't in your root user's $PATH, either.)
    # echo $PATH
    Code:
    /usr/gnu/bin:/usr/local/bin:/bin:/usr/bin:.
    I don't know. You could try moving it somewhere else (mv /tools /old-tools, for example, as root), and see if that helps.
    After running

    # mv -recursive /tools /old-tools/

    what shall I test thereafter? Re-run installing "Libtiff-3.7.3" on the same source tree? (not removing the later and re-untar its tarball?)

    Tks

    B.R.
    satimis
    Last edited by satimis; 09-13-2005 at 08:02 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •