Thread: I fixed a couple compile errors, but not all, help...

I fixed a couple compile errors, but not all, help...

From
Shea Martin
Date:
In order to get pgadmin to compile I had to make the following changes.

Add "#include <wx/dataobj.h>" to the following files:
src/ui/frmQuery.cpp
src/ui/frmEditGrid.cpp

Change the call to nbOptions->deletePage(0) to 
nbOptions->deletePage((size_t)0), so that it was not ambigous:
src/ui/dlgEditGridOptions.cpp:165

But now I have run into a problem I am not sure how to fix.  It looks 
like an autoboxing problem, but I could be wrong.  I didn't have a lot 
of time to look into it.
The error is as follows:
<code>
make  all-recursive
make[1]: Entering directory 
`/home/z1/SUN_PACKAGES/tarballs/postgres/pgadmin3-1.2.0'
Making all in src
make[2]: Entering directory 
`/home/z1/SUN_PACKAGES/tarballs/postgres/pgadmin3-1.2.0/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I..  
-DDATA_DIR=\"/usr/local/pgadmin3/share/pgadmin3/\" -Wall -g 
-I../src/include -I../src/agent/include -I/usr/local/pgsql/include -DSSL 
-I/usr/local/lib/wx/include/motif-ansi-release-2.5 
-I/usr/local/include/wx-2.5 -D__WXMOTIF__ -I/usr/openwin/include 
-I/usr/dt/include -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DWX_PRECOMP 
-DNO_GCC_PRAGMA   -I/usr/local/include/wx-2.5 
-DDATA_DIR=\"/usr/local/pgadmin3/share/pgadmin3/\" -Wall -g 
-I../src/include -I../src/agent/include -g -O2 -MT sysSettings.o -MD -MP 
-MF ".deps/sysSettings.Tpo" \ -c -o sysSettings.o `test -f 'utils/sysSettings.cpp' || echo 
'./'`utils/sysSettings.cpp; \
then mv -f ".deps/sysSettings.Tpo" ".deps/sysSettings.Po"; \
else rm -f ".deps/sysSettings.Tpo"; exit 1; \
fi
utils/sysSettings.cpp: In constructor `sysSettings::sysSettings(const 
wxString&)':
utils/sysSettings.cpp:113: error: no matching function for call to 
`wxFont::wxFont(wxString&)'
/usr/local/include/wx-2.5/wx/motif/font.h:42: note: candidates are: 
wxFont::wxFont(const wxNativeFontInfo&)
/usr/local/include/wx-2.5/wx/motif/font.h:36: note:                 
wxFont::wxFont(int, int, int, int, bool, const wxString&, wxFontEncoding)
/usr/local/include/wx-2.5/wx/motif/font.h:27: note:                 
wxFont::wxFont(const wxFont&)
/usr/local/include/wx-2.5/wx/motif/font.h:26: note:                 
wxFont::wxFont()
utils/sysSettings.cpp:126: error: no matching function for call to 
`wxFont::wxFont(wxString&)'
/usr/local/include/wx-2.5/wx/motif/font.h:42: note: candidates are: 
wxFont::wxFont(const wxNativeFontInfo&)
/usr/local/include/wx-2.5/wx/motif/font.h:36: note:                 
wxFont::wxFont(int, int, int, int, bool, const wxString&, wxFontEncoding)
/usr/local/include/wx-2.5/wx/motif/font.h:27: note:                 
wxFont::wxFont(const wxFont&)
/usr/local/include/wx-2.5/wx/motif/font.h:26: note:                 
wxFont::wxFont()
make[2]: *** [sysSettings.o] Error 1
make[2]: Leaving directory 
`/home/z1/SUN_PACKAGES/tarballs/postgres/pgadmin3-1.2.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory 
`/home/z1/SUN_PACKAGES/tarballs/postgres/pgadmin3-1.2.0'
make: *** [all] Error 2
</code>
From what I can see, it looks like line 113 of sysSettings.cpp is 
explicitly calling wxFont()'s constructor (I am not sure if this is 
proper C++).  The constructor it is calling takings a wxString as an 
argument.  But There is not constructor in wxFont class or wxBaseFont 
class that takes a wxString that I can see.

Let me know what change i need to make to get this baby compiled.
Environment: Solaris 8, SPARC, gcc 3.4.1, wx 2.5.3.

Thanks.

~Shea M.





______
This e-mail message (including any attachments) is intended for the individual to whom it is addressed and contains
informationthat is privileged and confidential.  If you are not the intended recipient, note that any dissemination,
distributionor copying of this communication is strictly prohibited.  If you have received this communication in error,
pleasenotify the sender and erase this e-mail message immediately.  For complete disclaimer information, please see
http://arcis.com/emaildisclaimer  
 


Re: I fixed a couple compile errors, but not all,

From
Andreas Pflug
Date:
Shea Martin wrote:


> But now I have run into a problem I am not sure how to fix.  It looks 
> like an autoboxing problem, but I could be wrong.  I didn't have a lot 
> of time to look into it.
> The error is as follows:
> <code>
> make  all-recursive
> make[1]: Entering directory 
> `/home/z1/SUN_PACKAGES/tarballs/postgres/pgadmin3-1.2.0'
> Making all in src
> make[2]: Entering directory 
> `/home/z1/SUN_PACKAGES/tarballs/postgres/pgadmin3-1.2.0/src'
> if g++ -DHAVE_CONFIG_H -I. -I. -I..  
> -DDATA_DIR=\"/usr/local/pgadmin3/share/pgadmin3/\" -Wall -g 
> -I../src/include -I../src/agent/include -I/usr/local/pgsql/include -DSSL 
> -I/usr/local/lib/wx/include/motif-ansi-release-2.5 
> -I/usr/local/include/wx-2.5 -D__WXMOTIF__ -I/usr/openwin/include 

You're obviously compiling it for Motif, not GTK2; we never tried that 
and you'll probably face several font related resizing problems there.


> utils/sysSettings.cpp: In constructor `sysSettings::sysSettings(const 
> wxString&)':

