Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Dec 1997 05:51:24 -0800 (PST)
From:      asami@cs.berkeley.edu (Satoshi Asami)
To:        ports@freebsd.org
Subject:   FWF
Message-ID:  <199712041351.FAA01480@silvia.HIP.Berkeley.EDU>

next in thread | raw e-mail | index | archive | help
Has anyone seen this port fail unreliably?  I just got this:

===
gcc -o ../../bin/TextMenuT -O      -L/usr/X11R6/lib TextMenu.o TextMenuT.o ../../lib/libfwf.a -lXpm ../../lib/libDir.a -lXpm     -lXaw -lXmu -L/usr/X11R6/lib -lXt -lX11 -lXt -lSM -lICE -lXext -lX11 
TextMenuT.o: Undefined symbol `_xfwfButtonWidgetClass' referenced from text segment
TextMenuT.o: Undefined symbol `_xfwfButtonWidgetClass' referenced from text segment
TextMenuT.o: Undefined symbol `_xfwfButtonWidgetClass' referenced from text segment
TextMenuT.o: Undefined symbol `_xfwfButtonWidgetClass' referenced from text segment
TextMenuT.o: Undefined symbol `_xfwfButtonWidgetClass' referenced from text segment
*** Error code 1
===

Looking back in the log, the relevant parts are:

===
 :
ar qc ../../lib/libfwf.a Label.o
ranlib ../../lib/libfwf.a
cp ./Label.man ../../man/Label.man
cp ./LabelT.man ../../man/LabelT.man
building objects in src/Button...
rm -f Button.o
gcc -c -I../../include -I/usr/X11R6/include -O     -I/usr/X11R6/include -I/include  -DCSRG_BASED   -DFUNCPROTO=15 -DNARROWPROTO   Button.c
rm -f ButtonT.o
gcc -c -I../../include -I/usr/X11R6/include -O     -I/usr/X11R6/include -I/include  -DCSRG_BASED   -DFUNCPROTO=15 -DNARROWPROTO   ButtonT.c
cp ./Button.man ../../man/Button.man
cp ./ButtonT.man ../../man/ButtonT.man
building objects in src/RowCol...
rm -f RowCol.o
gcc -c -I../../include -I/usr/X11R6/include -O     -I/usr/X11R6/include -I/include  -DCSRG_BASED   -DFUNCPROTO=15 -DNARROWPROTO   RowCol.c
rm -f RowColT.o
gcc -c -I../../include -I/usr/X11R6/include -O     -I/usr/X11R6/include -I/include  -DCSRG_BASED   -DFUNCPROTO=15 -DNARROWPROTO   RowColT.c
Adding RowCol.o To Library ../../lib/libfwf.a
ar qc ../../lib/libfwf.a RowCol.o
ranlib ../../lib/libfwf.a
 :
===

Note that the "ar/ranlib" commands are missing for the button widget
class.

The Makefile doesn't look exactly suspicious:

===
 :
WIDGET = Button
 :
LIB_OBJS = $(WIDGET).o
 :
$(FWF_LIBDIR)/$(FWF_LIBNAME):: $(LIB_OBJS)
	-@(if [ ! -f $(FWF_LIBDIR)/$(FWF_LIBNAME) ]; then \
	$(MKDIRHIER) $(FWF_LIBDIR) ; \
	fi; exit 0)
	@echo Adding $(LIB_OBJS) To Library $(FWF_LIBDIR)/$(FWF_LIBNAME)
	$(ARMERGE) $(FWF_LIBDIR)/$(FWF_LIBNAME) $(LIB_OBJS)
	$(RANLIB) $(FWF_LIBDIR)/$(FWF_LIBNAME)
 :
===

The problem is that this error is not reproducible, and it fails in
all sorts of different places.  Also, sometimes it fails, sometimes it
doesn't.  It usually works better with a close to empty /usr/X11R6.

Any ideas? ;<

Satoshi



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199712041351.FAA01480>