|
Home > Archive > Pgadmin > April 2005 > Compiling latest pgAdmin 3 fails on Red Hat 8
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Compiling latest pgAdmin 3 fails on Red Hat 8
|
|
| Francis Labrie 2005-04-27, 9:24 am |
| Hi,
I'm trying to compile HEAD pgAdmin 3 extracted from the CVS repository
(on 2005-04-26) with wxWidgets_/ GTK 1.6.0 on Red Hat Linux 8, but it
fails with this message:
g++ -DDATA_DIR=\"/usr/local/pgadmin3/share/pgadmin3/\" -Wall -g
-I../src/include -I../src/agent/include -I../src/slony/include -Wall -g
-O0 -L/usr/lib -L/usr/local/lib -o pgadmin3 pgAdmin3.o pgConn.o
pgSet.o keywords.o pgAggregate.o pgCast.o pgCheck.o pgCollection.o
pgColumn.o pgConstraints.o pgConversion.o pgDatabase.o pgDomain.o
pgForeignKey.o pgFunction.o pgGroup.o pgIndex.o pgIndexConstraint.o
pgLanguage.o pgObject.o pgOperator.o pgOperatorClass.o pgRule.o
pgSchema.o pgSequence.o pgServer.o pgTable.o pgTablespace.o pgTrigger.o
pgType.o pgUser.o pgView.o pgDatatype.o pgaJob.o pgaStep.o
pgaSchedule.o dlgJob.o dlgSchedule.o dlgStep.o xh_sqlbox.o xh_calb.o
xh_timespin.o xh_ctlcombo.o ctlSecurityPanel.o dlgClasses.o
ctlComboBox.o calbox.o timespin.o ctlListView.o ctlSQLBox.o
ctlSQLResult.o frmExport.o dlgEditGridOptions.o events.o frmAbout.o
frmIndexcheck.o dlgConnect.o frmMain.o frmOptions.o frmPassword.o
frmQuery.o frmHelp.o frmSplash.o frmMaintenance.o frmBackup.o
frmRestore.o frmGrantWizard.o frmEditGrid.o dlgProperty.o dlgUser.o
dlgServer.o dlgGroup.o dlgDatabase.o dlgLanguage.o dlgSchema.o
dlgDomain.o dlgTable.o dlgTablespace.o dlgColumn.o dlgIndex.o
dlgFunction.o dlgView.o dlgRule.o dlgOperator.o dlgAggregate.o
dlgCast.o dlgConversion.o dlgIndexConstraint.o dlgForeignKey.o
dlgSequence.o dlgTrigger.o dlgType.o dlgCheck.o frmStatus.o misc.o
dlgHbaConfig.o dlgMainConfig.o frmUpdate.o frmConfig.o frmHbaConfig.o
frmMainConfig.o frmHint.o sysLogger.o sysSettings.o sysProcess.o
utffile.o pgconfig.o update.o slObject.o slCluster.o slNode.o slPath.o
slListen.o slSet.o slSequence.o slTable.o slSubscription.o
dlgRepCluster.o dlgRepNode.o dlgRepListen.o dlgRepPath.o dlgRepSet.o
dlgRepSequence.o dlgRepTable.o dlgRepSubscription.o slFunctions.o
explainCanvas.o explainShape.o xrcDialogs.o /usr/lib/libpq.a -lcrypt
-lssl -lcrypto /usr/local/lib/libwx_gtk2ud_stc-2.6.a
/usr/local/lib/libwx_gtk2ud_ogl-2.6.a -L/usr/local/lib -pthread
-L/usr/X11R6/lib /usr/local/lib/libwx_gtk2ud_xrc-2.6.a
/usr/local/lib/libwx_gtk2ud_qa-2.6.a
/usr/local/lib/libwx_gtk2ud_html-2.6.a
/usr/local/lib/libwx_gtk2ud_adv-2.6.a
/usr/local/lib/libwx_gtk2ud_core-2.6.a
/usr/local/lib/libwx_baseud_xml-2.6.a
/usr/local/lib/libwx_baseud_net-2.6.a /usr/local/lib/libwx_baseud-2.6.a
-lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangoxft-1.0
-lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0
-lpthread -lglib-2.0 -lXinerama -lXxf86vm -lexpat -lwxregexud-2.6
-lwxtiffd-2.6 -lwxjpegd-2.6 -lwxpngd-2.6 -lz -ldl -lm
/usr/lib/libpq.a(fe-auth.o): In function `pg_krb5_init':
fe-auth.o(.text+0x7c): undefined reference to `krb5_init_context'
fe-auth.o(.text+0x8c): undefined reference to `error_message'
fe-auth.o(.text+0xc2): undefined reference to `krb5_cc_default'
fe-auth.o(.text+0xd2): undefined reference to `error_message'
fe-auth.o(.text+0x13e): undefined reference to `error_message'
fe-auth.o(.text+0x1a9): undefined reference to `krb5_unparse_name'
fe-auth.o(.text+0x1b9): undefined reference to `error_message'
fe-auth.o(.text+0x1e4): undefined reference to `krb5_free_principal
'
fe-auth.o(.text+0x211): undefined reference to `krb5_free_context'
/usr/lib/libpq.a(fe-auth.o): In function `pg_krb5_sendauth':
fe-auth.o(.text+0x2f2): undefined reference to `krb5_sname_to_princ
ipal'
fe-auth.o(.text+0x302): undefined reference to `error_message'
fe-auth.o(.text+0x3b8): undefined reference to `krb5_free_principal
'
fe-auth.o(.text+0x40c): undefined reference to `krb5_sendauth'
fe-auth.o(.text+0x465): undefined reference to `error_message'
fe-auth.o(.text+0x49b): undefined reference to `krb5_free_error'
fe-auth.o(.text+0x4b9): undefined reference to `krb5_free_principal
'
collect2: ld returned 1 exit status
make[2]: *** [pgadmin3] Error 1
Has the previous pgAdmin 1.2.1 with wxWidget 1.5.5 combo, a
«_-L/usr/kerberos/lib -lkrb5_» seems missing. With 1.2.1, I was able
to add this reference directly in the "LIBS" definitin in the Makefile,
but now it seems impossible: I can't find no more "LIBS" variable in
the Makefile.
So how can I add the Kerberos reference into the link process?
And would it be possible to make this setting anaged by the
configuration process to ease compilation on SuSE Linux and Red Hat
Linus 8_? Thank you very much!
--
Francis Labrie
Saint-Bruno-de-Montarville, Québec, Canada
| |
| Dave Page 2005-04-27, 9:24 am |
|
____________________
____________
From: pgadmin-support-owner@postgresql.org
[mailto:pgadmin-support-owner@postgresql.org] On Behalf Of Francis
Labrie
Sent: 27 April 2005 13:55
To: pgadmin-support@postgresql.org
Subject: [pgadmin-support] Compiling latest pgAdmin 3 fails on
Red Hat 8
Hi,
I'm trying to compile HEAD pgAdmin 3 extracted from the CVS
repository (on 2005-04-26) with wxWidgets / GTK 1.6.0 on Red Hat Linux
8, but it fails with this message:
g++ -DDATA_DIR=\"/usr/local/pgadmin3/share/pgadmin3/\" -Wall -g
-I../src/include -I../src/agent/include -I../src/slony/include -Wall -g
-O0 -L/usr/lib -L/usr/local/lib -o pgadmin3 pgAdmin3.o pgConn.o pgSet.o
keywords.o pgAggregate.o pgCast.o pgCheck.o pgCollection.o pgColumn.o
pgConstraints.o pgConversion.o pgDatabase.o pgDomain.o pgForeignKey.o
pgFunction.o pgGroup.o pgIndex.o pgIndexConstraint.o pgLanguage.o
pgObject.o pgOperator.o pgOperatorClass.o pgRule.o pgSchema.o
pgSequence.o pgServer.o pgTable.o pgTablespace.o pgTrigger.o pgType.o
pgUser.o pgView.o pgDatatype.o pgaJob.o pgaStep.o pgaSchedule.o dlgJob.o
dlgSchedule.o dlgStep.o xh_sqlbox.o xh_calb.o xh_timespin.o
xh_ctlcombo.o ctlSecurityPanel.o dlgClasses.o ctlComboBox.o calbox.o
timespin.o ctlListView.o ctlSQLBox.o ctlSQLResult.o frmExport.o
dlgEditGridOptions.o events.o frmAbout.o frmIndexcheck.o dlgConnect.o
frmMain.o frmOptions.o frmPassword.o frmQuery.o frmHelp.o frmSplash.o
frmMaintenance.o frmBackup.o frmRestore.o frmGrantWizard.o frmEditGrid.o
dlgProperty.o dlgUser.o dlgServer.o dlgGroup.o dlgDatabase.o
dlgLanguage.o dlgSchema.o dlgDomain.o dlgTable.o dlgTablespace.o
dlgColumn.o dlgIndex.o dlgFunction.o dlgView.o dlgRule.o dlgOperator.o
dlgAggregate.o dlgCast.o dlgConversion.o dlgIndexConstraint.o
dlgForeignKey.o dlgSequence.o dlgTrigger.o dlgType.o dlgCheck.o
frmStatus.o misc.o dlgHbaConfig.o dlgMainConfig.o frmUpdate.o
frmConfig.o frmHbaConfig.o frmMainConfig.o frmHint.o sysLogger.o
sysSettings.o sysProcess.o utffile.o pgconfig.o update.o slObject.o
slCluster.o slNode.o slPath.o slListen.o slSet.o slSequence.o slTable.o
slSubscription.o dlgRepCluster.o dlgRepNode.o dlgRepListen.o
dlgRepPath.o dlgRepSet.o dlgRepSequence.o dlgRepTable.o
dlgRepSubscription.o slFunctions.o explainCanvas.o explainShape.o
xrcDialogs.o /usr/lib/libpq.a -lcrypt -lssl -lcrypto
/usr/local/lib/libwx_gtk2ud_stc-2.6.a
/usr/local/lib/libwx_gtk2ud_ogl-2.6.a -L/usr/local/lib -pthread
-L/usr/X11R6/lib /usr/local/lib/libwx_gtk2ud_xrc-2.6.a
/usr/local/lib/libwx_gtk2ud_qa-2.6.a
/usr/local/lib/libwx_gtk2ud_html-2.6.a
/usr/local/lib/libwx_gtk2ud_adv-2.6.a
/usr/local/lib/libwx_gtk2ud_core-2.6.a
/usr/local/lib/libwx_baseud_xml-2.6.a
/usr/local/lib/libwx_baseud_net-2.6.a /usr/local/lib/libwx_baseud-2.6.a
-lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangoxft-1.0
-lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0
-lpthread -lglib-2.0 -lXinerama -lXxf86vm -lexpat -lwxregexud-2.6
-lwxtiffd-2.6 -lwxjpegd-2.6 -lwxpngd-2.6 -lz -ldl -lm
/usr/lib/libpq.a(fe-auth.o): In function `pg_krb5_init':
fe-auth.o(.text+0x7c): undefined reference to
`krb5_init_context'
fe-auth.o(.text+0x8c): undefined reference to `error_message'
fe-auth.o(.text+0xc2): undefined reference to `krb5_cc_default'
fe-auth.o(.text+0xd2): undefined reference to `error_message'
fe-auth.o(.text+0x13e): undefined reference to `error_message'
fe-auth.o(.text+0x1a9): undefined reference to
`krb5_unparse_name'
fe-auth.o(.text+0x1b9): undefined reference to `error_message'
fe-auth.o(.text+0x1e4): undefined reference to
`krb5_free_principal
'
fe-auth.o(.text+0x211): undefined reference to
`krb5_free_context'
/usr/lib/libpq.a(fe-auth.o): In function `pg_krb5_sendauth':
fe-auth.o(.text+0x2f2): undefined reference to
`krb5_sname_to_princ
ipal'
fe-auth.o(.text+0x302): undefined reference to `error_message'
fe-auth.o(.text+0x3b8): undefined reference to
`krb5_free_principal
'
fe-auth.o(.text+0x40c): undefined reference to `krb5_sendauth'
fe-auth.o(.text+0x465): undefined reference to `error_message'
fe-auth.o(.text+0x49b): undefined reference to `krb5_free_error'
fe-auth.o(.text+0x4b9): undefined reference to
`krb5_free_principal
'
collect2: ld returned 1 exit status
make[2]: *** [pgadmin3] Error 1
Has the previous pgAdmin 1.2.1 with wxWidget 1.5.5 combo, a <
-L/usr/kerberos/lib -lkrb5 > seems missing. With 1.2.1, I was able to
add this reference directly in the "LIBS" definitin in the Makefile, but
now it seems impossible: I can't find no more "LIBS" variable in the
Makefile.
So how can I add the Kerberos reference into the link process?
Does:
LDFLAGS="-L/usr/kerberos/lib -lkrb5" \
../configure <whatever options you want>
work?
Regards, Dave.
| |
| Francis Labrie 2005-04-27, 9:24 am |
| Hi,
Dave Page wrote:
> _Does:
>
> LDFLAGS="-L/usr/kerberos/lib -lkrb5" \
> ./configure <whatever options you want>
> _
> work?
Yes, thank you very much!
But now, I get an error on install:
$ sudo make install
Making install in src
make[1]: Entering directory
`/home/flabrie/Tools/PostgreSQL/pgAdmin3/repository/pgadmin3/src'
make[2]: Entering directory
`/home/flabrie/Tools/PostgreSQL/pgAdmin3/repository/pgadmin3/src'
/bin/sh ../config/mkinstalldirs /usr/local/pgadmin3/bin
/usr/local/bin/install -c pgadmin3 /usr/local/pgadmin3/bin/pgadmin3
make install-exec-hook
make[3]: Entering directory
`/home/flabrie/Tools/PostgreSQL/pgAdmin3/repository/pgadmin3/src'
make[3]: *** No rule to make target `install-exec-hook'. Stop.
make[3]: Leaving directory
`/home/flabrie/Tools/PostgreSQL/pgAdmin3/repository/pgadmin3/src'
make[2]: *** [install-exec-am] Error 2
make[2]: Leaving directory
`/home/flabrie/Tools/PostgreSQL/pgAdmin3/repository/pgadmin3/src'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory
`/home/flabrie/Tools/PostgreSQL/pgAdmin3/repository/pgadmin3/src'
make: *** [install-recursive] Error 1
Is that "install-exec-hook" target essential? Is there any typo in this
make target? Thanks.
Kind regards,
--
Francis Labrie
Saint-Bruno-de-Montarville, Québec, Canada
| |
| Dave Page 2005-04-27, 11:23 am |
|
____________________
____________
From: Francis Labrie [mailto:francis.labrie@smoguli.com]
Sent: 27 April 2005 14:47
To: <pgadmin-support@postgresql.org>
<pgadmin-support@postgresql.org>
Cc: Dave Page
Subject: Re: Compiling latest pgAdmin 3 fails on Red Hat 8
Is that "install-exec-hook" target essential? Is there any typo
in this make target? Thanks.
It's used to build the OSX appbundle, however it seems that automake
isn't clever enough to notice that it's inside a conditional. I've
committed a fix to ensure the target always exists, even if it doesn't
do anything.
Please note that I'm right in the middle of re-hashing the whole build
system, and we're looking at restructuring a lot of the source, so
expect more failures in the future whilst things get straightened out!!
Regards, Dave
|
|
|
|
|