linuxdcpp-team team mailing list archive
-
linuxdcpp-team team
-
Mailing list archive
-
Message #02452
[Bug 674863] [NEW] debian lenny /usr/include/c++/4.4/exception:35: error: expected declaration before end of line
Public bug reported:
# scons mode=release
scons: Reading SConscript files ...
/usr/lib/scons/SCons/Platform/posix.py:38: DeprecationWarning: The popen2 module is deprecated. Use the subprocess module.
import popen2
/usr/lib/scons/SCons/Tool/msvs.py:37: DeprecationWarning: the md5 module is deprecated; use hashlib instead
import md5
Checking for C header file poll.h... (cached) yes
Checking for C header file sys/epoll.h... (cached) yes
Checking for dlopen() in C library dl... (cached) yes
Checking for pthread_create() in C library pthread... (cached) yes
Checking for SSL_connect() in C library ssl... (cached) yes
scons: done reading SConscript files.
scons: Building targets ...
swig -o build/release-default/swig/python_wrap.cc -outdir build/release-default/bin -c++ -threads -Wall -python -O -modern -features autodoc=1 swig/python.i
swig/adchpp.i:85: Warning(302): Identifier 'EntityList' redefined (ignored),
swig/adchpp.i:74: Warning(302): previous definition of 'EntityList'.
swig/adchpp.i:562: Warning(403): Class 'adchpp::Client' might be abstract, no constructors generated,
swig/adchpp.i:514: Warning(403): Method adchpp::Entity::send(adchpp::BufferPtr const &) might not be implemented.
swig/adchpp.i:587: Warning(403): Class 'adchpp::Bot' might be abstract, no constructors generated,
swig/adchpp.i:514: Warning(403): Method adchpp::Entity::send(adchpp::BufferPtr const &) might not be implemented.
swig/adchpp.i:568: Warning(509): Overloaded method adchpp::Client::send(adchpp::BufferPtr const &) is shadowed by send(adchpp::BufferPtr const &) at swig/adchpp.i:514.
swig/adchpp.i:592: Warning(509): Overloaded method adchpp::Bot::send(adchpp::BufferPtr const &) is shadowed by send(adchpp::BufferPtr const &) at swig/adchpp.i:514.
swig/adchpp.i:654: Warning(472): Overloaded method adchpp::ClientManager::createBot(PyObject *) with no explicit typecheck typemap for arg 1 of type 'adchpp::Bot::SendHandler'
Compiling build/release-default/swig/python_wrap.os (shared)
build/release-default/swig/python_wrap.cc:155:20: error: Python.h: Нет такого файла или каталога
build/release-default/swig/python_wrap.cc:3133:23: error: pythread.h: Нет такого файла или каталога
build/release-default/swig/python_wrap.cc:3392:4: error: #error "This python version requires swig to be run with the '-classic' option"
build/release-default/swig/python_wrap.cc:3396:3: error: #error "This python version requires swig to be run with the '-nomodern' option"
build/release-default/swig/python_wrap.cc:3399:3: error: #error "This python version requires swig to be run with the '-nomodernargs' option"
build/release-default/swig/python_wrap.cc:3402:3: error: #error "This python version requires swig to be run with the '-nofastunpack' option"
build/release-default/swig/python_wrap.cc:786: error: ‘PyObject’ was not declared in this scope
build/release-default/swig/python_wrap.cc:786: error: ‘str’ was not declared in this scope
build/release-default/swig/python_wrap.cc:787: error: expected ‘,’ or ‘;’ before ‘{’ token
build/release-default/swig/python_wrap.cc:810: error: expected initializer before ‘*’ token
build/release-default/swig/python_wrap.cc:836: error: expected initializer before ‘*’ token
build/release-default/swig/python_wrap.cc:890: error: expected initializer before ‘*’ token
build/release-default/swig/python_wrap.cc:911: error: expected initializer before ‘*’ token
In file included from /usr/include/c++/4.4/new:40,
from /usr/include/c++/4.4/ext/new_allocator.h:33,
from /usr/include/c++/4.4/i486-linux-gnu/bits/c++allocator.h:34,
from /usr/include/c++/4.4/bits/allocator.h:48,
from /usr/include/c++/4.4/string:43,
from ./adchpp/adchpp.h:106,
from build/release-default/swig/python_wrap.cc:2696:
/usr/include/c++/4.4/exception:35: error: expected declaration before end of line
scons: *** [build/release-default/swig/python_wrap.os] Error 1
scons: building terminated because of errors.
# uname -a
Linux vdeb 2.6.26-2-686 #1 SMP Thu Sep 16 19:35:51 UTC 2010 i686 GNU/Linux
# gcc -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.4.5-7' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.4 --enable-shared --enable-multiarch --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4 --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-targets=all --with-arch-32=i586 --with-tune=generic --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.4.5 (Debian 4.4.5-7)
#python -v
Python 2.6.6 (r266:84292, Oct 9 2010, 11:40:09)
# swig -version
SWIG Version 1.3.40
Compiled with g++ [i686-pc-linux-gnu]
# scons -version
SCons by Steven Knight et al.:
script: v1.0.0.r3266, 2008/08/12 07:31:01, by knight on bangkok
engine: v1.0.0.r3266, 2008/08/12 07:31:01, by knight on bangkok
Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 The SCons Foundation
** Affects: adchpp
Importance: Undecided
Status: New
--
debian lenny /usr/include/c++/4.4/exception:35: error: expected declaration before end of line
https://bugs.launchpad.net/bugs/674863
You received this bug notification because you are a member of
Dcplusplus-team, which is subscribed to ADCH++.
Status in ADCH++: New
Bug description:
# scons mode=release
scons: Reading SConscript files ...
/usr/lib/scons/SCons/Platform/posix.py:38: DeprecationWarning: The popen2 module is deprecated. Use the subprocess module.
import popen2
/usr/lib/scons/SCons/Tool/msvs.py:37: DeprecationWarning: the md5 module is deprecated; use hashlib instead
import md5
Checking for C header file poll.h... (cached) yes
Checking for C header file sys/epoll.h... (cached) yes
Checking for dlopen() in C library dl... (cached) yes
Checking for pthread_create() in C library pthread... (cached) yes
Checking for SSL_connect() in C library ssl... (cached) yes
scons: done reading SConscript files.
scons: Building targets ...
swig -o build/release-default/swig/python_wrap.cc -outdir build/release-default/bin -c++ -threads -Wall -python -O -modern -features autodoc=1 swig/python.i
swig/adchpp.i:85: Warning(302): Identifier 'EntityList' redefined (ignored),
swig/adchpp.i:74: Warning(302): previous definition of 'EntityList'.
swig/adchpp.i:562: Warning(403): Class 'adchpp::Client' might be abstract, no constructors generated,
swig/adchpp.i:514: Warning(403): Method adchpp::Entity::send(adchpp::BufferPtr const &) might not be implemented.
swig/adchpp.i:587: Warning(403): Class 'adchpp::Bot' might be abstract, no constructors generated,
swig/adchpp.i:514: Warning(403): Method adchpp::Entity::send(adchpp::BufferPtr const &) might not be implemented.
swig/adchpp.i:568: Warning(509): Overloaded method adchpp::Client::send(adchpp::BufferPtr const &) is shadowed by send(adchpp::BufferPtr const &) at swig/adchpp.i:514.
swig/adchpp.i:592: Warning(509): Overloaded method adchpp::Bot::send(adchpp::BufferPtr const &) is shadowed by send(adchpp::BufferPtr const &) at swig/adchpp.i:514.
swig/adchpp.i:654: Warning(472): Overloaded method adchpp::ClientManager::createBot(PyObject *) with no explicit typecheck typemap for arg 1 of type 'adchpp::Bot::SendHandler'
Compiling build/release-default/swig/python_wrap.os (shared)
build/release-default/swig/python_wrap.cc:155:20: error: Python.h: Нет такого файла или каталога
build/release-default/swig/python_wrap.cc:3133:23: error: pythread.h: Нет такого файла или каталога
build/release-default/swig/python_wrap.cc:3392:4: error: #error "This python version requires swig to be run with the '-classic' option"
build/release-default/swig/python_wrap.cc:3396:3: error: #error "This python version requires swig to be run with the '-nomodern' option"
build/release-default/swig/python_wrap.cc:3399:3: error: #error "This python version requires swig to be run with the '-nomodernargs' option"
build/release-default/swig/python_wrap.cc:3402:3: error: #error "This python version requires swig to be run with the '-nofastunpack' option"
build/release-default/swig/python_wrap.cc:786: error: ‘PyObject’ was not declared in this scope
build/release-default/swig/python_wrap.cc:786: error: ‘str’ was not declared in this scope
build/release-default/swig/python_wrap.cc:787: error: expected ‘,’ or ‘;’ before ‘{’ token
build/release-default/swig/python_wrap.cc:810: error: expected initializer before ‘*’ token
build/release-default/swig/python_wrap.cc:836: error: expected initializer before ‘*’ token
build/release-default/swig/python_wrap.cc:890: error: expected initializer before ‘*’ token
build/release-default/swig/python_wrap.cc:911: error: expected initializer before ‘*’ token
In file included from /usr/include/c++/4.4/new:40,
from /usr/include/c++/4.4/ext/new_allocator.h:33,
from /usr/include/c++/4.4/i486-linux-gnu/bits/c++allocator.h:34,
from /usr/include/c++/4.4/bits/allocator.h:48,
from /usr/include/c++/4.4/string:43,
from ./adchpp/adchpp.h:106,
from build/release-default/swig/python_wrap.cc:2696:
/usr/include/c++/4.4/exception:35: error: expected declaration before end of line
scons: *** [build/release-default/swig/python_wrap.os] Error 1
scons: building terminated because of errors.
# uname -a
Linux vdeb 2.6.26-2-686 #1 SMP Thu Sep 16 19:35:51 UTC 2010 i686 GNU/Linux
# gcc -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.4.5-7' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.4 --enable-shared --enable-multiarch --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4 --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-targets=all --with-arch-32=i586 --with-tune=generic --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.4.5 (Debian 4.4.5-7)
#python -v
Python 2.6.6 (r266:84292, Oct 9 2010, 11:40:09)
# swig -version
SWIG Version 1.3.40
Compiled with g++ [i686-pc-linux-gnu]
# scons -version
SCons by Steven Knight et al.:
script: v1.0.0.r3266, 2008/08/12 07:31:01, by knight on bangkok
engine: v1.0.0.r3266, 2008/08/12 07:31:01, by knight on bangkok
Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 The SCons Foundation
Follow ups
References