Bug 219552 - mail-filter/spamprobe-1.4d fails w/ gcc-4.3.0
Bug#: 219552 Product:  Gentoo Linux Version: 2007.0 Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: ticho@gentoo.org Reported By: loki_val@gentoo.org
Component: GCC Porting
URL: 
Summary: mail-filter/spamprobe-1.4d fails w/ gcc-4.3.0
Keywords:  
Status Whiteboard: 
Opened: 2008-04-27 23:34 0000
Description:   Opened: 2008-04-27 23:34 0000
if i686-pc-linux-gnu-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\"
-DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\"
-DPACKAGE=\"spamprobe\" -DVERSION=\"1.4d\" -DSTDC_HEADERS=1
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1
-DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DIRENT_H=1 -DHAVE_REGEX_H=1
-DUSE_DB=1 -DUSE_MMAP=1 -DHAVE_UNGIF=1 -DHAVE_PNG=1 -DHAVE_JPEG=1  -I. -I.
-I../../src/includes  -DNDEBUG   -O2 -march=i686 -mtune=athlon-xp -msse -mmmx
-pipe -ggdb3 -MT CleanupManager.o -MD -MP -MF ".deps/CleanupManager.Tpo" -c -o
CleanupManager.o CleanupManager.cc; \
        then mv -f ".deps/CleanupManager.Tpo" ".deps/CleanupManager.Po"; else
rm -f ".deps/CleanupManager.Tpo"; exit 1; fi
if i686-pc-linux-gnu-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\"
-DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\"
-DPACKAGE=\"spamprobe\" -DVERSION=\"1.4d\" -DSTDC_HEADERS=1
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1
-DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DIRENT_H=1 -DHAVE_REGEX_H=1
-DUSE_DB=1 -DUSE_MMAP=1 -DHAVE_UNGIF=1 -DHAVE_PNG=1 -DHAVE_JPEG=1  -I. -I.
-I../../src/includes  -DNDEBUG   -O2 -march=i686 -mtune=athlon-xp -msse -mmmx
-pipe -ggdb3 -MT DatabaseConfig.o -MD -MP -MF ".deps/DatabaseConfig.Tpo" -c -o
DatabaseConfig.o DatabaseConfig.cc; \
        then mv -f ".deps/DatabaseConfig.Tpo" ".deps/DatabaseConfig.Po"; else
rm -f ".deps/DatabaseConfig.Tpo"; exit 1; fi
In file included from ../../src/includes/WordData.h:42,
                 from ../../src/includes/CleanupManager.h:36,
                 from CleanupManager.cc:32:
../../src/includes/util.h: In function ‘bool starts_with(const std::string&,
const char*)’:
../../src/includes/util.h:83: error: ‘strlen’ was not declared in this
scope
../../src/includes/util.h:83: error: ‘strncmp’ was not declared in this
scope
../../src/includes/util.h: In function ‘bool starts_with(const std::string&,
const std::string&)’:
../../src/includes/util.h:89: error: ‘strncmp’ was not declared in this
scope
../../src/includes/util.h: In function ‘bool ends_with(const std::string&,
const std::string&)’:
../../src/includes/util.h:95: error: ‘strcmp’ was not declared in this
scope
make[2]: *** [CleanupManager.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from ../../src/includes/File.h:36,
                 from DatabaseConfig.cc:33:
../../src/includes/util.h: In function ‘bool starts_with(const std::string&,
const char*)’:
../../src/includes/util.h:83: error: ‘strlen’ was not declared in this
scope
../../src/includes/util.h:83: error: ‘strncmp’ was not declared in this
scope
../../src/includes/util.h: In function ‘bool starts_with(const std::string&,
const std::string&)’:
../../src/includes/util.h:89: error: ‘strncmp’ was not declared in this
scope
../../src/includes/util.h: In function ‘bool ends_with(const std::string&,
const std::string&)’:
../../src/includes/util.h:95: error: ‘strcmp’ was not declared in this
scope
DatabaseConfig.cc: In member function ‘void
DatabaseConfig::parseCommandLineArg(std::string&, std::string&, int&)’:
DatabaseConfig.cc:111: error: ‘atoi’ was not declared in this scope
make[2]: *** [DatabaseConfig.o] Error 1
make[2]: Leaving directory
`/var/tmp/portage/mail-filter/spamprobe-1.4d/work/spamprobe-1.4d/src/database'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/var/tmp/portage/mail-filter/spamprobe-1.4d/work/spamprobe-1.4d/src'
make: *** [all-recursive] Error 1

------- Comment #1 From Peter Alfredsen 2008-04-27 23:34:45 0000 -------
Created an attachment (id=151203) [details]
spamprobe-1.4d-gcc43.patch

Fixes the problem. Snatched from Debian.

------- Comment #2 From Andrej Kacian (RETIRED) 2008-04-28 16:47:01 0000 -------
Patch added to 1.4d, thanks!