help-cfengine
[Top][All Lists]
Advanced

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

pthread error (Solaris 2.5.1)


From: Boran
Subject: pthread error (Solaris 2.5.1)
Date: 27 Oct 2004 11:28:42 GMT
User-agent: tin/1.4.5-20010409 ("One More Nightmare") (UNIX) (Linux/2.4.26 (i686))

I can't get cfengine 2.1.10 to install on a sparc station (sun4m) 
running Solaris 2.5.1. It seams as the pthread.h include file from 
the installed Berkeley DB package conflicts with my 
/usr/sys/include/pthread.h. I don't, however, get any warnings or 
errors when compiling and installing the database itself.

I've been testing and googling for quite some time now and could
really need some help here.. 

I get it to work under Solaris 2.6, 7, 8 and 9. I use another Perl
installation for thoose, nothing else differs.

First error messages, then what I typed prior to the make command.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
boran$ make
Making all in pub
source='full-write.c' object='full-write.o' libtool=no \
depfile='.deps/full-write.Po' tmpdepfile='.deps/full-write.TPo' \
depmode=gcc /bin/ksh ../depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I../src
-I/usr/local/cfengine-2.1.10_sol2.5.1/db-4.2.52/include
-I/usr/local/cfengine-2.1.10_sol2.5.1/openssl-0.9.7c/include   -D_R
EENTRANT -D_REENTRANT  -g -O2
-I/usr/local/cfengine-2.1.10_sol2.5.1/db-4.2.52/include -g -O2
-Wreturn-type -Wmissing-prototypes -Wuninitialized -D_REENTRANT  -g -O2
-I/usr/local/cfengine-2.1.10_sol2.5.1/db-4.2.52/include -c full-write.c
In file included from ../src/cf.defs.h:43,
                 from full-write.c:23:
/usr/include/sys/utsname.h:36: warning: `SYS_NMLN' redefined
/usr/include/limits.h:209: warning: this is the location of the previous
definition
In file included from ../src/cf.defs.h:1963,
                 from full-write.c:23:
/usr/local/cfengine-2.1.10_sol2.5.1/db-4.2.52/include/db.h:63: warning:
redefinition of `uint8_t'
/usr/include/pthread.h:27: warning: `uint8_t' previously declared here
/usr/local/cfengine-2.1.10_sol2.5.1/db-4.2.52/include/db.h:67:
conflicting types for `uint32_t'
/usr/include/pthread.h:31: previous declaration of `uint32_t'
*** Error code 1
make: Fatal error: Command failed for target `full-write.o'
Current working directory
/proj/sysadm/projekt/cfengine/src/cfengine-2.1.10/pub
make: *** [all-recursive] Error 1
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

environment and commands
------------------------
set path = /usr/ucb
set path = ( $path /usr/bin )
set path = ( $path /proj/sysadm/bin:/usr/local/bin:/usr/sbin )
set path = ( $path /opt/gnat/sunos5/gcc-2.8.1/bin:/usr/ccs/bin )
set path = ( /opt/perl5/bin $path )
set path = ( $path /opt/gnat/sunos5/common/bin )
setenv CC gcc
cd /proj/sysadm/projekt/cfengine

cd src/db-4.2.52/build_unix
../dist/configure CFLAGS="-g -O2 -mv8" \
  --prefix=/usr/local/cfengine-2.1.10_sol2.5.1/db-4.2.52
make && make install

setenv LD_LIBRARY_PATH /usr/local/cfengine-2.1.10_sol2.5.1/db-4.2.52/lib
cd ../../openssl-0.9.7c 
./Configure solaris-sparcv8-gcc \
  --prefix=/usr/local/cfengine-2.1.10_sol2.5.1/openssl-0.9.7c
make && make test && make install

cd ../cfengine-2.1.10
./configure --prefix=/usr/local/cfengine-2.1.10_sol2.5.1
  --with-openssl=/usr/local/cfengine-2.1.10_sol2.5.1/openssl-0.9.7c
  --with-berkeleydb=/usr/local/cfengine-2.1.10_sol2.5.1/db-4.2.52
make && make install






-- 
boran


reply via email to

[Prev in Thread] Current Thread [Next in Thread]