Linuksowo.pl - Linux forum

Transkrypt

Linuksowo.pl - Linux forum
Subject: [ROZW] Posix
Posted by pietro54 on Wed, 26 Dec 2007 10:56:34 GMT
View Forum Message <> Reply to Message
Witam, system krzyczy mi że nie mam zainstalowaneo posixa lub pthreads, jak kto woli,
może wiecie jak to ugryść, jak to zainstalować, bo na necie jest nie mało opisów ale
jakoś paczusi do instalacji znaeść nie mogę.
Edit
serwer:/home/wachu/Desktop/Pobrania/gg2-2.3.0# ./configure --disable-threads
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
/home/wachu/Desktop/Pobrania/gg2-2.3.0/missing: Unknown `--run' option
Try `/home/wachu/Desktop/Pobrania/gg2-2.3.0/missing --help' for more information
configure: WARNING: `missing' script is too old or missing
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for gmake... no
checking for make... /usr/bin/make
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
Page 1 of 6 ---- Generated from
Linuksowe by FUDforum 2.8.1
Linuksowo.pl - Linux forum - Polskie Forum
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking how to recognise dependent libraries... pass_all
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for g77... g77
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether g77 accepts -g... yes
checking the maximum length of command line arguments... 65536
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
Page 2 of 6 ---- Generated from
Linuksowe by FUDforum 2.8.1
Linuksowo.pl - Linux forum - Polskie Forum
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking for shl_load... no
checking for shl_load in -ldld... no
checking for dlopen... no
checking for dlopen in -ldl... yes
checking whether a program can dlopen itself... yes
checking whether a statically linked program can dlopen itself... FATAL: kernel too old
no
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for g77 option to produce PIC... -fPIC
checking if g77 PIC flag -fPIC works... yes
checking if g77 static flag -static works... yes
checking if g77 supports -c -o file.o... yes
checking whether the g77 linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether /usr/bin/make sets $(MAKE)... yes
checking for gawk... (cached) mawk
checking for ANSI C header files... (cached) yes
checking for ANSI C header files... (cached) yes
checking for an ANSI C-conforming const... yes
checking whether struct tm is in sys/time.h or time.h... time.h
Page 3 of 6 ---- Generated from
Linuksowe by FUDforum 2.8.1
Linuksowo.pl - Linux forum - Polskie Forum
checking whether byte ordering is bigendian... no
checking for long long... yes
checking for va_copy... yes
checking for __va_copy... yes
checking for C99-compatible vsnprintf()... yes
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... no
checking whether pthreads work with -pthreads... no
checking whether pthreads work with -mthreads... no
checking for the pthreads library -lpthread... no
checking whether pthreads work with --thread-safe... no
checking whether pthreads work with -mt... no
configure: error: Your system is not supporting pthreads
nie chodzi już tylko o gg ale się wkurzyłem bo już kiedyś miałem z tym posixem
doczynienia i poległem teraz stiwerdziłem że nie popuszcze usmiech
dodam jeszcze o tym gg że specialnie wybarłem opcje --disable-threads i nie wiedzieć
czemu on nadal o nie krzyczeć @@ smutny
Znów dodam że znalazłem coś takiego jak pthreards. Próbuje zainstalować...
/threads/src# ./configure
Please specify the operating system you want to install Pthreads on:
1. SunOS 4.x
2. Solaris 2.x
3. Linux
4. FreeBSD
5. SCO UNIX
6. SCO OpenServer
Enter number:3
Page 4 of 6 ---- Generated from
Linuksowe by FUDforum 2.8.1
Linuksowo.pl - Linux forum - Polskie Forum
Please ignore warnings during compilation
make
gcc -I../include -I../tdi/include -O2 -DC_CONTEXT_SWITCH -DCLEANUP_HEAP -D_POSIX
-DAUTO_INIT -DSRP -DC_INTERFACE -DIO -DMALLOC -DNO_FIX_MALLOC
-DTDI_SUPPORT -o config_header config_header.c
./config_header -D`uname -r | sed "s/\.//g"` -O2 -DC_CONTEXT_SWITCH -DCLEANUP_HEAP
-D_POSIX -DAUTO_INIT -DSRP -DC_INTERFACE -DIO -DMALLOC -DNO_FIX_MALLOC
-DTDI_SUPPORT > ../include/pthread/config.h
sh const.sh >> ../include/pthread/config.h
touch config_internals.h
gcc -I../include -I../tdi/include -O2 -DC_CONTEXT_SWITCH -DCLEANUP_HEAP -D_POSIX
-DAUTO_INIT -DSRP -DC_INTERFACE -DIO -DMALLOC -DNO_FIX_MALLOC
-DTDI_SUPPORT -DINTERNALS -o config_header2 config_header.c
In file included from internals.h:71,
from config_header.c:35:
../include/pthread.h:489: error: parse error before "__thread"
../include/pthread.h:495: error: storage class specified for parameter `type name'
../include/pthread.h:496: error: storage class specified for parameter `type name'
../include/pthread.h:502: error: storage class specified for parameter `type name'
../include/pthread.h:505: error: storage class specified for parameter `type name'
../include/pthread.h:601: error: storage class specified for parameter `type name'
../include/pthread.h:603: error: storage class specified for parameter `type name'
To install Pthreads (as super user), type: make install
serwer:/home/wachu/Desktop/Pobrania/threads/src# make install
touch config_internals.h
gcc -I../include -I../tdi/include -O2 -DC_CONTEXT_SWITCH -DCLEANUP_HEAP -D_POSIX
-DAUTO_INIT -DSRP -DC_INTERFACE -DIO -DMALLOC -DNO_FIX_MALLOC
-DTDI_SUPPORT -DINTERNALS -o config_header2 config_header.c
In file included from internals.h:71,
from config_header.c:35:
../include/pthread.h:489: error: parse error before "__thread"
../include/pthread.h:495: error: storage class specified for parameter `type name'
../include/pthread.h:496: error: storage class specified for parameter `type name'
../include/pthread.h:502: error: storage class specified for parameter `type name'
../include/pthread.h:505: error: storage class specified for parameter `type name'
../include/pthread.h:601: error: storage class specified for parameter `type name'
../include/pthread.h:603: error: storage class specified for parameter `type name'
cp ../include/*.h /usr/local/include
if ( test ! -d /usr/local/include/pthread ) ; then \
Page 5 of 6 ---- Generated from
Linuksowe by FUDforum 2.8.1
Linuksowo.pl - Linux forum - Polskie Forum
mkdir /usr/local/include/pthread ; \
fi ;
cp ../include/pthread/*.h /usr/local/include/pthread
cp ../lib/libgthreads.a ../lib/libmalloc.a /usr/local/lib
cp: nie moÄÄÂ1Ąźna
wykonaÄ stat na `../lib/libgthreads.a': Nie ma takiego
pliku ani katalogu
cp: nie moÄÄÂ1Ąźna
wykonaÄ stat na `../lib/libmalloc.a': Nie ma takiego pliku
ani katalogu
make: *** [install]
BÄÄÂ1ĄÄ‚„
d1
Dodam że jest napisane żeby ignorwać błędy... Razz
Administrator: Poprawione kodowanie
Page 6 of 6 ---- Generated from
Linuksowe by FUDforum 2.8.1
Linuksowo.pl - Linux forum - Polskie Forum