[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: m68k breakage



> glib2			can't get sizeof(pthread_t)
> gpgme			can't get sizeof(unsigned int) ??! (test prog. coredumps?!)
..
FYI, all of these are related to this problem:
(i've notified the appropriate people a while ago)

a.c:                                         
#include <stdio.h>                            
#include <pthread.h>
#include <sys/types.h>                      
main() {                                   
        FILE *f=fopen("foo", "w");        
        if (!f)                          
                exit(1);                   
        fprintf(f, "%d\n", sizeof(short));
        exit(0);                         
}                                       
                                       
(mvme68k tmp 33)$ cc a.c -o a         
(mvme68k tmp 34)$ ./a                
(mvme68k tmp 35)$ cat foo           
2                                  
(mvme68k tmp 36)$ cc a.c -o a -pthread
(mvme68k tmp 37)$ ./a                
Memory fault (core dumped)          



Visit your host, monkey.org