home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / linux / 22832 < prev    next >
Encoding:
Text File  |  1993-01-06  |  3.1 KB  |  77 lines

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