Bug 220783 - app-crypt/coolkey-1.1.0-r1 fails w/ gcc-4.3.0
Bug#: 220783 Product:  Gentoo Linux Version: 2008.0 Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: crypto@gentoo.org Reported By: loki_val@gentoo.org
Component: GCC Porting
URL: 
Summary: app-crypt/coolkey-1.1.0-r1 fails w/ gcc-4.3.0
Keywords:  
Status Whiteboard: 
Opened: 2008-05-07 17:09 0000
Description:   Opened: 2008-05-07 17:09 0000
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 From Peter Alfredsen 2008-05-07 17:11:46 0000 -------
Created an attachment (id=152313) [details]
coolkey-1.1.0-gcc43.patch

Fixes the problem. Snatched from upstream (Fedora).

------- Comment #2 From Peter Alfredsen 2008-05-07 17:13:04 0000 -------
Created an attachment (id=152315) [details]
coolkey-1.1.0-r1.ebuild.patch

Uses above patch and fixes parallel install problem I had by prepending -j1.

------- Comment #3 From Alon Bar-Lev (RETIRED) 2008-05-08 07:42:22 0000 -------
Thanks!