🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #642

undefined symbols with gcc 2.3.1 on SunOS 4.1.1 Rev B

#642
From: Mueller-Pfeiffer, Stefan
Date: Sun, 15 Nov 1992 18:58
58 lines
2538 bytes
Hello world,

I have compiled the GNU-C compiler v 2.3.1. on a SparcStation1 running
SunOS 4.1.1 Rev B

During an attempt to compile some programs, I discovered the following
problems with the signals, written down in the following little
program:
------------------------> cut here <-------------------------
#include <signal.h>

main()
{ int x;

  x=1           ;
  (void) sigsetmask(x) ;
  return 0      ;
}
------------------------> cut here <-------------------------
cd /home/muepf/c-prog/
gcc -Wall -v sigtest.c -o sigtest
Reading specs from /usr/local/lib/gcc-lib/sparc-sun-sunos4.1.1/2.3.1/specs
gcc version 2.3.1
 /usr/local/lib/gcc-lib/sparc-sun-sunos4.1.1/2.3.1/cpp -lang-c -v
-undef -D__GNUC__=2 -Dsparc -Dsun -Dunix -D__sparc__ -D__sun__
-D__unix__ -D__sparc -D__sun -D__unix -Wall sigtest.c
/usr/tmp/cca05770.i
GNU CPP version 2.3.1 (sparc)
 /usr/local/lib/gcc-lib/sparc-sun-sunos4.1.1/2.3.1/cc1
/usr/tmp/cca05770.i -quiet -dumpbase sigtest.c -Wall -version -o
/usr/tmp/cca05770.s
GNU C version 2.3.1 (sparc) compiled by GNU C version 2.3.1.
sigtest.c:4: warning: return-type defaults to `int'
 as -o /usr/tmp/cca057701.o /usr/tmp/cca05770.s
 ld -e start -dc -dp -o sigtest /lib/crt0.o
-L/usr/local/lib/gcc-lib/sparc-sun-sunos4.1.1/2.3.1 -L/usr/local/lib
/usr/tmp/cca057701.o -lgcc -lc -lgcc
/usr/tmp/cca057701.o: Undefined symbol ___sigsetmask referenced from
text segment

Compilation exited abnormally with code 1 at Sat Nov 14 20:38:57
------------------------> cut here <----------------------------

The original SUN lib knows only about '_sigsetmask' but not about
not about '___sigsetmaskb'. Did I miss something crucial ?

Btw, '___sigblock' isnt't found as well.

Please answer rather by mail.

Thank you,

Stefan

Stefan Mueller-Pfeiffer               Juelich Research Centre, Germany
BITNET:  iff327@djukfa11    Internet: iff327@zam001.zam.kfa-juelich.de
KATZ'S LAW: Man and nations will act rationally when all other
            possibilities have been exhausted.
Technical Details
Message-ID: <9211151700.AA15274@life.ai.mit.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!convex!darwin.sura.net!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!mitvma.mit.edu!IFF327%DJUKFA11.BITNET

Show Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.help
Path: arc1-ca.pugleaf.net!sparky!uunet!convex!darwin.sura.net!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!mitvma.mit.edu!IFF327%DJUKFA11.BITNET
From: IFF327%DJUKFA11.BITNET@mitvma.mit.edu (Mueller-Pfeiffer, Stefan)
Subject: undefined symbols with gcc 2.3.1 on SunOS 4.1.1 Rev B
Message-ID: <9211151700.AA15274@life.ai.mit.edu>
Sender: daemon@cis.ohio-state.edu
Organization: Forschungszentrum Juelich GmbH
Distribution: gnu
Date: Sun, 15 Nov 1992 18:58:52 GMT
Lines: 58