Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 421539 - net-libs/ccrtp-1.7.0 fails to build with >=gcc-4.6 - ./ccrtp/sources.h:409:11: error: 'ptrdiff_t' does not name a type
Summary: net-libs/ccrtp-1.7.0 fails to build with >=gcc-4.6 - ./ccrtp/sources.h:409:11...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: voip herd (OBSOLETE)
URL:
Whiteboard:
Keywords:
: 438520 444382 455508 (view as bug list)
Depends on: 421545
Blocks: gcc-4.6
  Show dependency tree
 
Reported: 2012-06-17 09:41 UTC by rainer
Modified: 2013-02-13 08:05 UTC (History)
5 users (show)

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


Attachments
fix building with gcc-4.6 (ccrtp-1.7.0-gcc46.patch,400 bytes, patch)
2012-06-17 10:17 UTC, Kacper Kowalik (Xarthisius) (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description rainer 2012-06-17 09:41:16 UTC
ccrtp does not compile. The log file contains this error:


libtool: compile:  x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -Wall -ansi -pedantic -march=core2 -msse4 -mcx16 -msahf -O2 -pipe -D_GNU_SOURCE -c socket.cpp -o socket.o >/dev/null 2>&1
/bin/sh ../libtool --tag=CXX   --mode=compile x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I.    -Wall -ansi -pedantic -march=core2 -msse4 -mcx16 -msahf -O2 -pipe -D_GNU_SOURCE   -c -o pool.lo pool.cpp
In file included from source.cpp:45:0:
./ccrtp/sources.h:409:11: error: 'ptrdiff_t' does not name a type
make[3]: *** [source.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
libtool: compile:  x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -Wall -ansi -pedantic -march=core2 -msse4 -mcx16 -msahf -O2 -pipe -D_GNU_SOURCE -c pool.cpp  -fPIC -DPIC -o .libs/pool.o
In file included from ./ccrtp/queuebase.h:49:0,
                 from data.cpp:44:
./ccrtp/sources.h:409:11: error: 'ptrdiff_t' does not name a type
make[3]: *** [data.lo] Error 1
In file included from ./ccrtp/queuebase.h:49:0,
                 from ./ccrtp/iqueue.h:47,
                 from incqueue.cpp:39:
./ccrtp/sources.h:409:11: error: 'ptrdiff_t' does not name a type
In file included from incqueue.cpp:39:0:
./ccrtp/iqueue.h:897:11: error: 'ptrdiff_t' does not name a type
make[3]: *** [incqueue.lo] Error 1


Reproducible: Always




# emerge --info '=net-libs/ccrtp-1.7.0'
Portage 2.1.10.65 (default/linux/amd64/10.0/desktop, gcc-4.6.3, glibc-2.15-r2, 3.3.5-gentoocfg-2012-03-25 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.3.5-gentoocfg-2012-03-25-x86_64-Intel-R-_Core-TM-_i7_CPU_860_@_2.80GHz-with-gentoo-2.1
Timestamp of tree: Sun, 17 Jun 2012 08:15:01 +0000
ccache version 3.1.7 [enabled]
app-shells/bash:          4.2_p29
dev-java/java-config:     2.1.12
dev-lang/python:          2.7.3-r2, 3.2.3-r1
dev-util/ccache:          3.1.7
dev-util/cmake:           2.8.8-r3
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.10.3
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.10.3, 1.11.5, 1.12.1
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.4 (virtual/os-headers)
sys-libs/glibc:           2.15-r2
Repositories: gentoo local
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -msse4 -mcx16 -msahf -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /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="-march=core2 -msse4 -mcx16 -msahf -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs ccache config-protect-if-modified distlocks ebuild-locks fixlafiles news parallel-fetch parse-eapi-ebuild-head protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo http://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.gtlib.gatech.edu/pub/gentoo"
LANG="en_US"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de en"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi aim alsa amd64 ao audiofile avahi bash-completion bcmath berkdb blas bluetooth branding bzip2 cairo calendar caps cdda cddb cdparanoia cdr cli consolekit cracklib crypt css cups curl curlwrappers cxx dbus dga directfb djvu dri dts dv dvd dvdr emacs emboss encode exif fam fbcon ffmpeg firefox flac fontconfig fortran ftp gcj gd gdbm gif gimp ginac glut gnome gnome-keyring gnuplot gnutls gphoto2 gpm graphviz gsm gstreamer gtk gtkhtml gzip hddtemp iconv icq ieee1394 imagemagick imap imlib iodbc ipv6 jabber java java6 javascript jbig jingle jpeg jpeg2k kde kontact lame lapack lash latex lcms ldap libgda libnotify lirc lm_sensors lzo mad matroska mikmod mime mmx mng modules mono mozilla mp3 mp4 mpeg mpi mplayer msn mudflap mule multilib musepack musicbrainz mysql mysqli nas ncurses neXt nls nntp nocd nptl nsplugin odbc offensive ofx ogg openal openexr opengl openmp osc oscar oss pam pango pcre pdf perl php plasma plotutils png policykit ppds pppd pulseaudio python qt3support qt4 quicktime raw readline rss ruby samba scanner sdl semantic-desktop session smp sockets socks5 sox speex spell sqlite sqlite3 sse sse2 ssl startup-notification svg symlink syslog sysvipc szip tcl tcpd theora threads tiff truetype udev udisks unicode upower usb v4l v4l2 vcd vde video vnc vorbis wmf wxwidgets x264 xattr xcb xcomposite xemacs xft xml xorg xosd xpm xsl xulrunner xv xvid yahoo 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" 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="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2012-06-17 10:17:40 UTC
Created attachment 315571 [details, diff]
fix building with gcc-4.6

It fixes the issue, but what that package really needs is version bump...

ccrtp-1.7.0.tar.gz 16.12.2008
...
ccrtp-2.0.3.tar.gz 21.03.2012
Comment 2 白川間瀬流 2012-07-30 14:18:08 UTC
Why isn't this in the tree already?
Comment 3 Pacho Ramos gentoo-dev 2012-09-23 14:29:27 UTC
+*ccrtp-2.0.3 (23 Sep 2012)
+
+  23 Sep 2012; Pacho Ramos <pacho@gentoo.org> +ccrtp-2.0.3.ebuild,
+  -ccrtp-1.5.0.ebuild, -ccrtp-1.5.1.ebuild:
+  Version bump, drop old.
+
Comment 4 Chí-Thanh Christopher Nguyễn gentoo-dev 2012-10-15 23:18:35 UTC
*** Bug 438520 has been marked as a duplicate of this bug. ***
Comment 5 satmd 2012-10-16 13:18:51 UTC
Can we please add this fix to ccrtp-1.7.0?

on ~amd64:

sflphone requires libzrtpcpp
libzrtpcpp requires <net-libs/ccrtp-2
Comment 6 Chí-Thanh Christopher Nguyễn gentoo-dev 2012-10-16 13:40:38 UTC
(In reply to comment #5)
> libzrtpcpp requires <net-libs/ccrtp-2

already done:

+  14 Oct 2012; Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org>
+  libzrtpcpp-0.9.0.ebuild, libzrtpcpp-1.3.0.ebuild, libzrtpcpp-1.4.1.ebuild:
+  Depend on <net-libs/ccrtp-2, bug #438184.
Comment 7 Tianon 2012-11-15 04:20:57 UTC
I'm getting this exact same error when compiling ccrtp-1.7.0 (for sflphone, through the libzrtpcpp dependency of <ccrtp-2, as mentioned earlier) using gcc-4.6.3.  Forcing it to compile using gcc-4.5.4 makes it compile alright.  Figured I ought to post here and let you guys know what I'm seeing on a roughly week-old ~amd64 system, in case something got missed when this was fixed before.
Comment 8 Tianon 2012-11-15 04:24:11 UTC
Of course, I hit submit too soon.  After ccrtp was successful, I switched back to gcc-4.6.3, and then net-libs/libzrtpcpp-1.4.1 failed with the exact same issue (same codebase, isn't it?).  Again, downgrading gcc to 4.5.4 allowed compilation to succeed.
Comment 9 Chí-Thanh Christopher Nguyễn gentoo-dev 2013-02-04 23:27:36 UTC
*** Bug 444382 has been marked as a duplicate of this bug. ***
Comment 10 Chí-Thanh Christopher Nguyễn gentoo-dev 2013-02-04 23:27:39 UTC
*** Bug 455520 has been marked as a duplicate of this bug. ***
Comment 11 Chí-Thanh Christopher Nguyễn gentoo-dev 2013-02-04 23:27:49 UTC
*** Bug 455508 has been marked as a duplicate of this bug. ***
Comment 12 Petr Gregor 2013-02-13 08:05:57 UTC
I am still hitting this bug with ccrtp-1.7. Just like Tianon.