Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 277040 - app-mobilephone/obexftp-0.23-r1 fails to build ruby bindings
Summary: app-mobilephone/obexftp-0.23-r1 fails to build ruby bindings
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-08 15:08 UTC by Peter Volkov (RETIRED)
Modified: 2012-07-10 06:57 UTC (History)
2 users (show)

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


Attachments
mkmf.log (mkmf.log,11.12 KB, text/plain)
2009-07-08 15:13 UTC, Peter Volkov (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Volkov (RETIRED) gentoo-dev 2009-07-08 15:08:02 UTC
app-mobilephone/obexftp-0.23-r1 fails to build ruby bindings with the following error:

make[3]: Entering directory `/vt/portage/tmp/portage/app-mobilephone/obexftp-0.23-r1/work/obexftp-0.23/swig/ruby'
PREFIX=/usr /usr/bin/ruby18 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 LIBPATH="-Wl,-rpath-link,../../bfb/.libs -Wl,-rpath-link,../../multicobex/.libs -Wl,-rpath-link,../../obexftp/.libs -L../../bfb/.libs -L../../multicobex/.libs -L../../obexftp/.libs"
make[4]: Entering directory `/vt/portage/tmp/portage/app-mobilephone/obexftp-0.23-r1/work/obexftp-0.23/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 `/vt/portage/tmp/portage/app-mobilephone/obexftp-0.23-r1/work/obexftp-0.23/swig/ruby'
make[3]: *** [obexftp.so] Error 2
make[3]: Leaving directory `/vt/portage/tmp/portage/app-mobilephone/obexftp-0.23-r1/work/obexftp-0.23/swig/ruby'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/vt/portage/tmp/portage/app-mobilephone/obexftp-0.23-r1/work/obexftp-0.23/swig'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/vt/portage/tmp/portage/app-mobilephone/obexftp-0.23-r1/work/obexftp-0.23'
make: *** [all] Error 2

Portage 2.2_rc33 (unavailable, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r1 i686)
=================================================================
System uname: Linux-2.6.30-gentoo-r1-i686-Intel-R-_Pentium-R-_M_processor_1700MHz-with-gentoo-2.0.1
Timestamp of tree: Wed, 08 Jul 2009 14:00:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 2.1.8-r1
dev-lang/python:     2.6.2-r1
dev-python/pycrypto: 2.0.1-r8
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r3
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19.1-r1, 2.19.51.0.7, 2.19.51.0.8, 2.19.51.0.9, 2.19.51.0.10
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -mtune=pentium-m -fomit-frame-pointer -march=pentium-m -pipe"
CHOST="i686-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 /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -mtune=pentium-m -fomit-frame-pointer -march=pentium-m -pipe"
DISTDIR="/vt/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
FEATURES="buildpkg ccache collision-protect distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch userpriv"
GENTOO_MIRRORS="ftp://mirror.yandex.ru/gentoo-distfiles/"
LANG="ru_RU.UTF-8"
LC_ALL="C"
LDFLAGS="-Wl,--as-needed,-O1,--hash-style=gnu,--sort-common"
LINGUAS="ru en en_GB en_US"
MAKEOPTS="-j2"
PKGDIR="/vt/portage/packages"
PORTAGE_CONFIGROOT="/"
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="/vt/portage/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/home/pva/overlays/pva/pva-local"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amr audio audiofile bash-completion berkdb bluetooth branding bzip2 cairo chardet cli cracklib cups curl dbus dga divx djvu dri dv dvd dvdread encode exif expat fam ffmpeg firefox flac fontconfig foomaticdb fortran fpx fuse gd gif gimpprint gmedia gnokii gnome gnutls gpm graphviz gs gtk gtkhtml gucharmap h323 hal hdri iconv icu idn ieee1394 imagemagick irda isdnlog jabber jack java java5 java6 jbig jce jingle jpeg jpeg2k kde kdeenablefinal kdehiddenvisibility kpathsea kqemu lame laptop latex lcms libnotify lirc lzo mad madwifi matroska midi mmap mmx mng mp3 mpeg mudflap musepack nls nptl nptlonly nsplugin ntfs ogg openal openexr opengl openmp openssl pam pango pcmcia pcre pda pdf perl pic pipechan plotutils png portaudio ppds pppd python qt3 qt4 quicktime rar readline realmedia reflection reiserfs rrdcgi ruby session sip smi sndfile speex spell spl sse sse2 ssl stream stun subversion svg sysfs tcpd theora threads tiff timidity truetype tta unicode urandom usb video vidix vim-pager vim-syntax vorbis wav wavpack win32codecs wma wmf wmp x264 x86 xml xorg xpm xulrunner xv xvid xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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="synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru en en_GB en_US" SNMPD_TRANSPORTS="aal5pvc alias callback ipx tcp tcpipv6 udpipv6 unix" USERLAND="GNU" VIDEO_CARDS="vesa radeon" XTABLES_ADDONS_MODULES="chaos delude dhcpmac ipmark logmark steal sysrq tarpit tee condition fuzzy geoip ipp2p ipv4options length2 lscan quota2"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Peter Volkov (RETIRED) gentoo-dev 2009-07-08 15:13:15 UTC
Created attachment 197190 [details]
mkmf.log

I'm unsure what's going on here, but looks like  Makefile.ruby is not generated because of "obex libs not found" error. Explanation of this error is in attachment and highlighted below:

find_library: checking for obexftp_open() in -lobexftp... -------------------- no

"i686-pc-linux-gnu-gcc -o conftest -I. -I/usr/lib/ruby/1.8/i686-linux -I. -I../..  -D_FILE_OFFSET_BITS=64  -O2 -mtune=pentium-m -march=pentium-m -pipe -fno-strict-aliasing  -fPIC   conftest.c  -L. -L/usr/lib -Wl,-R/usr/lib -L. -Wl,--as-needed,-O1,--hash-style=gnu,--sort-common -rdynamic -Wl,-export-dynamic    -lmulticobex -lbfb -lopenobex  -lruby18-static -lobexftp -lmulticobex -lbfb -lopenobex  -lpthread -lrt -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 */
Comment 2 Alin Năstac (RETIRED) gentoo-dev 2009-07-08 15:34:06 UTC
libbluetooth.so.2 does not exist and libobexftp.so needs it.

See if revdep-rebuild fixes your problem.
Comment 3 Peter Volkov (RETIRED) gentoo-dev 2009-07-09 08:24:06 UTC
(In reply to comment #2)
> libbluetooth.so.2 does not exist and libobexftp.so needs it.
> 
> See if revdep-rebuild fixes your problem.

Well, currently revdep-rebuild shows only 
[cut]
* All prepared. Starting rebuild
emerge --oneshot  app-mobilephone/obexftp:0
..........
Calculating dependencies... done!
[cut]

and obextftp fails with the error. What compiler do you have? Is it possible that gcc-4.3.x triggers this problem?
Comment 4 Alin Năstac (RETIRED) gentoo-dev 2009-07-09 21:47:12 UTC
Ah, now I remember... Technically, this bug is a duplicate of #244881.

At that moment I thought I've fixed it by applying ruby-libpath.patch, but flameeyes replaced it with fixruby.patch (see #273736). I'll let him deal with this mess.
Comment 5 ScytheMan 2009-10-04 16:55:31 UTC
USE="-ruby" and it compiles w/o any problems.

Comment 6 Łukasz Stelmach 2010-04-23 18:39:27 UTC
ping?
Comment 7 Hans de Graaff gentoo-dev Security 2012-07-10 06:57:51 UTC
I just verified if this bug is still present, but I had no problem compiling obexftp with the ruby bindings. If people still have problems please reopen the bug and provide information.