Re: libXprintUtil missing in Lion
Re: libXprintUtil missing in Lion
- Subject: Re: libXprintUtil missing in Lion
- From: Martin Costabel <email@hidden>
- Date: Thu, 29 Dec 2011 19:20:21 +0100
On 29/12/11 18:33, David Gordon wrote:
[]
If -lXprintUtil is excluded from the command line, the linker gives
these errors:
Undefined symbols:
"_XpEndPage", referenced from:
_PrintNotifyHandler in libXm.a(PrintS.o)
"_XShapeQueryExtension", referenced from:
_DisplayInitialize in libXm.a(Display.o)
"_XpGetPdmStartParams", referenced from:
_XmPrintPopupPDM in libXm.a(PrintS.o)
"_XpGetPageDimensions", referenced from:
_ResourcesUpdate in libXm.a(PrintS.o)
"_XpQueryExtension", referenced from:
__XmPutScaledImage in libXm.a(ImageCache.o)
_Initialize in libXm.a(PrintS.o)
"_XShapeCombineRectangles", referenced from:
__XmDragOverFinish in libXm.a(DragOverS.o)
_DragOverShellPunchHole in libXm.a(DragOverS.o)
"_XpGetScreenOfContext", referenced from:
_Initialize in libXm.a(PrintS.o)
"_XpStartPage", referenced from:
_PrintNotifyHandler in libXm.a(PrintS.o)
"_XpSelectInput", referenced from:
_SelectXpEvents in libXm.a(PrintS.o)
"_XpEndJob", referenced from:
_PrintNotifyHandler in libXm.a(PrintS.o)
"_XpGetOneAttribute", referenced from:
__XmPutScaledImage in libXm.a(ImageCache.o)
_ResourcesUpdate in libXm.a(PrintS.o)
"_XShapeCombineMask", referenced from:
_DragOverShellPunchHole in libXm.a(DragOverS.o)
_DragOverShellPunchHole in libXm.a(DragOverS.o)
"_XpGetContext", referenced from:
__XmPutScaledImage in libXm.a(ImageCache.o)
_SelectXpEvents in libXm.a(PrintS.o)
_Initialize in libXm.a(PrintS.o)
_Destroy in libXm.a(PrintS.o)
_FilePipeCB in libXm.a(PrintS.o)
_XmPrintToFile in libXm.a(PrintS.o)
_XmPrintPopupPDM in libXm.a(PrintS.o)
"_XpGetDocumentData", referenced from:
_XmPrintToFile in libXm.a(PrintS.o)
"_XpSetImageResolution", referenced from:
__XmPutScaledImage in libXm.a(ImageCache.o)
__XmPutScaledImage in libXm.a(ImageCache.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [consed] Error 1
Is any of these symbols actually defined in libXprintUtil? The 5 or 6 I
looked up were either defined in libXp or in libXext. See for exaple
<http://xprint.mozdev.org/docs/man/XpGetScreenOfContext.3.html>. As far
as I understand (I am not on 10.7 right now, so I can't check, please
correct me if I am wrong) these libs still exist in Lion. The only
function of -lXprintUtil in this context seems to be that libXprintUtil
is linked with libXp and libXext, so it pulls these two libs in indirectly.
If I am right, you can simply replace -lXprintUtil by -lXp -lXext.
--
Martin
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden