Re: Compiling latest pgAdmin 3 fails on Red Hat 8 - Mailing list pgadmin-support

From Dave Page
Subject Re: Compiling latest pgAdmin 3 fails on Red Hat 8
Date
Msg-id E7F85A1B5FF8D44C8A1AF6885BC9A0E490D971@ratbert.vale-housing.co.uk
Whole thread Raw
In response to Compiling latest pgAdmin 3 fails on Red Hat 8  (Francis Labrie <francis.labrie@smoguli.com>)
Responses Re: Compiling latest pgAdmin 3 fails on Red Hat 8
List pgadmin-support
 


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_principal'
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.
 

pgadmin-support by date:

Previous
From: Francis Labrie
Date:
Subject: Compiling latest pgAdmin 3 fails on Red Hat 8
Next
From: Francis Labrie
Date:
Subject: Re: Compiling latest pgAdmin 3 fails on Red Hat 8