home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.linux
- Path: sparky!uunet!gatech!destroyer!cs.ubc.ca!uw-beaver!news.u.washington.edu!serval!hlu
- From: hlu@eecs.wsu.edu (H.J. Lu)
- Subject: ANSWER: (Re: Can't get the GCC 2.3.3 to work right. :()
- Message-ID: <1993Jan5.204907.21735@serval.net.wsu.edu>
- Sender: news@serval.net.wsu.edu (USENET News System)
- Organization: School of EECS, Washington State University
- References: <9301051814.AA29042@deepthought.cs.utexas.edu>
- Date: Tue, 5 Jan 93 20:49:07 GMT
- Lines: 65
-
- In article <9301051814.AA29042@deepthought.cs.utexas.edu>, STDN%MARIST.bitnet@YaleVM.YCC.Yale.Edu (Dan Newcombe) writes:
- |> Last night I installed the lib.so.4.2 stuff and gcc 2.3.3
- |> I didn't seem to have any problems with the lib stuff.
- |> (I installed the Image-4.2.tar.Z file and the include files,
- |> and the extra-4.2.tar.Z files. The jump-4.2.tz looked like it
- |> was just stuff to make the other libraries. I then untarred
- |> gcc 2.3.3. I was able to compile programs, but when I compiled
- |> my xhello program (4 #include's and 5 lines of code) it gave me an
- |> exec that was over 500K (using 2.2.2 the exec was about 15K!)
- |> What would cause this? I tried to compile it with the
- |> -L/usr/lib/shlib/jump option (which worked under 2.2.2) but that
- |> gave me an error saying something close to:
- |> (crt0.o) : Undefined symbol __envrion referenced from text segment.
- |>
- |> Any help is appreciated.
- |>
- |> -Dan
- |>
- |> Dan Newcombe
- |> stdn@vm.marist.edu kk4d@maristb.marist.edu
- |> dnewcomb@cybernet.cse.fau.edu And others...
- |> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- |> - Real programmers like vending machine popcorn. Coders pop it in the
- |> microwave oven. Real programmers use the heat given off by the cpu.
- |> They can tell what job is running just by listening to the rate of popping.
-
- This is from updated relaese notes for libc 4.2.
-
- ------------
- Please get the latest binutils.TZ from tsx-11.mit.edu if you cannot
- get your binaries linked with the shared libraries. Starting with this
- release, I used a new structure for libraries. The different versions
- of each library, i.e., static, jump table and classic shared library,
- are in the same directory, /usr/lib. To illustrate, if the library is
- named foo, then the static version is libfoo.a. The jump table version
- is libfoo.sa and the classic version is libfoo.ca. The new `ld', which
- is in binutils.TZ and on the third disk of the Linux Base System on
- tsx-11.mit.edu, searches for the jump table library by default. You
- can overwrite it by adding -static or -nojump to `ld' or 'gcc'. The
- jump table and classic versions are not compatible with each other.
- The static library should be used as a last resort. You can rename your
- old shared libraries, notablely Xfree386, to fit the new scheme. The
- script should look something like that:
-
- ----------
- #!/bin/sh
-
- cd /usr/X386/lib
- for l in shlib/jump/*
- do
- s=`basename $l .a`
- mv $l $s.sa
- done
- for l in shlib/nojump/*
- do
- s=`basename $l .a`
- mv $l $s.ca
- done
- ----------
-
- Please make sure it works right before you run it.
-
- -------------
-
- H.J.
-