Package: manedit
Version: 0.6.1-2

Your package fails to build with recent versions of the gcc-snapshot
package, i.e. a pre-release of GCC 4.2.  The problem is that external
variables are defined both in a C and C++ context, as you can see in
this simple example:

42059:[EMAIL PROTECTED]: ~] /usr/lib/gcc-snapshot/bin/g++ -c t.cc
t.cc:1: error: previous declaration of 'int i' with 'C++' linkage
t.cc:4: error: conflicts with new declaration with 'C' linkage
42060:[EMAIL PROTECTED]: ~] cat t.cc
extern int i;

extern "C" {
        extern int i;
}

According to http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27227#c8 this is
not valid, so please investgate.


> Automatic build of manedit_0.6.1-2 on swarm by sbuild/mipsel 0.45
...
> c++ -c string.cpp  -g -O2 -Wall -fno-strict-aliasing -DHAVE_GZIP -DHAVE_BZIP2 
> `gtk-config --cflags` -DPREFIX=\"/usr\" -DLOCALBASE=\"/usr\" 
> -DX11BASE=\"/usr/X11R6\" -D__cplusplus -Dc_plusplus
> string.cpp:6: error: previous declaration of 'char* tzname [2]' with 'C++' 
> linkage
> /usr/include/time.h:279: error: conflicts with new declaration with 'C' 
> linkage

> string.cpp: In function 'void strtoupper(char*)':
> string.cpp:490: warning: operation on 's' may be undefined
> string.cpp: In function 'void strtolower(char*)':
> string.cpp:502: warning: operation on 's' may be undefined
> string.cpp: In function 'char* StringGetNetArgument(const char*)':
> string.cpp:1509: warning: deprecated conversion from string constant to 
> 'char*''
> string.cpp:1523: warning: deprecated conversion from string constant to 
> 'char*''
> string.cpp: In function 'char* StringCurrentTimeFormat(const char*)':
> string.cpp:1546: warning: deprecated conversion from string constant to 
> 'char*''
> string.cpp:1548: warning: deprecated conversion from string constant to 
> 'char*''
> string.cpp:1554: warning: deprecated conversion from string constant to 
> 'char*''
> make[1]: *** [string.o] 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