[Pdns-users] gcc compile issue (after upgarde from 2.96)

Neil Spierling vulcan at linux-boxen.org
Fri Apr 2 05:10:08 UTC 2004


In my last email to this list I was recommended to upgrade to gcc/g++
3.3.3, so I did but now I get this


Making all in gmysqlbackend
make[3]: Entering directory `/root/pdns-2.9.16/modules/gmysqlbackend'
if /bin/sh ../../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I.
-I../.. -I/usr/local/mysql/include/mysql    -D_GNU_SOURCE  -Wall -O2 -MT
gmysqlbackend.lo -MD -MP -MF ".deps/gmysqlbackend.Tpo" -c -o
gmysqlbackend.lo gmysqlbackend.cc; \
then mv -f ".deps/gmysqlbackend.Tpo" ".deps/gmysqlbackend.Plo"; else rm
-f ".deps/gmysqlbackend.Tpo"; exit 1; fi
 g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/local/mysql/include/mysql
-D_GNU_SOURCE -Wall -O2 -MT gmysqlbackend.lo -MD -MP -MF
.deps/gmysqlbackend.Tpo -c gmysqlbackend.cc  -fPIC -DPIC -o
.libs/gmysqlbackend.o
In file included from
/usr/include/c++/3.3.3/i386-redhat-linux/bits/gthr-default.h:37,
                 from
/usr/include/c++/3.3.3/i386-redhat-linux/bits/gthr.h:98,
                 from
/usr/include/c++/3.3.3/i386-redhat-linux/bits/c++io.h:37,
                 from /usr/include/c++/3.3.3/bits/fpos.h:44,
                 from /usr/include/c++/3.3.3/bits/char_traits.h:46,
                 from /usr/include/c++/3.3.3/string:47,
                 from gmysqlbackend.cc:2:
/usr/include/pthread.h:163: error: parse error before `__thread'
/usr/include/pthread.h:165: error: `pthread_create' declared as function
   returning a function
/usr/include/pthread.h:166: error: parse error before `void'
/usr/include/pthread.h:591: error: storage class specifiers invalid in
   parameter declarations
/usr/include/pthread.h:591: error: storage class specified for parameter
`
   parameter'
In file included from /usr/include/pthread.h:655,
                 from
/usr/include/c++/3.3.3/i386-redhat-linux/bits/gthr-default.h:37,
                 from
/usr/include/c++/3.3.3/i386-redhat-linux/bits/gthr.h:98,
                 from
/usr/include/c++/3.3.3/i386-redhat-linux/bits/c++io.h:37,
                 from /usr/include/c++/3.3.3/bits/fpos.h:44,
                 from /usr/include/c++/3.3.3/bits/char_traits.h:46,
                 from /usr/include/c++/3.3.3/string:47,
                 from gmysqlbackend.cc:2:
/usr/include/bits/sigthread.h:36: error: storage class specifiers
invalid in
   parameter declarations
/usr/include/bits/sigthread.h:36: error: storage class specified for
parameter
   `parameter'
make[3]: *** [gmysqlbackend.lo] Error 1
make[3]: Leaving directory `/root/pdns-2.9.16/modules/gmysqlbackend'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/pdns-2.9.16/modules'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/pdns-2.9.16'
make: *** [all] Error 2
[root at ns1 pdns-2.9.16]#




[root at ns1 pdns-2.9.16]# gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.3.3/specs
Configured with: ../configure --prefix=/usr --with-slibdir=/lib
--infodir=/usr/share/info --mandir=/usr/share/man --enable-shared
--enable-threads=posix --enable-languages=c,c++,f77,java,objc
--enable-__cxa_atexit --enable-c99 --enable-nls --enable-long-long
--enable-multilib --with-gnu-as --with-gnu-ld --with-system-zlib
--without-x i386-redhat-linux
Thread model: posix
gcc version 3.3.3
[root at ns1 pdns-2.9.16]#

autoconf (GNU Autoconf) 2.59
automake (GNU automake) 1.8
libtool-1.5.2
mysql-4.0.18
binutils-2.14-1




More information about the Pdns-users mailing list