#43 Can't build

pending
nobody
None
5
2011-11-11
2011-11-11
Colin Svingen
No

Followed the instructions on http://www.netdirect.ca/software/packages/barry/cvs.php

cd barry
./buildgen.sh cleanall
./buildgen.sh
./configure --enable-gui
make

Fails with:
libtool: link: g++ -Wall -g -g -O2 -o .libs/barrybackup main.o BackupWindow.o DatabaseSelectDlg.o PasswordDlg.o PromptDlg.o ConfigDlg.o DeviceBus.o DeviceIface.o Thread.o util.o -pthread -L/home/swoogan/Downloads/programs/barry-0.17.1/src -L/usr/local/lib -lbarrybackup /home/swoogan/Downloads/programs/barry-0.17.1/src/.libs/libbarry.so /usr/lib/libglademm-2.4.so /usr/lib/libgtkmm-2.4.so /usr/lib/libglade-2.0.so /usr/lib/libatkmm-1.6.so /usr/lib/libgdkmm-2.4.so /usr/lib/libgiomm-2.4.so /usr/lib/libpangomm-1.4.so /usr/lib/libglibmm-2.4.so /usr/lib/libcairomm-1.0.so /usr/lib/libsigc-2.0.so /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so /usr/lib/libxml2.so /usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so /usr/lib/x86_64-linux-gnu/libatk-1.0.so /usr/lib/x86_64-linux-gnu/libgio-2.0.so /usr/lib/x86_64-linux-gnu/libpangoft2-1.0.so /usr/lib/x86_64-linux-gnu/libpangocairo-1.0.so -lgdk_pixbuf-2.0 /usr/lib/x86_64-linux-gnu/libcairo.so /usr/lib/x86_64-linux-gnu/libpango-1.0.so /usr/lib/x86_64-linux-gnu/libfreetype.so -lfontconfig /usr/lib/x86_64-linux-gnu/libgobject-2.0.so /usr/lib/x86_64-linux-gnu/libgmodule-2.0.so /usr/lib/x86_64-linux-gnu/libgthread-2.0.so -lrt /usr/lib/x86_64-linux-gnu/libglib-2.0.so -pthread
/usr/bin/ld: cannot find -lbarrybackup

Discussion

  • Hi,

    Can you post what distro you are using?

    And please post the full log from beginning to end. Maybe redirect it to a file and upload it here as an attachment.

    Thanks,
    - Chris

     
    • status: open --> pending
     
  • Malo Skrylevo
    Malo Skrylevo
    2011-12-20

    I've also the same problem.

    I have AltLinux 6 (Centaurus)

    $ gcc -v
    Using built-in specs.
    COLLECT_GCC=x86_64-alt-linux-gcc
    COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-alt-linux/4.5.1/lto-wrapper
    Target: x86_64-alt-linux
    Configured with: ../configure --host=x86_64-alt-linux --build=x86_64-alt-linux --target=x86_64-alt-linux --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var/lib --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --disable-dependency-tracking --without-included-gettext --program-suffix=-4.5 --with-slibdir=/lib64 --with-bugurl=http://bugzilla.altlinux.org --enable-bootstrap --enable-shared --enable-__cxa_atexit --enable-threads=posix --enable-checking=release --with-system-zlib --without-included-gettext --enable-multilib --enable-gnu-unique-object --enable-linker-build-id --enable-languages=c,c++,fortran,objc,obj-c++,java,ada,lto --enable-plugin --enable-java-awt=gtk --with-native-libdir=/usr/lib64/gcj-4.5 --with-ecj-jar=/usr/share/java/ecj.jar --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.5-1.5.0.0/jre --enable-libgcj-multifile --disable-libjava-multilib --enable-java-maintainer-mode --with-arch_32=i586 --with-tune_32=generic
    Thread model: posix
    gcc version 4.5.1 20101130 (ALT Linux 4.5.1-alt8) (GCC)

    >>> /usr/bin/ld: cannot find -lbarrybackup
    I have a question: where is the libbleckberry must be placed?

     
  • Malo Skrylevo
    Malo Skrylevo
    2011-12-20

    I meant libbarrybackup?

    Now, after the compilation, and before the error is risen, I have the following list of .so:

    $ find . -name "*so"
    ./barry-0.17.1/src/.libs/libbarryjdwp.so
    ./barry-0.17.1/src/.libs/libbarryalx.so
    ./barry-0.17.1/src/.libs/libbarrysync.so
    ./barry-0.17.1/src/.libs/libbarry.so
    ./barry-0.17.1/src/.libs/libbarrydp.so

     
  • Malo Skrylevo
    Malo Skrylevo
    2011-12-20

    I've rebuid the package fromwith configufe, and all was fine. Now the list of .so is following:

    $ find -name "*.so"
    ./src/.libs/libbarryjdwp.so
    ./src/.libs/libbarryalx.so
    ./src/.libs/libbarrybackup.so
    ./src/.libs/libbarrysync.so
    ./src/.libs/libbarry.so
    ./src/.libs/libbarrydp.so

    I don't know that leads to the error, but think that not all dependencies are checked in configure correctly, it is because i verified requirement list and upinstalled lacked devel packages, although configure don't show any dependency error before the action.

     
  • Yes, I could see how you might run into build problems if you have an old version of libbarry-devel installed on your system. Not sure how to avoid that yet, although I'm removing the .la files, so maybe that will help.

    Glad you finally got it built.

    - Chris

     
  • Malo Skrylevo
    Malo Skrylevo
    2011-12-23

    The previous comment was from me.