obexftp does not build with gcc 4.3.2 Reproducible: Always Steps to Reproduce: rebuild using gcc 4.3.2 Actual Results: fails Expected Results: builds Writing Makefile.perl for OBEXFTP if test ! -f perl_wrap.c; then cp ./perl_wrap.c . ; fi make -fMakefile.perl make[4]: Entering directory `/var/tmp/portage/app-mobilephone/obexftp-0.22/work/obexftp-0.22/swig/perl' cp OBEXFTP.pm blib/lib/OBEXFTP.pm x86_64-pc-linux-gnu-gcc -c -I../.. -fno-strict-aliasing -pipe -Wdeclaration-after-statement -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -march=amdfam10 -O -pipe -DVERSION=\"\" -DXS_VERSION=\"\" -fPIC "-I/usr/lib64/perl5/5.8.8/x86_64-linux/CORE" -DSKIP_SEARCH_H -DHAVE_CONFIG_H perl_wrap.c Running Mkbootstrap for OBEXFTP () chmod 644 OBEXFTP.bs cp OBEXFTP.bs blib/arch/auto/OBEXFTP/OBEXFTP.bs chmod 644 blib/arch/auto/OBEXFTP/OBEXFTP.bs rm -f blib/arch/auto/OBEXFTP/OBEXFTP.so x86_64-pc-linux-gnu-gcc -shared -Wl,-rpath=/usr/lib perl_wrap.o -o blib/arch/auto/OBEXFTP/OBEXFTP.so \ -L/var/tmp/portage/app-mobilephone/obexftp-0.22/work/obexftp-0.22/swig/perl/../../obexftp/.libs -lobexftp -L/var/tmp/portage/app-mobilephone/obexftp-0.22/work/obexftp-0.22/swig/perl/../../multicobex/.libs -lmulticobex -L/var/tmp/portage/app-mobilephone/obexftp-0.22/work/obexftp-0.22/swig/perl/../../bfb/.libs -lbfb -lopenobex -lbluetooth \ chmod 755 blib/arch/auto/OBEXFTP/OBEXFTP.so make[4]: Leaving directory `/var/tmp/portage/app-mobilephone/obexftp-0.22/work/obexftp-0.22/swig/perl' make[3]: Leaving directory `/var/tmp/portage/app-mobilephone/obexftp-0.22/work/obexftp-0.22/swig/perl' Making all in python make[3]: Entering directory `/var/tmp/portage/app-mobilephone/obexftp-0.22/work/obexftp-0.22/swig/python' if test ! -f python_wrap.c; then cp ./python_wrap.c . ; fi /usr/bin/python setup.py build running build running build_py creating build creating build/lib.linux-x86_64-2.5 creating build/lib.linux-x86_64-2.5/obexftp copying ./__init__.py -> build/lib.linux-x86_64-2.5/obexftp running build_ext building '_obexftp' extension creating build/temp.linux-x86_64-2.5 x86_64-pc-linux-gnu-gcc -pthread -fno-strict-aliasing -march=amdfam10 -O -pipe -W -Wundef -Wmissing-declarations -Wmissing-prototypes -Wall -fPIC -I../.. -I/usr/include/python2.5 -c -I../.. -I/usr/include/python2.5 -c python_wrap.c -o build/temp.linux-x86_64-2.5/python_wrap.o python_wrap.c: In function âproxy_info_cbâ: python_wrap.c:2717: warning: unused parameter âlenâ python_wrap.c: In function â_wrap_client_getâ: python_wrap.c:3367: warning: pointer targets in passing argument 1 of âPyString_FromStringAndSizeâ differ in signedness python_wrap.c: In function â_wrap_client_listâ: python_wrap.c:3412: warning: pointer targets in passing argument 1 of âPyString_FromStringAndSizeâ differ in signedness python_wrap.c: In function â_wrap_client_get_capabilityâ: python_wrap.c:3457: warning: pointer targets in passing argument 1 of âPyString_FromStringAndSizeâ differ in signedness python_wrap.c: At top level: python_wrap.c:4219: warning: no previous prototype for âinit_obexftpâ x86_64-pc-linux-gnu-gcc -pthread -shared -Wl,-O1 -march=amdfam10 -O -pipe -W -Wundef -Wmissing-declarations -Wmissing-prototypes -Wall build/temp.linux-x86_64-2.5/python_wrap.o -L/usr/lib64 -lpython2.5 -o build/lib.linux-x86_64-2.5/obexftp/_obexftp.so -L../../obexftp/.libs -lobexftp -L../../multicobex/.libs -lmulticobex -L../../bfb/.libs -lbfb -lopenobex -lbluetooth make[3]: Leaving directory `/var/tmp/portage/app-mobilephone/obexftp-0.22/work/obexftp-0.22/swig/python' Making all in ruby make[3]: Entering directory `/var/tmp/portage/app-mobilephone/obexftp-0.22/work/obexftp-0.22/swig/ruby' PREFIX=/usr /usr/bin/ruby extconf.rb --with-obexftp-include=../.. checking for OBEX_Init() in -lopenobex... yes checking for bfb_io_open() in -lbfb... yes checking for cobex_ctrans() in -lmulticobex... yes checking for obexftp_open() in -lobexftp... no obex libs not found make -fMakefile.ruby make[4]: Entering directory `/var/tmp/portage/app-mobilephone/obexftp-0.22/work/obexftp-0.22/swig/ruby' make[4]: Makefile.ruby: No such file or directory make[4]: *** No rule to make target `Makefile.ruby'. Stop. make[4]: Leaving directory `/var/tmp/portage/app-mobilephone/obexftp-0.22/work/obexftp-0.22/swig/ruby' make[3]: *** [obexftp.so] Error 2 make[3]: Leaving directory `/var/tmp/portage/app-mobilephone/obexftp-0.22/work/obexftp-0.22/swig/ruby' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/app-mobilephone/obexftp-0.22/work/obexftp-0.22/swig' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/app-mobilephone/obexftp-0.22/work/obexftp-0.22' make: *** [all] Error 2 * * ERROR: app-mobilephone/obexftp-0.22 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 2955: Called die * The specific snippet of code: * emake || die "emake failed" * The die message: * emake failed * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/app-mobilephone/obexftp-0.22/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/app-mobilephone/obexftp-0.22/temp/environment'. * * Messages for package app-mobilephone/obexftp-0.22: * * ERROR: app-mobilephone/obexftp-0.22 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 2955: Called die * The specific snippet of code: * emake || die "emake failed" * The die message: * emake failed * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/app-mobilephone/obexftp-0.22/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/app-mobilephone/obexftp-0.22/temp/environment'. * ----- emerge --info Portage 2.1.4.5 (default/linux/amd64/2008.0, gcc-4.3.2, glibc-2.8_p20080602-r0, 2.6.27-gentoo-r1-crc x86_64) ================================================================= System uname: 2.6.27-gentoo-r1-crc x86_64 AMD Phenom(tm) 8450 Triple-Core Processor Timestamp of tree: Wed, 29 Oct 2008 10:45:03 +0000 app-shells/bash: 3.2_p33 dev-java/java-config: 1.3.7, 2.1.6-r1 dev-lang/python: 2.5.2-r7 dev-util/cmake: 2.6.2 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r2 sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.23-r3 ACCEPT_KEYWORDS="amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=amdfam10 -O -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-march=amdfam10 -O -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://adelie.polymtl.ca/ ftp://cs.ubishops.ca/pub/gentoo ftp://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://www.gtlib.gatech.edu/pub/gentoo ftp://mirror.iawnet.sandia.gov/pub/gentoo/ " LC_ALL="en_CA.utf8" LDFLAGS="-Wl,-O1" MAKEOPTS="-j4" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage /usr/portage/local/layman/sunrise" SYNC="rsync://rsync.ca.gentoo.org/gentoo-portage" USE="3dnow 3dnowext X aac acl alsa amd64 arts artswrappersuid asf berkdb bluetooth bzip2 cdr cli cracklib crypt cups divx4linux dri dts dvd dvdread enable-jingle fam fat ffmpeg firefox gdbm gnome gpm gstreamer gtk iconv ipv6 isdnlog kde mad matroska midi mmx mmxext mudflap multilib ncurses nls nptl nptlonly ntfs ogg opengl openmp pam pcre pdf perl pppd python qt qt-copy quicktime readline reflection reiser4 reiserfs ruby samba sdl session smb spl sse sse2 ssl sysfs tcpd theora threads truetype unicode vorbis wavpack wma xcomposite xfs xinerama xorg xv xvid xvmc zlib" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="ati radeon vesa fbdev" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Do you know if this package built for you with gcc 4.1, or are you assuming that the gcc 4.3 is likely to be the problem? I ask because there have been problems with parallel builds of obexftp, and it's possible this is more of the same -- could you try building with -j1 instead of -j4 and see if it changes anything?
I have tried with -j1. This is did not help with this package (others were fixed). The package built when I flipped to 4.1 - I did not try a build with 4.1 before switching to 4.3.
Ok thanks for the clarification -- assigning to the ebuild maintainers now.
Works for me. Please attach here your /var/tmp/portage/app-mobilephone/obexftp-0.22/work/obexftp-0.22/swig/ruby/mkmf.log file.
(In reply to comment #4) > Works for me. > Please attach here your > /var/tmp/portage/app-mobilephone/obexftp-0.22/work/obexftp-0.22/swig/ruby/mkmf.log > file. > Here is the log (for some reason attach kept finding an empty file so I inlined it)... ---------- have_library: checking for OBEX_Init() in -lopenobex... -------------------- yes "x86_64-pc-linux-gnu-gcc -o conftest -I. -I/usr/lib64/ruby/1.8/x86_64-linux -I. -I../.. -march=amdfam10 -O -pipe -fno-strict-aliasing -fPIC conftest.c -L. -L/usr/lib64 -Wl,-R/usr/lib64 -L. -Wl,-O1 -rdynamic -Wl,-export-dynamic -lruby18-static -lopenobex -lpthread -ldl -lcrypt -lm -lc" conftest.c: In function âtâ: conftest.c:3: error: âOBEX_Initâ undeclared (first use in this function) conftest.c:3: error: (Each undeclared identifier is reported only once conftest.c:3: error: for each function it appears in.) checked program was: /* begin */ 1: /*top*/ 2: int main() { return 0; } 3: int t() { void ((*volatile p)()); p = (void ((*)()))OBEX_Init; return 0; } /* end */ "x86_64-pc-linux-gnu-gcc -o conftest -I. -I/usr/lib64/ruby/1.8/x86_64-linux -I. -I../.. -march=amdfam10 -O -pipe -fno-strict-aliasing -fPIC conftest.c -L. -L/usr/lib64 -Wl,-R/usr/lib64 -L. -Wl,-O1 -rdynamic -Wl,-export-dynamic -lruby18-static -lopenobex -lpthread -ldl -lcrypt -lm -lc" checked program was: /* begin */ 1: /*top*/ 2: int main() { return 0; } 3: int t() { OBEX_Init(); return 0; } /* end */ -------------------- find_library: checking for bfb_io_open() in -lbfb... -------------------- yes "x86_64-pc-linux-gnu-gcc -o conftest -I. -I/usr/lib64/ruby/1.8/x86_64-linux -I. -I../.. -march=amdfam10 -O -pipe -fno-strict-aliasing -fPIC conftest.c -L. -L/usr/lib64 -Wl,-R/usr/lib64 -L. -Wl,-O1 -rdynamic -Wl,-export-dynamic -lopenobex -lruby18-static -lbfb -lopenobex -lpthread -ldl -lcrypt -lm -lc" conftest.c: In function âtâ: conftest.c:3: error: âbfb_io_openâ undeclared (first use in this function) conftest.c:3: error: (Each undeclared identifier is reported only once conftest.c:3: error: for each function it appears in.) checked program was: /* begin */ 1: /*top*/ 2: int main() { return 0; } 3: int t() { void ((*volatile p)()); p = (void ((*)()))bfb_io_open; return 0; } /* end */ "x86_64-pc-linux-gnu-gcc -o conftest -I. -I/usr/lib64/ruby/1.8/x86_64-linux -I. -I../.. -march=amdfam10 -O -pipe -fno-strict-aliasing -fPIC conftest.c -L. -L/usr/lib64 -Wl,-R/usr/lib64 -L. -Wl,-O1 -rdynamic -Wl,-export-dynamic -lopenobex -lruby18-static -lbfb -lopenobex -lpthread -ldl -lcrypt -lm -lc" checked program was: /* begin */ 1: /*top*/ 2: int main() { return 0; } 3: int t() { bfb_io_open(); return 0; } /* end */ -------------------- find_library: checking for cobex_ctrans() in -lmulticobex... -------------------- yes "x86_64-pc-linux-gnu-gcc -o conftest -I. -I/usr/lib64/ruby/1.8/x86_64-linux -I. -I../.. -march=amdfam10 -O -pipe -fno-strict-aliasing -fPIC conftest.c -L. -L/usr/lib64 -Wl,-R/usr/lib64 -L. -Wl,-O1 -rdynamic -Wl,-export-dynamic -lbfb -lopenobex -lruby18-static -lmulticobex -lbfb -lopenobex -lpthread -ldl -lcrypt -lm -lc" conftest.c: In function âtâ: conftest.c:3: error: âcobex_ctransâ undeclared (first use in this function) conftest.c:3: error: (Each undeclared identifier is reported only once conftest.c:3: error: for each function it appears in.) checked program was: /* begin */ 1: /*top*/ 2: int main() { return 0; } 3: int t() { void ((*volatile p)()); p = (void ((*)()))cobex_ctrans; return 0; } /* end */ "x86_64-pc-linux-gnu-gcc -o conftest -I. -I/usr/lib64/ruby/1.8/x86_64-linux -I. -I../.. -march=amdfam10 -O -pipe -fno-strict-aliasing -fPIC conftest.c -L. -L/usr/lib64 -Wl,-R/usr/lib64 -L. -Wl,-O1 -rdynamic -Wl,-export-dynamic -lbfb -lopenobex -lruby18-static -lmulticobex -lbfb -lopenobex -lpthread -ldl -lcrypt -lm -lc" /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/../../../../x86_64-pc-linux-gnu/bin/ld: warning: libbluetooth.so.1, needed by /usr/lib64/libmulticobex.so, not found (try using -rpath or -rpath-link) checked program was: /* begin */ 1: /*top*/ 2: int main() { return 0; } 3: int t() { cobex_ctrans(); return 0; } /* end */ -------------------- find_library: checking for obexftp_open() in -lobexftp... -------------------- no "x86_64-pc-linux-gnu-gcc -o conftest -I. -I/usr/lib64/ruby/1.8/x86_64-linux -I. -I../.. -march=amdfam10 -O -pipe -fno-strict-aliasing -fPIC conftest.c -L. -L/usr/lib64 -Wl,-R/usr/lib64 -L. -Wl,-O1 -rdynamic -Wl,-export-dynamic -lmulticobex -lbfb -lopenobex -lruby18-static -lobexftp -lmulticobex -lbfb -lopenobex -lpthread -ldl -lcrypt -lm -lc" conftest.c: In function âtâ: conftest.c:3: error: âobexftp_openâ undeclared (first use in this function) conftest.c:3: error: (Each undeclared identifier is reported only once conftest.c:3: error: for each function it appears in.) checked program was: /* begin */ 1: /*top*/ 2: int main() { return 0; } 3: int t() { void ((*volatile p)()); p = (void ((*)()))obexftp_open; return 0; } /* end */ "x86_64-pc-linux-gnu-gcc -o conftest -I. -I/usr/lib64/ruby/1.8/x86_64-linux -I. -I../.. -march=amdfam10 -O -pipe -fno-strict-aliasing -fPIC conftest.c -L. -L/usr/lib64 -Wl,-R/usr/lib64 -L. -Wl,-O1 -rdynamic -Wl,-export-dynamic -lmulticobex -lbfb -lopenobex -lruby18-static -lobexftp -lmulticobex -lbfb -lopenobex -lpthread -ldl -lcrypt -lm -lc" /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/../../../../x86_64-pc-linux-gnu/bin/ld: warning: libbluetooth.so.1, needed by /usr/lib64/libmulticobex.so, not found (try using -rpath or -rpath-link) /usr/lib64/libobexftp.so: undefined reference to `sdp_record_alloc' /usr/lib64/libobexftp.so: undefined reference to `hci_close_dev' /usr/lib64/libobexftp.so: undefined reference to `hci_devba' /usr/lib64/libobexftp.so: undefined reference to `sdp_record_unregister' /usr/lib64/libobexftp.so: undefined reference to `sdp_data_free' /usr/lib64/libobexftp.so: undefined reference to `sdp_list_free' /usr/lib64/libobexftp.so: undefined reference to `batostr' /usr/lib64/libobexftp.so: undefined reference to `hci_inquiry' /usr/lib64/libobexftp.so: undefined reference to `sdp_service_search_attr_req' /usr/lib64/libobexftp.so: undefined reference to `hci_get_route' /usr/lib64/libobexftp.so: undefined reference to `sdp_connect' /usr/lib64/libobexftp.so: undefined reference to `sdp_set_profile_descs' /usr/lib64/libobexftp.so: undefined reference to `hci_read_remote_name' /usr/lib64/libobexftp.so: undefined reference to `sdp_set_uuidseq_attr' /usr/lib64/libobexftp.so: undefined reference to `sdp_list_append' /usr/lib64/libobexftp.so: undefined reference to `sdp_data_alloc' /usr/lib64/libobexftp.so: undefined reference to `sdp_set_info_attr' /usr/lib64/libobexftp.so: undefined reference to `sdp_get_access_protos' /usr/lib64/libobexftp.so: undefined reference to `sdp_get_proto_port' /usr/lib64/libobexftp.so: undefined reference to `sdp_uuid128_create' /usr/lib64/libobexftp.so: undefined reference to `sdp_record_free' /usr/lib64/libobexftp.so: undefined reference to `sdp_device_record_register' /usr/lib64/libobexftp.so: undefined reference to `sdp_uuid16_create' /usr/lib64/libobexftp.so: undefined reference to `str2ba' /usr/lib64/libobexftp.so: undefined reference to `sdp_close' /usr/lib64/libobexftp.so: undefined reference to `baswap' /usr/lib64/libobexftp.so: undefined reference to `hci_devid' /usr/lib64/libobexftp.so: undefined reference to `hci_open_dev' /usr/lib64/libobexftp.so: undefined reference to `sdp_set_access_protos' collect2: ld returned 1 exit status checked program was: /* begin */ 1: /*top*/ 2: int main() { return 0; } 3: int t() { obexftp_open(); return 0; } /* end */ "x86_64-pc-linux-gnu-gcc -o conftest -I. -I/usr/lib64/ruby/1.8/x86_64-linux -I. -I../.. -march=amdfam10 -O -pipe -fno-strict-aliasing -fPIC conftest.c -L. -L/usr/lib64 -Wl,-R/usr/lib64 -L../../obexftp/.libs -L. -Wl,-O1 -rdynamic -Wl,-export-dynamic -lmulticobex -lbfb -lopenobex -lruby18-static -lobexftp -lmulticobex -lbfb -lopenobex -lpthread -ldl -lcrypt -lm -lc" conftest.c: In function âtâ: conftest.c:3: error: âobexftp_openâ undeclared (first use in this function) conftest.c:3: error: (Each undeclared identifier is reported only once conftest.c:3: error: for each function it appears in.) checked program was: /* begin */ 1: /*top*/ 2: int main() { return 0; } 3: int t() { void ((*volatile p)()); p = (void ((*)()))obexftp_open; return 0; } /* end */ "x86_64-pc-linux-gnu-gcc -o conftest -I. -I/usr/lib64/ruby/1.8/x86_64-linux -I. -I../.. -march=amdfam10 -O -pipe -fno-strict-aliasing -fPIC conftest.c -L. -L/usr/lib64 -Wl,-R/usr/lib64 -L../../obexftp/.libs -L. -Wl,-O1 -rdynamic -Wl,-export-dynamic -lmulticobex -lbfb -lopenobex -lruby18-static -lobexftp -lmulticobex -lbfb -lopenobex -lpthread -ldl -lcrypt -lm -lc" /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/../../../../x86_64-pc-linux-gnu/bin/ld: warning: libbluetooth.so.1, needed by /usr/lib64/libmulticobex.so, not found (try using -rpath or -rpath-link) /usr/lib64/libobexftp.so: undefined reference to `sdp_record_alloc' /usr/lib64/libobexftp.so: undefined reference to `hci_close_dev' /usr/lib64/libobexftp.so: undefined reference to `hci_devba' /usr/lib64/libobexftp.so: undefined reference to `sdp_record_unregister' /usr/lib64/libobexftp.so: undefined reference to `sdp_data_free' /usr/lib64/libobexftp.so: undefined reference to `sdp_list_free' /usr/lib64/libobexftp.so: undefined reference to `batostr' /usr/lib64/libobexftp.so: undefined reference to `hci_inquiry' /usr/lib64/libobexftp.so: undefined reference to `sdp_service_search_attr_req' /usr/lib64/libobexftp.so: undefined reference to `hci_get_route' /usr/lib64/libobexftp.so: undefined reference to `sdp_connect' /usr/lib64/libobexftp.so: undefined reference to `sdp_set_profile_descs' /usr/lib64/libobexftp.so: undefined reference to `hci_read_remote_name' /usr/lib64/libobexftp.so: undefined reference to `sdp_set_uuidseq_attr' /usr/lib64/libobexftp.so: undefined reference to `sdp_list_append' /usr/lib64/libobexftp.so: undefined reference to `sdp_data_alloc' /usr/lib64/libobexftp.so: undefined reference to `sdp_set_info_attr' /usr/lib64/libobexftp.so: undefined reference to `sdp_get_access_protos' /usr/lib64/libobexftp.so: undefined reference to `sdp_get_proto_port' /usr/lib64/libobexftp.so: undefined reference to `sdp_uuid128_create' /usr/lib64/libobexftp.so: undefined reference to `sdp_record_free' /usr/lib64/libobexftp.so: undefined reference to `sdp_device_record_register' /usr/lib64/libobexftp.so: undefined reference to `sdp_uuid16_create' /usr/lib64/libobexftp.so: undefined reference to `str2ba' /usr/lib64/libobexftp.so: undefined reference to `sdp_close' /usr/lib64/libobexftp.so: undefined reference to `baswap' /usr/lib64/libobexftp.so: undefined reference to `hci_devid' /usr/lib64/libobexftp.so: undefined reference to `hci_open_dev' /usr/lib64/libobexftp.so: undefined reference to `sdp_set_access_protos' collect2: ld returned 1 exit status checked program was: /* begin */ 1: /*top*/ 2: int main() { return 0; } 3: int t() { obexftp_open(); return 0; } /* end */ --------------------
You need to run revdep-build because libmulticobex.so was linked with libbluetooth.so.1 and now this file is no longer present on your system. Closed as INVALID.
This is being triggered by revdep-rebuild - its what is trying to rebuild obexftp... Where should this problem be transfered and/or can you suggest manual order to rebuild the packages since revdev-rebuild is failing.
grover ~ # equery b libmulticobex.so [ Searching for file(s) libmulticobex.so in *... ] app-mobilephone/obexftp-0.22 (/usr/lib64/libmulticobex.so -> libmulticobex.so.1.0.1) so obexftp is building libmultcobex.so grover ~ # equery b libbluetooth.so.1 [ Searching for file(s) libbluetooth.so.1 in *... ] grover ~ # equery b libbluetooth.so.2 [ Searching for file(s) libbluetooth.so.2 in *... ] net-wireless/bluez-libs-3.36 (/usr/lib64/libbluetooth.so.2 -> libbluetooth.so.2.11.2) and bluez-libs is creating libbluetooth.so.2 not 1... I am not at all clear what is actually happening here. I would think that obexftp should be using libbluetooth.so.2 not .1 ? TIA
An interesting point. If I do: mv /usr/lib64/libmulticobex.a /usr/lib64/libmulticobex.a.x mv /usr/lib64/libmulticobex.so /usr/lib64/libmulticobex.so.x and emerge obexftp again it works. Should the ebuild be cleaning these files before starting?
Try to add these to your LDFLAGS var in /etc/make.conf and see if it fixes the issue: LDFLAGS="-Wl,-rpath-link,/var/tmp/portage/app-mobilephone/obexftp-0.22/work/obexftp-0.22/obexftp/.libs -Wl,-rpath-link,/var/tmp/portage/app-mobilephone/obexftp-0.22/work/obexftp-0.22/multicobex/.libs"
A shorter way: LDFLAGS="-Wl,-rpath-link,../../obexftp/.libs -Wl,-rpath-link,../../multicobex/.libs"
Fixed in cvs without revision bump.