[wxPython] wxGTK-2.3.1 configuration error

Hi all,

Do you have any experiance about installing wxGTK-2.3.1 on solaris7 machine.
I have an error during configuration.
I did it as follows

1. install glib-1.2.10 and gtk+1.2.10
2. configure wxGTK-2.3.1
    ./configure --with-gtk --enable-permissive

on my experiance. I can install successfully
glib-1.2.10, gtk+1.2.10, wxGTK-2.3.1 and wxPython-2.3.1 on Debian linux

please give me any advices..
thanks in advance.

Kim

-----------error message ----------------------------------------------
k5r2a@hinet:~/wxGTK-2.3.1/build$ ../configure --with-gtk --enable-permissive
loading cache ./config.cache
checking host system type... sparc-sun-solaris2.7
checking target system type... sparc-sun-solaris2.7
checking build system type... sparc-sun-solaris2.7
loading argument cache configarg.cache
checking for --enable-gui... yes
checking for --with-libpng... yes
checking for --with-libjpeg... yes
checking for --with-libtiff... yes
checking for --with-freetype... no
checking for --with-opengl... no
checking for --with-dmalloc... no
checking for --with-zlib... yes
checking for --with-odbc... no
checking for --enable-shared... yes
checking for --enable-burnt_name... no
checking for --enable-optimise... yes
checking for --enable-debug... no
checking for --enable-debug_flag... no
checking for --enable-debug_info... no
checking for --enable-debug_gdb... no
checking for --enable-debug_cntxt... no
checking for --enable-mem_tracing... no
checking for --enable-profile... no
checking for --enable-no_rtti... no
checking for --enable-no_exceptions... no
checking for --enable-permissive... yes
checking for --enable-no_deps... no
checking for --enable-intl... yes
checking for --enable-config... yes
checking for --enable-sockets... yes
checking for --enable-ipc... yes
checking for --enable-dialupman... yes
checking for --enable-apple_ieee... yes
checking for --enable-timedate... yes
checking for --enable-wave... no
checking for --enable-fraction... no
checking for --enable-dynlib... yes
checking for --enable-longlong... yes
checking for --enable-geometry... yes
checking for --enable-log... yes
checking for --enable-streams... yes
checking for --enable-file... yes
checking for --enable-textfile... yes
checking for --enable-unicode... no
checking for --enable-wcsrtombs... no
checking for --enable-wxprintfv... no
checking for --enable-std_iostreams... no
checking for --enable-filesystem... yes
checking for --enable-fs_inet... yes
checking for --enable-fs_zip... yes
checking for --enable-zipstream... yes
checking for --enable-catch_segvs... yes
checking for --enable-snglinst... yes
checking for --enable-threads... yes
checking for --enable-serial... yes
checking for --enable-docview... yes
checking for --enable-help... yes
checking for --enable-constraints... yes
checking for --enable-printarch... yes
checking for --enable-mdi... yes
checking for --enable-postscript... yes
checking for --enable-prologio... yes
checking for --enable-resources... yes
checking for --enable-xresources... no
checking for --enable-clipboard... yes
checking for --enable-dnd... yes
checking for --enable-metafile... yes
checking for --enable-wxtree... yes
checking for --enable-controls... no
checking for --enable-accel... yes
checking for --enable-caret... yes
checking for --enable-bmpbutton... yes
checking for --enable-checkbox... yes
checking for --enable-checklst... yes
checking for --enable-choice... yes
checking for --enable-combobox... yes
checking for --enable-gauge... yes
checking for --enable-grid... yes
checking for --enable-newgrid... yes
checking for --enable-imaglist... yes
checking for --enable-listbox... yes
checking for --enable-listctrl... yes
checking for --enable-notebook... yes
checking for --enable-radiobox... yes
checking for --enable-radiobtn... yes
checking for --enable-sash... yes
checking for --enable-scrollbar... yes
checking for --enable-slider... yes
checking for --enable-spinbtn... yes
checking for --enable-spinctrl... yes
checking for --enable-splitter... yes
checking for --enable-statbmp... yes
checking for --enable-statbox... yes
checking for --enable-statline... yes
checking for --enable-statusbar... yes
checking for --enable-tabdialog... no
checking for --enable-togglebtn... yes
checking for --enable-toolbar... yes
checking for --enable-tbarnative... yes
checking for --enable-tbarsmpl... yes
checking for --enable-treectrl... yes
checking for --enable-commondlg... yes
checking for --enable-dirdlg... yes
checking for --enable-textdlg... yes
checking for --enable-tipdlg... yes
checking for --enable-progressdlg... yes
checking for --enable-miniframe... yes
checking for --enable-html... yes
checking for --enable-tooltips... yes
checking for --enable-splines... yes
checking for --enable-validators... yes
checking for --enable-busyinfo... yes
checking for --enable-joystick... yes
checking for --enable-image... yes
checking for --enable-gif... yes
checking for --enable-pcx... yes
checking for --enable-pnm... yes
checking for --enable-pnm... yes
saving argument cache configarg.cache
checking for toolkit... gtk
checking for gcc... (cached) gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking whether gcc needs -traditional... (cached) no
checking for c++... (cached) c++
checking whether the C++ compiler (c++ ) works... yes
checking whether the C++ compiler (c++ ) is a cross-compiler... no
checking whether we are using GNU C++... (cached) yes
checking whether c++ accepts -g... (cached) yes
checking how to run the C++ preprocessor... (cached) c++ -E
checking for ranlib... (cached) ranlib
checking for ar... (cached) ar
checking for a BSD compatible install... ../install-sh -c
checking for strip... (cached) strip
checking make for VPATH support... yes
checking for bison... no
checking for byacc... no
checking for flex... (cached) lex
checking for yywrap in -ll... (cached) yes
checking whether ln -s works... (cached) yes
checking for gtk-config-2.0... (cached) no
checking for GTK - version >= 1.3.1... no
*** The gtk-config-2.0 script installed by GTK could not be found
*** If GTK was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the GTK_CONFIG_2_0 environment variable to the
*** full path to gtk-config-2.0.
checking for gtk-config... (cached) /usr/local/bin/gtk-config
checking for GTK - version >= 1.2.7... yes
checking for gtk-config... (cached) /usr/local/bin/gtk-config
checking for GTK - version >= 1.2.3... yes
checking for gdk_im_open in -lgdk... (cached) yes
checking for X... (cached) libraries /usr/openwin/lib, headers /usr/openwin/incl
ude
checking whether -R must be followed by a space... no
checking for dnet_ntoa in -ldnet... (cached) no
checking for dnet_ntoa in -ldnet_stub... (cached) no
checking for gethostbyname... (cached) no
checking for gethostbyname in -lnsl... (cached) yes
checking for connect... (cached) no
checking for connect in -lsocket... (cached) yes
checking for remove... (cached) yes
checking for shmat... (cached) yes
checking for IceConnectionNumber in -lICE... (cached) yes
checking for strings.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for wchar.h... (cached) yes
checking for wcstr.h... (cached) no
checking for fnmatch.h... (cached) yes
checking for iconv.h... (cached) yes
checking for langinfo.h... (cached) yes
checking for X11/XKBlib.h... (cached) no
checking for ANSI C header files... (cached) yes
checking for mode_t... (cached) yes
checking for off_t... (cached) yes
checking for pid_t... (cached) yes
checking for size_t... (cached) yes
checking for uid_t in sys/types.h... (cached) yes
checking for wchar_t... (cached) yes
checking if size_t is unsigned int... (cached) yes
checking for pw_gecos in struct passwd... (cached) yes
checking for working const... (cached) yes
checking for inline... (cached) inline
checking size of char... (cached) 1
checking size of short... (cached) 2
checking size of int *... (cached) 4
checking size of int... (cached) 4
checking size of long... (cached) 4
checking size of long long... (cached) 8
checking size of wchar_t... (cached) 4
checking whether byte ordering is bigendian... (cached) yes
checking for iostream... (cached) yes
checking if C++ compiler supports bool... (cached) yes
checking if you need GNU extensions... (cached) no
checking for wcslen in -lc... (cached) yes
checking for vprintf... (cached) yes
checking for vsnprintf... (cached) yes
checking for vsscanf... (cached) yes
checking if iconv() takes char**... (cached) no
checking for sigaction... (cached) yes
checking for sa_handler type... (cached) int
checking for vfork... (cached) yes
checking for fcntl... (cached) yes
checking for timegm... (cached) no
checking for putenv... (cached) yes
checking for nanosleep... (cached) no
checking for nanosleep in -lposix4... (cached) yes
checking for uname... (cached) yes
checking for strtok_r... (cached) yes
checking for inet_addr... (cached) no
checking for inet_addr in -lnsl... (cached) yes
checking for inet_aton... (cached) no
checking for inet_aton in -lnsl... (cached) no
checking for pthread_create in -lpthread... (cached) yes
checking for thr_setconcurrency... (cached) yes
checking for sched.h... (cached) yes
checking for sched_yield in -lpthread... (cached) no
checking for sched_yield in -lposix4... (cached) yes
checking for pthread_attr_getschedpolicy in -lpthread... (cached) yes
checking for pthread_attr_setschedparam in -lpthread... (cached) yes
checking for sched_get_priority_max in -lpthread... (cached) no
checking for sched_get_priority_max in -lposix4... (cached) yes
checking for pthread_cancel in -lpthread... (cached) yes
checking for pthread_cleanup_push/pop... (cached) yes
checking for pthread_mutexattr_t... (cached) yes
checking for strptime... (cached) yes
checking for timezone variable in <time.h>... (cached) timezone
checking for localtime... (cached) yes
checking for tm_gmtoff in struct tm... (cached) no
checking for gettimeofday... (cached) yes
checking whether gettimeofday takes two arguments... (cached) yes
checking for socket... (cached) no
checking for socket in -lsocket... (cached) yes
checking what is the type of the third argument of getsockname... (cached) sockl
en_t
checking for linux/joystick.h... (cached) no
configure: warning: Joystick not supported by this system
checking for dlopen... (cached) no
checking for dlopen in -ldl... (cached) yes
checking for dlerror... (cached) yes
checking whether make sets ${MAKE}... (cached) yes
creating ./config.status
creating wx-config
creating src/make.env
creating src/makeprog.env
creating src/makelib.env
creating Makefile
creating setup.h
setup.h is unchanged
./config.status: test: argument expected

