Subject: p5-gtk pkgsrc b0rkenb0rken?
To: None <netbsd-help@netbsd.org>
From: Bob Bernstein <rs@bernstein.providence.ri.us>
List: netbsd-help
Date: 09/05/2003 14:01:53
Hi. 1.6X here. Brandy new cvs pkgsrc tree too.=20

It starts out per usual like so:

=3D=3D=3D> Extracting for p5-gtk-0.7008nb2
=3D=3D=3D> Required installed package perl>=3D5.0: perl-5.8.0nb2 found
=3D=3D=3D> Required installed package gtk+>=3D1.2.10nb5: gtk+-1.2.10nb5 fou=
nd
=3D=3D=3D> Required installed package glib>=3D1.2.10nb5: glib-1.2.10nb5 fou=
nd
=3D=3D=3D> Required installed package p5-XML-Parser-[0-9]*: p5-XML-Parser-2=
.31 found
=3D=3D=3D> Required installed package p5-XML-Writer-[0-9]*: p5-XML-Writer-0=
.4 found
=3D=3D=3D> Required installed package x11-links>=3D0.12: x11-links-0.12 fou=
nd
=3D=3D=3D> Patching for p5-gtk-0.7008nb2
=3D=3D=3D> Applying pkgsrc patches for p5-gtk-0.7008nb2
=3D=3D=3D> Overriding tools for p5-gtk-0.7008nb2
=3D=3D=3D> Buildlinking for p5-gtk-0.7008nb2
=3D=3D=3D> Configuring for p5-gtk-0.7008nb2
Located Gtk version 1.2.10...
Invoking gendefs.pl with [gtk-0.99.defs, gtk-1.0.defs, gtk-1.1.defs, gtk-1.=
1.1.defs, gtk-1.1.3.defs, gtk-1.1.4.defs, gtk-1.1.6.defs, gtk-1.2.defs].
Please wait, this may take a moment...
[snip]

Then there's a lot of this "overriding" stuff:

