Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
nspr fails to compile
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
linux_matt
n00b
n00b


Joined: 14 May 2012
Posts: 57

PostPosted: Fri Aug 22, 2014 1:54 am    Post subject: nspr fails to compile Reply with quote

Any ideas on why I am getting the error below when trying to emerge nspr using gcc 4.8.2? -- thanks

It compiles OK on another machine (gcc 4.8.3) so I assume this is not a bug. Could it be related to the gcc version?


/var/tmp/portage/dev-libs/nspr-4.10.6-r1/work/nspr-4.10.6/nspr/pr/src/pthreads/ptio.c: In function 'pt_GetSocketOption':
/var/tmp/portage/dev-libs/nspr-4.10.6-r1/work/nspr-4.10.6/nspr/pr/src/pthreads/ptio.c:2857:18: error: 'PR_SockOpt_Reuseport' undeclared (first use in this function)
case PR_SockOpt_Reuseport:
^
/var/tmp/portage/dev-libs/nspr-4.10.6-r1/work/nspr-4.10.6/nspr/pr/src/pthreads/ptio.c:2857:18: note: each undeclared identifier is reported only once for each function it appears in
/var/tmp/portage/dev-libs/nspr-4.10.6-r1/work/nspr-4.10.6/nspr/pr/src/pthreads/ptio.c: In function 'pt_SetSocketOption':
/var/tmp/portage/dev-libs/nspr-4.10.6-r1/work/nspr-4.10.6/nspr/pr/src/pthreads/ptio.c:2977:18: error: 'PR_SockOpt_Reuseport' undeclared (first use in this function)
case PR_SockOpt_Reuseport:





Here is emerge --info on the box where nspr does *not* compile successfully (emerge --info on the other box is below)

Portage 2.2.8-r1 (default/linux/x86/13.0, gcc-4.8.2, glibc-2.18-r1, 3.11.6-gentoo i686)
=================================================================
System Settings
=================================================================
System uname: Linux-3.11.6-gentoo-i686-AMD_Athlon-tm-_II_X4_6400e_Processor-with-gentoo-2.2
KiB Mem: 3234892 total, 2024708 free
KiB Swap: 3147772 total, 2543432 free
Timestamp of tree: Thu, 21 Aug 2014 23:15:01 +0000
ld GNU ld (GNU Binutils) 2.24
distcc 3.1 i686-pc-linux-gnu [disabled]
app-shells/bash: 4.2_p45-r1
dev-java/java-config: 2.2.0
dev-lang/python: 2.7.6, 3.2.5-r3, 3.3.4
dev-util/cmake: 2.8.12.2
dev-util/pkgconfig: 0.28
sys-apps/baselayout: 2.2
sys-apps/openrc: 0.12.4
sys-apps/sandbox: 2.6-r1
sys-devel/autoconf: 2.13, 2.69
sys-devel/automake: 1.9.6-r3, 1.10.3, 1.11.6, 1.12.6, 1.13.4, 1.14.1
sys-devel/binutils: 2.24-r2
sys-devel/gcc: 4.5.3-r2, 4.8.2
sys-devel/gcc-config: 1.8
sys-devel/libtool: 2.4.2-r1
sys-devel/make: 4.0-r1
sys-kernel/linux-headers: 3.16 (virtual/os-headers)
sys-libs/glibc: 2.18-r1
Repositories: gentoo
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA AdobeFlash-10.3"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=amdfam10 -O2 -pipe"
CHOST="i686-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/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CPPFLAGS="-march=amdfam10 -O2 -pipe -I/usr/include/nspr"
CXXFLAGS="-march=amdfam10 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-march=amdfam10 -O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-march=amdfam10 -O2 -pipe"
GENTOO_MIRRORS="http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-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=""
SYNC="rsync://rsync3.uk.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acl acpi alsa apache2 auto-hinter avahi berkdb bindist bluetooth branding bzip2 cairo cdb cddb cdparanoia cdr cli corefonts cpudetection cracklib crypt css cups cxx daap dbus djvu dri dts dv dvb dvd dvdr dvdread eds emboss encode esd evo exif fam ffmpeg firefox flac fortran fuse gdbm gif gnome gstreamer gtk hal iconv ipv6 isdnlog jack java javascript joystick jpeg jpeg2k lame latin1 libnotify libsamplerate lm_sensors mad mdnsresponder-compat midi mikmod mmx mmxext modules mp3 mpeg mtp mudflap mysql mythtv nautilus ncurses nls nptl nptlonly nsplugin ogg opengl openmp oss pam pcre pdf perl png posix ppds pppd pulseaudio python qt3 qt3support qt4 quicktime readline reflection rss samba sdl session spell spl sqlite sse sse2 sse3 ssl startup-notification svg sysfs systemd tcpd tiff transcode truetype twolame type1 unicode usb v4l vcd vdpau virtualbox vorbis wifi wma x264 x86 xcomposite xine xml xorg xv xvid xvmc zlib" ABI_X86="32" 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" 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 author" CAMERAS="ptp2 canon fuji panasonic_coolshot panasonic_dc1000 panasonic_dc1580 panasonic_l859sony_dscf1 sony_dscf55" 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 ublox ubx" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en_GB en" LIRC_DEVICES="alsa_usb audio audio_alsa creative creative_infracd hauppauge hauppauge_dvb" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="nouveau" 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: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

Here is the emerge --info on the other box where the same version of nspr *does* compile:

emerge --info =dev-libs/nspr-4.10.6-r1
Portage 2.2.12 (python 2.7.8-final-0, default/linux/x86/13.0, gcc-4.8.3, glibc-2.19-r1, 3.12.6-gentoo-nvidia i686)
=================================================================
System Settings
=================================================================
System uname: Linux-3.12.6-gentoo-nvidia-i686-AMD_Athlon-tm-_64_Processor_4000+-with-gentoo-2.2
KiB Mem: 2071472 total, 338496 free
KiB Swap: 2662396 total, 1712816 free
Timestamp of tree: Fri, 22 Aug 2014 05:45:01 +0000
ld GNU ld (Gentoo 2.24 p1.4) 2.24
distcc 3.1 i686-pc-linux-gnu [disabled]
app-shells/bash: 4.2_p47
dev-java/java-config: 2.2.0
dev-lang/python: 2.6.8-r1, 2.7.8, 3.2.5-r3, 3.3.3
dev-util/cmake: 2.8.12.2
dev-util/pkgconfig: 0.28-r2
sys-apps/baselayout: 2.2
sys-apps/openrc: 0.12.4
sys-apps/sandbox: 2.6-r1
sys-devel/autoconf: 2.13, 2.69
sys-devel/automake: 1.9.6-r3, 1.10.3, 1.11.6, 1.12.6, 1.13.4, 1.14.1
sys-devel/binutils: 2.24-r3
sys-devel/gcc: 3.4.6-r2, 4.5.3-r2, 4.6.3, 4.7.3, 4.8.3
sys-devel/gcc-config: 1.8
sys-devel/libtool: 2.4.2-r1
sys-devel/make: 4.0-r1
sys-kernel/linux-headers: 3.16 (virtual/os-headers)
sys-libs/glibc: 2.19-r1
Repositories: gentoo x-portage
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions"
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=k8 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/"
LANG="en_GB"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-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://rsync1.uk.gentoo.org/gentoo-portage"
USE="aac acl alsa berkdb bzip2 cleartype cli consolekit cracklib crypt cxx dbus dri ffmpeg flac fortran gdbm gnome gstreamer gtk iconv ipv6 jpeg lame mmx modules mp3 mpeg mtp mythtv ncurses nls nptl openmp pam pcre pdf png policykit pulseaudio qt3support readline session ssl svg systemd taglib tcpd truetype udev unicode vorbis x86 zlib" ABI_X86="32" 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" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 author" 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 ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_GB" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="nvidia nouveau" 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


Last edited by linux_matt on Sat Aug 23, 2014 3:53 pm; edited 1 time in total
Back to top
View user's profile Send private message
linux_matt
n00b
n00b


Joined: 14 May 2012
Posts: 57

PostPosted: Sat Aug 23, 2014 2:35 am    Post subject: Re: nspr fails to compile [SOLVED] Reply with quote

Solved by replacing /usr/include/nspr with the same directory from the system where nspr had compiled OK

linux_matt wrote:
Any ideas on why I am getting the error below when trying to emerge nspr using gcc 4.8.2? -- thanks

It compiles OK on another machine (gcc 4.8.3) so I assume this is not a bug. Could it be related to the gcc version?


/var/tmp/portage/dev-libs/nspr-4.10.6-r1/work/nspr-4.10.6/nspr/pr/src/pthreads/ptio.c: In function 'pt_GetSocketOption':
/var/tmp/portage/dev-libs/nspr-4.10.6-r1/work/nspr-4.10.6/nspr/pr/src/pthreads/ptio.c:2857:18: error: 'PR_SockOpt_Reuseport' undeclared (first use in this function)
case PR_SockOpt_Reuseport:
^
/var/tmp/portage/dev-libs/nspr-4.10.6-r1/work/nspr-4.10.6/nspr/pr/src/pthreads/ptio.c:2857:18: note: each undeclared identifier is reported only once for each function it appears in
/var/tmp/portage/dev-libs/nspr-4.10.6-r1/work/nspr-4.10.6/nspr/pr/src/pthreads/ptio.c: In function 'pt_SetSocketOption':
/var/tmp/portage/dev-libs/nspr-4.10.6-r1/work/nspr-4.10.6/nspr/pr/src/pthreads/ptio.c:2977:18: error: 'PR_SockOpt_Reuseport' undeclared (first use in this function)
case PR_SockOpt_Reuseport:





