Re: Gtk-Perl on cygwin?

On 11/03/01 Michael Graham wrote:
I'm trying to get Gtk-Perl to install under cygwin (on Windows 2000).  I've
got Cygwin, Perl, X, Gnome and Glade all running, but I can't seem to
compile Gtk-Perl. I think I'm having linking problems of some sort.
    LD_RUN_PATH="/usr/local/lib:/usr/lib:/usr/X11R6/lib" ld2  -s
-L/usr/local/lib xs/GdkImlib.o  -o blib/arch/auto/Gtk/Gdk/ImlibIm
/usr/lib/perl5/5.6.1/cygwin-multi/CORE/libperl5_6_1.a -L/usr/X11R6/lib
-L/usr/local/lib -lgdk_imlib -ljpeg
     -ltiff -lpng -lz -lgtk -lgdk -lgmodule -lglib -lintl -lXext -lX11 -lm
    dllwrap --dllname ImlibImage.dll --driver-name gcc --dlltool dlltool
--export-all-symbols --as as --output-def libImlibImage.d
    ef --output-lib libImlibImage.a \
    -s -L/usr/local/lib xs/GdkImlib.o
/usr/lib/perl5/5.6.1/cygwin-multi/CORE/libperl5_6_1.a -L/usr/X11R6/lib
-L/usr/local/lib -lg
    dk_imlib -ljpeg -ltiff -lpng -lz -lgtk -lgdk -lgmodule -lglib -lintl
-lXext -lX11 -lm
    dllwrap: no export definition file provided
    dllwrap: creating one, but that may not be what you want
    xs/GdkImlib.o(.text+0x36):GdkImlib.c: undefined reference to
These appear to be symbols that are within Gtk-Perl itself (and not in some
missing external library or something).  I wonder if it's the way libraries
are built under cygwin (i.e. via dllwrap)?

The undefined symbols are actually defined in the Gtk subcomponent
and resolved at runtime when that is loaded.
Could you check in the docs if in cygwin it's possible to create the
dll with undefined symbols (maybe a dllwrap command line flag or
something like that), it may just work if you enable that.
Or you can try adding to the command that links the submodule the path
to the Gtk submodule itself (try it in a console, we may worry how to do
that with MakeMaker when/if it actually works).


lupus debian org                                     debian/rules
lupus ximian com                             Monkeys do it better

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]