It exists for win32 and gtk2. Equivalent could besystemFont = new wxFont();systemFont->SetNativeFontInfo(fontName);
if you like to try it. I'd recommend GTK2, because with Motif you'll be 
on your own unless you want to claim responsibility of the Motif pgAdmin 
version.

Regards,
Andreas


pgadmin3 segfaults on startup. Looks like a malloc issue?

From
Shea Martin
Date:
I am going to try again.  I built/installed the gtk2 version of 
wxWidgets, with --enable-debug.  made all the wx demos, and tested them 
out.  Then I built pgdmin3 with --enable-debug.  Running 
/usr/local/pgadmin3/bin/pgadmin3 results in a segfault. 

I loaded pgadmin3 into gdb.  Here is some output.  I am not really 
familiar with gdb escpecially on the command line (we use dbx at work), 
so this may not show a lot.   Let me know if there are some other 
commands you would like me to try.

<gdb_output>
[rita](164){/usr/local/pgadmin3/bin}$ gdb pgadmin3
GNU gdb 6.0
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain 
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "sparc-sun-solaris2.8"...
(gdb) run
Starting program: /usr/local/pgadmin3/bin/pgadmin3
[New LWP 1]
[New LWP 2]
[New LWP 3]
[New LWP 4]
[New LWP 5]

Program received signal SIGSEGV, Segmentation fault.
0xfe141ef0 in _malloc_unlocked () from /usr/lib/libc.so.1
(gdb) bt
#0  0xfe141ef0 in _malloc_unlocked () from /usr/lib/libc.so.1
#1  0xfe141c34 in _smalloc () from /usr/lib/libc.so.1
#2  0xfe141cc0 in malloc () from /usr/lib/libc.so.1
</gdb_output>

