home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / gnu / gcc / help / 2531 next >
Encoding:
Text File  |  1992-11-15  |  2.4 KB  |  70 lines

  1. Newsgroups: gnu.gcc.help
  2. Path: sparky!uunet!convex!darwin.sura.net!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!mitvma.mit.edu!IFF327%DJUKFA11.BITNET
  3. From: IFF327%DJUKFA11.BITNET@mitvma.mit.edu (Mueller-Pfeiffer, Stefan)
  4. Subject: undefined symbols with gcc 2.3.1 on SunOS 4.1.1 Rev B
  5. Message-ID: <9211151700.AA15274@life.ai.mit.edu>
  6. Sender: daemon@cis.ohio-state.edu
  7. Organization: Forschungszentrum Juelich GmbH
  8. Distribution: gnu
  9. Date: Sun, 15 Nov 1992 18:58:52 GMT
  10. Lines: 58
  11.  
  12. Hello world,
  13.  
  14. I have compiled the GNU-C compiler v 2.3.1. on a SparcStation1 running
  15. SunOS 4.1.1 Rev B
  16.  
  17. During an attempt to compile some programs, I discovered the following
  18. problems with the signals, written down in the following little
  19. program:
  20. ------------------------> cut here <-------------------------
  21. #include <signal.h>
  22.  
  23. main()
  24. { int x;
  25.  
  26.   x=1           ;
  27.   (void) sigsetmask(x) ;
  28.   return 0      ;
  29. }
  30. ------------------------> cut here <-------------------------
  31. cd /home/muepf/c-prog/
  32. gcc -Wall -v sigtest.c -o sigtest
  33. Reading specs from /usr/local/lib/gcc-lib/sparc-sun-sunos4.1.1/2.3.1/specs
  34. gcc version 2.3.1
  35.  /usr/local/lib/gcc-lib/sparc-sun-sunos4.1.1/2.3.1/cpp -lang-c -v
  36. -undef -D__GNUC__=2 -Dsparc -Dsun -Dunix -D__sparc__ -D__sun__
  37. -D__unix__ -D__sparc -D__sun -D__unix -Wall sigtest.c
  38. /usr/tmp/cca05770.i
  39. GNU CPP version 2.3.1 (sparc)
  40.  /usr/local/lib/gcc-lib/sparc-sun-sunos4.1.1/2.3.1/cc1
  41. /usr/tmp/cca05770.i -quiet -dumpbase sigtest.c -Wall -version -o
  42. /usr/tmp/cca05770.s
  43. GNU C version 2.3.1 (sparc) compiled by GNU C version 2.3.1.
  44. sigtest.c:4: warning: return-type defaults to `int'
  45.  as -o /usr/tmp/cca057701.o /usr/tmp/cca05770.s
  46.  ld -e start -dc -dp -o sigtest /lib/crt0.o
  47. -L/usr/local/lib/gcc-lib/sparc-sun-sunos4.1.1/2.3.1 -L/usr/local/lib
  48. /usr/tmp/cca057701.o -lgcc -lc -lgcc
  49. /usr/tmp/cca057701.o: Undefined symbol ___sigsetmask referenced from
  50. text segment
  51.  
  52. Compilation exited abnormally with code 1 at Sat Nov 14 20:38:57
  53. ------------------------> cut here <----------------------------
  54.  
  55. The original SUN lib knows only about '_sigsetmask' but not about
  56. not about '___sigsetmaskb'. Did I miss something crucial ?
  57.  
  58. Btw, '___sigblock' isnt't found as well.
  59.  
  60. Please answer rather by mail.
  61.  
  62. Thank you,
  63.  
  64. Stefan
  65.  
  66. Stefan Mueller-Pfeiffer               Juelich Research Centre, Germany
  67. BITNET:  iff327@djukfa11    Internet: iff327@zam001.zam.kfa-juelich.de
  68. KATZ'S LAW: Man and nations will act rationally when all other
  69.             possibilities have been exhausted.
  70.