Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 499266 - app-office/texmacs-1.0.7.2-r1 - In file included from ./System/Link/connection.cpp:23: /usr/include/unistd.h:546:15: error: conflicts with new declaration with ‘C’ linkage
Summary: app-office/texmacs-1.0.7.2-r1 - In file included from ./System/Link/connectio...
Status: RESOLVED DUPLICATE of bug 486908
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Andrey Grozin
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-25 21:18 UTC by Cyp
Modified: 2014-06-05 06:59 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Cyp 2014-01-25 21:18:14 UTC
Doesn't build for me. (Not sure how it would build for anyone else either.)

Reproducible: Didn't try

Steps to Reproduce:
1. Try to build it.
2. Read error message.
3. File bug report.
Actual Results:  
Fails to build.

x86_64-pc-linux-gnu-g++ -ISystem -ISystem/Boot -ISystem/Classes -ISystem/Files -ISystem/Link -ISystem/Misc -ISystem/Language -IKernel/Abstractions -IKernel/Containers -IKernel/Types -IData/Convert -IData/Drd -IData/Observers -IData/String -IData/Tmfs -IData/Tree -IGuile -IGraphics/Bitmap_fonts -IGraphics/Fonts -IGraphics/Gui -IGraphics/Mathematics -IGraphics/Renderer -IPlugins -I/var/tmp/portage/app-office/texmacs-1.0.7.2-r1/work/TeXmacs-1.0.7.2-src/TeXmacs/include -I/usr/include/freetype2 -pthread -Wall -Wno-return-type -march=native -O2 -pipe -g -fno-rtti -fno-exceptions -c ./System/Link/connection.cpp -o Objects/connection.o 
x86_64-pc-linux-gnu-g++ -ISystem -ISystem/Boot -ISystem/Classes -ISystem/Files -ISystem/Link -ISystem/Misc -ISystem/Language -IKernel/Abstractions -IKernel/Containers -IKernel/Types -IData/Convert -IData/Drd -IData/Observers -IData/String -IData/Tmfs -IData/Tree -IGuile -IGraphics/Bitmap_fonts -IGraphics/Fonts -IGraphics/Gui -IGraphics/Mathematics -IGraphics/Renderer -IPlugins -I/var/tmp/portage/app-office/texmacs-1.0.7.2-r1/work/TeXmacs-1.0.7.2-src/TeXmacs/include -I/usr/include/freetype2 -pthread -Wall -Wno-return-type -march=native -O2 -pipe -g -fno-rtti -fno-exceptions -c ./Data/String/converter.cpp -o Objects/converter.o 
x86_64-pc-linux-gnu-g++ -ISystem -ISystem/Boot -ISystem/Classes -ISystem/Files -ISystem/Link -ISystem/Misc -ISystem/Language -IKernel/Abstractions -IKernel/Containers -IKernel/Types -IData/Convert -IData/Drd -IData/Observers -IData/String -IData/Tmfs -IData/Tree -IGuile -IGraphics/Bitmap_fonts -IGraphics/Fonts -IGraphics/Gui -IGraphics/Mathematics -IGraphics/Renderer -IPlugins -I/var/tmp/portage/app-office/texmacs-1.0.7.2-r1/work/TeXmacs-1.0.7.2-src/TeXmacs/include -I/usr/include/freetype2 -pthread -Wall -Wno-return-type -march=native -O2 -pipe -g -fno-rtti -fno-exceptions -c ./System/Language/cpp_language.cpp -o Objects/cpp_language.o 
x86_64-pc-linux-gnu-g++ -ISystem -ISystem/Boot -ISystem/Classes -ISystem/Files -ISystem/Link -ISystem/Misc -ISystem/Language -IKernel/Abstractions -IKernel/Containers -IKernel/Types -IData/Convert -IData/Drd -IData/Observers -IData/String -IData/Tmfs -IData/Tree -IGuile -IGraphics/Bitmap_fonts -IGraphics/Fonts -IGraphics/Gui -IGraphics/Mathematics -IGraphics/Renderer -IPlugins -ITypeset -ITypeset/Bridge -ITypeset/Concat -ITypeset/Page -IEdit -I/usr/include/freetype2 -pthread -Wall -Wno-return-type -march=native -O2 -pipe -g -fno-rtti -fno-exceptions -c ./Typeset/Graphics/curve.cpp -o Objects/curve.o 
In file included from ./System/Link/connect.hpp:14:0,
                 from ./System/Link/connection.cpp:19:
./System/Link/pipe_link.hpp:22:15: error: previous declaration of ‘char** environ’ with ‘C++’ linkage
In file included from /usr/include/libguile/stime.h:27:0,
                 from /usr/include/libguile.h:91,
                 from Guile/Scheme/object.hpp:57,
                 from Guile/scheme.hpp:21,
                 from ./System/Link/connection.cpp:23:
