From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <199705152056.QAA28081@eoeml.gtri.gatech.edu> Date: Thu, 15 May 1997 16:56:38 -0400 From: Greg Galloway Subject: Problems with statically linked OSF/1 and system() 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 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