The output of ldd is:
<ldd_output>   libssl.so.0.9.7 =>     /usr/local/ssl/lib/libssl.so.0.9.7   libnsl.so.1 =>     /usr/lib/libnsl.so.1
libsocket.so.1=>     /usr/lib/libsocket.so.1   libcrypto.so.0.9.7 =>     /usr/local/ssl/lib/libcrypto.so.0.9.7
libpq.so.3=>     /usr/local/pgsql/lib/libpq.so.3   libwx_gtk2d_stc-2.5.so.3.0.0 =>
/usr/local/lib/libwx_gtk2d_stc-2.5.so.3.0.0  libwx_gtk2d_xrc-2.5.so.3.0.0 =>
/usr/local/lib/libwx_gtk2d_xrc-2.5.so.3.0.0  libwx_gtk2d_html-2.5.so.3.0.0 =>
/usr/local/lib/libwx_gtk2d_html-2.5.so.3.0.0  libwx_gtk2d_adv-2.5.so.3.0.0 =>
/usr/local/lib/libwx_gtk2d_adv-2.5.so.3.0.0  libwx_gtk2d_core-2.5.so.3.0.0 =>
/usr/local/lib/libwx_gtk2d_core-2.5.so.3.0.0  libwx_based_xml-2.5.so.3.0.0 =>
/usr/local/lib/libwx_based_xml-2.5.so.3.0.0  libwx_based_net-2.5.so.3.0.0 =>
/usr/local/lib/libwx_based_net-2.5.so.3.0.0  libwx_based-2.5.so.3.0.0 =>     /usr/local/lib/libwx_based-2.5.so.3.0.0
libstdc++.so.6=>     /usr/local/lib/libstdc++.so.6   libm.so.1 =>     /usr/lib/libm.so.1   libgcc_s.so.1 =>
/usr/local/lib/libgcc_s.so.1  libpthread.so.1 =>     /usr/lib/libpthread.so.1   libc.so.1 =>     /usr/lib/libc.so.1
libdl.so.1=>     /usr/lib/libdl.so.1   libmp.so.2 =>     /usr/lib/libmp.so.2   libresolv.so.2 =>
/usr/lib/libresolv.so.2  librt.so.1 =>     /usr/lib/librt.so.1   libiconv.so.2 =>     /usr/local/lib/libiconv.so.2
libgtk-x11-2.0.so.0=>     /usr/local/lib/libgtk-x11-2.0.so.0   libgdk-x11-2.0.so.0 =>
/usr/local/lib/libgdk-x11-2.0.so.0  libatk-1.0.so.0 =>     /usr/local/lib/libatk-1.0.so.0   libgdk_pixbuf-2.0.so.0 =>
 /usr/local/lib/libgdk_pixbuf-2.0.so.0   libpangox-1.0.so.0 =>     /usr/local/lib/libpangox-1.0.so.0
libpango-1.0.so.0=>     /usr/local/lib/libpango-1.0.so.0   libgobject-2.0.so.0 =>
/usr/local/lib/libgobject-2.0.so.0  libgmodule-2.0.so.0 =>     /usr/local/lib/libgmodule-2.0.so.0   libgthread-2.0.so.0
=>    /usr/local/lib/libgthread-2.0.so.0   libglib-2.0.so.0 =>     /usr/local/lib/libglib-2.0.so.0
libpangoft2-1.0.so.0=>     /usr/local/lib/libpangoft2-1.0.so.0   libexpat.so.0 =>     /usr/local/lib/libexpat.so.0
libaio.so.1=>     /usr/lib/libaio.so.1   libX11.so.4 =>     /usr/lib/libX11.so.4   libXext.so.0 =>
/usr/lib/libXext.so.0  libfontconfig.so.1 =>     /usr/local/lib/libfontconfig.so.1   libfreetype.so.6 =>
/usr/local/lib/libfreetype.so.6  libz.so.1 =>     /usr/lib/libz.so.1   libdga.so.1 =>     /usr/openwin/lib/libdga.so.1
libthread.so.1 =>     /usr/lib/libthread.so.1   /usr/platform/SUNW,Ultra-2/lib/libc_psr.so.1
 
</ldd_output>

Any help would be super.  If you need anymore info just let me know.

~S

Raphaël Enrici wrote:

> Hiroshi and I worked last year on getting pgAdmin to run on Solaris. 
> AFAIR it was pgAdmin III 1.1.x with an old wxWidgets. I used to 
> rebuild gtk2 for some personal reasons but hiroshi was using sun's [1] 
> one IIRC.
>
> You may find some sun packages for it.
>
> If you need a gcc built gtk2 package you may also take a look at 
> sunfreeware [2] or blastwave [3].
>
> Please, tell us if you succeed. I'll come back on Solaris port if I 
> have more free time... this is definitely not the case at the time of 
> this writing...
>
> Regards,
> Raphaël
> [1] http://www.sun.com/software/star/gnome/
> [2] http://www.sunfreeware.com/
> [3] http://www.blastwave.org/ and in particular: 
> http://www.blastwave.org/packages.php/gtk2
>
>



______
This e-mail message (including any attachments) is intended for the individual to whom it is addressed and contains
informationthat is privileged and confidential.  If you are not the intended recipient, note that any dissemination,
distributionor copying of this communication is strictly prohibited.  If you have received this communication in error,
pleasenotify the sender and erase this e-mail message immediately.  For complete disclaimer information, please see
http://arcis.com/emaildisclaimer  
 


Re: pgadmin3 segfaults on startup. Looks like

From
Shea Martin
Date:
This also might be useful:
<more_gdb_output>
GNU gdb 6.0
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain 
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "sparc-sun-solaris2.8"...
(gdb) run
Starting program: /usr/local/pgadmin3/bin/pgadmin3
[New LWP 1]
[New LWP 2]
[New LWP 3]
[New LWP 4]
[New LWP 5]