/usr/include/unistd.h:546:15: error: conflicts with new declaration with ‘C’ linkage
x86_64-pc-linux-gnu-g++ -ISystem -ISystem/Boot -ISystem/Classes -ISystem/Files -ISystem/Link -ISystem/Misc -ISystem/Language -IKernel/Abstractions -IKernel/Containers -IKernel/Types -IData/Convert -IData/Drd -IData/Observers -IData/String -IData/Tmfs -IData/Tree -IGuile -IGraphics/Bitmap_fonts -IGraphics/Fonts -IGraphics/Gui -IGraphics/Mathematics -IGraphics/Renderer -IPlugins -I/var/tmp/portage/app-office/texmacs-1.0.7.2-r1/work/TeXmacs-1.0.7.2-src/TeXmacs/include -I/usr/include/freetype2 -pthread -Wall -Wno-return-type -march=native -O2 -pipe -g -fno-rtti -fno-exceptions -c ./System/Misc/data_cache.cpp -o Objects/data_cache.o 
make[1]: *** [Objects/connection.o] Error 1
make[1]: *** Waiting for unfinished jobs....


Expected Results:  
Source C++ file contains something like:

extern "C"
{
    extern char **environ;
}

Portage 2.2.7 (default/linux/amd64/13.0/desktop/kde, gcc-4.7.3, glibc-2.15-r3, 3.8.13-gentoo x86_64)
=================================================================
System uname: Linux-3.8.13-gentoo-x86_64-Intel-R-_Core-TM-_i7-3770K_CPU_@_3.50GHz-with-gentoo-2.2
KiB Mem:    16372436 total,   2240012 free
KiB Swap:   18798588 total,  16699728 free
Timestamp of tree: Sat, 18 Jan 2014 09:30:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
ccache version 3.1.9 [disabled]
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.5-r3, 3.2.5-r2, 3.3.3
dev-util/ccache:          3.1.9
dev-util/cmake:           2.8.12.1-r1
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.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.23.1
sys-devel/gcc:            3.4.6-r2, 4.1.2, 4.2.4-r1, 4.3.6-r1, 4.4.7, 4.5.4, 4.6.4, 4.7.3-r1, 4.8.2
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo My_local_repo x11 spring seden betagarden
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -g"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib/X11/xkb /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/php/cli-php5.5/ext-active/ /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=native -O2 -pipe -g"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-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 splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS=" http://gentoo.tiscali.nl/ http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ #http://pandemonium.tiscali.de/pub/gentoo/ http://ds.thn.htu.se/linux/gentoo"
LANG="en_US.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-O1"
MAKEOPTS="-j8"
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 /var/lib/layman/x11 /var/lib/layman/Spring /var/lib/layman/seden /var/lib/layman/betagarden"
USE="3dnow 3dnowext X a52 aac aalib acl acpi alisp alsa amd64 apache2 apng ares bash-completion bazaar bdf berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt css cups curl cvs cxx d dbus declarative dhcp djvu dk doc dri dts dvd dvdr dvipdfm editor emboss emoticons-manager encode exif expat extensions extra fam ffmpeg firefox firefox3 flac fontconfig foomaticdb fortran g3dvl gcj gd gdbm gif git glitz gmp gnutls go gpm graphite graphviz gtk iconv icu imlib ipv6 irda ithreads jadetex java jpeg jpeg2k kde kerberos kipi kompare kpathsea lcms ldap libcaca libnotify live llvm logitech-mouse lzma mad mercurial midi mikmod mjpeg mmx mmxext mng modules mozilla mp2 mp3 mp4 mpeg msn mudflap multilib multitarget mysql ncurses network nls nodrm nptl nsplugin objc objc++ objc-gc offensive ogg ogre ois opengl openmp oss otr pam pango pcre pdf phonon plasma plotutils png policykit povray ppds qt3support qt4 qthelp readline rle rtmp samba scanner sdl se_swedb semantic-desktop server session sift sip sndfile solver speex spell sql sse sse2 ssl ssse3 startup-notification subversion svg tcpd tga theora threads tiff timidity tk tokenizer truetype udev udisks unicode upower usb v4l v4l2 vcd video videos vorbis vpx wav webkit wma wxwidgets x264 xcb xcomposite xine xinerama xml xscreensaver xv xvid xvmc zlib" ABI_X86="64" 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" APACHE2_MODULES="cgid cgi actions alias auth_basic auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so 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="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 da pt_BR" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="v4l vesa vga intel radeon r600" 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"
USE_PYTHON="2.7 3.3"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC
Comment 1 Cyp 2014-01-25 21:48:43 UTC
P.S. After manually adding the »extern "C" {}« around the two lines declaring »extern char **environ;«, it built with no other errors, and runs.

nano -w /var/tmp/portage/app-office/texmacs-1.0.7.2-r1/work/TeXmacs-1.0.7.2-src/src/System/Link/pipe_link.hpp
ebuild /usr/portage/app-office/texmacs/texmacs-1.0.7.2-r1.ebuild merge
Comment 2 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2014-06-05 06:59:59 UTC

*** This bug has been marked as a duplicate of bug 486908 ***