home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / linux / 6965 < prev    next >
Encoding:
Text File  |  1992-07-29  |  5.4 KB  |  93 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!usc!aero.org!negaard
  3. From: negaard@aero.org (Eric Negaard)
  4. Subject: Problem with ld?
  5. Message-ID: <NEGAARD.92Jul29095314@fungus.aero.org>
  6. Sender: news@aero.org
  7. Organization: The Aerospace Corporation, El Segundo, CA
  8. Date: Wed, 29 Jul 1992 17:53:14 GMT
  9. Lines: 82
  10.  
  11. I'm having some problems compiling/linking uucp from the mailpak-1.2
  12. sources.  I've only had Linux running for a couple of weeks now, so maybe
  13. I've just got something mis-configured, though I've succesfully compiled
  14. and linked a few small programs to date.
  15.  
  16. The problem is that ld (from the GCC2.2.2 binutils.tar.Z) complains about
  17. "nonexternal relocation code invalid in FILE".  Exactly which FILE it
  18. complains about changes from invocation to invocation.  For example: when I
  19. run make in the uucp directory, it compiles a bunch of .c files to .o
  20. files, then tries to link them into uucico.  Ld complains: "nonexternal
  21. relocation code invalid in file.o".  So I remove file.o, re-run make, which
  22. recompiles file.c.  This time, when linking uucico, it complains
  23. "nonexternal relocation code invalid in sysinf.o".  Next I rebuilt ALL of
  24. the .o files and when linking got "nonexternal relocation code invalid in
  25. port.o".  On one final run, ld failed completely with:
  26. "gcc: Internal compiler error: program ld got fatal signal 11"
  27.  
  28. I'm very confused; does anyone have any ideas about what might
  29. be causing this?
  30.  
  31.         Thanks in advance for any help,
  32.  
  33.             Eric Negaard
  34.  
  35. Here is a script showing the mis-behavior:
  36.  
  37. # make uucico
  38. gcc -c -Wall -Wshadow -Wwrite-strings -O6 -DLIBDIR=\"/usr/lib/uucp\" -DNEWCONFIGLIB=\"/usr/lib/uucp\" -DOLDCONFIGLIB=\"/usr/lib/uucp\"  uucico.c
  39. gcc -Wall -Wshadow -Wwrite-strings -O6   -c prot.c -o prot.o
  40. gcc -Wall -Wshadow -Wwrite-strings -O6   -c protg.c -o protg.o
  41. gcc -Wall -Wshadow -Wwrite-strings -O6   -c protf.c -o protf.o
  42. gcc -Wall -Wshadow -Wwrite-strings -O6   -c prott.c -o prott.o
  43. gcc -Wall -Wshadow -Wwrite-strings -O6   -c prote.c -o prote.o
  44. gcc -c -Wall -Wshadow -Wwrite-strings -O6 -DLIBDIR=\"/usr/lib/uucp\" -DNEWCONFIGLIB=\"/usr/lib/uucp\" -DOLDCONFIGLIB=\"/usr/lib/uucp\"  config.c
  45. gcc -c -Wall -Wshadow -Wwrite-strings -O6 -DLIBDIR=\"/usr/lib/uucp\" -DNEWCONFIGLIB=\"/usr/lib/uucp\" -DOLDCONFIGLIB=\"/usr/lib/uucp\"  v2.c
  46. gcc -c -Wall -Wshadow -Wwrite-strings -O6 -DLIBDIR=\"/usr/lib/uucp\" -DNEWCONFIGLIB=\"/usr/lib/uucp\" -DOLDCONFIGLIB=\"/usr/lib/uucp\"  bnu.c
  47. gcc -Wall -Wshadow -Wwrite-strings -O6   -c file.c -o file.o
  48. gcc -Wall -Wshadow -Wwrite-strings -O6   -c util.c -o util.o
  49. gcc -c -Wall -Wshadow -Wwrite-strings -O6 -DLIBDIR=\"/usr/lib/uucp\" -DNEWCONFIGLIB=\"/usr/lib/uucp\" -DOLDCONFIGLIB=\"/usr/lib/uucp\"  sysinf.c
  50. gcc -c -Wall -Wshadow -Wwrite-strings -O6 -DLIBDIR=\"/usr/lib/uucp\" -DNEWCONFIGLIB=\"/usr/lib/uucp\" -DOLDCONFIGLIB=\"/usr/lib/uucp\"  prtinf.c
  51. gcc -Wall -Wshadow -Wwrite-strings -O6   -c time.c -o time.o
  52. time.c: In function `qttime_parse':
  53. time.c:317: warning: comparison between signed and unsigned
  54. gcc -Wall -Wshadow -Wwrite-strings -O6   -c log.c -o log.o
  55. gcc -Wall -Wshadow -Wwrite-strings -O6   -c chat.c -o chat.o
  56. gcc -Wall -Wshadow -Wwrite-strings -O6   -c port.c -o port.o
  57. gcc -Wall -Wshadow -Wwrite-strings -O6   -c tcp.c -o tcp.o
  58. gcc -Wall -Wshadow -Wwrite-strings -O6   -c parse.c -o parse.o
  59. gcc -Wall -Wshadow -Wwrite-strings -O6   -c copy.c -o copy.o
  60. gcc -c -Wall -Wshadow -Wwrite-strings -O6 -DLIBDIR=\"/usr/lib/uucp\" -DNEWCONFIGLIB=\"/usr/lib/uucp\" -DOLDCONFIGLIB=\"/usr/lib/uucp\"  -DOWNER=\"uucp\" sys1.c
  61. In file included from /usr/include/unistd.h:189, from sys1.c:229:
  62. /usr/include/utime.h:15: warning: declaration of `times' shadows global declaration
  63. sys1.c: In function `isysdep_process_time':
  64. sys1.c:1063: warning: declaration of `stime' shadows global declaration
  65. sys1.c: In function `iswait':
  66. sys1.c:2199: warning: implicit declaration of function `waitpid'
  67. gcc -Wall -Wshadow -Wwrite-strings -O6   -c sys2.c -o sys2.o
  68. In file included from /usr/include/unistd.h:189, from sys2.c:257:
  69. /usr/include/utime.h:15: warning: declaration of `times' shadows global declaration
  70. gcc -Wall -Wshadow -Wwrite-strings -O6   -c sys3.c -o sys3.o
  71. In file included from /usr/include/unistd.h:189, from sys3.c:182:
  72. /usr/include/utime.h:15: warning: declaration of `times' shadows global declaration
  73. gcc -Wall -Wshadow -Wwrite-strings -O6   -c sys4.c -o sys4.o
  74. gcc -Wall -Wshadow -Wwrite-strings -O6   -c version.c -o version.o
  75. gcc -Wall -Wshadow -Wwrite-strings -O6   -c getopt.c -o getopt.o
  76. getopt.c: In function `_getopt_internal':
  77. getopt.c:422: warning: implicit declaration of function `strncmp'
  78. getopt.c:414: warning: `indfound' may be used uninitialized in this function
  79. gcc -Wall -Wshadow -Wwrite-strings -O6 -o uucico uucico.o prot.o protg.o protf.o prott.o prote.o config.o v2.o bnu.o file.o util.o sysinf.o prtinf.o time.o log.o chat.o port.o tcp.o parse.o copy.o sys1.o sys2.o sys3.o sys4.o version.o getopt.o  
  80. ld: nonexternal relocation code invalid in port.o
  81. make: *** [uucico] Error 1
  82. # rm port.o
  83. /bin/rm: remove `port.o'? y
  84. # make uucico
  85. gcc -Wall -Wshadow -Wwrite-strings -O6   -c port.c -o port.o
  86. gcc -Wall -Wshadow -Wwrite-strings -O6 -o uucico uucico.o prot.o protg.o protf.o prott.o prote.o config.o v2.o bnu.o file.o util.o sysinf.o prtinf.o time.o log.o chat.o port.o tcp.o parse.o copy.o sys1.o sys2.o sys3.o sys4.o version.o getopt.o  
  87. gcc: Internal compiler error: program ld got fatal signal 11
  88. make: *** [uucico] Error 1
  89. # which ld
  90. ld is /usr/bin/ld
  91. # l /usr/bin/ld
  92. -rwxr-xr-x   1 root     root        54272 May 17 19:14 /usr/bin/ld*
  93.