Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 220783 - app-crypt/coolkey-1.1.0-r1 fails w/ gcc-4.3.0
Summary: app-crypt/coolkey-1.1.0-r1 fails w/ gcc-4.3.0
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Crypto team [DISABLED]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-4.3
  Show dependency tree
 
Reported: 2008-05-07 17:09 UTC by Peter Alfredsen (RETIRED)
Modified: 2008-05-08 07:42 UTC (History)
0 users

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


Attachments
coolkey-1.1.0-gcc43.patch (coolkey-1.1.0-gcc43.patch,1.54 KB, patch)
2008-05-07 17:11 UTC, Peter Alfredsen (RETIRED)
Details | Diff
coolkey-1.1.0-r1.ebuild.patch (coolkey-1.1.0-r1.ebuild.patch,613 bytes, patch)
2008-05-07 17:13 UTC, Peter Alfredsen (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Alfredsen (RETIRED) gentoo-dev 2008-05-07 17:09:45 UTC
i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../.. -DNSS_HIDE_NONSTANDARD_OBJECTS=1 -I../../src/libckyapplet -pthread -I/usr/include/PCSC -O2 -march=i686 -mtune=athlon-xp -msse -mmmx -pipe -ggdb3 -MT libcoolkeypk11_la-locking.lo -MD -MP -MF .deps/libcoolkeypk11_la-locking.Tpo -c locking.cpp  -fPIC -DPIC -o .libs/libcoolkeypk11_la-locking.o
 i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../.. -DNSS_HIDE_NONSTANDARD_OBJECTS=1 -I../../src/libckyapplet -pthread -I/usr/include/PCSC -O2 -march=i686 -mtune=athlon-xp -msse -mmmx -pipe -ggdb3 -MT libcoolkeypk11_la-locking.lo -MD -MP -MF .deps/libcoolkeypk11_la-locking.Tpo -c locking.cpp -o libcoolkeypk11_la-locking.o >/dev/null 2>&1
if /bin/sh ../../libtool --tag=CXX --mode=compile i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../..   -DNSS_HIDE_NONSTANDARD_OBJECTS=1 -I../../src/libckyapplet -pthread -I/usr/include/PCSC      -O2 -march=i686 -mtune=athlon-xp -msse -mmmx -pipe -ggdb3 -MT libcoolkeypk11_la-log.lo -MD -MP -MF ".deps/libcoolkeypk11_la-log.Tpo" -c -o libcoolkeypk11_la-log.lo `test -f 'log.cpp' || echo './'`log.cpp; \
        then mv -f ".deps/libcoolkeypk11_la-log.Tpo" ".deps/libcoolkeypk11_la-log.Plo"; else rm -f ".deps/libcoolkeypk11_la-log.Tpo"; exit 1; fi
 i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../.. -DNSS_HIDE_NONSTANDARD_OBJECTS=1 -I../../src/libckyapplet -pthread -I/usr/include/PCSC -O2 -march=i686 -mtune=athlon-xp -msse -mmmx -pipe -ggdb3 -MT libcoolkeypk11_la-log.lo -MD -MP -MF .deps/libcoolkeypk11_la-log.Tpo -c log.cpp  -fPIC -DPIC -o .libs/libcoolkeypk11_la-log.o
log.cpp: In member function 'virtual void SysLog::log(const char*, ...)':
log.cpp:100: error: 'strlen' was not declared in this scope
log.cpp:100: error: 'malloc' was not declared in this scope
log.cpp:102: error: 'strcpy' was not declared in this scope
log.cpp:103: error: 'strcat' was not declared in this scope
log.cpp:106: error: 'free' was not declared in this scope
make[3]: *** [libcoolkeypk11_la-log.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
coolkey.cpp:37:1: warning: "NULL" redefined
In file included from /usr/include/alloca.h:25,
                 from /usr/include/stdlib.h:497,
                 from /usr/lib/gcc/i686-pc-linux-gnu/4.3.0/include/g++-v4/cstdlib:73,
                 from /usr/lib/gcc/i686-pc-linux-gnu/4.3.0/include/g++-v4/bits/stl_algo.h:65,
                 from /usr/lib/gcc/i686-pc-linux-gnu/4.3.0/include/g++-v4/algorithm:67,
                 from slot.h:27,
                 from coolkey.cpp:33:
/usr/lib/gcc/i686-pc-linux-gnu/4.3.0/include/stddef.h:400:1: warning: this is the location of the previous definition
coolkey.cpp:37:1: warning: "NULL" redefined
In file included from /usr/include/alloca.h:26,
                 from /usr/include/stdlib.h:498,
                 from /usr/lib/gcc/i686-pc-linux-gnu/4.3.0/include/g++-v4/cstdlib:74,
                 from /usr/lib/gcc/i686-pc-linux-gnu/4.3.0/include/g++-v4/bits/stl_algo.h:66,
                 from /usr/lib/gcc/i686-pc-linux-gnu/4.3.0/include/g++-v4/algorithm:68,
                 from slot.h:28,
                 from coolkey.cpp:34:
/usr/lib/gcc/i686-pc-linux-gnu/4.3.0/include/stddef.h:400:1: warning: this is the location of the previous definition
coolkey.cpp: In function 'CK_RV C_Initialize(void*)':
coolkey.cpp:238: warning: deprecated conversion from string constant to 'char*'
 i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../.. -DNSS_HIDE_NONSTANDARD_OBJECTS=1 -I../../src/libckyapplet -pthread -I/usr/include/PCSC -O2 -march=i686 -mtune=athlon-xp -msse -mmmx -pipe -ggdb3 -MT libcoolkeypk11_la-coolkey.lo -MD -MP -MF .deps/libcoolkeypk11_la-coolkey.Tpo -c coolkey.cpp -o libcoolkeypk11_la-coolkey.o >/dev/null 2>&1
make[3]: Leaving directory `/var/tmp/portage/app-crypt/coolkey-1.1.0-r1/work/coolkey-1.1.0/src/coolkey'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/app-crypt/coolkey-1.1.0-r1/work/coolkey-1.1.0/src/coolkey'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/app-crypt/coolkey-1.1.0-r1/work/coolkey-1.1.0'
make: *** [all] Error 2
Comment 1 Peter Alfredsen (RETIRED) gentoo-dev 2008-05-07 17:11:46 UTC
Created attachment 152313 [details, diff]
coolkey-1.1.0-gcc43.patch

Fixes the problem. Snatched from upstream (Fedora).
Comment 2 Peter Alfredsen (RETIRED) gentoo-dev 2008-05-07 17:13:04 UTC
Created attachment 152315 [details, diff]
coolkey-1.1.0-r1.ebuild.patch

Uses above patch and fixes parallel install problem I had by prepending -j1.
Comment 3 Alon Bar-Lev (RETIRED) gentoo-dev 2008-05-08 07:42:22 UTC
Thanks!