[pgadmin-hackers] PgAdmin3 on OSX 10.4.1 w/ gcc4

2005-05-21 Thread OpenMacNews

hi all,

well this took awhile (not including getting trapped in Yosemite flooding ...); 
userland Tiger is problem free (4 me), but DEV-space is a whole other issue ... 
lots of little prereq issues.  sigh.


anyway, short story:  PGADMIN3 builds ok as a OSX 10.4.1 appbundle using gcc 
4.0.  oe little 'gotcha' i the configure stmt kept me busy for awhile (see 
below).


but, now i have a dubl-clikable executable (again) ...


here are my details:


my ENV:

Mac OSX 10.4.1
TclTkAquaBI-8.4.9.1.dmg
Berkeley-DB v4.3.28 w/ strong crypto
% perl -V
Summary of my perl5 (revision 5 version 8 subversion 6) 
configuration:
  Platform:
osname=darwin, osvers=8.1.0, 
archname=darwin-thread-multi-2level
			uname='darwin devbox 8.1.0 darwin kernel version 8.1.0: tue may 10 18:16:08 
pdt 2005; root:xnu-792.1.5.obj~4release_ppc power macintosh powerpc '


Characteristics of this binary (from libperl):
		  Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES 
PERL_IMPLICIT_CONTEXT

  Built under darwin
  Compiled at May 18 2005 22:18:53
%gcc --version
		powerpc-apple-darwin8-gcc-4.0.0 (GCC) 4.0.0 20041026 (Apple Computer, Inc. 
build 4061)

% glibtool --version
ltmain.sh (GNU libtool) 1.5.18 (1.1220.2.245 2005/05/16 
08:55:27)
% automake --version
automake (GNU automake) 1.9.5
% autoconf --version
autoconf (GNU Autoconf) 2.59
% openssl version
OpenSSL 0.9.7g 11 Apr 2005
% postmaster --version
postmaster (PostgreSQL) 8.0.3

and, libreadline (v5.0) picked up from my external build:
	-r-xr-xr-x  1 root staff 416616 May 18 11:12 
/usr/local/lib/libreadline.5.0.dylib
	lrwxr-xr-x  1 root staff 21 May 18 11:12 /usr/local/lib/libreadline.dylib 
- libreadline.5.0.dylib


rather than from Tiger's native link to libedit:
	lrwxr-xr-x  1 root wheel 13 May 10 09:40 /usr/lib/libreadline.dylib - 
libedit.dylib



building a SHARED wxwidgets from cvs:

% login devbox (-- NON-root user)
% cd /usr/ports/wxwidgets

@ 5/20/05 09:56:18

% cvs -d :pserver:[EMAIL PROTECTED]:/pack/cvsroots/wxwidgets login
% password: anoncvs
	% cvs -d :pserver:[EMAIL PROTECTED]:/pack/cvsroots/wxwidgets co -d 
wxwidgets_cvs_dyn wxWidgets


% sudo chown -R devbox:wheel /usr/ports/wxwidgets

% mkdir -p /usr/ports/wxwidgets/wxwidgets_cvs_dyn/macosx-build
% cd /usr/ports/wxwidgets/wxWidgets_cvs_dyn/macosx-build

	% unsetenv CFLAGS CPPFLAGS CXX CXXFLAGS LDFLAGS LDDLFLAGS LD_PREBIND LC_ALL 
LANG LINGUAS


% ../configure \
--prefix=/usr/local/wxwidgets_cvs_dyn \
--with-mac \
--enable-shared \
--disable-debug \
--enable-unicode \
--enable-intl \
--with-regex

% make
% sudo make install

% cd /usr/ports/wxwidgets/wxwidgets_cvs_dyn/macosx-build/contrib/src/stc
% make
% sudo make install

% cd /usr/ports/wxwidgets/wxwidgets_cvs_dyn/macosx-build/contrib/src/ogl
% make
% sudo make install

% cd 
/usr/ports/wxwidgets/wxwidgets_cvs_dyn/macosx-build/contrib/src/gizmos
% make
% sudo make install

successfully results in:

% /usr/local/wxwidgets_cvs_dyn/bin/wx-config --list
Default config is mac-unicode-release-static-2.6

% otool -L /usr/local/wxwidgets_cvs_dyn/bin/wxrc-2.6
wxrc-2.6:
/System/Library/Frameworks/QuickTime.framework/Versions/A/QuickTime 
(compatibility version 1.0.0, current version 47.0.0)
/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit (compatibility 
version 1.0.0, current version 271.0.0)
/System/Library/Frameworks/Carbon.framework/Versions/A/Carbon 
(compatibility version 2.0.0, current version 128.0.0)
/System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa (compatibility 
version 1.0.0, current version 11.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 
88.0.0)
/usr/local/wxwidgets_cvs_dyn/lib/libwx_base_carbonu_xml-2.6.0.dylib 
(compatibility version 2.6.0, current version 2.6.0)
/usr/local/lib/libexpat.0.dylib (compatibility version 6.0.0, current 
version 6.0.0)
/usr/local/wxwidgets_cvs_dyn/lib/libwx_base_carbonu-2.6.0.dylib 
(compatibility version 2.6.0, current version 2.6.0)

