Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 348431 - dev-util/radare-1.5-r1 fails to build
Summary: dev-util/radare-1.5-r1 fails to build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal
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:
 
Reported: 2010-12-11 16:30 UTC by Helmut Jarausch
Modified: 2011-02-23 16:00 UTC (History)
2 users (show)

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


Attachments
Build Log (build.log,46.88 KB, text/plain)
2010-12-12 09:24 UTC, Helmut Jarausch
Details
Drop vala use flag and depend on vala if gui use flag set (radare-1.5-r2.ebuild,1.07 KB, text/plain)
2011-02-04 22:11 UTC, Kevin McCarthy (RETIRED)
Details
Fixes the few outstanding LDFLAGS problems not fixed in original patch (radare-1.5-more-ldflags.patch,2.22 KB, patch)
2011-02-04 22:12 UTC, Kevin McCarthy (RETIRED)
Details | Diff
Put the libraries without a SONAME in ${libdir}/radare instead of ${libdir} (radare-1.5-soname.patch,843 bytes, patch)
2011-02-04 22:13 UTC, Kevin McCarthy (RETIRED)
Details | Diff
Patch to the above ebuild to revert the broken SONAME patch (radare-1.5-r2.ebuild.patch,323 bytes, patch)
2011-02-13 00:36 UTC, Kevin McCarthy (RETIRED)
Details | Diff
Corrected patch against the above ebuild (radare-1.5-r2.ebuild.patch,355 bytes, patch)
2011-02-14 12:21 UTC, Kevin McCarthy (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Helmut Jarausch 2010-12-11 16:30:28 UTC
emerging dev-util/radare-1.5-r1 dies with

x86_64-pc-linux-gnu-gcc -c -mtune=native -O2 -msse3 -pipe -Iplug/io/libgdbwrap/include -Wall -I. -Iinclude -DRADARE_CORE -o plugin.o plugin.c
plugin.c:28:21: fatal error: gtk/gtk.h: No such file or directory
compilation terminated.
make[1]: *** [plugin.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/dev-util/radare-1.5-r1/work/radare-1.5/src'



Reproducible: Always




emerge --info dev-util/radare
Portage 2.2.0_alpha7 (default/linux/amd64/10.0/desktop, gcc-4.5.1, glibc-2.12.1-r3, 2.6.36-gentoo-r4 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.36-gentoo-r4-x86_64-AMD_Phenom-tm-_II_X4_940_Processor-with-gentoo-2.0.1
Timestamp of tree: Sat, 11 Dec 2010 06:45:01 +0000
ccache version 3.1.3 [disabled]
app-shells/bash:     4.1_p9
dev-java/java-config: 2.1.11-r2
dev-lang/python:     2.6.6-r1, 2.7.1, 3.1.3
dev-util/ccache:     3.1.3
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1-r1
sys-apps/openrc:     0.6.8
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13, 2.68
sys-devel/automake:  1.6.3-r1, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.21
sys-devel/gcc:       4.4.5, 4.5.1-r1, 4.6.0_pre9999::local
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.4-r1
sys-devel/make:      3.82
virtual/os-headers:  2.6.36.1 (sys-kernel/linux-headers)
Repositories: gentoo sunrise local
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-mtune=native -O2 -msse3 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /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"
CXXFLAGS="-mtune=native -O2 -msse3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs buildpkg distlocks fixlafiles fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo "
LANG="en_US.iso88591"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en de"
MAKEOPTS="-j4"
PKGDIR="/usr/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="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/sunrise /usr/local/portage"
SYNC="rsync://rsync.informatik.RWTH-Aachen.de/gentoo-portage"
USE="3dnow 3dnowext 3dnowprefetch X a52 aac acl acpi alsa amd64 atm avahi berkdb branding bzip2 cairo cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam ffmpeg fftw firefox flac fortran fuse gdbm gfortran gif gimp gnome gpm gtk gtk2 hal iconv ipv6 jpeg kde lapack lcms libnotify mad mikmod mmx mmxext mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl nptlonly ogg opengl openmp pam pango pcre pdf perl png ppds pppd python qt qt3support qt4 readline sdl session smp spell sqlite sqlite3 sse sse2 sse3 sse4a ssl startup-notification svg sysfs tcl tcpd threads tiff tk truetype udev unicode usb vorbis x264 xcb xml xorg xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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 cgi cgid 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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en de" PHP_TARGETS="php5-2" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="ati radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

dev-util/radare-1.5-r1 was built with the following:
USE="gui (multilib) -lua -vala"
LDFLAGS="-Wl,-O1"
Comment 1 Rafał Mużyło 2010-12-11 19:21:19 UTC
Build log, please.
Comment 2 Helmut Jarausch 2010-12-12 09:24:37 UTC
Created attachment 256947 [details]
Build Log
Comment 3 Michael Weber (RETIRED) gentoo-dev 2010-12-13 10:05:29 UTC
currently taking a look at it.

++ for crazy build systems.
Comment 4 Helmut Jarausch 2011-01-26 08:30:31 UTC
(In reply to comment #2)

Still the same with version 1.5.2
 

Comment 5 Kevin McCarthy (RETIRED) gentoo-dev 2011-02-04 22:11:41 UTC
Created attachment 261539 [details]
Drop vala use flag and depend on vala if gui use flag set
Comment 6 Kevin McCarthy (RETIRED) gentoo-dev 2011-02-04 22:12:32 UTC
Created attachment 261541 [details, diff]
Fixes the few outstanding LDFLAGS problems not fixed in original patch
Comment 7 Kevin McCarthy (RETIRED) gentoo-dev 2011-02-04 22:13:10 UTC
Created attachment 261543 [details, diff]
Put the libraries without a SONAME in ${libdir}/radare instead of ${libdir}
Comment 8 Kevin McCarthy (RETIRED) gentoo-dev 2011-02-04 22:17:49 UTC
It seems that radare can no longer be built with a GUI and without vala. So, I've removed the vala use flag and it will be enabled if the "gui" flag is set.

I've also fixed the last few problems where it doesn't respect LDFLAGS and I've also moved libfdsniff.so and libusbsniff.so to /usr/${libdir}/radare because they don't have a SONAME and were generating QA warnings when they were in /usr/${libdir}. I don't think they need a SONAME because they are intended to be LD_PRELOADed.

There are still a lot of QA warnings on this ebuild, but it is beyond my expertise to fix them.
Comment 9 Helmut Jarausch 2011-02-12 17:30:00 UTC
(In reply to comment #8)
> It seems that radare can no longer be built with a GUI and without vala. So,
> I've removed the vala use flag and it will be enabled if the "gui" flag is set.
> 
> I've also fixed the last few problems where it doesn't respect LDFLAGS and I've
> also moved libfdsniff.so and libusbsniff.so to /usr/${libdir}/radare because
> they don't have a SONAME and were generating QA warnings when they were in
> /usr/${libdir}. I don't think they need a SONAME because they are intended to
> be LD_PRELOADed.
> 
> There are still a lot of QA warnings on this ebuild, but it is beyond my
> expertise to fix them.

Building radare with your ebuild/patches succeeds, but invoking radare gives
cannot find 'radare_plugin_type' symbol.
(/usr/lib64/radare/libusbsniff.so: undefined symbol: radare_plugin_type)
FDSNIFF environment not defined.

My work around is to add  --without-usb-sniffer to src_configure()
Now it works.

Comment 10 Kevin McCarthy (RETIRED) gentoo-dev 2011-02-13 00:36:02 UTC
Created attachment 262295 [details, diff]
Patch to the above ebuild to revert the broken SONAME patch

Whoops, my mistake. A little over-zealous on the fixes, and under-zealous on the testing. The soname patch I added moved the SONAME-less libraries out of the system libdir and into ${libdir}/radare to avoid a QA warning about sonames. Unfortunately, radare expects that everything in ${libdir}/radare will be a plugin, and libusbsniff.so is not. This patch will remove the soname patch from the attached ebuild and everything should work. The QA warnings about sonames will return as well, but at least the program now works.
Comment 11 Helmut Jarausch 2011-02-14 10:15:23 UTC
(In reply to comment #10)
> Created an attachment (id=262295) [details]

This patch refers to libusbsniff.patch, which you didn't attach.
radare has just built fine here without this patch.

Thanks,
Helmut.
Comment 12 Kevin McCarthy (RETIRED) gentoo-dev 2011-02-14 12:21:08 UTC
Created attachment 262457 [details, diff]
Corrected patch against the above ebuild

I'm just having a heck of a time with this one. :-( Sorry for the errors.

I've re-uploaded the patch, this time it was built against the correct "original" ebuild. You should be able to apply this one against the ebuild that I uploaded to this bug and get a working radare.

Thanks for your patience.
Comment 13 Kevin McCarthy (RETIRED) gentoo-dev 2011-02-23 16:00:58 UTC
dev-util/radare-1.5-r2 is now in portage.