Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 359629 - media-radio/fldigi-3.21.3 fails with error: cannot convert ‘int*’ to ‘short int*’ in initialization
Summary: media-radio/fldigi-3.21.3 fails with error: cannot convert ‘int*’ to ‘short i...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal with 1 vote (vote)
Assignee: Thomas Beierlein
URL:
Whiteboard:
Keywords:
Depends on: 395747
Blocks:
  Show dependency tree
 
Reported: 2011-03-20 17:51 UTC by Justin Lecher (RETIRED)
Modified: 2012-01-05 16:17 UTC (History)
0 users

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


Attachments
/var/log/portage/build/media-radio/fldigi-3.21.3:20110320-174600.log (fldigi-3.21.3:20110320-174600.log,111.21 KB, text/plain)
2011-03-20 17:52 UTC, Justin Lecher (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Justin Lecher (RETIRED) gentoo-dev 2011-03-20 17:51:28 UTC
x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I.  -DBUILD_FLDIGI -DLOCALEDIR=\"/usr/share/locale\" -I. -I./include -I./irrxml -I./fileselector -I./xmlrpcpp  -I/usr/include/fltk-1 -pthread -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 -I/usr/include/libdrm -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_THREAD_SAFE -D_REENTRANT        -I/usr/include/libpng14        -pipe -Wall -fexceptions -O2 -ffast-math -finline-functions  -DNDEBUG -O2 -pipe -march=core2 -mcx16 -msahf -mpopcnt -msse4.2 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=8192 -frecord-gcc-switches -g -Wenum-compare -MT fldigi-Panel.o -MD -MP -MF .deps/fldigi-Panel.Tpo -c -o fldigi-Panel.o `test -f 'widgets/Panel.cxx' || echo './'`widgets/Panel.cxx
widgets/Panel.cxx: In member function ‘int Panel::orgx()’:
widgets/Panel.cxx:40:21: error: cannot convert ‘int*’ to ‘short int*’ in initialization
widgets/Panel.cxx: In member function ‘int Panel::orgy()’:
widgets/Panel.cxx:49:21: error: cannot convert ‘int*’ to ‘short int*’ in initialization
widgets/Panel.cxx: In member function ‘void Panel::position(int, int, int, int)’:
widgets/Panel.cxx:58:19: error: cannot convert ‘int*’ to ‘short int*’ in initialization
widgets/Panel.cxx: In member function ‘virtual void Panel::resize(int, int, int, int)’:
widgets/Panel.cxx:93:19: error: cannot convert ‘int*’ to ‘short int*’ in initialization
widgets/Panel.cxx: In member function ‘virtual int Panel::handle(int)’:
widgets/Panel.cxx:194:20: error: cannot convert ‘int*’ to ‘short int*’ in initialization
make[2]: *** [fldigi-Panel.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/media-radio/fldigi-3.21.3/work/fldigi-3.21.3/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/var/tmp/portage/media-radio/fldigi-3.21.3/work/fldigi-3.21.3/src'
Comment 1 Justin Lecher (RETIRED) gentoo-dev 2011-03-20 17:52:06 UTC
Created attachment 266627 [details]
/var/log/portage/build/media-radio/fldigi-3.21.3:20110320-174600.log

build.log
Comment 2 Justin Lecher (RETIRED) gentoo-dev 2011-03-20 19:42:54 UTC
Portage 2.2.0_alpha28 (default/linux/amd64/10.0, gcc-4.5.2, glibc-2.12.2-r0, 2.6.37-lh-r2 x86_64)
=================================================================
System uname: Linux-2.6.37-lh-r2-x86_64-Intel-R-_Core-TM-_i7_CPU_860_@_2.80GHz-with-gentoo-2.0.2
Timestamp of tree: Sun, 20 Mar 2011 07:30:01 +0000
ccache version 3.1.4 [enabled]
app-shells/bash:     4.1_p9
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.6.6-r2, 2.7.1-r1, 3.1.3-r1
dev-util/ccache:     3.1.4
dev-util/cmake:      2.8.4
sys-apps/baselayout: 2.0.2
sys-apps/openrc:     0.7.0
sys-apps/sandbox:    2.5
sys-devel/autoconf:  2.13, 2.68
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.21
sys-devel/gcc:       4.5.2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.4-r1::last-hope
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.36.1 (sys-kernel/linux-headers)
Repositories: gentoo sunrise dummy science last-hope
Installed sets: 
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=core2 -mcx16 -msahf -mpopcnt -msse4.2 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=8192 -frecord-gcc-switches -g -Wimplicit-function-declaration"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/nano/ /usr/share/openvpn/easy-rsa /var/spool/torque"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /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="-O2 -pipe -march=core2 -mcx16 -msahf -mpopcnt -msse4.2 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=8192 -frecord-gcc-switches -g -Wenum-compare"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="-t --jobs=12 --load-average=12 --keep-going"
FEATURES="assume-digests binpkg-logs buildsyspkg ccache collision-protect distlocks fixlafiles fixpackages metadata-transfer multilib-strict news noinfo parallel-fetch preserve-libs protect-owned sandbox sfperms sign split-log splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe -march=core2 -mcx16 -msahf -mpopcnt -msse4.2 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=8192 -frecord-gcc-switches -g"
GENTOO_MIRRORS=" http://gentoo.j-schmitz.net/mirror/ ftp://ftp.gentoo.mesh-solutions.com/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp.tu-clausthal.de/pub/linux/gentoo/"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-O1 -Wl,--hash-style=gnu -Wl,--sort-common"
LINGUAS="en"
MAKEOPTS="-j12 -l12"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="xz"
PORTAGE_COMPRESS_FLAGS="-z -v"
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="/data/local/sunrise/reviewed /data/local/dummy /data/local/sci /data/local/lh/ebuilds"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="64bit 7zip X acpi additions alsa amd64 arpwarp atlas bash-completion berkdb blas branding bzip2 c++ cairo caps cblas ccache cleartype cli command-args consolekit corefonts cracklib cups cupsddk custom-optimization cxx dbus dri dts exif fbcondecor fltk fortran gdbm gif glibc-omitfp gmp gnome gnome-keyring gpm graphics gstreamer gtk hddtemp iconv icu ipod javascript jpeg kqemu lapack largefile lcms ldap libnotify libsexy lm_sensors lzma mailtrain md5sum mmx mng modules mp3 mudflap multilib multiuser nagios-dns nagios-ntp nagios-ping nagios-ssh nano-syntax ncurses network-cron nis nls nptl nptlonly nsplugin objc objc++ opengl openmp openntpd pam pcre pdf perl png policykit pppd pymol python qt-static qt3support readline rrdcgi rrdtool science sensord session smp sqlite sqlite3 sse sse2 ssl startup-notification svg sysfs system-sqlite tcpd threads tiff truetype type1 udev unicode x264 xcb xcomposite xinerama xorg xulrunner zlib" ALSA_CARDS="hda-intel" 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" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DRACUT_MODULES="plymouth" 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" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" PHP_TARGETS="php5-3" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Thomas Beierlein gentoo-dev 2011-03-20 20:33:12 UTC
Problem lay in a change of API from fltk-1.1.9 to fltk-1.3.0. I will look into it and report upstream.
Comment 4 Thomas Beierlein gentoo-dev 2011-03-25 19:30:42 UTC
Upstream is working on a port to fltk-1.3 but without an expected TOA.

Restricting the unstable versions to <ftlk-1.2 for now.

+*fldigi-3.21.7 (25 Mar 2011)
+
+  25 Mar 2011; Thomas Beierlein <tomjbe@gentoo.org> fldigi-3.21.3.ebuild,
+  +fldigi-3.21.7.ebuild:
+  Version bump. Restrict deps to <fltk-1.2 until upstream ported to fltk-1.3
+  (bug #359629)
+
Comment 5 Krellan 2011-12-26 20:16:43 UTC
This patch was mentioned on the forums:

http://www.mail-archive.com/gentoo-dev@lists.gentoo.org/msg47084.html

Maybe it will help?
Comment 6 Justin Lecher (RETIRED) gentoo-dev 2011-12-26 20:36:44 UTC
(In reply to comment #5)
> This patch was mentioned on the forums:
> 
> http://www.mail-archive.com/gentoo-dev@lists.gentoo.org/msg47084.html
> 
> Maybe it will help?

only half, as also mentioned in the mail.
Comment 7 Thomas Beierlein gentoo-dev 2011-12-26 21:16:57 UTC
I have a running patch for fltk-1.3 now. It has still to be tested and talked through with upstream.

Main problem atm, after the patch it does not work with ftlk-1.1 any more as the fltk team changed the api for public classes between 1.1 and 1.3.
Comment 8 Justin Lecher (RETIRED) gentoo-dev 2011-12-26 21:19:30 UTC
(In reply to comment #7)
> I have a running patch for fltk-1.3 now. It has still to be tested and talked
> through with upstream.
> 
> Main problem atm, after the patch it does not work with ftlk-1.1 any more as
> the fltk team changed the api for public classes between 1.1 and 1.3.

Thats no problem for us. And upstream should also follow the 1.3 route. Thanks for your work.
Comment 9 Krellan 2011-12-27 06:28:06 UTC
(In reply to comment #7)
> I have a running patch for fltk-1.3 now. It has still to be tested and talked
> through with upstream.

I also made a patch to get it up and running with fltk 1.3!

The patch was posted under bug 395747:

https://bugs.gentoo.org/show_bug.cgi?id=395747

Would be curious to see how our patches compare.

> Main problem atm, after the patch it does not work with ftlk-1.1 any more as
> the fltk team changed the api for public classes between 1.1 and 1.3.

Interesting.  The fldigi program already seems to have separate files depending on if the detected API version is 1.1 or 1.3, for some of the files (such as Fl_Text_Buffer_mod).  So by only changing the appropriate file, it should be possible to isolate the changes to only one API version.

Or, Gentoo's emerge scripting should be able to conditionally apply the patch, I would think.
Comment 10 Thomas Beierlein gentoo-dev 2011-12-27 09:00:13 UTC
(In reply to comment #8)
> (In reply to comment #7)
> > I have a running patch for fltk-1.3 now. It has still to be tested and talked
> > through with upstream.
> > 
> > Main problem atm, after the patch it does not work with ftlk-1.1 any more as
> > the fltk team changed the api for public classes between 1.1 and 1.3.
> 
> Thats no problem for us. And upstream should also follow the 1.3 route. Thanks
> for your work.

Only problem would be to stabilize both - fltk-1.3 and patched fldigi - at the same time.
Comment 11 Thomas Beierlein gentoo-dev 2012-01-05 16:17:14 UTC
Working fldigi-3.21.35_pre1 in tree (see bug #395747). Closing the bug.