/usr/lib/libz.1.dylib (compatibility version 
1.0.0, current version 1.2.2)
/usr/lib/libiconv.2.dylib (compatibility version 5.0.0, current version 
5.0.0)
/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 
7.3.0)
/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 
1.0.0)

 

[pgadmin-hackers] pgAgent usage string should be reviewed

2005-05-21 Thread Raphaël Enrici
 As an aside, you may have noticed that I've been working on
 /xtra/pgagent/* recently - can you please take a look over the makefiles
 under there and make sure the look OK (Florian in particular, for
 obvious reasons)?

At least it builds and installs here.

~$ pgagent
Usage:
pgAgent INSTALL [options] connect-string
options:
-t poll time interval in seconds (default 10)
-r retry period after connection abort in seconds (=10, default 30)
-l logging verbosity (ERROR=0, WARNING=1, DEBUG=2, default 0)

Just a small note, IMHO the string used in the usage should be the same
as the one used for the command. 'pgAgent' should be 'pgagent' or the
installed file should become /usr/bin/pgAgent.

(I'm currently trying to find out what's going on with 1.2.2 under
Debian and will post for help in a few minutes if I don't find it).

Regards,
Raphaël

---(end of broadcast)---
TIP 2: you can get off all lists at once with the unregister command
(send unregister YourEmailAddressHere to [EMAIL PROTECTED])


Re: [pgadmin-hackers] pgAgent usage string should be reviewed

2005-05-21 Thread OpenMacNews

hi raphael,


As an aside, you may have noticed that I've been working on
/xtra/pgagent/* recently - can you please take a look over the makefiles
under there and make sure the look OK (Florian in particular, for
obvious reasons)?


At least it builds and installs here.

~$ pgagent
Usage:
pgAgent INSTALL [options] connect-string
options:
-t poll time interval in seconds (default 10)
-r retry period after connection abort in seconds (=10, default 30)
-l logging verbosity (ERROR=0, WARNING=1, DEBUG=2, default 0)



since i'm already pokin' around in here ... fwiw, under OSX 10.4.1:

% ./pgAdmin3.app/Contents/MacOS/pgagent
   Usage:
   pgAgent INSTALL [options] connect-string
   options:
   -t poll time interval in seconds (default 10)
   -r retry period after connection abort in seconds (=10, default 30)
   -l logging verbosity (ERROR=0, WARNING=1, DEBUG=2, default 0)

% ls -al ./pgAdmin3.app/Contents/MacOS/pgagent
   -rwxr-xr-x  1 root admin 324376 May 21 11:00 pgagent

% otool -L ./pgAdmin3.app/Contents/MacOS/pgagent
   pgagent:
   /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
   version 88.0.0) /usr/local/ssl/lib/libssl.0.9.7.dylib
   (compatibility version 0.9.0, current version 0.9.7)
   /usr/local/ssl/lib/libcrypto.0.9.7.dylib (compatibility version
   0.9.0, current version 0.9.7) /usr/local/lib/libexpat.0.dylib
   (compatibility version 6.0.0, current version 6.0.0)
   /usr/local/lib/libpng.3.dylib (compatibility version 3.0.0, current
   version 3.0.0) /usr/local/lib/libjpeg.62.dylib (compatibility
   version 63.0.0, current version 63.0.0)
   /usr/local/lib/libtiff.3.dylib (compatibility version 11.0.0,
   current version 11.2.0) /usr/local/lib/libintl.3.dylib
   (compatibility version 8.0.0, current version 8.3.0)
   /usr/local/lib/libgettextlib-0.14.4.dylib (compatibility version
   0.0.0, current version 0.0.0) /usr/lib/libz.1.dylib (compatibility
   version 1.0.0, current version 1.2.2)
   /usr/local/pgsql/lib/libpq.4.dylib (compatibility version 4.0.0,
   current version 4.0.0)
   /System/Library/Frameworks/QuickTime.framework/Versions/A/QuickTime
   (compatibility version 1.0.0, current version 47.0.0)
   /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
   (compatibility version 1.0.0, current version 271.0.0)
   /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
   (compatibility version 2.0.0, current version 128.0.0)
   /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa
   (compatibility version 1.0.0, current version 11.0.0)
   /usr/local/wxwidgets_cvs_dyn/lib/libwx_macu_xrc-2.6.0.dylib
   (compatibility version 2.6.0, current version 2.6.0)
   /usr/local/wxwidgets_cvs_dyn/lib/libwx_macu_qa-2.6.0.dylib
   (compatibility version 2.6.0, current version 2.6.0)
   /usr/local/wxwidgets_cvs_dyn/lib/libwx_macu_html-2.6.0.dylib
   (compatibility version 2.6.0, current version 2.6.0)
   /usr/local/wxwidgets_cvs_dyn/lib/libwx_macu_adv-2.6.0.dylib
   (compatibility version 2.6.0, current version 2.6.0)
   /usr/local/wxwidgets_cvs_dyn/lib/libwx_macu_core-2.6.0.dylib
   (compatibility version 2.6.0, current version 2.6.0)
   /usr/local/wxwidgets_cvs_dyn/lib/libwx_base_carbonu_xml-2.6.0.dylib
   (compatibility version 2.6.0, current version 2.6.0)
   /usr/local/wxwidgets_cvs_dyn/lib/libwx_base_carbonu_net-2.6.0.dylib
   (compatibility version 2.6.0, current version 2.6.0)
   /usr/local/wxwidgets_cvs_dyn/lib/libwx_base_carbonu-2.6.0.dylib
   (compatibility version 2.6.0, current version 2.6.0)
   /usr/local/wxwidgets_cvs_dyn/lib/libwx_macu_stc-2.6.0.dylib
   (compatibility version 2.6.0, current version 2.6.0)
   /usr/local/wxwidgets_cvs_dyn/lib/libwx_macu_ogl-2.6.0.dylib
   (compatibility version 2.6.0, current version 2.6.0)
   /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current
   version 7.3.0) /usr/lib/libgcc_s.1.dylib (compatibility version
   1.0.0, current version 1.0.0) /usr/lib/libmx.A.dylib (compatibility
   version 1.0.0, current version 92.0.0)


so, it seems the build (and hence the Makefile?) is OK ... as to fuction, i 
honestly dunno :-}


cheers,

richard

---(end of broadcast)---
TIP 4: Don't 'kill -9' the postmaster


Re: [pgadmin-hackers] 1.2.2 testing == [PROBLEM]

2005-05-21 Thread Raphaël Enrici

Dave Page wrote:
 Hi all,
 
 I've made various changes to 1.2.0's build system based on Florian, Adam
 and Raphael's changes, including backporting the new acinclude.m4 from
 trunk.
 
 It seems to work OK on Slackware, but can I get some confirmation for
 other OS's before I roll 1.2.2 please?

Hi,

it must be a problem with my packaging but if someone has a quick idea
on what's going on, it would help me to gain time:

1.3.0 (just checked out) works smoothly under Debian.
1.2.2 causes a wxAssert as soon as I try to add a server or modify a
server configuration:

abstract from the log:
2005-05-21 22:47:32 INFO   : Creating a pgServer object
2005-05-21 22:47:32 INFO   : Creating a pgServer object
2005-05-21 22:47:32 INFO   : Creating a pgServer object
2005-05-21 22:47:32 INFO   : Creating a pgServer object
2005-05-21 22:47:32 INFO   : Creating a pgServer object
2005-05-21 22:47:44 STATUS : Interrogation en cours de la configuration
du serveur
2005-05-21 22:47:44 INFO   : Displaying properties for Server localhost:5434
2005-05-21 22:47:44 INFO   : Displaying properties for server localhost:5434
2005-05-21 22:47:44 STATUS : Interrogation en cours de la configuration
du serveur (0,00 secondes)
2005-05-21 22:47:46 DEBUG  : Empty addr2line output?
2005-05-21 22:47:46 DEBUG  : Empty addr2line output?
2005-05-21 22:47:47 DEBUG  : Empty addr2line output?
2005-05-21 22:47:47 DEBUG  : Empty addr2line output?
2005-05-21 22:47:47 DEBUG  : Empty addr2line output?
2005-05-21 22:47:47 DEBUG  : Empty addr2line output?
2005-05-21 22:47:47 DEBUG  : Empty addr2line output?
2005-05-21 22:47:47 DEBUG  : Empty addr2line output?

The last lines are looping for a while.
If I ask to cancel the wxAssert, the windows I've asked for appears
correctly.
On console, I have many lines likes this one:
addr2line: 'pgadmin3': No such file

To me, the addr2line can be ignored and is generated by wxWid launching
addr2line on pgadmin3 but here is the assert:

/usr/include/wx-2.6-pga3/wx/object.h(326): assert ptr failed:
wxStaticCast() used incorrectly

Call stack:
[05] wxStackWalker::Walk(unsigned)
[06] 0x40792ea8
[07] wxAppConsole::OnAssert(wchar_t const*, int, wchar_t const*, wchar_t
const*)
[08] wxApp::OnAssert(wchar_t const*, int, wchar_t const*, wchar_t const*)
[09] wxOnAssert(wchar_t const*, int, wchar_t const*, wchar_t const*)
[10] wxAssert(int, wchar_t const*, int, wchar_t const*, wchar_t const*)
[11] 0x0811760b
[12] 0x08192195
[13] 0x081a715a
[14] 0x081359cd
[15] wxAppConsole::HandleEvent(wxEvtHandler*, void
(wxEvtHandler::*)(wxEvent), wxEvent) const
[16] wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const,
wxEvtHandler*, wxEvent)
[17] wxEventHashTable::HandleEvent(wxEvent, wxEvtHandler*)
[18] wxEvtHandler::ProcessEvent(wxEvent)
[19] 0x40505bba
[20] __float128
[21] __float128
[22] 0x410ebdcf
[23] __float128
[24] __float128
[25] __float128
Do you want to stop the program?
You can also choose [Cancel] to suppress further warnings.

Any idea?

Regards,
Raphaël

---(end of broadcast)---
TIP 8: explain analyze is your friend