Compile Error with 1.6+ on SuSE 10.0/10.1 : xmlerror.h:820: error: typedef ‘xmlGenericErrorFunc’ is initialized (use __typeof__ instead)

From: Christian Eva <cjk(at)phoinix(dot)com>
To: pgadmin-support(at)postgresql(dot)org
Subject: Compile Error with 1.6+ on SuSE 10.0/10.1 : xmlerror.h:820: error: typedef ‘xmlGenericErrorFunc’ is initialized (use __typeof__ instead)
Date: 2006-11-23 05:13:20
Message-ID: 200611230513.21228.cjk@phoinix.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-support

Hi
I wanted to upgrade from 1.4.3 which I used with wxwidgets (GTK) 2.7.0-1.
I canot compile pgadmin1.6.0 as I get these errors on the xmlib2 include
files.

I have tried it also on SuSE 10.1 and with libxml2-devel-2.6.26-22.

I tried with wxWidgets-2.7.2 and wxWidgets-2.8.0-rc1 on 1.6.0.

I have now downloaded the last SVN version: 1.7.0.1.st2 (buildcode 5769)

Any ideas?
Thanks a lot
Christian Eva

System:
cjeva(at)phohigh1:/t/tool/log> uname -a
Linux phohigh1 2.6.13-15.12-default #1 Thu Aug 24 11:23:58 UTC 2006 i686
athlon i386 GNU/Linux
cjeva(at)phohigh1:/t/tool/log>

libxml2:
cjeva(at)phohigh1:/t/tool/log> rpm -qa | grep libxml2
libxml2-devel-2.6.20-4
libxml2-python-2.6.20-4
libxml2-2.6.20-4
cjeva(at)phohigh1:/t/tool/log>

Only the following modules give errors:
pgAdmin3.o
dlgAddFavourite.o
dlgManageFavourites.o
frmMain.o
frmQuery.o
frmReport.o
favourites.o

Output of configure:

---> make pgAdmin3-1.7.0.1.st2 with pgs=/t/tool/pgs814 <---

Params:
bin=/t/tool/bin
build=/t/tool/build
prefix=/t/tool/pga17
pgprefix=/t/tool/pgs814
wxprefix=/t/tool/wxw28
version=1.7
fullversion=1.7.0.1.st2
configure=--prefix=/t/tool/pga17 --with-pgsql=/t/tool/pgs814
--with-wx-version=2.7 --with-wx=/t/tool/wxw28 --enable-shared
threads=n
B64=n
x11=y
what=config
checking build system type... i686-suse-linux
checking host system type... i686-suse-linux
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking how to create a ustar tar archive... gnutar
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking for stdlib.h... (cached) yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking for working strtod... yes
checking for gethostbyname... yes
checking for inet_ntoa... yes
checking for memmove... yes
checking for memset... yes
checking for strchr... yes
checking for PQexec in -lpq... yes
checking for SSL_connect in -lpq... no
checking for krb5_free_principal in -lpq... no
checking libpq-fe.h usability... yes
checking libpq-fe.h presence... yes
checking for libpq-fe.h... yes
checking PostgreSQL in /t/tool/pgs814... ok
checking wxWidgets in /t/tool/wxw28... ok
checking libxml2 in /usr... ok
checking libxml2 version... ok
checking libxslt in /usr... ok
configure: creating ./config.status
config.status: creating Makefile
config.status: creating i18n/Makefile
config.status: creating src/Makefile
config.status: creating pkg/Makefile
config.status: creating pkg/debian/Makefile
config.status: creating pkg/mac/Makefile
config.status: creating pkg/mandrake/Makefile
config.status: creating pkg/redhat/Makefile
config.status: creating pkg/slackware/Makefile
config.status: creating pkg/src/Makefile
config.status: creating pkg/suse/Makefile
config.status: creating pkg/win32/Makefile
config.status: creating xtra/Makefile
config.status: creating xtra/pgagent/Makefile
config.status: creating xtra/pgagent/pgaevent/Makefile
config.status: creating xtra/wx-build/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands

PostgreSQL directory: /t/tool/pgs814
PostgreSQL pg_config binary: /t/tool/pgs814/bin/pg_config
PostgreSQL version: PostgreSQL 8.1.4
PostgreSQL SSL support: Missing

wxWidgets directory: /t/tool/wxw28
wxWidgets wx-config binary: /t/tool/wxw28/bin/wx-config
wxWidgets version: wxWidgets 2.7.2

Building a debug version of pgAdmin: No
Statically linking pgAdmin: No
Building a Mac OS X appbundle: No
Include documentation: Yes

pgAdmin configuration is now complete. You can now compile and
install pgAdmin using 'make; make install'.

Errors:

