* Fatal error in: /usr/lib/cmplrs/cc/cfe compiling pthread
@ 1994-01-26 17:19 Guojun Jin[ITG]
1994-01-27 8:09 ` Han Pilmeyer
0 siblings, 1 reply; 2+ messages in thread
From: Guojun Jin[ITG] @ 1994-01-26 17:19 UTC (permalink / raw)
alpha % more test.c
/* test.c */
#define USE_PTHREAD
int sub()
{}
main(argc, argv)
int argc;
char** argv;
{
#ifdef USE_PTHREAD
#include <pthread.h>
pthread_t pthr;
pthread_create(&pthr, pthread_attr_default, sub, &argc);
#endif
printf("too buggy\n");
}
/* end of the program */
alpha % cc -c test.c
Fatal error in: /usr/lib/cmplrs/cc/cfe Segmentation fault - core dumped
............................................................
What is the compiler doing?
--
/---------------------------------------v-------------------------------\
| Jin Guojun, Imaging Technology | Internet: g_jin@lbl.gov |
| Lawrence Berkeley Laboratory | Usenet: ucbvax!g_jin@lbl.gov |
| | Bitnet: jin%george.lbl.gov@Csa3.LBL.Gov |
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Fatal error in: /usr/lib/cmplrs/cc/cfe compiling pthread
1994-01-26 17:19 Fatal error in: /usr/lib/cmplrs/cc/cfe compiling pthread Guojun Jin[ITG]
@ 1994-01-27 8:09 ` Han Pilmeyer
0 siblings, 0 replies; 2+ messages in thread
From: Han Pilmeyer @ 1994-01-27 8:09 UTC (permalink / raw)
A newer version of the compiler suite does not trap in this way.
Instead it prints this:
/usr/lib/cmplrs/cc/cfe: Warning: t.c, line 15: \
Incompatible pointer type assignment
pthread_create(&pthr, pthread_attr_default, sub, &argc);
--------------------------------------------^
--
Disclaimer: This article reflects my own opinion or guestimate, it is
not necessarily the policy of my employer.
Han Pilmeyer DEC Easynet: ultx03::pilmeyer
Digital Equipment bv Internet: han@athena.uto.dec.com
Utrecht
The Netherlands
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1994-01-27 8:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-01-26 17:19 Fatal error in: /usr/lib/cmplrs/cc/cfe compiling pthread Guojun Jin[ITG]
1994-01-27 8:09 ` Han Pilmeyer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox