Problem linking /usr/lib/libdps.a

Michael Hucka hucka at engin.umich.edu
Tue Feb 19 03:03:28 AEST 1991


This question probably has a straightforward answer, but I'm at wit's end
trying to figure out what it is.  

I'm trying to get display postscript working with an X program (specifically
xtex) on an RS/6000, and need to link with /usr/lib/libdps.a.  We've
installed the recent patches to get X11R4 running.  It compiles with few
problems, using bsdcc.  But when I try to run it:

> xtex foo.dvi
Could not load program xtex 
Could not load library libdps.a[libdps.o]
Error was: No such file or directory

And yet,

> ls -l /usr/lib/libdps.a
-rwxr-xr-x   1 bin      bin       412484 Jul 21 1990  /usr/lib/libdps.a*
> ar tv /usr/lib/libdps.a
rwxr-xr-x   300/300   383828 Jul 21 22:37 1990 libdps.o

Here is the output of the final link phase of xtex (the lines are folded here):

> bsdcc -v -o xtex xtex.o widgets.o  file.o dialog.o dvi-simple.o  page.o
       x11fonts.o mark.o  DviPage.o DviPage2.o Valuator.o  EzMenu.o EzME.o
       SmeLine.o -g  ../libtex/libtex.a /usr/lib/libdps.a /usr/lib/libXext.a
       -lasl -L/usr/um/X11R4/lib -lXaw -lXmu -lXt -lXext -lX11 -lm 	 
exec:/bin/ld(ld,-H512,-T512,-bnodelcsect,-bhalt:4,-o,xtex,-L/usr/um/X11R4/lib,
    /lib/crt0.o,xtex.o,widgets.o,file.o,dialog.o,dvi-simple.o,page.o,x11fonts.o,
    mark.o,DviPage.o,DviPage2.o,Valuator.o,EzMenu.o,EzME.o,SmeLine.o,
    ../libtex/libtex.a,/usr/lib/libdps.a,/usr/lib/libXext.a,-lasl,-lXaw,-lXmu,-lXt,
    -lXext,-lX11,-lm,-lg,-bexport:/usr/lib/libg.exp,-lbsd,-lc,NULL)

I've tried all kinds of things:
  * searching through InfoExplorer for more info
  * playing with compiler/linker flags (e.g., -bnso)
  * setting LIBPATH to different combinations of ., /lib, /usr/lib
  * copying /usr/lib/libdps.a to the current directory (!?)

I would appreciate any help or ideas with this.

Mike
--
Mike Hucka                     | Internet: hucka at caen.engin.umich.edu    
University of Michigan AI Lab  | 1101 Beal Ave., Ann Arbor, MI 48109 



More information about the Comp.unix.aix mailing list