Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Greg Galloway <gregg@eoeml.gtri.gatech.edu>
Subject: Problems with statically linked OSF/1 and system()
Date: Thu, 15 May 1997 16:56:38 -0400	[thread overview]
Message-ID: <199705152056.QAA28081@eoeml.gtri.gatech.edu> (raw)

The following trivial C program does not run correctly on a MicroWay
500MHz Alpha running Red Hat Linux 4.1 when compiled under DEC OSF/1 
3.2 and linked statically (-non_shared):

  #include <stdio.h>

  int main()
  {
    printf("before call to system\n");
    system("echo inside call to system");
    printf("after call to system\n");
    return 0;
  }

Compiled with "cc -non_shared -o systest systest.c" and run under DEC OSF/1
it produces:

  before call to system
  inside call to system
  after call to system

When run under Red Hat 4.1 it produces:

  before call to system
  after call to system

Compiled with "gcc -o systest systest.c" and run under Red Hat 4.1 
it produces:

  before call to system
  inside call to system
  after call to system

Thanks,

Greg
----
Gregory L. Galloway
Research Scientist I

http://eoeml.gtri.gatech.edu/home/gregg/

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

             reply	other threads:[~1997-05-15 20:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-05-15 20:56 Greg Galloway [this message]
1997-05-16 13:39 ` Problems with statically linked OSF/1 and system() Richard Henderson
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox