[SCore-users-jp] [SCore-users] 5.2 source doesn't compile for me

kameyama at pccluster.org kameyama at pccluster.org
Tue Nov 12 20:09:00 JST 2002


In article <200211121138.25584.klaas at ccrl-nece.de> Jens Klaas <klaas at ccrl-nece.de> wrotes:
> --
> gcc attr.c -c -O2 -Wall -Winline -Wstrict-prototypes -Wwrite-strings -g      
> -I../include -I.  -I.. -I../libio  
> -I../linuxthreads/sysdeps/unix/sysv/linux/i386 
> -I../linuxthreads/sysdeps/unix/sysv/linux -I../linuxthreads/sysdeps/pthread 
> -I../linuxthreads/sysdeps/unix/sysv -I../linuxthreads/sysdeps/unix 
> -I../linuxthreads/sysdeps/i386/i686 -I../linuxthreads/sysdeps/i386 
> -I../sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux 
> -I../sysdeps/unix/sysv -I../sysdeps/unix -I../sysdeps/i386 
> -I../sysdeps/generic/elf -I../sysdeps/generic   -D_LIBC_REENTRANT -include 
> ../include/libc-symbols.h     -o attr.o
> In file included from /usr/include/stdio.h:65,
>                  from /usr/include/resolv.h:63,
>                  from internals.h:23,
>                  from attr.c:23:
> /usr/include/libio.h:334: parse error before `attribute_hidden'
> /usr/include/libio.h:334: warning: data definition has no type or storage 
> class
> /usr/include/libio.h:335: parse error before `attribute_hidden'
> /usr/include/libio.h:335: warning: data definition has no type or storage 
> class
> /usr/include/libio.h:336: parse error before `attribute_hidden'
> /usr/include/libio.h:336: warning: data definition has no type or storage 
> class
> -----------------------------------------------------------------------------
> ---------

Please apply following patch:

---------------------------------------cut here---------------------------------
diff -u -r1.1.1.1 libc-symbols.h
--- score-src/SCore/sclib/scwrap/example/pthread/glibc-i386-redhat7/include/libc-symbols.h      2 Aug 2001 10:14:28 -0000       1.1.1.1
+++ score-src/SCore/sclib/scwrap/example/pthread/glibc-i386-redhat7/include/libc-symbols.h      12 Nov 2002 11:04:33 -0000
@@ -321,4 +321,5 @@
   strong_alias(real, name)
 #endif
 
+# define attribute_hidden
 #endif /* libc-symbols.h */
---------------------------------------cut here---------------------------------

                       from Kameyama Toyohisa



More information about the SCore-users mailing list