problem compiling on suse 10 - Mailing list pgadmin-support

From Miha Radej
Subject problem compiling on suse 10
Date
Msg-id 43C16A05.1000503@siix.com
Whole thread Raw
List pgadmin-support
hi!

i am having problems compiling pgadmin on suse linux 10. i have
downloaded and compiled wxGTK 2.6.2 without problems (the contrib
directory also), using the following configure command:

./configure --with-gtk --enable-gtk2 --enable-unicode
--enable-mimetype=yes --enable-debug

after installing wx i then attempted to configure and build pgadmin. my
pgadmin configure line was:

LDFLAGS="-L/usr/lib -lkrb5" ./configure --prefix=/usr/local/pgadmin-svn
--enable-debug

configure finishes ok (results in attached pgadmin_configure.txt file)
but when issuing make, i get an error, included in the attached file
pgadmin_make.txt.

i have trying omitting the "--enable-debug" option when building wx and
pgadmin. in this case the build completes but when i attempt to run
pgadmin3, i get issued the message "Segmentation fault.". i have tried
wx versions 2.6.0 and 2.6.2, with the same results.

since pgadmin builds and works ok on my suse 9.3 system, is it possible
that different gcc versions might have anything to do with it? on suse
9.3 i have gcc 3 while on suse 10 i have gcc 4:

mcajvar@atair:~> gcc --version
gcc (GCC) 4.0.2 20050901 (prerelease) (SUSE Linux)

please help? :)

thanks in advance,
Miha
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... yes
checking libpq-fe.h usability... yes
checking libpq-fe.h presence... yes
checking for libpq-fe.h... yes
checking PostgreSQL in /usr... ok
checking wxWidgets in /usr/local... 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/fc1/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 config.h
config.status: config.h is unchanged
config.status: executing depfiles commands

PostgreSQL directory:                /usr
PostgreSQL pg_config binary:         /usr/bin/pg_config
PostgreSQL version:                  PostgreSQL 8.0.3

wxWidgets directory:                 /usr/local
wxWidgets wx-config binary:          /usr/local/bin/wx-config
wxWidgets version:                   wxWidgets 2.6.0

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

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