Dir ||
Overriding object `GtkButton'
Overriding flags `GtkSpinButtonUpdatePolicy'
Overriding object `GtkProgressBar'
Overriding enum `GdkEventType'
Dir ||
Overriding flags `GtkSpinButtonUpdatePolicy'
Overriding object `GtkProgressBar'
Overriding enum `GtkScrollType'
Overriding enum `GtkTroughType'
Overriding enum `GtkVisibility'
Overriding object `GtkProgress'
Overriding object `GtkProgressBar'
[snip]

and finally,

Running Mkbootstrap for Gtk ()
chmod 644 Gtk.bs
rm -f blib/arch/auto/Gtk/Gtk.so
LD_RUN_PATH=3D"/usr/X11R6/lib:/usr/pkg/lib:/usr/lib" cc  --whole-archive -s=
hared  -Wl,-R/usr/pkg/lib -Wl,-R/opt/pkg/lib -L/usr/pkg/lib xs/GtkMenuBar.o=
 xs/GtkCheckMenuItem.o xs/Gtk-1.2.o xs/GtkMenuItem.o xs/GtkCombo.o xs/GtkTo=
ggleButton.o xs/GtkCTree.o xs/GtkRange.o xs/GtkAlignment.o xs/GtkRadioButto=
n.o xs/GtkLabel.o xs/GtkPreview.o xs/GtkMenuShell.o xs/GtkAspectFrame.o xs/=
GtkObject.o xs/GtkVScrollbar.o xs/GtkFileSelection.o xs/GtkHRuler.o xs/GtkA=
rrow.o xs/GtkSocket.o xs/GtkViewport.o xs/GtkBox.o xs/GtkEntry.o xs/GtkTree=
.o xs/GtkList.o xs/GtkBin.o xs/GtkVRuler.o xs/GtkScrollbar.o xs/GtkFontSele=
ction.o xs/GtkSelection.o xs/GtkItem.o xs/GtkItemFactory.o xs/GtkOptionMenu=
.o xs/GtkDrawingArea.o xs/GtkAccelGroup.o xs/GtkWindow.o xs/GtkTooltips.o x=
s/GtkStatusbar.o xs/GtkEventBox.o xs/GtkTreeItem.o xs/GtkCalendar.o xs/GtkI=
mage.o xs/GtkPaned.o xs/GtkFrame.o xs/GtkPlug.o xs/GtkHScale.o xs/GtkVPaned=
.o xs/GtkSeparator.o xs/GtkScale.o xs/GtkAccelLabel.o xs/GtkProgressBar-1.1=
.o xs/GtkToolbar-1.1.6.o xs/GtkCList-1.2.o xs/GtkContainer.o xs/GtkMenu.o x=
s/GtkNotebook.o xs/GtkHBox.o xs/GtkToolbar.o xs/GtkCList.o xs/GtkTipsQuery.=
o xs/GtkCurve.o xs/GtkHScrollbar.o xs/GtkVButtonBox.o xs/Gtk-1.1.o xs/GtkCh=
eckButton.o xs/GtkHPaned.o xs/Gtk.o xs/GtkVScale.o xs/GtkTable.o xs/GtkProg=
ressBar.o xs/GtkDialog.o xs/GtkData.o xs/GtkPacker.o xs/GtkVBox.o xs/GtkTex=
t.o xs/GtkHandleBox.o xs/GtkHButtonBox.o xs/GtkInputDialog.o xs/GtkRuler.o =
xs/GtkColorSelectionDialog.o xs/GtkFixed.o xs/GtkTearoffMenuItem.o xs/GtkFo=
ntSelectionDialog.o xs/GtkLayout.o xs/GtkAdjustment.o xs/GtkPixmap.o xs/Gtk=
ColorSelection.o xs/GtkButtonBox.o xs/GtkVSeparator.o xs/GtkScrolledWindow.=
o xs/GtkGammaCurve.o xs/GtkProgress.o xs/GtkListItem.o xs/GtkButton.o xs/Gt=
kMisc.o xs/GtkSpinButton.o xs/GtkHSeparator.o xs/GtkRadioMenuItem.o xs/GtkE=
ditable.o xs/GtkInvisible.o xs/GtkWidget.o GdkTypes.o build/PerlGtkExt.o Mi=
scTypes.o Derived.o GtkTypes.o build/GtkDefs.o  -o blib/arch/auto/Gtk/Gtk.s=
o   -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -Wl,-R/usr/X11R6/lib -L/usr/X11R6/lib=
 -lgtk -lgdk -lgmodule -lglib -lintl -lXi -lXext -lX11 -lm -L/usr/pkg/lib/p=
erl5/5.8.0/i386-netbsd/CORE -Wl,-R/usr/pkg/lib/perl5/5.8.0/i386-netbsd/CORE=
 -lperl =20
cc: xs/GtkMenuBar.o: No such file or directory
cc: xs/GtkCheckMenuItem.o: No such file or directory
cc: xs/Gtk-1.2.o: No such file or directory
cc: xs/GtkMenuItem.o: No such file or directory
cc: xs/GtkCombo.o: No such file or directory
cc: xs/GtkToggleButton.o: No such file or directory
cc: xs/GtkCTree.o: No such file or directory
[snip]

=2E..with seemingly endless repetitions of this kind of thing, until,

cc: xs/GtkInvisible.o: No such file or directory
cc: xs/GtkWidget.o: No such file or directory
cc: build/PerlGtkExt.o: No such file or directory
cc: build/GtkDefs.o: No such file or directory
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/x11/p5-gtk/work/Gtk-Perl-0.7008/Gtk
*** Error code 1

What's interesting is that all the "No such file" object files seem to
be one level up in the work/ dir tree, i.e. the .o files not found in
xs/ are in /usr/pkgsrc/x11/p5-gtk/work/Gtk-Perl-0.7008/Gtk:

# ls /usr/pkgsrc/x11/p5-gtk/work/Gtk-Perl-0.7008/Gtk/*.o
/usr/pkgsrc/x11/p5-gtk/work/Gtk-Perl-0.7008/Gtk/Derived.o
/usr/pkgsrc/x11/p5-gtk/work/Gtk-Perl-0.7008/Gtk/GdkTypes.o
/usr/pkgsrc/x11/p5-gtk/work/Gtk-Perl-0.7008/Gtk/Gtk-1.1.o
/usr/pkgsrc/x11/p5-gtk/work/Gtk-Perl-0.7008/Gtk/Gtk-1.2.o
/usr/pkgsrc/x11/p5-gtk/work/Gtk-Perl-0.7008/Gtk/Gtk.o
/usr/pkgsrc/x11/p5-gtk/work/Gtk-Perl-0.7008/Gtk/GtkAccelGroup.o
/usr/pkgsrc/x11/p5-gtk/work/Gtk-Perl-0.7008/Gtk/GtkAccelLabel.o
/usr/pkgsrc/x11/p5-gtk/work/Gtk-Perl-0.7008/Gtk/GtkAdjustment.o
[snip]

=2E..etc, etc.


Any help would be much appreciated!

--=20
Bob Bernstein