Package: vfu
Version: 4.06-1

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 vfu_4.06-1 on juist by sbuild/alpha 0.44
...
> g++  -I../vslib -I../vslib/pcre -I/usr/include/ncurses -O2   -c see.cpp       
>        -o .OBJ.vfu/see.o
> ../vslib/getopt2.h:19: error: previous declaration of 'char* optarg' with 
> 'C++' linkage
> /usr/include/getopt.h:59: error: conflicts with new declaration with 'C' 
> linkage
> ../vslib/getopt2.h:20: error: previous declaration of 'int optind' with 'C++' 
> linkage
> /usr/include/getopt.h:73: error: conflicts with new declaration with 'C' 
> linkage
> ../vslib/getopt2.h:21: error: previous declaration of 'int opterr' with 'C++' 
> linkage
> /usr/include/getopt.h:78: error: conflicts with new declaration with 'C' 
> linkage
> ../vslib/getopt2.h:22: error: previous declaration of 'int optopt' with 'C++' 
> linkage
> /usr/include/getopt.h:82: error: conflicts with new declaration with 'C' 
> linkage
> make[1]: *** [.OBJ.vfu/see.o] Error 1
> make[1]: Leaving directory `/build/tbm/vfu-4.06/vfu'

-- 
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