Here is emerge --info on the box where nspr does *not* compile successfully (emerge --info on the other box is below)

Portage 2.2.8-r1 (default/linux/x86/13.0, gcc-4.8.2, glibc-2.18-r1, 3.11.6-gentoo i686)
=================================================================
System Settings
=================================================================
System uname: Linux-3.11.6-gentoo-i686-AMD_Athlon-tm-_II_X4_6400e_Processor-with-gentoo-2.2
KiB Mem: 3234892 total, 2024708 free
KiB Swap: 3147772 total, 2543432 free
Timestamp of tree: Thu, 21 Aug 2014 23:15:01 +0000
ld GNU ld (GNU Binutils) 2.24
distcc 3.1 i686-pc-linux-gnu [disabled]
app-shells/bash: 4.2_p45-r1
dev-java/java-config: 2.2.0
dev-lang/python: 2.7.6, 3.2.5-r3, 3.3.4
dev-util/cmake: 2.8.12.2
dev-util/pkgconfig: 0.28
sys-apps/baselayout: 2.2
sys-apps/openrc: 0.12.4
sys-apps/sandbox: 2.6-r1
sys-devel/autoconf: 2.13, 2.69
sys-devel/automake: 1.9.6-r3, 1.10.3, 1.11.6, 1.12.6, 1.13.4, 1.14.1
sys-devel/binutils: 2.24-r2
sys-devel/gcc: 4.5.3-r2, 4.8.2
sys-devel/gcc-config: 1.8
sys-devel/libtool: 2.4.2-r1
sys-devel/make: 4.0-r1
sys-kernel/linux-headers: 3.16 (virtual/os-headers)
sys-libs/glibc: 2.18-r1
Repositories: gentoo
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA AdobeFlash-10.3"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=amdfam10 -O2 -pipe"
CHOST="i686-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/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CPPFLAGS="-march=amdfam10 -O2 -pipe -I/usr/include/nspr"
CXXFLAGS="-march=amdfam10 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-march=amdfam10 -O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-march=amdfam10 -O2 -pipe"
GENTOO_MIRRORS="http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-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=""
SYNC="rsync://rsync3.uk.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acl acpi alsa apache2 auto-hinter avahi berkdb bindist bluetooth branding bzip2 cairo cdb cddb cdparanoia cdr cli corefonts cpudetection cracklib crypt css cups cxx daap dbus djvu dri dts dv dvb dvd dvdr dvdread eds emboss encode esd evo exif fam ffmpeg firefox flac fortran fuse gdbm gif gnome gstreamer gtk hal iconv ipv6 isdnlog jack java javascript joystick jpeg jpeg2k lame latin1 libnotify libsamplerate lm_sensors mad mdnsresponder-compat midi mikmod mmx mmxext modules mp3 mpeg mtp mudflap mysql mythtv nautilus ncurses nls nptl nptlonly nsplugin ogg opengl openmp oss pam pcre pdf perl png posix ppds pppd pulseaudio python qt3 qt3support qt4 quicktime readline reflection rss samba sdl session spell spl sqlite sse sse2 sse3 ssl startup-notification svg sysfs systemd tcpd tiff transcode truetype twolame type1 unicode usb v4l vcd vdpau virtualbox vorbis wifi wma x264 x86 xcomposite xine xml xorg xv xvid xvmc zlib" ABI_X86="32" 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" 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 author" CAMERAS="ptp2 canon fuji panasonic_coolshot panasonic_dc1000 panasonic_dc1580 panasonic_l859sony_dscf1 sony_dscf55" 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 ublox ubx" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en_GB en" LIRC_DEVICES="alsa_usb audio audio_alsa creative creative_infracd hauppauge hauppauge_dvb" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="nouveau" 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: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

Here is the emerge --info on the other box where the same version of nspr *does* compile:

