*BSD News Article 6261


Return to BSD News archive

Newsgroups: comp.unix.bsd
Path: sserve!manuel.anu.edu.au!munnari.oz.au!sgiblab!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!hamblin.math.byu.edu!hellgate.utah.edu!fcom.cc.utah.edu!cs.weber.edu!terry
From: terry@cs.weber.edu (A Wizard of Earth C)
Subject: Re: How to compile X386 applications ?
Message-ID: <1992Oct8.205537.2473@fcom.cc.utah.edu>
Sender: news@fcom.cc.utah.edu
Organization: Weber State University  (Ogden, UT)
References: <FZQ793P@mailgzrz.tu-berlin.de>
Date: Thu, 8 Oct 92 20:55:37 GMT
Lines: 32

In article <FZQ793P@mailgzrz.tu-berlin.de> witke@cs.tu-berlin.de (Marius Witke) writes:
>
>Hi,
>
>I tried to compile some small X examples but had no success...
>The linker always complains: 'undefined symbol ... referenced from text
>segment' - and that for all X functions in the program.
>
>I set the LD_LIBRARY_PATH and LD_RUN_PATH to /usr/X386/lib and 
>compiled with options -L/usr/X386/lib and -lX11
>
>What am I doing wrong ???

Use -L to the linker to specify /usr/X386/lib, and -lX, etc. to pick
libraries from the directory.

"LD_LIBRARY_PATH" and "LD_RUN_PATH" are for shared libraries on Sun
systems, and are used for linking shared and runtime loading of libraries,
respectively.  Neither is currently applicable to 386BSD.


					Terry Lambert
					terry@icarus.weber.edu
					terry_lambert@novell.com
---
Any opinions in this posting are my own and not those of my present
or previous employers.
-- 
-------------------------------------------------------------------------------
                                        "I have an 8 user poetic license" - me
 Get the 386bsd FAQ from agate.berkeley.edu:/pub/386BSD/386bsd-0.1/unofficial
-------------------------------------------------------------------------------