Package: log4cxx
Version: 0.10.0-1
User: debian-...@lists.debian.org
Usertags: ftbfs-gcc-4.4
Tags: patch

Your package fails to build with the upcoming GCC 4.4.  Version 4.4
has not been released yet but I'm building with a snapshot in order
to find errors and give people an advance warning.

GCC 4.4 cleaned up some more C++ headers.  You always have to #include
headers directly and cannot rely for things to be included indirectly.

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

> Automatic build of log4cxx_0.10.0-1 on em64t by sbuild/amd64 0.53
...
> creating stream
> if g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" 
> -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"log4cxx\" 
> -DVERSION=\"0.10.0\" -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_DLFCN_H=1 -DHAVE_MBSRTOWCS=1 -DHAVE_WCSTOMBS=1 -DHAVE_SYSLOG=1 
> -DHAVE_FWIDE=1  -I. -I. -I../../../src/main/include 
> -I../../../src/main/include  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE  
> -I/usr/include/apr-1.0   -I/usr/include/apr-1.0 -I/usr/include/postgresql 
> -I/usr/include/mysql  -g -O2 -MT console.o -MD -MP -MF ".deps/console.Tpo" -c 
> -o console.o console.cpp; \
>       then mv -f ".deps/console.Tpo" ".deps/console.Po"; else rm -f 
> ".deps/console.Tpo"; exit 1; fi
> console.cpp: In function 'int main(int, char**)':
> console.cpp:59: error: 'puts' was not declared in this scope
> console.cpp:67: error: 'stderr' was not declared in this scope
> console.cpp:67: error: 'stdout' was not declared in this scope
> console.cpp:67: error: 'fputs' was not declared in this scope
> console.cpp:70: error: 'stderr' was not declared in this scope
> console.cpp:70: error: 'stdout' was not declared in this scope
> console.cpp:103: error: 'stderr' was not declared in this scope
> console.cpp:103: error: 'stdout' was not declared in this scope
> console.cpp:105: error: 'stderr' was not declared in this scope
> console.cpp:105: error: 'stdout' was not declared in this scope
> console.cpp:108: error: 'stderr' was not declared in this scope
> console.cpp:108: error: 'fputs' was not declared in this scope
> console.cpp:111: error: 'fflush' was not declared in this scope
> make[4]: *** [console.o] Error 1
> make[4]: Leaving directory `/build/tbm/log4cxx-0.10.0/src/examples/cpp'

--- src/examples/cpp/console.cpp~       2009-01-04 17:34:14.000000000 +0000
+++ src/examples/cpp/console.cpp        2009-01-04 17:34:27.000000000 +0000
@@ -15,6 +15,7 @@
  * limitations under the License.
  */
 
+#include <stdio.h>
 #include <stdlib.h>
 #include <log4cxx/logger.h>
 #include <log4cxx/consoleappender.h>

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



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to