Program received signal SIGSEGV, Segmentation fault.
0xfe141ef0 in _malloc_unlocked () from /usr/lib/libc.so.1
(gdb) list > ~/list.txt
Function "" not defined.
(gdb) list
291
292                 langNo = wxGetSingleChoiceIndex(_("Please choose 
user language:"), _("User language"),
293                     langCount+1, langNames);
294                 if (langNo > 0)
295                     langId = 
(wxLanguage)wxLocale::GetLanguageInfo(existingLangs.Item(langNo-1))->Language;
296                             else if (langNo == 0)
297                                     langId = wxLANGUAGE_DEFAULT;
298
299                 delete[] langNames;
300             }
</more_gdb_output>

Hope this helps.

~Shea M.


Shea Martin wrote:

> I am going to try again.  I built/installed the gtk2 version of 
> wxWidgets, with --enable-debug.  made all the wx demos, and tested 
> them out.  Then I built pgdmin3 with --enable-debug.  Running 
> /usr/local/pgadmin3/bin/pgadmin3 results in a segfault.
> I loaded pgadmin3 into gdb.  Here is some output.  I am not really 
> familiar with gdb escpecially on the command line (we use dbx at 
> work), so this may not show a lot.   Let me know if there are some 
> other commands you would like me to try.
>
> <gdb_output>
> [rita](164){/usr/local/pgadmin3/bin}$ gdb pgadmin3
> GNU gdb 6.0
> Copyright 2003 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and 
> you are
> welcome to change it and/or distribute copies of it under certain 
> conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB.  Type "show warranty" for 
> details.
> This GDB was configured as "sparc-sun-solaris2.8"...
> (gdb) run
> Starting program: /usr/local/pgadmin3/bin/pgadmin3
> [New LWP 1]
> [New LWP 2]
> [New LWP 3]
> [New LWP 4]
> [New LWP 5]
>
> Program received signal SIGSEGV, Segmentation fault.
> 0xfe141ef0 in _malloc_unlocked () from /usr/lib/libc.so.1
> (gdb) bt
> #0  0xfe141ef0 in _malloc_unlocked () from /usr/lib/libc.so.1
> #1  0xfe141c34 in _smalloc () from /usr/lib/libc.so.1
> #2  0xfe141cc0 in malloc () from /usr/lib/libc.so.1
> </gdb_output>
>
> The output of ldd is:
> <ldd_output>
>    libssl.so.0.9.7 =>     /usr/local/ssl/lib/libssl.so.0.9.7
>    libnsl.so.1 =>     /usr/lib/libnsl.so.1
>    libsocket.so.1 =>     /usr/lib/libsocket.so.1
>    libcrypto.so.0.9.7 =>     /usr/local/ssl/lib/libcrypto.so.0.9.7
>    libpq.so.3 =>     /usr/local/pgsql/lib/libpq.so.3
>    libwx_gtk2d_stc-2.5.so.3.0.0 =>    
> /usr/local/lib/libwx_gtk2d_stc-2.5.so.3.0.0
>    libwx_gtk2d_xrc-2.5.so.3.0.0 =>    
> /usr/local/lib/libwx_gtk2d_xrc-2.5.so.3.0.0
>    libwx_gtk2d_html-2.5.so.3.0.0 =>    
> /usr/local/lib/libwx_gtk2d_html-2.5.so.3.0.0
>    libwx_gtk2d_adv-2.5.so.3.0.0 =>    
> /usr/local/lib/libwx_gtk2d_adv-2.5.so.3.0.0
>    libwx_gtk2d_core-2.5.so.3.0.0 =>    
> /usr/local/lib/libwx_gtk2d_core-2.5.so.3.0.0
>    libwx_based_xml-2.5.so.3.0.0 =>    
> /usr/local/lib/libwx_based_xml-2.5.so.3.0.0
>    libwx_based_net-2.5.so.3.0.0 =>    
> /usr/local/lib/libwx_based_net-2.5.so.3.0.0
>    libwx_based-2.5.so.3.0.0 =>     
> /usr/local/lib/libwx_based-2.5.so.3.0.0
>    libstdc++.so.6 =>     /usr/local/lib/libstdc++.so.6
>    libm.so.1 =>     /usr/lib/libm.so.1
>    libgcc_s.so.1 =>     /usr/local/lib/libgcc_s.so.1
>    libpthread.so.1 =>     /usr/lib/libpthread.so.1
>    libc.so.1 =>     /usr/lib/libc.so.1
>    libdl.so.1 =>     /usr/lib/libdl.so.1
>    libmp.so.2 =>     /usr/lib/libmp.so.2
>    libresolv.so.2 =>     /usr/lib/libresolv.so.2
>    librt.so.1 =>     /usr/lib/librt.so.1
>    libiconv.so.2 =>     /usr/local/lib/libiconv.so.2
>    libgtk-x11-2.0.so.0 =>     /usr/local/lib/libgtk-x11-2.0.so.0
>    libgdk-x11-2.0.so.0 =>     /usr/local/lib/libgdk-x11-2.0.so.0
>    libatk-1.0.so.0 =>     /usr/local/lib/libatk-1.0.so.0
>    libgdk_pixbuf-2.0.so.0 =>     /usr/local/lib/libgdk_pixbuf-2.0.so.0
>    libpangox-1.0.so.0 =>     /usr/local/lib/libpangox-1.0.so.0
>    libpango-1.0.so.0 =>     /usr/local/lib/libpango-1.0.so.0
>    libgobject-2.0.so.0 =>     /usr/local/lib/libgobject-2.0.so.0
>    libgmodule-2.0.so.0 =>     /usr/local/lib/libgmodule-2.0.so.0
>    libgthread-2.0.so.0 =>     /usr/local/lib/libgthread-2.0.so.0
>    libglib-2.0.so.0 =>     /usr/local/lib/libglib-2.0.so.0
>    libpangoft2-1.0.so.0 =>     /usr/local/lib/libpangoft2-1.0.so.0
>    libexpat.so.0 =>     /usr/local/lib/libexpat.so.0
>    libaio.so.1 =>     /usr/lib/libaio.so.1
>    libX11.so.4 =>     /usr/lib/libX11.so.4
>    libXext.so.0 =>     /usr/lib/libXext.so.0
>    libfontconfig.so.1 =>     /usr/local/lib/libfontconfig.so.1
>    libfreetype.so.6 =>     /usr/local/lib/libfreetype.so.6
>    libz.so.1 =>     /usr/lib/libz.so.1
>    libdga.so.1 =>     /usr/openwin/lib/libdga.so.1
>    libthread.so.1 =>     /usr/lib/libthread.so.1
>    /usr/platform/SUNW,Ultra-2/lib/libc_psr.so.1
> </ldd_output>
>
> Any help would be super.  If you need anymore info just let me know.
>
> ~S
>
> Raphaël Enrici wrote:
>
>> Hiroshi and I worked last year on getting pgAdmin to run on Solaris. 
>> AFAIR it was pgAdmin III 1.1.x with an old wxWidgets. I used to 
>> rebuild gtk2 for some personal reasons but hiroshi was using sun's 
>> [1] one IIRC.
>>
>> You may find some sun packages for it.
>>
>> If you need a gcc built gtk2 package you may also take a look at 
>> sunfreeware [2] or blastwave [3].
>>
>> Please, tell us if you succeed. I'll come back on Solaris port if I 
>> have more free time... this is definitely not the case at the time of 
>> this writing...
>>
>> Regards,
>> Raphaël
>> [1] http://www.sun.com/software/star/gnome/
>> [2] http://www.sunfreeware.com/
>> [3] http://www.blastwave.org/ and in particular: 
>> http://www.blastwave.org/packages.php/gtk2
>>
>>
>
>
>
> ______
> This e-mail message (including any attachments) is intended for the 
> individual to whom it is addressed and contains information that is 
> privileged and confidential.  If you are not the intended recipient, 
> note that any dissemination, distribution or copying of this 
> communication is strictly prohibited.  If you have received this 
> communication in error, please notify the sender and erase this e-mail 
> message immediately.  For complete disclaimer information, please see 
> http://arcis.com/emaildisclaimer  
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
>    (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)
>