emerge --info =dev-libs/nspr-4.10.6-r1
Portage 2.2.12 (python 2.7.8-final-0, default/linux/x86/13.0, gcc-4.8.3, glibc-2.19-r1, 3.12.6-gentoo-nvidia i686)
=================================================================
System Settings
=================================================================
System uname: Linux-3.12.6-gentoo-nvidia-i686-AMD_Athlon-tm-_64_Processor_4000+-with-gentoo-2.2
KiB Mem: 2071472 total, 338496 free
KiB Swap: 2662396 total, 1712816 free
Timestamp of tree: Fri, 22 Aug 2014 05:45:01 +0000
ld GNU ld (Gentoo 2.24 p1.4) 2.24
distcc 3.1 i686-pc-linux-gnu [disabled]
app-shells/bash: 4.2_p47
dev-java/java-config: 2.2.0
dev-lang/python: 2.6.8-r1, 2.7.8, 3.2.5-r3, 3.3.3
dev-util/cmake: 2.8.12.2
dev-util/pkgconfig: 0.28-r2
sys-apps/baselayout: 2.2
sys-apps/openrc: 0.12.4
sys-apps/sandbox: 2.6-r1
sys-devel/autoconf: 2.13, 2.69
sys-devel/automake: 1.9.6-r3, 1.10.3, 1.11.6, 1.12.6, 1.13.4, 1.14.1
sys-devel/binutils: 2.24-r3
sys-devel/gcc: 3.4.6-r2, 4.5.3-r2, 4.6.3, 4.7.3, 4.8.3
sys-devel/gcc-config: 1.8
sys-devel/libtool: 2.4.2-r1
sys-devel/make: 4.0-r1
sys-kernel/linux-headers: 3.16 (virtual/os-headers)
sys-libs/glibc: 2.19-r1
Repositories: gentoo x-portage
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions"
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=k8 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/"
LANG="en_GB"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-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://rsync1.uk.gentoo.org/gentoo-portage"
USE="aac acl alsa berkdb bzip2 cleartype cli consolekit cracklib crypt cxx dbus dri ffmpeg flac fortran gdbm gnome gstreamer gtk iconv ipv6 jpeg lame mmx modules mp3 mpeg mtp mythtv ncurses nls nptl openmp pam pcre pdf png policykit pulseaudio qt3support readline session ssl svg systemd taglib tcpd truetype udev unicode vorbis x86 zlib" ABI_X86="32" 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" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 author" 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 ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_GB" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="nvidia nouveau" 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
Back to top
View user's profile Send private message
Hu
Watchman
Watchman


Joined: 06 Mar 2007
Posts: 9049

PostPosted: Sat Aug 23, 2014 3:45 pm    Post subject: Reply with quote

Manually patching the live filesystem like that is rarely the correct solution. It would be interesting to revert your changes, uninstall nspr completely, and then install a new copy. If that works, it would suggest that the nspr build uses headers from the installed nspr copy in preference to its internal headers, which would be a bug.
Back to top
View user's profile Send private message
linux_matt
n00b
n00b


Joined: 14 May 2012
Posts: 57

PostPosted: Sat Aug 23, 2014 3:55 pm    Post subject: Reply with quote

Hu wrote:
Manually patching the live filesystem like that is rarely the correct solution. It would be interesting to revert your changes, uninstall nspr completely, and then install a new copy. If that works, it would suggest that the nspr build uses headers from the installed nspr copy in preference to its internal headers, which would be a bug.


Thanks, I will have a go. In the meantime I have removed "solved" from the forum post as i used a workaround
Back to top
View user's profile Send private message
linux_matt
n00b
n00b


Joined: 14 May 2012
Posts: 57

PostPosted: Sat Aug 23, 2014 3:59 pm    Post subject: Reply with quote

linux_matt wrote:
Hu wrote:
Manually patching the live filesystem like that is rarely the correct solution. It would be interesting to revert your changes, uninstall nspr completely, and then install a new copy. If that works, it would suggest that the nspr build uses headers from the installed nspr copy in preference to its internal headers, which would be a bug.


Thanks, I will have a go. In the meantime I have removed "solved" from the forum post as i used a workaround


To confirm I did a emerge --unmerge on nspr and then an emerge, it compiled and installed successfully. So worth reporting as as a bug?
Back to top
View user's profile Send private message
steveL
Advocate
Advocate


Joined: 13 Sep 2006
Posts: 2692
Location: The Peanut Gallery

PostPosted: Sun Aug 24, 2014 3:54 pm    Post subject: Reply with quote

linux_matt wrote:
So worth reporting as as a bug?

Yup: it sounds like a bug in the npsr build-system; it should be adding local -I flags before CPPFLAGS or any other -I include paths.

The compiler is supposed to search those directories before any system-wide ones, the latter only applying for includes in <angle-brackets.h>

While it's quite common for the actual .c files to use a "local-path.h", project headers tend to be setup for use by other projects (ie including other <headers>) so the build-system always has to add its local include directories (starting with -I .).

TBH I'm surprised that isn't already happening; you could always check your local compiler with gcc -dumpspecs but unless you've done something really odd that's unlikely to be the problem.
Code:
gcc -dumpspecs | grep -F -- '-I'
produces nothing here, fwtw.
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 5616

PostPosted: Sun Aug 24, 2014 6:07 pm    Post subject: Reply with quote

It seems that this problem is just the usual user error, cause
linux_matt wrote:
Code:
CPPFLAGS="-march=amdfam10 -O2 -pipe -I/usr/include/nspr"

honestly...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum