xmore in xbase-clients_7.1.ds-3
Hello,
I'm working on testing building X.org 7.1 as it currently is in Debian.
I came across a problem with building xmore in both the 7.0
xbase-clients package and 7.1 package.
The build error is as follows:
gcc -Wall -g -O2 -o xmore xmore-xmore.o -lXaw7 -lXmu -lXt -lX11
-lSM -lICE
xmore-xmore.o(.text+0x64): In function `printshellDestroyXtProc':
./xmore-X11R7.0-1.0.1/xmore.c:153: undefined reference to
`XawPrintDialogClosePrinterConnection'
collect2: ld returned 1 exit status
make[2]: *** [xmore] Error 1
make[2]: Leaving directory
`/root/x71/main/xbase-clients-7.1.ds/xmore-X11R7.0-1.0.1-obj-i486-linux-gnu'
make[1]: *** [all] Error 2
make[1]: Leaving directory
`/root/x71/main/xbase-clients-7.1.ds/xmore-X11R7.0-1.0.1-obj-i486-linux-gnu'
make: *** [build-stamp] Error 1
"XawPrintDialogClosePrinterConnection" is defined in printdialog.h,
which is only included when USE_XPRINT is enabled. The xmore component
is built explicitly with --disable-xprint.
My workaround was to ifdef the line in the function:
static void
printshellDestroyXtProc(Widget w, XtPointer client_data, XtPointer callData)
{
#ifdef USE_XPRINT
XawPrintDialogClosePrinterConnection(printdialog, False);
#endif
}
Anyway, I don't understand how this actually built in Debian's build
farm, but this is probably an upstream thing.
--Pat
Reply to: