Re: libXprintUtil missing in Lion
Re: libXprintUtil missing in Lion
- Subject: Re: libXprintUtil missing in Lion
- From: David Gordon <email@hidden>
- Date: Thu, 29 Dec 2011 09:33:55 -0800 (PST)
Dear Apple,
Our application, consed, is used in the biotechnology industry (among
others) and has about 2000 licenses for macosx out of some 7500 total
licenses. It is built using one of the most common X11 widget
libraries, OpenMotif. The OpenMotif library libXm.a must be linked
with -lXprintUtil, the library you dropped from macosx Lion.
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
Note that this affects not only the 2000 companies and labs using
consed on macosx, but also the users of any other application built
with OpenMotif.
There are solutions, such as each Lion macosx user to independently
install
libXprintUtil. But wouldn't a better solution be for Apple to include
it, solving the problem for everyone with one stroke?
David Gordon
On Thu, 29 Dec 2011, Jeremy Huddleston wrote:
Ask him to contact me directly. He's the developer, not you, so it's his responsibility to act on his bug, and you don't need to be a go-between. I seriously doubt that they are needed since the fuctionality they provide hasn't been supported anywhere for about a decade and never worked on OS X.
As I mentioned before, you can work around this for now by installing that library yourself, so hopefully you are able to work around it.
Sent from my iPad
On Dec 29, 2011, at 10:32, Alex Zelensky <email@hidden> wrote:
Dear Jeremy,
I am returning to this thread I started back in July, as I was contacted by David Gordon (CC-ed), the developer of the academic software I use (Consed), who is receiving a growing number of queries from the Mac users that end up in similar situation as I did after upgrading to Lion.
Back in July I notified David about the deprecation of the libraries, and asked him to test whether they are indeed needed by the software, as you doubted that they were used by anyone. David wrote that the libraries were indeed required by Consed, but I was on vacation and it slipped from my radar.
Since this is a problem for a growing number of people, it would be great if a permanent solution could be found. David is not subscribed to this list, and asked me to "file a bug report". Could you please consider re-including the libraries into Lion X11 distribution, or if they are indeed redundant advise David on how to remove the reliance on them from Consed?
Thanks again for your help.
Best regards,
Alex.
On 26 Jul 2011, at 21:11, Jeremy Huddleston wrote:
You're right. Lion's X11 is missing libXprintAppUtil and libXprintUtil:
/usr/X11/lib/libXprintAppUtil.1.dylib
/usr/X11/lib/libXprintUtil.1.dylib
We kept around old libraries (older versions of libpng, libXp, and libXaw8) in order to not break existing applications, but I was under the impression that libXprintUtil and libXprintAppUtil were only needed by Xprint itself, which is not shipped. I'm surprised that your application is linking against it, and I'm curious what functionality it is trying to use.
Had I known that this would be an issue, I would've kept these libraries in Lion. Are you seeing these problems in any shipped code, or just your own hand-built application in /usr/local?
If you really need these libraries, you can install them yourself from:
http://xorg.freedesktop.org/releases/individual/lib/libXprintAppUtil-1.0.1.tar.bz2
http://xorg.freedesktop.org/releases/individual/lib/libXprintUtil-1.0.1.tar.bz2
but I *highly doubt* that you actually need them, and even if you did need them to build and link your application, those libraries are support libraries for an X11 feature that hasn't been supported for half a decade and is not in any currently shipping code.
I suggest the best fix is to rebuild your application to not use those libraries. If you think these really need to be in Lion, please file a bug report at http://bugreport.apple.com ...
--Jeremy
On Jul 26, 2011, at 11:18 AM, Alex Zelensky wrote:
Hello,
For years I've been using an X11 application, which stopped working after I upgraded to Lion. As I understand X11libs-60 in Lion does not include libXprintUtil, which the application depends on:
dyld: Library not loaded: /usr/X11/lib/libXprintUtil.1.dylib
Referenced from: /usr/local/genome/bin/consed_mac_intel
Reason: image not found
Trace/BPT trap
What would be the best way to solve the problem? I tried copying the file from /Developer/SDKs/MacOSX10.6.sdk/usr/X11/lib/libXprintUtil.1.dylib (the only place I could find it), but got a
dyld: Library not loaded: /usr/X11/lib/libXprintUtil.1.dylib
Referenced from: /usr/local/genome/bin/consed_mac_intel
Reason: no suitable image found. Did find:
/usr/X11/lib/libXprintUtil.1.dylib: mach-o, but wrong filetype
And I couldn't compile the library from the 10.6 tree X11libs-40.3 source package because ./configure script failed ("C compiler cannot create executables").
Will installing XQuartz help? Can I get these xprint libraries from some other source?
Thanks in advance!
Alex.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden