Path: utzoo!attcan!uunet!lll-winken!lll-lcc!ames!sgi!calcite!vjs From: vjs@calcite.UUCP (Vernon Schryver) Newsgroups: comp.unix.microport Subject: does gcc work with -lc_s? Keywords: Microport3.0e greenhills shared_libc Message-ID: <30@calcite.UUCP> Date: 2 Nov 88 07:16:12 GMT Organization: Rhyolite Software, Mountain View, CA Lines: 12 My first attempt to use 3.0e's gcc (Greenhill's, not gnu) is with a simple terminal emulator using curses. Compiling with gcc {,-g,-ga} {-OLM,} foo.c -lcurses -lc_s -o foo produces a bad program. After some trivial ioctl(TCSETA)'s, it calls initscr(3X), which seems to call an internal routine (or something sdb can't name), and then suffers a "Segmentation Violation". Compiling without '-lc_s' or with 'cc' instead of 'gcc' produces something which works fine. (Of course, the code is quite portable and passes lint.) Does the gcc in Microport 3.0e understand shared libraries? Vernon Schryver vjs@calcite.uucp ...!sgi!calcite!vjs