______
This e-mail message (including any attachments) is intended for the individual to whom it is addressed and contains
informationthat is privileged and confidential.  If you are not the intended recipient, note that any dissemination,
distributionor copying of this communication is strictly prohibited.  If you have received this communication in error,
pleasenotify the sender and erase this e-mail message immediately.  For complete disclaimer information, please see
http://arcis.com/emaildisclaimer  
 


Re: pgadmin3 segfaults on startup. Looks like

From
Shea Martin
Date:
I installed insight, and took some sreenshots of the various frames, and 
the point of bombing.  Hopefully these may be of some help to people 
possibly trying to solve this.  Follow this link for screenshots:
http://www.snowsquirrel.ca/pages/screenshots/pgadmin.html

Thanks,

~Shea M.

Shea Martin wrote:

> This also might be useful:
> <more_gdb_output>
> GNU gdb 6.0
> Copyright 2003 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and 
> you are
> welcome to change it and/or distribute copies of it under certain 
> conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB.  Type "show warranty" for 
> details.
> This GDB was configured as "sparc-sun-solaris2.8"...
> (gdb) run
> Starting program: /usr/local/pgadmin3/bin/pgadmin3
> [New LWP 1]
> [New LWP 2]
> [New LWP 3]
> [New LWP 4]
> [New LWP 5]
>
> Program received signal SIGSEGV, Segmentation fault.
> 0xfe141ef0 in _malloc_unlocked () from /usr/lib/libc.so.1
> (gdb) list > ~/list.txt
> Function "" not defined.
> (gdb) list
> 291
> 292                 langNo = wxGetSingleChoiceIndex(_("Please choose 
> user language:"), _("User language"),
> 293                     langCount+1, langNames);
> 294                 if (langNo > 0)
> 295                     langId = 
> (wxLanguage)wxLocale::GetLanguageInfo(existingLangs.Item(langNo-1))->Language; 
>
> 296                             else if (langNo == 0)
> 297                                     langId = wxLANGUAGE_DEFAULT;
> 298
> 299                 delete[] langNames;
> 300             }
> </more_gdb_output>
>
> Hope this helps.
>
> ~Shea M.
>
>
> Shea Martin wrote:
>
>> I am going to try again.  I built/installed the gtk2 version of 
>> wxWidgets, with --enable-debug.  made all the wx demos, and tested 
>> them out.  Then I built pgdmin3 with --enable-debug.  Running 
>> /usr/local/pgadmin3/bin/pgadmin3 results in a segfault.
>> I loaded pgadmin3 into gdb.  Here is some output.  I am not really 
>> familiar with gdb escpecially on the command line (we use dbx at 
>> work), so this may not show a lot.   Let me know if there are some 
>> other commands you would like me to try.
>>
>> <gdb_output>
>> [rita](164){/usr/local/pgadmin3/bin}$ gdb pgadmin3
>> GNU gdb 6.0
>> Copyright 2003 Free Software Foundation, Inc.
>> GDB is free software, covered by the GNU General Public License, and 
>> you are
>> welcome to change it and/or distribute copies of it under certain 
>> conditions.
>> Type "show copying" to see the conditions.
>> There is absolutely no warranty for GDB.  Type "show warranty" for 
>> details.
>> This GDB was configured as "sparc-sun-solaris2.8"...
>> (gdb) run
>> Starting program: /usr/local/pgadmin3/bin/pgadmin3
>> [New LWP 1]
>> [New LWP 2]
>> [New LWP 3]
>> [New LWP 4]
>> [New LWP 5]
>>
>> Program received signal SIGSEGV, Segmentation fault.
>> 0xfe141ef0 in _malloc_unlocked () from /usr/lib/libc.so.1
>> (gdb) bt
>> #0  0xfe141ef0 in _malloc_unlocked () from /usr/lib/libc.so.1
>> #1  0xfe141c34 in _smalloc () from /usr/lib/libc.so.1
>> #2  0xfe141cc0 in malloc () from /usr/lib/libc.so.1
>> </gdb_output>
>>
>> The output of ldd is:
>> <ldd_output>
>>    libssl.so.0.9.7 =>     /usr/local/ssl/lib/libssl.so.0.9.7
>>    libnsl.so.1 =>     /usr/lib/libnsl.so.1
>>    libsocket.so.1 =>     /usr/lib/libsocket.so.1
>>    libcrypto.so.0.9.7 =>     /usr/local/ssl/lib/libcrypto.so.0.9.7
>>    libpq.so.3 =>     /usr/local/pgsql/lib/libpq.so.3
>>    libwx_gtk2d_stc-2.5.so.3.0.0 =>    
>> /usr/local/lib/libwx_gtk2d_stc-2.5.so.3.0.0
>>    libwx_gtk2d_xrc-2.5.so.3.0.0 =>    
>> /usr/local/lib/libwx_gtk2d_xrc-2.5.so.3.0.0
>>    libwx_gtk2d_html-2.5.so.3.0.0 =>    
>> /usr/local/lib/libwx_gtk2d_html-2.5.so.3.0.0
>>    libwx_gtk2d_adv-2.5.so.3.0.0 =>    
>> /usr/local/lib/libwx_gtk2d_adv-2.5.so.3.0.0
>>    libwx_gtk2d_core-2.5.so.3.0.0 =>    
>> /usr/local/lib/libwx_gtk2d_core-2.5.so.3.0.0
>>    libwx_based_xml-2.5.so.3.0.0 =>    
>> /usr/local/lib/libwx_based_xml-2.5.so.3.0.0
>>    libwx_based_net-2.5.so.3.0.0 =>    
>> /usr/local/lib/libwx_based_net-2.5.so.3.0.0
>>    libwx_based-2.5.so.3.0.0 =>     
>> /usr/local/lib/libwx_based-2.5.so.3.0.0
>>    libstdc++.so.6 =>     /usr/local/lib/libstdc++.so.6
>>    libm.so.1 =>     /usr/lib/libm.so.1
>>    libgcc_s.so.1 =>     /usr/local/lib/libgcc_s.so.1
>>    libpthread.so.1 =>     /usr/lib/libpthread.so.1
>>    libc.so.1 =>     /usr/lib/libc.so.1
>>    libdl.so.1 =>     /usr/lib/libdl.so.1
>>    libmp.so.2 =>     /usr/lib/libmp.so.2
>>    libresolv.so.2 =>     /usr/lib/libresolv.so.2
>>    librt.so.1 =>     /usr/lib/librt.so.1
>>    libiconv.so.2 =>     /usr/local/lib/libiconv.so.2
>>    libgtk-x11-2.0.so.0 =>     /usr/local/lib/libgtk-x11-2.0.so.0
>>    libgdk-x11-2.0.so.0 =>     /usr/local/lib/libgdk-x11-2.0.so.0
>>    libatk-1.0.so.0 =>     /usr/local/lib/libatk-1.0.so.0
>>    libgdk_pixbuf-2.0.so.0 =>     /usr/local/lib/libgdk_pixbuf-2.0.so.0
>>    libpangox-1.0.so.0 =>     /usr/local/lib/libpangox-1.0.so.0
>>    libpango-1.0.so.0 =>     /usr/local/lib/libpango-1.0.so.0
>>    libgobject-2.0.so.0 =>     /usr/local/lib/libgobject-2.0.so.0
>>    libgmodule-2.0.so.0 =>     /usr/local/lib/libgmodule-2.0.so.0
>>    libgthread-2.0.so.0 =>     /usr/local/lib/libgthread-2.0.so.0
>>    libglib-2.0.so.0 =>     /usr/local/lib/libglib-2.0.so.0
>>    libpangoft2-1.0.so.0 =>     /usr/local/lib/libpangoft2-1.0.so.0
>>    libexpat.so.0 =>     /usr/local/lib/libexpat.so.0
>>    libaio.so.1 =>     /usr/lib/libaio.so.1
>>    libX11.so.4 =>     /usr/lib/libX11.so.4
>>    libXext.so.0 =>     /usr/lib/libXext.so.0
>>    libfontconfig.so.1 =>     /usr/local/lib/libfontconfig.so.1
>>    libfreetype.so.6 =>     /usr/local/lib/libfreetype.so.6
>>    libz.so.1 =>     /usr/lib/libz.so.1
>>    libdga.so.1 =>     /usr/openwin/lib/libdga.so.1
>>    libthread.so.1 =>     /usr/lib/libthread.so.1
>>    /usr/platform/SUNW,Ultra-2/lib/libc_psr.so.1
>> </ldd_output>
>>
>> Any help would be super.  If you need anymore info just let me know.
>>
>> ~S
>>
>> Raphaël Enrici wrote:
>>
>>> Hiroshi and I worked last year on getting pgAdmin to run on Solaris. 
>>> AFAIR it was pgAdmin III 1.1.x with an old wxWidgets. I used to 
>>> rebuild gtk2 for some personal reasons but hiroshi was using sun's 
>>> [1] one IIRC.
>>>
>>> You may find some sun packages for it.
>>>
>>> If you need a gcc built gtk2 package you may also take a look at 
>>> sunfreeware [2] or blastwave [3].
>>>
>>> Please, tell us if you succeed. I'll come back on Solaris port if I 
>>> have more free time... this is definitely not the case at the time 
>>> of this writing...
>>>
>>> Regards,
>>> Raphaël
>>> [1] http://www.sun.com/software/star/gnome/
>>> [2] http://www.sunfreeware.com/
>>> [3] http://www.blastwave.org/ and in particular: 
>>> http://www.blastwave.org/packages.php/gtk2
>>>
>>>
>>
>>
>>
>> ______
>> This e-mail message (including any attachments) is intended for the 
>> individual to whom it is addressed and contains information that is 
>> privileged and confidential.  If you are not the intended recipient, 
>> note that any dissemination, distribution or copying of this 
>> communication is strictly prohibited.  If you have received this 
>> communication in error, please notify the sender and erase this 
>> e-mail message immediately.  For complete disclaimer information, 
>> please see http://arcis.com/emaildisclaimer  
>> ---------------------------(end of broadcast)---------------------------
>> TIP 2: you can get off all lists at once with the unregister command
>>    (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)
>>
>
>
>
> ______
> This e-mail message (including any attachments) is intended for the 
> individual to whom it is addressed and contains information that is 
> privileged and confidential.  If you are not the intended recipient, 
> note that any dissemination, distribution or copying of this 
> communication is strictly prohibited.  If you have received this
> communication in error, please notify the sender and erase this e-mail 
> message immediately.  For complete disclaimer information, please see 
> http://arcis.com/emaildisclaimer  
> ---------------------------(end of broadcast)---------------------------
> TIP 9: the planner will ignore your desire to choose an index scan if 
> your
>      joining column's datatypes do not match
>