please give me any advices..
thanks in advance.

Ask about it on the wx-users list, and don't include the whole configure
output, just the parts about GTK.

···

--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters?
http://wxPython.org Relax with wxPython!

HyunKook Kim wrote:

Hi all,

Do you have any experiance about installing wxGTK-2.3.1 on solaris7 machine.
I have an error during configuration.
I did it as follows

1. install glib-1.2.10 and gtk+1.2.10
2. configure wxGTK-2.3.1
    ./configure --with-gtk --enable-permissive

on my experiance. I can install successfully
glib-1.2.10, gtk+1.2.10, wxGTK-2.3.1 and wxPython-2.3.1 on Debian linux

please give me any advices..
thanks in advance.

Kim

I've got exactly the same error on Solaris 2.6. It is fixed in the current
CVS sources (see below response from Vadim Zeitlin).
After copying config* files from the current CVS sources
I was able to compile wxGTK 2.3.1 successfully (samples work etc.).
But after compiling wxPython 2.3.1 I've got the following traceback

Traceback (most recent call last):
  File "wxPython-2.3.1/demo/demo.py", line 3, in ?
    import Main
  File "wxPython-2.3.1/demo/Main.py", line 15, in ?
    from wxPython.wx import *
  File "~/python/lib/python2.1/site-packages/wxPython/__init__.py", line 20, in ?
    import wxc
