From: flint@bike.cs.curtin.edu.au (Daniel Baldoni)
Subject: Problems building X11R5 under SunOS 4.1.1
Organization: Curtin University of Technology
Date: Wed, 26 Aug 1992 03:16:47 GMT

Greetings all.  Some of you may have seen an earlier plea for
help from me - but I cancelled it (believing I had the problem
licked - silly me!).  So, here we go again...

Can anybody explain the following output from 'make World'?

--- Start error report ---
cc -o bmtoa bmtoa.o -O -pipe  -L../.././lib/Xmu -lXmu -L../.././lib/Xt -L../.././extensions/lib -L../.././lib/X -L/usr/local/lib    
ld: Undefined symbol
   _XGetVisualInfo _XFree _XInternAtom _XtMalloc _XGetAtomName _XQueryTree
   _XGetWindowProperty _XAddExtension _XESetCloseDisplay _XAllocColor
   _XFreeColors _XStoreColors _XAllocColorCells _XCreateGC _XCreatePixmap
   _XCopyPlane _XFreeGC _XFreePixmap    _XGetErrorText
   _XGetErrorDatabaseText _XFreeColormap _XKillClient _XDeleteProperty
   _XSync _XGetRGBColormaps _XQueryColors _XFillRectangle _XFillPolygon
   _XFillArcs _XDrawArcs _XSetArcMode _XFillRectangles _XGetGCValues
   _XtGetConstraintResourceList _XtRealloc _XGetWindowAttributes _XtVaSetValues
   _XtName _XtFree _XtTranslateCoords _XtGetResourceList
   _XtWidgetToApplicationContext _XtAppSetTypeConverter _XtOwnSelection
   _XtAppSetWarningMsgHandler _XtGetApplicationResources
   _XtDisplayToApplicationContext _XtIsManaged _XtGetValues _XtAppWarningMsg
   _XtCalloc _XtGetSelectionValue _XtWindowOfObject _XCreatePixmapFromBitmapData
   _XrmPermStringToQuark _XrmGetDatabase _XGetDefault _XrmQGetResource
   _XLookupString _XUngrabServer _XCloseDisplay _XSetCloseDownMode
   _XDisplayString _XGrabServer _XOpenDisplay _XSetRGBColormaps _XGetGeometry
   _XChangeGC _XDrawLine _XShapeCombineMask _XSetForeground _XFillArc
   _XCreateWindow _XDestroyWindow _XAllocStandardColormap _XCreateColormap
   _XtWarning _XtStringConversionWarning _XrmStringToQuark _XtResolvePathname
   _XtErrorMsg _XrmSetDatabase _XtScreenDatabase _XCreateFontCursor
   _XtCvtStringToFont _XRecolorCursor _XCreateGlyphCursor _XCreatePixmapCursor
   _XtWarningMsg _XtDisplayStringConversionWarning _XSetWMNormalHints
   _XGetWMNormalHints _XAllocSizeHints _XtCreateWidget _XtDestroyWidget
*** Error code 2
cc -O -pipe   -I../../.        -target sun4 -c  atobm.c
rm -f atobm
cc -o atobm atobm.o -O -pipe   -L/usr/local/lib    
make: Warning: Target `all' not remade because of errors
Current working directory /usr1/X11R5/mit/clients/bitmap
--- End error report ---

Looking at the link command, I believe it wants the X11 and Xt libraries.
So, why aren't they being used?

It then goes on to successfully build editres, listres and oclock but
a similar catastrophe occurs while trying to build twm and xauth (among
others).

The tree is sitting on a SPARC (running SunOS 4.1.1) with no access to
our earlier X11R5 installation.

I've left all config files alone except site.def:

>>>#ifdef BeforeVendorCF
>>>
>>>/* #define HasGcc YES */
>>>
>>>#define ForceNormalLib YES
>>>
>>>#endif /* BeforeVendorCF */
>>>
>>>#ifdef AfterVendorCF
>>>
>>>#ifdef BuildPex
>>>#undef BuildPex
>>>#endif
>>>#define BuildPex                NO
>>>
>>>#ifdef BuildPexClients
>>>#undef BuildPexClients
>>>#endif
>>>#define BuildPexClients         BuildPex
>>>
>>>#ifdef BuildPexExt
>>>#undef BuildPexExt
>>>#endif
>>>#define BuildPexExt             BuildPex
>>>
>>>#ifdef ProjectRoot
>>>#undef ProjectRoot
>>>#endif
>>>#define ProjectRoot             /usr/local
>>>
>>>#ifdef BinDir
>>>#undef BinDir
>>>#endif
>>>#define BinDir                  Concat(ProjectRoot,/bin/X11)
>>>
>>>#endif /* AfterVendorCF */


This is X11R5 patchlevel 17 (with the sunGX.uu from patch #7).

Thanks for any help anybody can provide (I'm getting *REAL*
desperate on this one).

--
		Daniel Baldoni

--------------------------------------------+----------------------------------
Phone:    +61-9-351-7667                    | School of Computing,
InterNet: flint@cs.curtin.edu.au            | Curtin University of Technology,
--------------------------------------------+ GPO Box U1987, Perth,
#include <std/disclaimer.h>                 | Western Australia, 6001
--------------------------------------------+----------------------------------
"Any time there's something so ridiculous (...) that no rational systems
 programmer would even consider trying it, they send for me"
  - Paraphrased from "King of the Murgos" by David Eddings
Newsgroups: comp.windows.x