Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 693458 - =dev-libs/libofx-0.9.14-r1 - ld: /usr/lib/liblber.so: error adding symbols: file in wrong format
Summary: =dev-libs/libofx-0.9.14-r1 - ld: /usr/lib/liblber.so: error adding symbols: f...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: no-symlink-lib
  Show dependency tree
 
Reported: 2019-09-04 02:05 UTC by Scott McClung
Modified: 2021-03-09 19:24 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,62.42 KB, text/plain)
2019-09-04 02:05 UTC, Scott McClung
Details
emerge --info output (emerge-info.txt,10.06 KB, text/plain)
2019-09-04 02:06 UTC, Scott McClung
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Scott McClung 2019-09-04 02:05:40 UTC
Created attachment 589020 [details]
build.log

Build of libofx-0.9.14-r1 fails with:

/bin/sh ../libtool  --tag=CXX   --mode=link x86_64-pc-linux-gnu-g++  -DIN_LIBOFX -fvisibility=hidden -fvisibility-inlines-hidden -fvisibility=hidden -O2 -march=native -pipe  -Wl,-O1 -Wl,--as-needed -o ofxconnect cmdline.o nodeparser.o ofxpartner.o ofxconnect.o ../lib/libofx.la -lcurl -lrtmp -lz -lssl -lcrypto -lssh2 -lssh2 -lssl -lcrypto -lssl -lcrypto -L/usr/lib64 -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lldap -llber -lz -lxml++-2.6 -lxml2 -lglibmm-2.4 -lgobject-2.0 -lglib-2.0 -lsigc-2.0  
libtool: link: x86_64-pc-linux-gnu-g++ -DIN_LIBOFX -fvisibility=hidden -fvisibility-inlines-hidden -fvisibility=hidden -O2 -march=native -pipe -Wl,-O1 -o .libs/ofxconnect cmdline.o nodeparser.o ofxpartner.o ofxconnect.o  -Wl,--as-needed ../lib/.libs/libofx.so -L/usr/lib //usr/lib64/libosp.so -lpthread -lnsl -lcurl -lrtmp -lssh2 -lssl -lcrypto -L/usr/lib64 //usr/lib64/libldap.so //usr/lib/liblber.so //usr/lib/libsasl2.so -ldl -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lgnutls //usr/lib/libgcrypt.so -lgpg-error //usr/lib64/liblber.so -lresolv -lz -lxml++-2.6 -lxml2 -lglibmm-2.4 -lgobject-2.0 -lglib-2.0 -lsigc-2.0
/usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libpthread.so when searching for -lpthread
/usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libpthread.a when searching for -lpthread
/usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libnsl.so when searching for -lnsl
/usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libcurl.so when searching for -lcurl
/usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libcurl.a when searching for -lcurl
/usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/librtmp.so when searching for -lrtmp
/usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/librtmp.a when searching for -lrtmp
/usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libssh2.so when searching for -lssh2
/usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libssl.so when searching for -lssl
/usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libssl.a when searching for -lssl
/usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libcrypto.so when searching for -lcrypto
/usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libcrypto.a when searching for -lcrypto
/usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: //usr/lib/liblber.so: error adding symbols: file in wrong format
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:660: ofxconnect] Error 1
make[2]: Leaving directory '/tmp/portage/dev-libs/libofx-0.9.14-r1/work/libofx-0.9.14/ofxconnect'
make[1]: *** [Makefile:536: all-recursive] Error 1
make[1]: Leaving directory '/tmp/portage/dev-libs/libofx-0.9.14-r1/work/libofx-0.9.14'
make: *** [Makefile:420: all] Error 2

Seems as if it's trying to link a 64 bit program against 32 bit libraries.
Comment 1 Scott McClung 2019-09-04 02:06:42 UTC
Created attachment 589022 [details]
emerge --info output
Comment 2 Larry the Git Cow gentoo-dev 2021-03-06 06:28:43 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e2969e5bc45ec484cd75e6aaf0d403a7a14044d1

commit e2969e5bc45ec484cd75e6aaf0d403a7a14044d1
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-03-06 06:26:48 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-03-06 06:28:36 +0000

    dev-libs/libofx: fix libdir for OpenSP, doc fixes
    
    * Fix libdir for OpenSP (respect --libdir)
    * Enable building HTML docs (we looked for Doxygen but didn't use it)
    * Use patches being upstreamed for respecting libdir + docdir
    
    See: https://github.com/libofx/libofx/pull/40
    Closes: https://bugs.gentoo.org/693458
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-libs/libofx/files/libofx-0.10.1-docdir.patch   | 41 ++++++++++++++++++++++
 .../libofx/files/libofx-0.10.1-opensp-libdir.patch | 38 ++++++++++++++++++++
 dev-libs/libofx/libofx-0.10.1-r1.ebuild            | 18 +++++++---
 3 files changed, 93 insertions(+), 4 deletions(-)
Comment 3 Larry the Git Cow gentoo-dev 2021-03-09 09:44:48 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eeebb28751a2e854126a77a0a0959b6d9581f215

commit eeebb28751a2e854126a77a0a0959b6d9581f215
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-03-09 09:02:33 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-03-09 09:44:21 +0000

    dev-libs/libofx: docdir, libdir patches upstreamed
    
    Bug: https://bugs.gentoo.org/693458
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-libs/libofx/files/libofx-0.10.1-docdir.patch        | 5 +----
 dev-libs/libofx/files/libofx-0.10.1-opensp-libdir.patch | 4 ----
 dev-libs/libofx/libofx-0.10.1-r1.ebuild                 | 4 ++--
 3 files changed, 3 insertions(+), 10 deletions(-)