-- cjeva(at)phohigh1:/d/sdb1/t/tool/build/pgadmin3-1.7.0.1.st2/src> make -i
test -f ./include/svnversion.cpp || touch ./include/svnversion.cpp
test -d ./.svn && ( V=`svnversion ./..` && OV=`cat ./include/svnversion.h |
cut -d' ' -f3|tr -d '"'` ; if [ "$V" != "$OV" ]; then echo "#define VERS
ION_SVN \"$V\"" > ./include/svnversion.h ; fi ) || true
if g++ -DHAVE_CONFIG_H -I. -I. -I..
-DDATA_DIR=\"/t/tool/pga17/share/pgadmin3/\" -Wall -Wno-non-virtual-dtor
-I../src/include -I../src/agent/includ
e -I../src/slony/include -I/d/sdb1/t/tool/pgs814/include
-I/t/tool/wxw28/lib/wx/include/gtk2-unicode-release-2.7
-I/t/tool/wxw28/include/wx-2.7 -D_F
ILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -O2 -I/usr/include/libxml2
-I/usr/include/libxml2 -DDATA_DIR=\"/t/tool/pga17/share/pgadmin3/\" -Wall -
Wno-non-virtual-dtor -I../src/include -I../src/agent/include
-I../src/slony/include -MT svnversion.o -MD -MP -MF ".deps/svnversion.Tpo"
-c -o svnve
rsion.o `test -f './include/svnversion.cpp' || echo
'./'`./include/svnversion.cpp; \
then mv -f ".deps/svnversion.Tpo" ".deps/svnversion.Po"; else rm -f
".deps/svnversion.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I..
-DDATA_DIR=\"/t/tool/pga17/share/pgadmin3/\" -Wall -Wno-non-virtual-dtor
-I../src/include -I../src/agent/includ
e -I../src/slony/include -I/d/sdb1/t/tool/pgs814/include
-I/t/tool/wxw28/lib/wx/include/gtk2-unicode-release-2.7
-I/t/tool/wxw28/include/wx-2.7 -D_F
ILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -O2 -I/usr/include/libxml2
-I/usr/include/libxml2 -DDATA_DIR=\"/t/tool/pga17/share/pgadmin3/\" -Wall -
Wno-non-virtual-dtor -I../src/include -I../src/agent/include
-I../src/slony/include -MT pgAdmin3.o -MD -MP -MF ".deps/pgAdmin3.Tpo" -c -o
pgAdmin3.
o `test -f './pgAdmin3.cpp' || echo './'`./pgAdmin3.cpp; \
then mv -f ".deps/pgAdmin3.Tpo" ".deps/pgAdmin3.Po"; else rm -f
".deps/pgAdmin3.Tpo"; exit 1; fi
/usr/include/libxml2/libxml/xmlerror.h:820: error: typedef
‘xmlGenericErrorFunc’ is initialized (use __typeof__ instead)
/usr/include/libxml2/libxml/xmlerror.h:851: error: function ‘void
xmlParserError(void*, const char*, ...)’ is initialized like a variable
/usr/include/libxml2/libxml/xmlerror.h:855: error: function ‘void
xmlParserWarning(void*, const char*, ...)’ is initialized like a variable
/usr/include/libxml2/libxml/xmlerror.h:859: error: function ‘void
xmlParserValidityError(void*, const char*, ...)’ is initialized like a
variable
/usr/include/libxml2/libxml/xmlerror.h:863: error: function ‘void
xmlParserValidityWarning(void*, const char*, ...)’ is initialized like a
variable
/usr/include/libxml2/libxml/valid.h:44: error: typedef ‘xmlValidityErrorFunc’
is initialized (use __typeof__ instead)
/usr/include/libxml2/libxml/valid.h:59: error: typedef
‘xmlValidityWarningFunc’ is initialized (use __typeof__ instead)
/usr/include/libxml2/libxml/parser.h:595: error: typedef ‘warningSAXFunc’ is
initialized (use __typeof__ instead)
/usr/include/libxml2/libxml/parser.h:605: error: typedef ‘errorSAXFunc’ is
initialized (use __typeof__ instead)
/usr/include/libxml2/libxml/parser.h:617: error: typedef ‘fatalErrorSAXFunc’
is initialized (use __typeof__ instead)
/usr/include/libxml2/libxml/relaxng.h:30: error: typedef
‘xmlRelaxNGValidityErrorFunc’ is initialized (use __typeof__ instead)
/usr/include/libxml2/libxml/relaxng.h:31: error: typedef
‘xmlRelaxNGValidityWarningFunc’ is initialized (use __typeof__ instead)
/usr/include/libxml2/libxml/xmlschemas.h:90: error: typedef
‘xmlSchemaValidityErrorFunc’ is initialized (use __typeof__ instead)
/usr/include/libxml2/libxml/xmlschemas.h:91: error: typedef
‘xmlSchemaValidityWarningFunc’ is initialized (use __typeof__ instead)
/usr/include/libxml2/libxml/xmlwriter.h:73: error: function ‘int
xmlTextWriterWriteFormatComment(xmlTextWriter*, const char*, ...)’ is
initialized like a variable
/usr/include/libxml2/libxml/xmlwriter.h:78: error: function ‘int
xmlTextWriterWriteVFormatComment(xmlTextWriter*, const char*, char*)’ is
initialized like a variable

etc
etc
-----------------------
Christian Knoepfel Eva

Responses

Browse pgadmin-support by date

  From Date Subject
Next Message Thomas Pundt 2006-11-23 07:57:06 Re: Newbie questions, diff between functions and procedures; & why cube functions?
Previous Message Kevin Field 2006-11-23 03:20:49 backup/restore gone in 1.6.0?