Summary: | flag-o-matic.eclass: append-flags() should call append-cxxflags() | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Sebastian L. <gentoo.org_4> |
Component: | Eclasses | Assignee: | Gentoo Toolchain Maintainers <toolchain> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | dontdrinkanddrive, weber |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Sebastian L.
2009-05-24 22:06:31 UTC
It was caused by: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/flag-o-matic.eclass?r1=1.135&r2=1.136 append-flags() should also call append-cxxflags(). *** Bug 271186 has been marked as a duplicate of this bug. *** i get this error on compiling x86_64-pc-linux-gnu-g++ -MMD -I/var/tmp/portage/app-crypt/truecrypt-6.2/work/truecrypt-6.2-source -I/var/tmp/portage/app-crypt/truecrypt-6.2/work/truecrypt-6.2-source/Crypto -I/usr/include/pkcs11-helper-1.0 -O2 -fno-strict-aliasing -DTC_UNIX -DTC_LINUX -fdata-sections -ffunction-sections -Wall -Wno-sign-compare -Wno-unused-parameter -O2 -pipe -c ../Common/SecurityToken.cpp -o ../Common/SecurityToken.o In Datei, eingefügt von ../Common/SecurityToken.h:43, von ../Common/SecurityToken.cpp:25: /usr/include/pkcs11-helper-1.0/pkcs11.h:1263:1: Warnung: »NULL_PTR« redefiniert In Datei, eingefügt von ../Common/SecurityToken.cpp:25: ../Common/SecurityToken.h:20:1: Warnung: dies ist die Stelle der vorherigen Definition ../Common/SecurityToken.cpp: In member function »TrueCrypt::Pkcs11Exception::operator std::string() const«: ../Common/SecurityToken.cpp:660: Fehler: »CKR_NEW_PIN_MODE« wurde in diesem Gültigkeitsbereich nicht definiert ../Common/SecurityToken.cpp:661: Fehler: »CKR_NEXT_OTP« wurde in diesem Gültigkeitsbereich nicht definiert make[1]: *** [../Common/SecurityToken.o] Fehler 1 make[1]: Leaving directory `/var/tmp/portage/app-crypt/truecrypt-6.2/work/truecrypt-6.2-source/Volume' make: *** [all] Fehler 2 * * ERROR: app-crypt/truecrypt-6.2 failed. * Call stack: * ebuild.sh, line 48: Called src_compile * environment, line 3414: Called die * The specific snippet of code: * emake ${EXTRA} NOSTRIP=1 NOTEST=1 VERBOSE=1 CC="$(tc-getCC)" CXX="$(tc-getCXX)" AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" TC_EXTRA_CFLAGS="${CFLAGS}" TC_EXTRA_CXXFLAGS="${CXXFLAGS}" TC_EXTRA_LFLAGS="${LDFLAGS}" WX_CONFIG="${WX_CONFIG}" PKCS11_INC="${pkcs11_include_directory}" || die "emake failed" * The die message: * emake failed emerge --info Portage 2.1.6.11 (default/linux/amd64/2008.0, gcc-4.3.2, glibc-2.8_p20080602-r1, 2.6.29.4weberV2.2 x86_64) ================================================================= System uname: Linux-2.6.29.4weberV2.2-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_5600+-with-glibc2.2.5 Timestamp of tree: Mon, 25 May 2009 19:45:01 +0000 ccache version 2.4 [enabled] app-shells/bash: 3.2_p39 dev-java/java-config: 1.3.7-r1, 2.1.7 dev-lang/python: 2.4.4-r13, 2.5.4-r2 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r7 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.13, 2.63 sys-devel/automake: 1.4_p6, 1.5, 1.7.9-r1, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/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 /etc/udev/rules.d" CXXFLAGS="-O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://de-mirror.org/distro/gentoo/ ftp://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ ftp://mirror.netcologne.de/gentoo/ " LANG="de_DE.utf8" LC_ALL="de_DE.utf8" LDFLAGS="-Wl,-O1" LINGUAS="de en" MAKEOPTS="-j3" 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" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X acl amd64 animgif apache2 authdaemond bash-completion berkdb bindist bzip2 caps clamav cli cracklib crypt ctype cups curl daemon deflate doc dovecot-sasl dri examples fam filter fontconfig fortran fpx gd gdbm gif gpm graphviz gs hdri iconv imagemagick imap ipfilter isdnlog jbig jpeg jpgraph latin1 lcms logrotate managesieve midi mmx mudflap multilib munin-apache mysql mysqli ncurses nls nptl nptlonly openexr openmp pam pcre pdo perl php png pop3d pppd python q32 q8 quotas readline reflection restrict samba sasl session sieve sockets spamassassin spl sse sse2 ssl symlink sysfs syslog tcpd tiff tools transparent-proxy truetype unicode user-homedirs xinetd xml xmlreader xmlrpc xmlwriter xorg 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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en" USERLAND="GNU" VIDEO_CARDS="fbdev glint i810 intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY @Marko Weber Bürgermeister add the line append-cxxflags -DCKR_NEW_PIN_MODE=0x000001B0 -DCKR_NEXT_OTP=0x000001B1 at line 63 in /usr/portage/app-crypt/truecrypt/truecrypt-6.2.ebuild then ebuild /usr/portage/app-crypt/truecrypt/truecrypt-6.2.ebuild digest and emerge...works 4 me (In reply to comment #4) > @Marko Weber Bürgermeister > > add the line > > append-cxxflags -DCKR_NEW_PIN_MODE=0x000001B0 -DCKR_NEXT_OTP=0x000001B1 > > at line 63 in > /usr/portage/app-crypt/truecrypt/truecrypt-6.2.ebuild > > then > ebuild /usr/portage/app-crypt/truecrypt/truecrypt-6.2.ebuild digest > and emerge...works 4 me > CONFIRM. your Code works. Emerge works like charm after adding the line. marko |