Thread: Problem compiling pgadmin3-1.2.0-beta3 on SuSE 9.1

Problem compiling pgadmin3-1.2.0-beta3 on SuSE 9.1

From
Maximilian Renkin
Date:
When running 'make all' with pgadmin3-1.2.0-beta3, I get the following 
errors on SuSE 9.1 (rather up to date with SuSE Online Update):
===================================================
make[1]: Entering directory 
`/home/share/admin.edv/4-tmp/PgAdmin/pgadmin3-1.2.0-beta3/src'
g++ -DDATA_DIR=\"/usr/local/pgadmin3/share/pgadmin3/\" -Wall -g 
-I../src/include -I../src/agent/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 pgaAgent.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 sysLogger.o 
sysSettings.o utffile.o xrcDialogs.o  /usr/lib/libpq.a -lcrypt  -lssl 
-lcrypto /usr/local/lib/libwx_gtk2ud_stc-2.5.a -L/usr/local/lib -pthread   -L/usr/X11R6/lib
/usr/local/lib/libwx_gtk2ud_xrc-2.5.a
 
/usr/local/lib/libwx_gtk2ud_html-2.5.a 
/usr/local/lib/libwx_gtk2ud_adv-2.5.a 
/usr/local/lib/libwx_gtk2ud_core-2.5.a 
/usr/local/lib/libwx_baseud_xml-2.5.a 
/usr/local/lib/libwx_baseud_net-2.5.a /usr/local/lib/libwx_baseud-2.5.a 
-pthread -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 
-lpangoxft-1.0 -lpangox-1.0 -lgthread-2.0 -Wl,--export-dynamic 
-L/opt/gnome/lib -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 
-lglib-2.0 -lXinerama -lXxf86vm -lpng -ljpeg -ltiff -lexpat -lz -ldl -lm 
-lwxregexud-2.5
/usr/lib/libpq.a(fe-auth.o)(.text+0x3a): In function `pg_krb5_init':
: undefined reference to `krb5_init_context'
/usr/lib/libpq.a(fe-auth.o)(.text+0x5a): In function `pg_krb5_init':
: undefined reference to `krb5_cc_default'
/usr/lib/libpq.a(fe-auth.o)(.text+0x84): In function `pg_krb5_init':
: undefined reference to `krb5_cc_get_principal'
/usr/lib/libpq.a(fe-auth.o)(.text+0xae): In function `pg_krb5_init':
: undefined reference to `krb5_unparse_name'
/usr/lib/libpq.a(fe-auth.o)(.text+0x111): In function `pg_krb5_init':
: undefined reference to `error_message'
/usr/lib/libpq.a(fe-auth.o)(.text+0x142): In function `pg_krb5_init':
: undefined reference to `error_message'
/usr/lib/libpq.a(fe-auth.o)(.text+0x16f): In function `pg_krb5_init':
: undefined reference to `krb5_free_context'
/usr/lib/libpq.a(fe-auth.o)(.text+0x179): In function `pg_krb5_init':
: undefined reference to `error_message'
/usr/lib/libpq.a(fe-auth.o)(.text+0x1b0): In function `pg_krb5_init':
: undefined reference to `krb5_cc_close'
/usr/lib/libpq.a(fe-auth.o)(.text+0x1ba): In function `pg_krb5_init':
: undefined reference to `error_message'
/usr/lib/libpq.a(fe-auth.o)(.text+0x1f1): In function `pg_krb5_init':
: undefined reference to `krb5_free_principal'
/usr/lib/libpq.a(fe-auth.o)(.text+0x5ce): In function `.L54':
: undefined reference to `krb5_sname_to_principal'
/usr/lib/libpq.a(fe-auth.o)(.text+0x5de): In function `.L54':
: undefined reference to `error_message'
/usr/lib/libpq.a(fe-auth.o)(.text+0x747): In function `.L54':
: undefined reference to `krb5_free_principal'
/usr/lib/libpq.a(fe-auth.o)(.text+0x86a): In function `.L54':
: undefined reference to `krb5_sendauth'
/usr/lib/libpq.a(fe-auth.o)(.text+0x88b): In function `.L54':
: undefined reference to `error_message'
/usr/lib/libpq.a(fe-auth.o)(.text+0x8d8): In function `.L54':
: undefined reference to `krb5_free_principal'
/usr/lib/libpq.a(fe-auth.o)(.text+0x965): In function `.L54':
: undefined reference to `krb5_free_error'
collect2: ld returned 1 exit status
make[1]: *** [pgadmin3] Error 1
make[1]: Leaving directory 
`/home/share/admin.edv/4-tmp/PgAdmin/pgadmin3-1.2.0-beta3/src'
make: *** [install-recursive] Error 1

=====================================================

I have a /usr/lib/libkrb5.so.17 installed (Standard Heimdahl SuSE RPM) 
which seems to have the necessary symbols.

Since I am not well informed how to solve such problems:

Could anybody give me some hints?

Thanks in advance

Max


Re: Problem compiling pgadmin3-1.2.0-beta3 on SuSE

From
Andreas Pflug
Date:
Maximilian Renkin wrote:
> When running 'make all' with pgadmin3-1.2.0-beta3, I get the following 
> errors on SuSE 9.1 (rather up to date with SuSE Online Update):
> /usr/lib/libpq.a(fe-auth.o)(.text+0x1b0): In function `pg_krb5_init':
> : undefined reference to `krb5_cc_close'
> /usr/lib/libpq.a(fe-auth.o)(.text+0x1ba): In function `pg_krb5_init':
> : undefined reference to `error_message'
> /usr/lib/libpq.a(fe-auth.o)(.text+0x1f1): In function `pg_krb5_init':
> : undefined reference to `krb5_free_principal'
> /usr/lib/libpq.a(fe-auth.o)(.text+0x5ce): In function `.L54':
> =====================================================
> 
> I have a /usr/lib/libkrb5.so.17 installed (Standard Heimdahl SuSE RPM) 
> which seems to have the necessary symbols.

You obviously need the -lkrb5 link option, SuSE's libpq seems to be 
compiled with KRB5 support. Adam, do you have an idea how to support 
that? Maybe at configure time we need to check if libpq needs krb4 or 
krb5 libs.

Regards,
Andreas