Hello.
I've downloaded pgAdmin3 from trunk 4409.

I've installed wx 2.6.1.1 from Debian Experimental.
I've made Debian package from this,
but when I try to run it, it segfaults,
even when I want to get version or help:

[EMAIL PROTECTED]:~/Zrodla$ pgadmin3 --help
Segmentation fault
[EMAIL PROTECTED]:~/Zrodla$

Here's backtrace (BTW - how can I compile it with debugging?):
(gdb) bt
#0  0x08071deb in wxStringListBase::~wxStringListBase ()
#1  0x081b3bd9 in wxGridCellAttr::wxGridCellAttr ()
#2  0x0806979b in ?? ()
#3  0x08069eff in wxAppConsole::CallOnInit ()
#4  0xb78604da in wxEntry () from /usr/lib/libwx_baseu-2.6.so.0
#5  0xb78605de in wxEntry () from /usr/lib/libwx_baseu-2.6.so.0
#6  0x08067f19 in ?? ()
#7  0xb7464ec0 in __libc_start_main () from /lib/tls/libc.so.6
#8  0x08067e51 in ?? ()
(gdb)


Two notes about Debian packaging.
1. locales are put into wrong directory:
/usr/share/locale/debian/tmp/usr/share/pgadmin3/i18n/af_ZA/pgadmin3.mo
(there shouldn't be tmp/usr/share)

2. After Sarge has been made stable, in Sid PostgreSQL has been changed.
There is no postgresql package - instead, there are packages
postgresql-7.4 and postgresql-8.0.
For PostgreSQL 8.0 there is libpq4, and For PostgreSQL 7.4
there is libpq3.
Now, there are different development packages for libpq (libpq-dev)
and for compiling programs for server (postgresql-server-dev-8.0 
and postgresql-server-dev-7.4).
There are different directories for different versions of PostgreSQL,
for example /usr/include/postgresql/8.0, /usr/share/postgresql/8.0.

Here is patch (svn diff) for changes I made to be able
to compile pgAdmin3:

Index: pkg/debian/control
===================================================================
--- pkg/debian/control  (wersja 4409)
+++ pkg/debian/control  (kopia robocza)
@@ -2,7 +2,7 @@
 Section: misc
 Priority: optional
 Maintainer: Raphael Enrici <[EMAIL PROTECTED]>
-Build-Depends: debhelper (>= 4.1.0), postgresql-dev (>=7.3),
devscripts, libwxgtk2.5-dev (>= 2.5.3.2)
+Build-Depends: debhelper (>= 4.1.0), libpq-dev, devscripts,
libwxgtk2.6-dev (>= 2.6.1.1)
 Standards-Version: 3.6.1
 
 Package: pgadmin3
Index: pkg/debian/rules
===================================================================
--- pkg/debian/rules    (wersja 4409)
+++ pkg/debian/rules    (kopia robocza)
@@ -13,7 +13,7 @@
 _PGA3_WXCONFIG ?= wx-config
 
 # A hack to get it compile without errors concerning MNU_NEW
-_pgsql_inc:="/usr/include/postgresql -I./include"
+_pgsql_inc:="/usr/include/postgresql/8.0 -I./include"
 
 # These are used for cross-compiling and for saving the configure
script
 # from having to guess our platform (since we know it already)



-- 
Tomasz Rybak <[EMAIL PROTECTED]>


---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

               http://archives.postgresql.org

Reply via email to