[comp.unix.programmer] SYSV -> SUN Compile problem

Bron@cup.portal.com (George Bron Faison) (05/15/91)

I am attempting to port some code originally developed under a System
V environment to the SUN 4.1 OS.  Everything seems to compile fine, but
when I try to execute the resulting binary it fairly quickly fails
with a Signal 11 (Segment Violation) error.

I have only intermittent access to a SUN system and haven't been able
to run any sort of debugger on this.  I can tell that it makes it through
at least some of the initialization code.  I've tried compiling noth with
and without the "SYSV enhancements" and the /bin/5/cc.  I've tried 
various combinations of defines to accomodate BSD'isms, etc.

I am in the process of seeking help from SUN engineers, but thought
someone might have some ideas...there are lots of ld switches and
things in the SUN environment that I'm not familiar with and just in
case it might be something simple that I'm overlooking, thought I'd
post this.

Anyhelp much appreciated.

Bron	(bron@cup.portal.com)