Gtk-Perl on cygwin?



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.

These are the packages I've installed:
    * cygwin 1.3.3
    * perl 5.6.1
    * glib 1.2.10
    * xfree 4.10
    * gtk 1.2.10
    * db 3.1.17
    * imlib 1.9.11
    * Orbit 1.5.8
    * gnome-libs 1.4.1
    * gnome-common 1.4.1
    * libxml 1.8.16
    * libglade 0.17
    * scrollkeeper 0.2
    * oaf 0.6.5
    * glade 0.6.x
    * xpat 1.95.0
    * gdk-pixbuf 0.13.0
    * XML::Parser 2.29
    * XML::Writer 0.4

When I try to install Gtk-Perl (0.7008), I get tons of "undefined
reference" errors in the linking stage of the various subcomponents.  I can
build the "gtk" subcomponent, all right, but none of the others.

For instance, when I try to make GdkImLib, I get output like:

    rm -f blib/arch/auto/Gtk/Gdk/ImlibImage/ImlibImage.dll
    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
    age/ImlibImage.dll
/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
`newSVMiscRef'
    xs/GdkImlib.o(.text+0x53):GdkImlib.c: undefined reference to `SvMiscRef'
    xs/GdkImlib.o(.text+0x21a):GdkImlib.c: undefined reference to
`pgtk_alloc_temp'
    xs/GdkImlib.o(.text+0x61e):GdkImlib.c: undefined reference to
`pgtk_alloc_temp'
    xs/GdkImlib.o(.text+0xa2f):GdkImlib.c: undefined reference to
`SvGdkPixmap'
    xs/GdkImlib.o(.text+0xc2f):GdkImlib.c: undefined reference to
`SvGdkBitmap'
    xs/GdkImlib.o(.text+0xd7e):GdkImlib.c: undefined reference to
`pgtk_did_we_init_gtk'
    xs/GdkImlib.o(.text+0x2644):GdkImlib.c: undefined reference to
`newSVGdkPixmap'
    xs/GdkImlib.o(.text+0x2884):GdkImlib.c: undefined reference to
`newSVGdkBitmap'
    xs/GdkImlib.o(.text+0x2ac4):GdkImlib.c: undefined reference to
`newSVGdkPixmap'
    xs/GdkImlib.o(.text+0x2ccc):GdkImlib.c: undefined reference to
`newSVGdkBitmap'
    xs/GdkImlib.o(.text+0x2f37):GdkImlib.c: undefined reference to
`UnregisterMisc'
    xs/GdkImlib.o(.text+0x3133):GdkImlib.c: undefined reference to
`UnregisterMisc'
    xs/GdkImlib.o(.text+0x3324):GdkImlib.c: undefined reference to
`UnregisterMisc'
    xs/GdkImlib.o(.text+0x4e15):GdkImlib.c: undefined reference to
`newSVGdkPixmap'
    xs/GdkImlib.o(.text+0x4e8c):GdkImlib.c: undefined reference to
`newSVGdkBitmap'
    xs/GdkImlib.o(.text+0x7570):GdkImlib.c: undefined reference to
`SvGdkWindow'
    xs/GdkImlib.o(.text+0x7a0c):GdkImlib.c: undefined reference to
`SvGdkWindow'
    xs/GdkImlib.o(.text+0x7eb4):GdkImlib.c: undefined reference to
`SvGdkWindow'
    xs/GdkImlib.o(.text+0x8be4):GdkImlib.c: undefined reference to
`SvGdkBitmap'
    xs/GdkImlib.o(.text+0x8eb0):GdkImlib.c: undefined reference to
`SvGdkWindow'
    xs/GdkImlib.o(.text+0xa5fa):GdkImlib.c: undefined reference to
`newSVGdkVisual'
    xs/GdkImlib.o(.text+0xa7de):GdkImlib.c: undefined reference to
`newSVGdkColormap'
    xs/GdkImlib.o(.text+0xb0d8):GdkImlib.c: undefined reference to
`newSVGdkPixmap'
    xs/GdkImlib.o(.text+0xb14f):GdkImlib.c: undefined reference to
`newSVGdkBitmap'
    collect2: ld returned 1 exit status
    dllwrap: gcc exited with status 1
    perlld: *** system() failed to execute
    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

    make: *** [blib/arch/auto/Gtk/Gdk/ImlibImage/ImlibImage.dll] Error 1

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)?

Any help gratefully appreciated.

Michael







-- 
Michael Graham
magog the-wire com



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