Re: pgadmin3 segfaults on startup. Looks like

From
Andreas Pflug
Date:
Shea Martin wrote:

> I installed insight, and took some sreenshots of the various frames, 
> and the point of bombing.  Hopefully these may be of some help to 
> people possibly trying to solve this.  Follow this link for screenshots:
> http://www.snowsquirrel.ca/pages/screenshots/pgadmin.html


The pure stack text would have been enough...
Still, I don't know what's happening.
Two suggestions:

- Use Unicode build! This will lead to libwx_gtk2ud_*** libs.
- You could try a cvs snapshot for wx, there has been some recent change 
to toplevel.cpp, maybe that helps.

Regards,
Andreas




Re: pgadmin3 segfaults on startup. Looks like

From
Shea Martin
Date:
Andreas Pflug wrote:

> Shea Martin wrote:
>
>> I installed insight, and took some sreenshots of the various frames, 
>> and the point of bombing.  Hopefully these may be of some help to 
>> people possibly trying to solve this.  Follow this link for screenshots:
>> http://www.snowsquirrel.ca/pages/screenshots/pgadmin.html
>
>
>
> The pure stack text would have been enough...
> Still, I don't know what's happening.
> Two suggestions:
>
> - Use Unicode build! This will lead to libwx_gtk2ud_*** libs.
> - You could try a cvs snapshot for wx, there has been some recent 
> change to toplevel.cpp, maybe that helps.
>
> Regards,
> Andreas

