Path: utzoo!utgpu!water!watmath!clyde!bellcore!faline!thumper!ulysses!andante!princeton!udel!rochester!bbn!uwmcsd1!marque!uunet!mcvax!unido!infovax!hartl From: hartl@infovax.UUCP Newsgroups: comp.unix.xenix Subject: cc option ND under SCO's 2.1.3 ? - (nf) Message-ID: <42400001@infovax.UUCP> Date: 3 Jun 88 10:07:00 GMT Lines: 40 Nf-ID: #N:infovax:42400001:000:1145 Nf-From: infovax!hartl Jun 3 11:07:00 1988 I need some help compiling a program consisting of many modules (nethack) in large memory model under SCO XENIX V 2.1.3. Since the default data segment was too small to hold all data and the stack, I tried to use the ND option of the compiler to move some data in another data segment. What happened? Segmentation violation - core dumped! I finally isolated the problem in the following few lines (that have obviously nothing to do with nethack): #include main(argc,argv) int argc; char *argv[]; { putchar('a'); } I played around with a lot of combinations of options to get this small program to run when compiled with another than the default data segment in large model. Here are some combinations I tried: -O -Ml2 -ND auxdata -Ml2 -ND auxdata -O -Ml2 -ND auxdata -Au -Ml2 -ND auxdata -Au -O -Ml2 -Gt1 -Ml2 -Gt1 None of these combinations (and many more) worked! Has anyone an idea of what is going wrong here? I badly need help! Otherwise I can't play nethack! ------------------------------------------------------------------------ Anton Hartl ...!uunet!mcvax!unido!tumult!hartl hartl%tumult@unido.uucp