g++ -DDATA_DIR=\"/usr/local/pgadmin-svn/share/pgadmin3/\" -Wall -Wno-non-virtual-dtor -I../src/include
-I../src/agent/include-I../src/slony/include   -L/usr/lib -lkrb5 -L/usr/lib -L/usr/local/lib -o pgadmin3  pgAdmin3.o
base.oappbase.o sysLogger.o pgConnBase.o pgSetBase.o factory.o dlgClasses.o events.o pgConn.o pgSet.o keywords.o
pgAggregate.opgCast.o pgCheck.o pgCollection.o pgColumn.o pgConstraints.o pgConversion.o pgDatabase.o pgDomain.o
pgForeignKey.opgFunction.o pgGroup.o pgIndex.o pgIndexConstraint.o pgLanguage.o pgObject.o pgOperator.o
pgOperatorClass.opgRole.o pgRule.o pgSchema.o pgSequence.o pgServer.o pgTable.o pgTablespace.o pgTrigger.o pgType.o
pgUser.opgView.o pgDatatype.o pgaJob.o pgaStep.o pgaSchedule.o dlgJob.o dlgSchedule.o dlgStep.o xh_sqlbox.o xh_calb.o
xh_timespin.oxh_ctlcombo.o ctlSecurityPanel.o ctlComboBox.o ctlTree.o calbox.o timespin.o ctlListView.o ctlSQLBox.o
ctlSQLResult.oexplainCanvas.o explainShape.o dlgEditGridOptions.o dlgConnect.o dlgHbaConfig.o dlgMainConfig.o
dlgSelectConnection.ofrmExport.o frmAbout.o frmIndexcheck.o frmMain.o frmOptions.o frmPassword.o frmQuery.o frmHelp.o
frmSplash.ofrmMaintenance.o frmBackup.o frmRestore.o frmGrantWizard.o frmEditGrid.o frmStatus.o frmUpdate.o frmConfig.o
frmHbaConfig.ofrmMainConfig.o frmHint.o dlgProperty.o dlgUser.o dlgServer.o dlgGroup.o dlgDatabase.o dlgLanguage.o
dlgSchema.odlgDomain.o dlgTable.o dlgTablespace.o dlgColumn.o dlgIndex.o dlgFunction.o dlgView.o dlgRule.o dlgRole.o
dlgOperator.odlgAggregate.o dlgCast.o dlgConversion.o dlgIndexConstraint.o dlgForeignKey.o dlgSequence.o dlgTrigger.o
dlgType.odlgCheck.o sysSettings.o sysProcess.o misc.o utffile.o pgconfig.o update.o slCluster.o slNode.o slPath.o
slListen.oslSet.o slSequence.o slTable.o slSubscription.o dlgRepCluster.o dlgRepNode.o dlgRepListen.o dlgRepPath.o
dlgRepSet.odlgRepSequence.o dlgRepTable.o dlgRepSubscription.o xrcDialogs.o  -L/usr/lib -lssl -lcrypto -lpq
-L/usr/local/lib-pthread   -L/usr/X11R6/lib  -lwx_gtk2ud_xrc-2.6 -lwx_gtk2ud_qa-2.6 -lwx_gtk2ud_html-2.6
-lwx_gtk2ud_adv-2.6-lwx_gtk2ud_core-2.6 -lwx_baseud_xml-2.6 -lwx_baseud_net-2.6 -lwx_baseud-2.6  -L/usr/local/lib
-pthread  -L/usr/X11R6/lib  -lwx_gtk2ud_stc-2.6 -lwx_gtk2ud_ogl-2.6 -lwx_baseud-2.6 
pgAdmin3.o:(.gnu.linkonce.r._ZTV8pgAdmin3[vtable for pgAdmin3]+0xc0): undefined reference to `wxApp::OnAssert(wchar_t
const*,int, wchar_t const*, wchar_t const*)' 
pgAdmin3.o: In function `wxStringBase':
/usr/local/include/wx-2.6/wx/string.h:307: undefined reference to `wxAssert(int, wchar_t const*, int, wchar_t const*,
wchar_tconst*)' 
base.o: In function `wxStringBase::at(unsigned int)':
/usr/local/include/wx-2.6/wx/string.h:387: undefined reference to `wxAssert(int, wchar_t const*, int, wchar_t const*,
wchar_tconst*)' 
appbase.o: In function `pgAppBase::InitXml()':
./base/appbase.cpp:161: undefined reference to `wxAssert(int, wchar_t const*, int, wchar_t const*, wchar_t const*)'
appbase.o:(.gnu.linkonce.r._ZTV9pgAppBase[vtable for pgAppBase]+0xc0): undefined reference to `wxApp::OnAssert(wchar_t
const*,int, wchar_t const*, wchar_t const*)' 
sysLogger.o: In function `wxString::operator<<(wxString const&)':
/usr/local/include/wx-2.6/wx/string.h:884: undefined reference to `wxAssert(int, wchar_t const*, int, wchar_t const*,
wchar_tconst*)' 
pgSetBase.o: In function `wxString::Empty()':
/usr/local/include/wx-2.6/wx/string.h:700: undefined reference to `wxAssert(int, wchar_t const*, int, wchar_t const*,
wchar_tconst*)' 
factory.o: In function `wxBaseArrayPtrVoid::Item(unsigned int) const':
/usr/local/include/wx-2.6/wx/dynarray.h:809: undefined reference to `wxAssert(int, wchar_t const*, int, wchar_t const*,
wchar_tconst*)' 
events.o: In function `frmMain::enableSubmenu(int)':
./main/events.cpp:376: undefined reference to `wxAssert(int, wchar_t const*, int, wchar_t const*, wchar_t const*)'
events.o: In function `wxCloseEvent::Veto(bool)':
/usr/local/include/wx-2.6/wx/event.h:1397: undefined reference to `wxAssert(int, wchar_t const*, int, wchar_t const*,
wchar_tconst*)' 
pgConstraints.o:./schema/pgConstraints.cpp:57: more undefined references to `wxAssert(int, wchar_t const*, int, wchar_t
const*,wchar_t const*)' follow 
collect2: ld returned 1 exit status
make[2]: *** [pgadmin3] Error 1
make[2]: Leaving directory `/net/programs/pgadmin-svn/pgadmin3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/net/programs/pgadmin-svn/pgadmin3'
make: *** [all] Error 2


pgadmin-support by date:

Previous
From: Antoine
Date:
Subject: better editing in the data view
Next
From: "Dave Page"
Date:
Subject: Re: better editing in the data view