Обсуждение: Problem compiling pgadmin3 from cvs

Поиск
Список
Период
Сортировка

Problem compiling pgadmin3 from cvs

От
Troels Arvin
Дата:
Hello,

I'm having trouble compiling pgadmin3 from cvs. See tail of compilation
log below.

My system: Red Hat 9. wxGTK from
http://shrike.freshrpms.net/rpm.html?id=644

Before "make", I did
sh bootstrap
autoconf
export CFLAGS="-march=i686 -O2" && export CXXFLAGS=$CFLAGS
./configure

Any ideas what could be wrong?

/Troels


Last compilation messages:

g++ -DDATA_DIR=\"/usr/local/pgadmin3/share/pgadmin3/\" -Wall -g
-I../src/include -I -march=i686 -O2  -L/usr/lib -L/usr/lib -o pgadmin3 
pgAdmin3.o pgConn.o pgSet.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 ctlSQLBox.o
ctlSQLResult.o frmExport.o dlgAddTableView.o events.o frmAbout.o
frmChildTableViewFrame.o frmConnect.o frmMain.o frmOptions.o
frmPassword.o frmQuery.o frmQueryBuilder.o frmHelp.o frmQBJoin.o
frmSplash.o frmVacuum.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  -lssl -lcrypto -lpq
-lwx_gtk_stc-2.4 -lwx_gtk_xrc-2.4 -pthread -lwx_gtk-2.4
frmExport.o(.text+0x13fb): In function
`frmExport::OnHelp(wxCommandEvent&)':
/usr/include/wx/string.h:315: undefined reference to
`DisplayHelp(wxWindow*, wxString const&)'
events.o(.text+0x38f): In function
`frmMain::OnContents(wxCommandEvent&)':
/usr/include/wx/string.h:315: undefined reference to
`DisplayHelp(wxWindow*, wxString const&)'
events.o(.text+0x2fe2): In function
`frmMain::OnSaveDefinition(wxCommandEvent&)':
/usr/include/wx/generic/filedlgg.h:68: undefined reference to
`FileWrite(wxString const&, wxString const&, int)'
frmConnect.o(.text+0x70b): In function
`frmConnect::OnHelp(wxCommandEvent&)':
/usr/include/wx/string.h:315: undefined reference to
`DisplayHelp(wxWindow*, wxString const&)'
frmOptions.o(.text+0x1bda): In function
`frmOptions::OnHelp(wxCommandEvent&)':
ui/frmOptions.cpp:129: undefined reference to `DisplayHelp(wxWindow*,
wxString const&)'
frmPassword.o(.text+0x493): In function
`frmPassword::OnHelp(wxCommandEvent&)':
/usr/include/wx/string.h:315: undefined reference to
`DisplayHelp(wxWindow*, wxString const&)'
frmQuery.o(.text+0xaa7f): In function
`frmQuery::OnContents(wxCommandEvent&)':
/usr/include/wx/string.h:315: undefined reference to
`DisplayHelp(wxWindow*, wxString const&)'
frmQuery.o(.text+0xbac1): In function `frmQuery::openLastFile()':
ui/frmQuery.cpp:566: undefined reference to `FileRead(wxString const&,
wxWindow*, int)'
frmQuery.o(.text+0xbfd0): In function
`frmQuery::OnSave(wxCommandEvent&)':
ui/frmQuery.cpp:610: undefined reference to `FileWrite(wxString const&,
wxString const&, int)'
frmEditGrid.o(.text+0x23bb): In function
`frmEditGrid::OnHelp(wxCommandEvent&)':
/usr/include/wx/string.h:315: undefined reference to
`DisplayHelp(wxWindow*, wxString const&)'
collect2: ld returned 1 exit status
make[2]: *** [pgadmin3] Error 1
make[2]: Leaving directory `/data/extrahome/troels/temp2/pgadmin3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/data/extrahome/troels/temp2/pgadmin3'
make: *** [all] Error 2


Re: Problem compiling pgadmin3 from cvs

От
Jean-Michel POURE
Дата:
On Tuesday 08 July 2003 14:16, Troels Arvin wrote:
> My system: Red Hat 9. wxGTK from
> http://shrike.freshrpms.net/rpm.html?id=644

Do not use these RPMs from http://shrike.freshrpms.net, because they are 
linked against GTK+, not GTK2+. We provide ready to use wxGTK RPMs at:

http://www.pgadmin.org/snapshots/linux/.../wxGTK

> Before "make", I did
> sh bootstrap
> autoconf
> export CFLAGS="-march=i686 -O2" && export CXXFLAGS=$CFLAGS
> ./configure

See :
http://cvs.pgadmin.org/cgi-bin/viewcvs.cgi/*checkout*/pgadmin3/docs/en_US/unix_compilation.html

Cheers,
Jean-Michel



Re: Problem compiling pgadmin3 from cvs

От
Troels Arvin
Дата:
On Tue, 2003-07-08 at 14:25, Jean-Michel POURE wrote:
> Do not use these RPMs from http://shrike.freshrpms.net, because they are 
> linked against GTK+, not GTK2+. We provide ready to use wxGTK RPMs at:

Now I get:

g++ -DDATA_DIR=\"/usr/local/pgadmin3/share/pgadmin3/\" -Wall -g
-I../src/include -I -march=i686 -O2  -L/usr/lib -L/usr/lib -o pgadmin3 
pgAdmin3.o pgConn.o pgSet.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 ctlSQLBox.o
ctlSQLResult.o frmExport.o dlgAddTableView.o events.o frmAbout.o
frmChildTableViewFrame.o frmConnect.o frmMain.o frmOptions.o
frmPassword.o frmQuery.o frmQueryBuilder.o frmHelp.o frmQBJoin.o
frmSplash.o frmVacuum.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  -lssl -lcrypto -lpq
-lwx_gtk2ud_stc-2.5 -lwx_gtk2ud_xrc-2.5  -pthread   
/usr/lib/libwx_gtk2ud-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
-lpng -ljpeg -ltiff -lz -Wl,--export-dynamic -lpangoft2-1.0 -lpango-1.0
-lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -lm
frmExport.o(.text+0x227b): In function
`frmExport::OnHelp(wxCommandEvent&)':
/usr/include/wx/string.h:315: undefined reference to
`DisplayHelp(wxWindow*, wxString const&)'
events.o(.text+0x3eb): In function
`frmMain::OnContents(wxCommandEvent&)':
/usr/include/wx/string.h:315: undefined reference to
`DisplayHelp(wxWindow*, wxString const&)'
events.o(.text+0x352e): In function
`frmMain::OnSaveDefinition(wxCommandEvent&)':
/usr/include/wx/generic/filedlgg.h:80: undefined reference to
`FileWrite(wxString const&, wxString const&, int)'
frmConnect.o(.text+0xf03): In function
`frmConnect::OnHelp(wxCommandEvent&)':
/usr/include/wx/string.h:315: undefined reference to
`DisplayHelp(wxWindow*, wxString const&)'
frmOptions.o(.text+0x346c): In function
`frmOptions::OnHelp(wxCommandEvent&)':
ui/frmOptions.cpp:129: undefined reference to `DisplayHelp(wxWindow*,
wxString const&)'
frmPassword.o(.text+0x493): In function
`frmPassword::OnHelp(wxCommandEvent&)':
/usr/include/wx/string.h:315: undefined reference to
`DisplayHelp(wxWindow*, wxString const&)'
frmQuery.o(.text+0xaa7f): In function
`frmQuery::OnContents(wxCommandEvent&)':
/usr/include/wx/string.h:315: undefined reference to
`DisplayHelp(wxWindow*, wxString const&)'
frmQuery.o(.text+0xbc4d): In function `frmQuery::openLastFile()':
ui/frmQuery.cpp:566: undefined reference to `FileRead(wxString const&,
wxWindow*, int)'
frmQuery.o(.text+0xc228): In function
`frmQuery::OnSave(wxCommandEvent&)':
ui/frmQuery.cpp:610: undefined reference to `FileWrite(wxString const&,
wxString const&, int)'
frmEditGrid.o(.text+0x2473): In function
`frmEditGrid::OnHelp(wxCommandEvent&)':
/usr/include/wx/string.h:315: undefined reference to
`DisplayHelp(wxWindow*, wxString const&)'
collect2: ld returned 1 exit status
make[2]: *** [pgadmin3] Error 1
make[2]: Leaving directory `/data/extrahome/troels/temp2/pgadmin3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/data/extrahome/troels/temp2/pgadmin3'
make: *** [all] Error 2

-- 
Greetings from Troels Arvin, Copenhagen, Denmark


Re: Problem compiling pgadmin3 from cvs

От
Andreas Pflug
Дата:
Troels Arvin wrote:

>undefined reference to `FileRead(wxString const&,wxWindow*, int)'
>undefined reference to `FileWrite(wxString const&,wxString const&, int)'
>undefined reference to `DisplayHelp(wxWindow*, wxString const&)'
>  
>
These functions originate from utils/misc.cpp, which is clearly linked 
according to your log. Please check if these functions are included 
(they appeared some two weeks ago)

Regards,
Andreas



Re: Problem compiling pgadmin3 from cvs

От
Andreas Pflug
Дата:
Troels Arvin wrote:

>On Tue, 2003-07-08 at 14:25, Jean-Michel POURE wrote:
>  
>
>>Do not use these RPMs from http://shrike.freshrpms.net, because they are 
>>linked against GTK+, not GTK2+. We provide ready to use wxGTK RPMs at:
>>    
>>
>
>Now I get:
>
>  
>
I just updated misc.cpp from cvs, and found it to be ok. (and fixed an 
signed/unsigned compare mismatch)

Regards,
Andreas