From: Dave G. <dav...@st...> - 2006-02-20 14:50:26
|
I=B9m trying to compile SheepShaver on Linux ppc64, and the recent posting on an ether_unix.cpp patch has allowed me to correct an error early on in compilation (thanks Dara). Make now fails with sheepthreads.c with the following message: [root@localhost Unix]# make gcc -I../include -I. -I../slirp -DHAVE_CONFIG_H -D_REENTRANT -DDATADIR=3D \"/usr/local/share/SheepShaver\" -g -O2 -I/usr/ X11R6/include -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/X11R6/ include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/freetype2/config -I/usr /include/glib-2.0 -I/usr/lib/glib-2.0/include -c Linux/sheepthreads.c -o obj/sheepthreads.o Linux/sheepthreads.c:53: error: field =8C__sem_lock=B9 has incomplete type Linux/sheepthreads.c:55: error: syntax error before =8C_pthread_descr=B9 Linux/sheepthreads.c:55: warning: no semicolon at end of struct or union Linux/sheepthreads.c:56: warning: data definition has no type or storage class Linux/sheepthreads.c: In function =8Cfastlock_init=B9: Linux/sheepthreads.c:190: error: dereferencing pointer to incomplete type Linux/sheepthreads.c:191: error: dereferencing pointer to incomplete type Linux/sheepthreads.c: In function =8Cfastlock_try_acquire=B9: Linux/sheepthreads.c:197: error: dereferencing pointer to incomplete type Linux/sheepthreads.c:198: error: dereferencing pointer to incomplete type Linux/sheepthreads.c:199: error: dereferencing pointer to incomplete type Linux/sheepthreads.c:203: error: dereferencing pointer to incomplete type Linux/sheepthreads.c: In function =8Cfastlock_acquire=B9: Linux/sheepthreads.c:211: error: dereferencing pointer to incomplete type Linux/sheepthreads.c: In function =8Cfastlock_release=B9: Linux/sheepthreads.c:218: error: dereferencing pointer to incomplete type Linux/sheepthreads.c:219: error: dereferencing pointer to incomplete type Linux/sheepthreads.c:219: error: dereferencing pointer to incomplete type Linux/sheepthreads.c:219: error: invalid lvalue in asm output 0 Linux/sheepthreads.c:219: error: memory input 1 is not directly addressable Linux/sheepthreads.c: In function =8Cpthread_mutex_init=B9: Linux/sheepthreads.c:229: error: =8Cunion <anonymous>=B9 has no member named =8C__m_lock=B9 Linux/sheepthreads.c:230: error: =8Cunion <anonymous>=B9 has no member named =8C__m_kind=B9 Linux/sheepthreads.c:230: error: =8Cunion <anonymous>=B9 has no member named =8C__mutexkind=B9 Linux/sheepthreads.c:231: error: =8Cunion <anonymous>=B9 has no member named =8C__m_count=B9 Linux/sheepthreads.c:232: error: =8Cunion <anonymous>=B9 has no member named =8C__m_owner=B9 Linux/sheepthreads.c: In function =8Cpthread_mutex_destroy=B9: Linux/sheepthreads.c:243: error: =8Cunion <anonymous>=B9 has no member named =8C__m_kind=B9 Linux/sheepthreads.c:245: error: =8Cunion <anonymous>=B9 has no member named =8C__m_lock=B9 Linux/sheepthreads.c: In function =8Cpthread_mutex_lock=B9: Linux/sheepthreads.c:258: error: =8Cunion <anonymous>=B9 has no member named =8C__m_kind=B9 Linux/sheepthreads.c:260: error: =8Cunion <anonymous>=B9 has no member named =8C__m_lock=B9 Linux/sheepthreads.c: In function =8Cpthread_mutex_trylock=B9: Linux/sheepthreads.c:274: error: =8Cunion <anonymous>=B9 has no member named =8C__m_kind=B9 Linux/sheepthreads.c:276: error: =8Cunion <anonymous>=B9 has no member named =8C__m_lock=B9 Linux/sheepthreads.c: In function =8Cpthread_mutex_unlock=B9: Linux/sheepthreads.c:289: error: =8Cunion <anonymous>=B9 has no member named =8C__m_kind=B9 Linux/sheepthreads.c:291: error: =8Cunion <anonymous>=B9 has no member named =8C__m_lock=B9 Linux/sheepthreads.c: In function =8Cpthread_mutexattr_init=B9: Linux/sheepthreads.c:305: error: =8Cunion <anonymous>=B9 has no member named =8C__mutexkind=B9 Linux/sheepthreads.c: At top level: Linux/sheepthreads.c:324: error: syntax error before =8C*=B9 token Linux/sheepthreads.c: In function =8Csem_init=B9: Linux/sheepthreads.c:326: error: =8Csem=B9 undeclared (first use in this function) Linux/sheepthreads.c:326: error: (Each undeclared identifier is reported only once Linux/sheepthreads.c:326: error: for each function it appears in.) Linux/sheepthreads.c:326: error: =8Cvalue=B9 undeclared (first use in this function) Linux/sheepthreads.c:330: error: =8Cpshared=B9 undeclared (first use in this function) Linux/sheepthreads.c: At top level: Linux/sheepthreads.c:345: error: syntax error before =8C*=B9 token Linux/sheepthreads.c: In function =8Csem_destroy=B9: Linux/sheepthreads.c:347: error: =8Csem=B9 undeclared (first use in this function) Linux/sheepthreads.c: At top level: Linux/sheepthreads.c:365: error: syntax error before =8C*=B9 token Linux/sheepthreads.c: In function =8Csem_wait=B9: Linux/sheepthreads.c:367: error: =8Csem=B9 undeclared (first use in this function) Linux/sheepthreads.c: At top level: Linux/sheepthreads.c:393: error: syntax error before =8C*=B9 token Linux/sheepthreads.c: In function =8Csem_post=B9: Linux/sheepthreads.c:395: error: =8Csem=B9 undeclared (first use in this function) make: *** [obj/sheepthreads.o] Error 1 Does anyone have any ideas what could be causing this?? Thanks in advance Dave =20 |