Package: msp-webserver
Version: 0.8.11-1
Severity: important
Usertags: ftbfs-gcc-4.3

Your package fails to build with GCC 4.3.  Version 4.3 has not been
released yet but I'm building with a snapshot in order to find errors
and give people an advance warning.  In GCC 4.3, the C++ header
dependencies have been cleaned up.  The advantage of this is that
programs will compile faster.  The downside is that you actually
need to directly #include everything you use (but you really should
do this anyway, otherwise your program won't work with any compiler
other than GCC).  There's some more information about this at
http://gcc.gnu.org/gcc-4.3/porting_to.html

You can reproduce this problem with gcc-4.3 or gcc-snapshot from
unstable.

> Automatic build of msp-webserver_0.8.11-1 on em64t by sbuild/amd64 0.53
...
> if x86_64-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I..   -I/usr/include/libxml2 
> -fPIC -DPIC -I/usr/include/openssl -DHAVE_SSL -I/usr/include/libpng12 
> -DPNG_NO_MMX_CODE  -DHOST_STR=\"x86_64-pc-linux-gnu\" -DPREFIX=\"/usr/\" 
> -fPIC -DPIC -I/usr/include/openssl -DHAVE_SSL -I/usr/include/libpng12 
> -DPNG_NO_MMX_CODE -MT myserver-cgi.o -MD -MP -MF ".deps/myserver-cgi.Tpo" -c 
> -o myserver-cgi.o `test -f 'cgi.cpp' || echo './'`cgi.cpp; \
>       then mv -f ".deps/myserver-cgi.Tpo" ".deps/myserver-cgi.Po"; else rm -f 
> ".deps/myserver-cgi.Tpo"; exit 1; fi
> In file included from ../include/../include/../include/hash_map.h:243,
>                  from ../include/../include/http_response.h:19,
>                  from ../include/cgi.h:21,
>                  from cgi.cpp:19:
> ../include/../include/../include/../source/hash_map.cpp: In member function 
> 'bool HashMap<char*, ValueType>::containsKey(const char*)':
> ../include/../include/../include/../source/hash_map.cpp:883: error: there are 
> no arguments to 'strlen' that depend on a template parameter, so a 
> declaration of 'strlen' must be available
> ../include/../include/../include/../source/hash_map.cpp:883: error: (if you 
> use '-fpermissive', G++ will accept your code, but allowing the use of an 
> undeclared name is deprecated)
> ../include/../include/../include/../source/hash_map.cpp: In member function 
> 'ValueType HashMap<char*, ValueType>::get(const char*)':
> ../include/../include/../include/../source/hash_map.cpp:951: error: there are 
> no arguments to 'strlen' that depend on a template parameter, so a 
> declaration of 'strlen' must be available
> ../include/../include/../include/../source/hash_map.cpp: In member function 
> 'typename HashMap<char*, ValueType>::Iterator HashMap<char*, 
> ValueType>::getI(const char*)':
> ../include/../include/../include/../source/hash_map.cpp:1029: error: there 
> are no arguments to 'strlen' that depend on a template parameter, so a 
> declaration of 'strlen' must be available
> ../include/../include/../include/../source/hash_map.cpp: In member function 
> 'ValueType HashMap<char*, ValueType>::put(char*, const ValueType&)':
> ../include/../include/../include/../source/hash_map.cpp:1147: error: there 
> are no arguments to 'strlen' that depend on a template parameter, so a 
> declaration of 'strlen' must be available
> ../include/../include/../include/../source/hash_map.cpp: In member function 
> 'ValueType HashMap<char*, ValueType>::remove(const char*)':
> ../include/../include/../include/../source/hash_map.cpp:1273: error: there 
> are no arguments to 'strlen' that depend on a template parameter, so a 
> declaration of 'strlen' must be available
> make[3]: *** [myserver-cgi.o] Error 1
> make[3]: Leaving directory `/build/tbm/msp-webserver-0.8.11/source'
> make[2]: *** [all-recursive] Error 1

-- 
Martin Michlmayr
http://www.cyrius.com/



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to