home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / unix / bsd / 11096 < prev    next >
Encoding:
Internet Message Format  |  1993-01-10  |  1.7 KB

  1. Xref: sparky comp.unix.bsd:11096 fj.os.386bsd:249
  2. Path: sparky!uunet!ccut!s.u-tokyo!kuis!wnoc-kyo!sh.wide!wnoc-tyo-news!news.u-tokyo.ac.jp!yayoi!tansei1!mhiroshi
  3. From: mhiroshi@tansei.cc.u-tokyo.ac.jp (H. Murakami)
  4. Newsgroups: comp.unix.bsd,fj.os.386bsd
  5. Subject: [386bsd] Strange behavior of the system.
  6. Message-ID: <3871@tansei1.tansei.cc.u-tokyo.ac.jp>
  7. Date: 10 Jan 93 16:35:37 GMT
  8. Sender: news@tansei.cc.u-tokyo.ac.jp
  9. Followup-To: comp.unix.bsd
  10. Organization: Hokkaido Univ. However I am subject to tansei for JUNET.
  11. Lines: 40
  12.  
  13. To: comp.unix.bsd,fj.os.386bsd
  14. Subject: [386bsd] Strange behavior of the system.
  15.  
  16. I encountered a unbelieavable behavior of the system now.
  17. If I linked the object files using gcc2 then the executable
  18. outputs just two warning.
  19. However, if I make the object archive first, and then
  20. link is made using the gcc2 for the object and the library,
  21. the result is different!
  22.  
  23. How this can be possible????
  24.  
  25.  
  26.  
  27. Script started on Sun Jan 10 11:50:05 1993
  28. % ls -l *.o
  29. -rw-r--r--    1 hiroshi       779 Jan 10 11:46 atof.o
  30. -rw-r--r--    1 hiroshi     70373 Jan 10 11:46 enquire.o
  31. -rw-r--r--    1 hiroshi      8045 Jan 10 11:46 vfprintf.o
  32. % gcc2 enquire.o atof.o vfprintf.o -o a.out
  33. % a.out | grep WARNING
  34. *** WARNING: Possibly bad output from printf above
  35. *** WARNING: Possibly bad output from printf above
  36. % rm mylib.a
  37. % ar ruv mylib.a atof.o vfprintf.o
  38. ar: creating archive mylib.a.
  39. a - atof.o
  40. a - vfprintf.o
  41. % ranlib mylib.a
  42. % gcc2 enquire.o mylib.a -o a.out
  43. % a.out | grep WARNING
  44. *** WARNING: Possibly bad output from printf above
  45. *** WARNING: Possibly bad output from printf above
  46. *** WARNING: Possibly bad output from printf above
  47. *** WARNING: Possibly bad output from printf above
  48. % exit
  49. Script done on Sun Jan 10 11:51:12 1993
  50.