Thread: pgadmin 1.0.1 fails to build

pgadmin 1.0.1 fails to build

From
Raphaël Enrici
Date:
Hi all,

I'm sorry, I'm really late in producing packages for the 1.0.1.
I tried the build tonight after I saw dave's announce and pgA3 fails to
build with the following error (at the end of the build):

g++ -DDATA_DIR=\"/usr/share/pgadmin3/\" -Wall -g -I../src/include -I/usr
-g -O2  -L/usr/local/pgsql/lib -L/usr/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 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 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 xrcDialogs.o  -lssl -lcrypto -lpq
pgAdmin3.o: In function `pgAdmin3 type_info function':
/BUILD_BETA/MY_PGADMIN3/AUTO_PGADMIN/build/debian/pgadmin3-1.0.1/src/pgAdmin3.cpp(.text+0x15):
undefined reference to `wxAppConsole::CheckBuildOptions(char const
*, char const *)'
/BUILD_BETA/MY_PGADMIN3/AUTO_PGADMIN/build/debian/pgadmin3-1.0.1/src/pgAdmin3.cpp(.text+0x2d):
undefined reference to `wxApp::wxApp(void)'
pgAdmin3.o: In function `wxGetApp(void)':
/usr/include/wx/app.h:290: undefined reference to
`wxAppConsole::ms_appInstance'
pgAdmin3.o: In function `main':
/BUILD_BETA/MY_PGADMIN3/AUTO_PGADMIN/build/debian/pgadmin3-1.0.1/src/pgAdmin3.cpp:66:
undefined reference to `wxEntry(int &, char **)'
pgAdmin3.o: In function `pgAdmin3::OnInit(void)':
/usr/include/wx/string.h:316: undefined reference to `wxStringBase::npos'
/usr/include/wx/string.h:316: undefined reference to
`wxStringBase::InitWith(wchar_t const *, unsigned int, unsigned int)'
pgAdmin3.o: In function `pgAdmin3::OnInit(void)':
/BUILD_BETA/MY_PGADMIN3/AUTO_PGADMIN/build/debian/pgadmin3-1.0.1/src/pgAdmin3.cpp:75:
undefined reference to `wxPathOnly(wxString const &)'
and so on....

I use 20031010 wx snapshot.
It looks like the wx libs are not linked to pga3 (isn't it ?). I precise
that I do not give the --enable-static to configure (I'll have a try
with it tomorrow morning) and I also precise that I use exactly the same
build process for release stages and snapshots (latest snapshot
[20031014] built without any problem).

If anyone has an idea...

Regards,
Raphaël


Re: pgadmin 1.0.1 fails to build

From
"Hiroshi Saito"
Date:
Hi Raphaël .

Hmm..It is strange.
Incidentally, it is this I create it again.

It is FreeBSD.
../configure --enable-monolithic --enable-unicode --disable-shared --enable-stat
ic --with-gtk --enable-gtk2 --prefix=/usr/local/wxwindows

Did you define monolithic ?

Then, 1.0.1 was made.
Is this helpful?

regards,
Hiroshi Saito

----- Original Message -----
From: "Raphaël Enrici" <blacknoz@club-internet.fr>


> Hi all,
>
> I'm sorry, I'm really late in producing packages for the 1.0.1.
> I tried the build tonight after I saw dave's announce and pgA3 fails to
> build with the following error (at the end of the build):


Re: pgadmin 1.0.1 fails to build

From
Raphaël Enrici
Date:
Hiroshi Saito wrote:

>Did you define monolithic ?
>
>
>
Hiroshi, this put me on the way (and also latest mail from Adam
concerning Mac OS X Port)!

I had a look to the libs included in the latest link stage and wx ones
were missing (as I suspected before).
The configure script from 1.1.0 adds lots of changes to the link part
when "--enable-static / monolithic are not set.
I took the configure script from 1.1.0 and changed 1.1.0 to 1.0.1 in it
and launch the build... It's now OK!! :)
So it was effectively a link problem.

Jean-Michel, I had a look to the SSL menu and it has two entries in it
under this build on debian (just to say that MDK's one should have
one... think it's the build problem we saw these last days).

I hope to upload packages today.

Thank you all and once again, sorry to be late :)

regards,
Raphaël