Thread: compile error

compile error

From
"Diego A. Gil"
Date:
Hi,

I am trying to compile pgadmin3 in a Fedora Core 2 box.

First, I compiled and installed wxWindows snapshot OK.
(wxWindows-pgAdmin3-20031010-9)

Then I configure pgadmin (pgadmin3-src-20040615.tar.gz) and start "make
all". Fails with the following messages:

(a lot of text before ...)
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 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
ctlSecurityPanel.o dlgClasses.o frmGrantWizard.o calbox.o timespin.o
ctlListView.o ctlSQLBox.o ctlSQLResult.o frmExport.o dlgAddTableView.o
dlgEditGridOptions.o events.o frmAbout.o frmIndexcheck.o
frmChildTableViewFrame.o frmConnect.o frmMain.o frmOptions.o
frmPassword.o frmQuery.o frmQueryBuilder.o frmHelp.o frmQBJoin.o
frmSplash.o frmMaintenance.o frmEditGrid.o dlgProperty.o dlgUser.o
dlgGroup.o dlgDatabase.o dlgLanguage.o dlgSchema.o dlgDomain.o
dlgTable.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
/usr/local/lib/libwx_gtk2ud_xrc-2.5.a -L/usr/local/lib -pthread
/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
-Wl,--export-dynamic -pthread -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0
-lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0
-lgobject-2.0 -lgmodule-2.0 -ldl -lgthread-2.0 -lglib-2.0
-Wl,--export-dynamic -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0
-lgmodule-2.0 -ldl -lglib-2.0 -lpng -ljpeg -ltiff -lexpat -lz -ldl -lm
/usr/local/lib/libwx_gtk2ud_core-2.5.a(corelib_settings.o)(.text+0xa55):
En la función `wxSystemSettingsNative::GetFont(wxSystemFont)':
src/gtk/settings.cpp:346: undefined reference to
`_gtk_rc_context_get_default_font_name'
/usr/local/lib/libwx_gtk2ud_core-2.5.a(corelib_menu.o)(.text+0xc5c): En
la función `wxMenubarUnsetInvokingWindow':
src/gtk/menu.cpp:275: undefined reference to `_gtk_accel_group_detach'
/usr/local/lib/libwx_gtk2ud_core-2.5.a(corelib_menu.o)(.text+0xd76): En
la función `wxMenubarSetInvokingWindow':
src/gtk/menu.cpp:299: undefined reference to `_gtk_accel_group_attach'
/usr/local/lib/libwx_gtk2ud_core-2.5.a(corelib_menu.o)(.text+0xe91): En
la función
`wxMenuBar::SetInvokingWindow(wxWindow*)':src/gtk/menu.cpp:323:
undefined reference to `_gtk_accel_group_attach'
/usr/local/lib/libwx_gtk2ud_core-2.5.a(corelib_menu.o)(.text+0xf68): En
la función `wxMenuBar::UnsetInvokingWindow(wxWindow*)':
src/gtk/menu.cpp:344: undefined reference to `_gtk_accel_group_detach'
collect2: ld devolvió el estado de salida 1
make[2]: *** [pgadmin3] Error 1
make[2]: Leaving directory `/home/dags/sandbox/pgadmin3-1.1.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/dags/sandbox/pgadmin3-1.1.0'
make: *** [all] Error 2
[dags@roadwarrior pgadmin3-1.1.0]$

What I am doing wrong ?. I really need to have pgadmin3 working !!. Any
idea ?.

I guess this
http://www.redhat.com/archives/fedora-test-list/2004-March/msg01723.html
could be related, but I don't know how to solve it.

Thanks a lot.
Diego.



Re: compile error

From
"Diego A. Gil"
Date:
Finally, I made it work!.

Please check
http://lists.wxwidgets.org/archive/wx-users/msg39100.html

There is part of the solution.

Error related to _gtk_rc_context_get_default_font_name was "solved"
commenting out these lines in wxWindows src/gtk/settings.cpp:

//const gchar *font_name =
//_gtk_rc_context_get_default_font_name(gtk_settings_get_default());
//g_systemFont = new wxFont(wxString::FromAscii(font_name));

I don't know exactly why, but pgadmin3 seems to work OK now. At least,
runs.

Thanks for this very good tool !!.


Diego.


El mar, 15-06-2004 a las 18:41, Diego A. Gil escribió:
> Hi,
>
> I am trying to compile pgadmin3 in a Fedora Core 2 box.
>
> First, I compiled and installed wxWindows snapshot OK.
> (wxWindows-pgAdmin3-20031010-9)
>
> Then I configure pgadmin (pgadmin3-src-20040615.tar.gz) and start "make
> all". Fails with the following messages:
>
> (a lot of text before ...)
> 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 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
> ctlSecurityPanel.o dlgClasses.o frmGrantWizard.o calbox.o timespin.o
> ctlListView.o ctlSQLBox.o ctlSQLResult.o frmExport.o dlgAddTableView.o
> dlgEditGridOptions.o events.o frmAbout.o frmIndexcheck.o
> frmChildTableViewFrame.o frmConnect.o frmMain.o frmOptions.o
> frmPassword.o frmQuery.o frmQueryBuilder.o frmHelp.o frmQBJoin.o
> frmSplash.o frmMaintenance.o frmEditGrid.o dlgProperty.o dlgUser.o
> dlgGroup.o dlgDatabase.o dlgLanguage.o dlgSchema.o dlgDomain.o
> dlgTable.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
> /usr/local/lib/libwx_gtk2ud_xrc-2.5.a -L/usr/local/lib -pthread
> /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
> -Wl,--export-dynamic -pthread -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0
> -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0
> -lgobject-2.0 -lgmodule-2.0 -ldl -lgthread-2.0 -lglib-2.0
> -Wl,--export-dynamic -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0
> -lgmodule-2.0 -ldl -lglib-2.0 -lpng -ljpeg -ltiff -lexpat -lz -ldl -lm
> /usr/local/lib/libwx_gtk2ud_core-2.5.a(corelib_settings.o)(.text+0xa55):
> En la función `wxSystemSettingsNative::GetFont(wxSystemFont)':
> src/gtk/settings.cpp:346: undefined reference to
> `_gtk_rc_context_get_default_font_name'
> /usr/local/lib/libwx_gtk2ud_core-2.5.a(corelib_menu.o)(.text+0xc5c): En
> la función `wxMenubarUnsetInvokingWindow':
> src/gtk/menu.cpp:275: undefined reference to `_gtk_accel_group_detach'
> /usr/local/lib/libwx_gtk2ud_core-2.5.a(corelib_menu.o)(.text+0xd76): En
> la función `wxMenubarSetInvokingWindow':
> src/gtk/menu.cpp:299: undefined reference to `_gtk_accel_group_attach'
> /usr/local/lib/libwx_gtk2ud_core-2.5.a(corelib_menu.o)(.text+0xe91): En
> la función
> `wxMenuBar::SetInvokingWindow(wxWindow*)':src/gtk/menu.cpp:323:
> undefined reference to `_gtk_accel_group_attach'
> /usr/local/lib/libwx_gtk2ud_core-2.5.a(corelib_menu.o)(.text+0xf68): En
> la función `wxMenuBar::UnsetInvokingWindow(wxWindow*)':
> src/gtk/menu.cpp:344: undefined reference to `_gtk_accel_group_detach'
> collect2: ld devolvió el estado de salida 1
> make[2]: *** [pgadmin3] Error 1
> make[2]: Leaving directory `/home/dags/sandbox/pgadmin3-1.1.0/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/dags/sandbox/pgadmin3-1.1.0'
> make: *** [all] Error 2
> [dags@roadwarrior pgadmin3-1.1.0]$
>
> What I am doing wrong ?. I really need to have pgadmin3 working !!. Any
> idea ?.
>
> I guess this
> http://www.redhat.com/archives/fedora-test-list/2004-March/msg01723.html
> could be related, but I don't know how to solve it.
>
> Thanks a lot.
> Diego.
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
>       subscribe-nomail command to majordomo@postgresql.org so that your
>       message can get through to the mailing list cleanly


