wxPython build error

I am trying to compile wxPython on Solaris 8, and am
receiving a rather strange error as detailed below. Can
anyone provide any help?

--David

Information of interest:

OS: Solaris 8
Python: 2.3
wxPython: 2.4.1.2
wxWindows: (built-in)
build step: building 'wxc' extension (in setup.py)

I followed the "standard" build process using the local copy
of wxGTK, and am in the process of building wxPython using
the setup.py script. I ran the same build process on a
Linux machine minutes earlier with no problems, the only
difference being different locations of
Python/wxGTK.

Error Text (including command that created it):

···

--------------------------------------------------
c++ -shared build/temp.solaris-2.8-sun4u-2.3/src/helpers.o build/temp.solaris-2.8-sun4u-2.3/src/drawlist.o build/temp.solaris-2.8-sun4u-2.3/src/libpy.o build/temp.solaris-2.8-sun4u-2.3/src/gtk/wx.o build/temp.solaris-2.8-sun4u-2.3/src/gtk/windows.o build/temp.solaris-2.8-sun4u-2.3/src/gtk/windows2.o build/temp.solaris-2.8-sun4u-2.3/src/gtk/windows3.o build/temp.solaris-2.8-sun4u-2.3/src/gtk/events.o build/temp.solaris-2.8-sun4u-2.3/src/gtk/misc.o build/temp.solaris-2.8-sun4u-2.3/src/gtk/misc2.o build/temp.solaris-2.8-sun4u-2.3/src/gtk/gdi.o build/temp.solaris-2.8-sun4u-2.3/src/gtk/mdi.o build/temp.solaris-2.8-sun4u-2.3/src/gtk/controls.o build/temp.solaris-2.8-sun4u-2.3/src/gtk/controls2.o build/temp.solaris-2.8-sun4u-2.3/src/gtk/cmndlgs.o build/temp.solaris-2.8-sun4u-2.3/src/gtk/stattool.o build/temp.solaris-2.8-sun4u-2.3/src/gtk/frames.o build/temp.solaris-2.8-sun4u-2.3/src/gtk/image.o build/temp.solaris-2.8-sun4u-2.3/src/gtk/printfw.o build/temp.solaris-2.8-sun4u-2.3/src/gtk/sizers.o build/temp.solaris-2.8-sun4u-2.3/src/gtk/clip_dnd.o build/temp.solaris-2.8-sun4u-2.3/src/gtk/filesys.o build/temp.solaris-2.8-sun4u-2.3/src/gtk/streams.o build/temp.solaris-2.8-sun4u-2.3/src/gtk/utils.o build/temp.solaris-2.8-sun4u-2.3/src/gtk/fonts.o -L/usr/X11R6/lib -o build/lib.solaris-2.8-sun4u-2.3/wxPython/wxc.so -L/usr/local/wxPython/lib/wxPython/lib -pthreads -Wl,-rpath -Wl,/usr/local/wxPython/lib/wxPython/lib -lwx_gtk-2.4
ld: fatal: file /usr/local/wxPython/lib/wxPython/lib: unknown file type
ld: fatal: File processing errors. No output written to build/lib.solaris-2.8-sun4u-2.3/wxPython/wxc.so
collect2: ld returned 1 exit status
error: command 'c++' failed with exit status 1
--------------------------------------------------

David Morris wrote:

I am trying to compile wxPython on Solaris 8, and am
receiving a rather strange error as detailed below. Can
anyone provide any help?

--David

Information of interest:

OS: Solaris 8
Python: 2.3
wxPython: 2.4.1.2
wxWindows: (built-in)
build step: building 'wxc' extension (in setup.py)

I followed the "standard" build process using the local copy
of wxGTK, and am in the process of building wxPython using
the setup.py script. I ran the same build process on a
Linux machine minutes earlier with no problems, the only
difference being different locations of
Python/wxGTK.

Error Text (including command that created it):

[...]

ld: fatal: file /usr/local/wxPython/lib/wxPython/lib: unknown file type
ld: fatal: File processing errors. No output written to build/lib.solaris-2.8-sun4u-2.3/wxPython/wxc.so
collect2: ld returned 1 exit status
error: command 'c++' failed with exit status 1

The linker doesn't like the rpath option used. The easiest workaround is to not use the --enable-rpath in the wxGTK build, but then you'll have to either use a prefix for a standard lib path, or you'll have to set LD_LIBRARY_PATH before running wxPython apps.

···

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

thing is, I didn't use --enable-rpath....or is this an
option that is set by default and is un-set with something
like --disable-rpath?

--David

···

On Wed, Sep 10, 2003 at 10:57:27AM -0700, Robin Dunn wrote:

David Morris wrote:
>Error Text (including command that created it):
>
[...]
>ld: fatal: file /usr/local/wxPython/lib/wxPython/lib: unknown file type
>ld: fatal: File processing errors. No output written to
>build/lib.solaris-2.8-sun4u-2.3/wxPython/wxc.so
>collect2: ld returned 1 exit status
>error: command 'c++' failed with exit status 1

The linker doesn't like the rpath option used. The easiest workaround
is to not use the --enable-rpath in the wxGTK build, but then you'll
have to either use a prefix for a standard lib path, or you'll have to
set LD_LIBRARY_PATH before running wxPython apps.