ImportError: ld.so.1: python: fatal: relocation error: file ~/python/lib/python2.1/site-packages/wxPython/wxc.so: symbol RemoveChild__7wxPanelP12wxWindowBase: referenced symbol not found

Any idea what happens here?

Regards,
Mikhail Terekhov

···

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

From: Vadim Zeitlin (Vadim.zeitlin@dptmaths.ens-cachan.fr)
Subject: Re: installation help
Newsgroups: comp.soft-sys.wxwindows
Date: 2001-08-02 12:45:07 PST

On Thu, 02 Aug 2001 15:40:36 -0400 Doug Farrell <dfarrell@grolier.com> wrote:

./config.status: test: argument expected

Sorry, this is a known (and fixed) bug. Probably the easiest way to fix it
is to get the latest configure from the cvs and use it instead (if you
don't have cvs you may download just this file from
http://cvs.wxwindows.org).

Regards,
VZ

I've got exactly the same error on Solaris 2.6. It is fixed in the current
CVS sources (see below response from Vadim Zeitlin).
After copying config* files from the current CVS sources
I was able to compile wxGTK 2.3.1 successfully (samples work etc.).
But after compiling wxPython 2.3.1 I've got the following traceback

Traceback (most recent call last):
  File "wxPython-2.3.1/demo/demo.py", line 3, in ?
    import Main
  File "wxPython-2.3.1/demo/Main.py", line 15, in ?
    from wxPython.wx import *
  File "~/python/lib/python2.1/site-packages/wxPython/__init__.py", line

20, in ?

    import wxc
ImportError: ld.so.1: python: fatal: relocation error: file

~/python/lib/python2.1/site-packages/wxPython/wxc.so: symbol
RemoveChild__7wxPanelP12wxWindowBase: referenced symbol not found

Any idea what happens here?

Any possibility of old versions of wxGTK lying around? Or the new one not
getting installed properly?

···

--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters?
http://wxPython.org Relax with wxPython!

Robin Dunn wrote:

Any possibility of old versions of wxGTK lying around? Or the new one not
getting installed properly?

You are right! I had 2.3.0 library on my LD_LIBRARY_PATH.
Is there any possibility to link wxGTK library statically into wxc.so?

Regards,
Mikhail Terekhov

Robin Dunn wrote:
>
> Any possibility of old versions of wxGTK lying around? Or the new one

not

> getting installed properly?
>

You are right! I had 2.3.0 library on my LD_LIBRARY_PATH.
Is there any possibility to link wxGTK library statically into wxc.so?

Yes and no. You can build wxGTK as a static lib only and then when wxPython
is linked that is what it will be linked with, but since wxPython is more
than just wxc.so (htmlc.so, gridc.so, etc.) each one would have it's own
copy of wxGTK linked in and that would cause other problems.

···

--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters?
http://wxPython.org Relax with wxPython!