Pgadmin3 Install Problem

From
"Tom Browder"
Date:
I got the latest tarball from CVS pgadmin3 directory, commented out the wx package file that causes problems with
FedoraCore 2, recompiled and installed it, and finally compiled and installed pgadmin3. 

There were no problems with compilation, but the final executable (pgadmin3) didn't install.

I copied it to /usr/local/bin and it seems to work fine (I haven't played with it yet, though).

I did the sh bootstrap thing so maybe that messed something up.

Thanks.

Tom Browder

P.S.  I'm running Fedora Core 1 here at work but FC 2 at home.  I'll install there tonight.



Re: Pgadmin3 Install Problem

From
"Adam H. Pendleton"
Date:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Tom Browder wrote:

| I got the latest tarball from CVS pgadmin3 directory, commented out
the wx package file that causes problems with Fedora Core 2, recompiled
and installed it, and finally compiled and installed pgadmin3.
|
| There were no problems with compilation, but the final executable
(pgadmin3) didn't install.
|
| I copied it to /usr/local/bin and it seems to work fine (I haven't
played with it yet, though).
|
| I did the sh bootstrap thing so maybe that messed something up.

Can you provide some more specifics about what you mean by "didn't
install".  By default, if you don't provide a --prefix= to configure,
pgAdmin3 gets installed in /usr/local/pgadmin3.  Did you look there?

ahp
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3-nr1 (Windows 2000)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFA2Yy/f/U4M//FQ/URAvNyAJ0bhKSgH5VJBAwO/dwVTOPTn43D4wCgsxld
ymbqS5pgLBp9s76br5y+DbM=
=dLxR
-----END PGP SIGNATURE-----