Well I took both of you suggestions.  And it now works.  I suspect that 
Unicode Suggestion was the what saved the day, and not the cvs.  Due to 
time constraints I didn't bother to try them seperately.

Thanks.

~S



______
This e-mail message (including any attachments) is intended for the individual to whom it is addressed and contains
informationthat is privileged and confidential.  If you are not the intended recipient, note that any dissemination,
distributionor copying of this communication is strictly prohibited.  If you have received this communication in error,
pleasenotify the sender and erase this e-mail message immediately.  For complete disclaimer information, please see
http://arcis.com/emaildisclaimer  
 


Re: pgadmin3 segfaults on startup. Looks like

From
Andreas Pflug
Date:
Shea Martin wrote:

>
> Andreas Pflug wrote:
>
>> Shea Martin wrote:
>>
>>> I installed insight, and took some sreenshots of the various frames, 
>>> and the point of bombing.  Hopefully these may be of some help to 
>>> people possibly trying to solve this.  Follow this link for 
>>> screenshots:
>>> http://www.snowsquirrel.ca/pages/screenshots/pgadmin.html
>>
>>
>>
>>
>> The pure stack text would have been enough...
>> Still, I don't know what's happening.
>> Two suggestions:
>>
>> - Use Unicode build! This will lead to libwx_gtk2ud_*** libs.
>> - You could try a cvs snapshot for wx, there has been some recent 
>> change to toplevel.cpp, maybe that helps.
>>
>> Regards,
>> Andreas
>
>
> Well I took both of you suggestions.  And it now works.  I suspect 
> that Unicode Suggestion was the what saved the day, and not the cvs.  
> Due to time constraints I didn't bother to try them seperately.


That's fine.
But if you notice some strange behaviour, it might well result from the 
wx cvs snapshot.

Regards,
Andreas