public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* native build of OpenWBEM fails on MIPS
@ 2002-08-13  8:10 Dinesh Nagpure
  0 siblings, 0 replies; only message in thread
From: Dinesh Nagpure @ 2002-08-13  8:10 UTC (permalink / raw)
  To: gcc-help

[-- Attachment #1: Type: text/plain, Size: 1774 bytes --]

Hello,
I am trying native build of OpenWbem sources available at
https://sourceforge.net/cvs/?group_id=16214 for MIPS on a MIPS Malta board.
I am using a NFS mounted root downloaded from MIPS website which is a MIPS
port of Redhat7.1. 

Porting requirements of the OpenWbem sources (From the README file in the
source directory) are as below:
1)ANSI C++ compiler.
Running g++ -v results in output is as below:

Reading specs from usr/lib/gcc-lib/mipsel-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Redhat Linux 7.1.2.96-99.1)

2)Standard C++ Library. 
Running rpm -qa | grep libstd results in the following output:
libstdc++-devel-2.96-99.1
libstdc++-2.96-99.1

3)Standard C Library.
rpm -qa | grep glibc result is as below:
glibc-2.2.4-19.4
glibc-common-2.2.4-19.4
glibc-devel-2.2.4-19.4
glibc-profile-2.2.4-19.4

4)Threading support of some sort.
I have pthreads
5)Socket communication of some sort.

The build process uses AUTOCONF and AUTOMAKE to generate the configure
script and them make files.

I am running the configure script as below:

configure --build=mipsel-xyz-linux --host=mipsel-xyz-linux

Output of the configure script is in the attached file "report"

Also the log file configure script generates is attached "config.log"

When I try to make the sources, I run into the following warnings and then
the build process breaks out with a error, see attached file "makeout"

I am wondering if this really is some internal error as reported or some
dependency issue (reason for the doubt is the same sources builds on x86
installation using redhat7.1 where the libstdc and gcc and glibc versions
are almost the same).

Has anyone faced similar errors? Any help pointers? 

Thanks in advance,
Dinesh
iVivity

 <<report>> 
 <<makeout>> 
 <<config.log>> 


[-- Attachment #2: report --]
[-- Type: application/octet-stream, Size: 6769 bytes --]

creating cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking host system type... mipsel-iDISX-linux-gnu
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for c++... c++
checking whether the C++ compiler (c++  ) works... yes
checking whether the C++ compiler (c++  ) is a cross-compiler... no
checking whether we are using GNU C++... yes
checking whether c++ accepts -g... yes
checking how to run the C++ preprocessor... c++ -E
checking for flex... flex
checking for flex... (cached) flex
checking for yywrap in -lfl... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... yes
checking for ranlib... ranlib
checking for bison... bison -y
checking for ar... /usr/bin/ar
checking for mv... /bin/mv
checking for rm... /bin/rm
checking for sed... /bin/sed
checking for ANSI C header files... yes
checking for pthread.h... yes
checking for pth.h... no
checking for security/pam_misc.h... yes
checking for security/pam_appl.h... yes
checking for zlib.h... yes
checking for fcntl.h... yes
checking for limits.h... yes
checking for sys/file.h... yes
checking for unistd.h... yes
checking for byteswap.h... yes
checking for pthread.h... (cached) yes
checking for sys/cdefs.h... yes
checking for sys/queue.h... yes
checking for sys/int_types.h... no
checking for streambuf... no
checking for streambuf.h... yes
checking for ostream... no
checking for ostream.h... yes
checking for istream... no
checking for istream.h... yes
checking for inttypes.h... yes
checking whether byte ordering is bigendian... no
checking size of char... 1
checking size of short int... 2
checking size of int... 4
checking size of long int... 4
checking size of long long int... 8
checking size of float... 4
checking size of double... 8
checking size of long double... 8
checking for off_t... yes
checking for size_t... yes
checking for u_int8_t... yes
checking for u_int16_t... yes
checking for u_int32_t... yes
checking for st_blksize in struct stat... yes
checking for sys_siglist declaration in signal.h or unistd.h... no
checking for socklen_t... yes
checking for 8-bit clean memcmp... no
checking for unistd.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... no
checking for vprintf... yes
checking for strerror... yes
checking for strtoll... yes
checking for strtoull... yes
checking for slp.h... no
checking for OpenSSL directory... (system)
updating cache ./config.cache
creating ./config.status
creating Makefile
creating mof/Makefile
creating src/Makefile
creating src/cim/Makefile
creating src/client/Makefile
creating src/cimom/Makefile
creating src/server/Makefile
creating src/common/Makefile
creating src/http/Makefile
creating src/mof/Makefile
creating src/mof/testfiles/Makefile
creating src/hdb/Makefile
creating src/wql/Makefile
creating src/http/Makefile
creating src/http/client/Makefile
creating src/http/server/Makefile
creating src/listener/Makefile
creating src/net/Makefile
creating src/net/socket/Makefile
creating src/platform/Makefile
creating src/platform/linux_pthread/Makefile
creating src/platform/linux_pthread/thread/Makefile
creating src/platform/linux_pthread/common/Makefile
creating src/platform/linux_pthread/client/Makefile
creating src/platform/linux_pthread/socket/Makefile
creating src/platform/linux_pthread/server/Makefile
creating src/platform/linux_pthread/server/authorizer/Makefile
creating src/platform/openunix_pthread/Makefile
creating src/platform/openunix_pthread/thread/Makefile
creating src/platform/openunix_pthread/common/Makefile
creating src/platform/openunix_pthread/client/Makefile
creating src/platform/openunix_pthread/socket/Makefile
creating src/platform/openunix_pthread/server/Makefile
creating src/platform/openserver_pth/Makefile
creating src/platform/openserver_pth/thread/Makefile
creating src/platform/openserver_pth/common/Makefile
creating src/platform/openserver_pth/client/Makefile
creating src/platform/openserver_pth/socket/Makefile
creating src/platform/openserver_pth/server/Makefile
creating src/platform/solaris_pthread/Makefile
creating src/platform/solaris_pthread/thread/Makefile
creating src/platform/solaris_pthread/client/Makefile
creating src/platform/solaris_pthread/common/Makefile
creating src/platform/solaris_pthread/socket/Makefile
creating src/platform/solaris_pthread/server/Makefile
creating src/platform/linux_pth/Makefile
creating src/platform/linux_pth/thread/Makefile
creating src/platform/linux_pth/common/Makefile
creating src/platform/linux_pth/client/Makefile
creating src/platform/linux_pth/socket/Makefile
creating src/platform/linux_pth/server/Makefile
creating src/platform/linux_pth/server/authorizer/Makefile
creating src/provider/Makefile
creating src/provider/ifcs/Makefile
creating src/provider/ifcs/cpp/Makefile
creating src/provider/property/Makefile
creating src/provider/associator/Makefile
creating src/provider/method/Makefile
creating src/provider/polled/Makefile
creating src/provider/polled/slp/Makefile
creating src/thread/Makefile
creating src/tools/Makefile
creating src/xml/Makefile
creating db/Makefile
creating db/btree/Makefile
creating db/db/Makefile
creating db/include/Makefile
creating db/mpool/Makefile
creating db/test/Makefile
creating etc/Makefile
creating etc/init/Makefile
creating etc/pam.d/Makefile
creating etc/sysconfig/Makefile
creating etc/sysconfig/daemons/Makefile
creating test/Makefile
creating test/c++providers/Makefile
creating test/c++providers/property/Makefile
creating test/c++providers/associator/Makefile
creating test/c++providers/method/Makefile
creating test/c++providers/trigger/Makefile
creating test/c++providers/instance/Makefile
creating test/CppUnit/Makefile
creating test/clientDriver/Makefile
creating test/clientDriver/testfiles/Makefile
creating test/acceptance/Makefile
creating test/acceptance/testfiles/Makefile
creating test/acceptance/progs/Makefile
creating test/unit/Makefile
creating doc/Makefile
creating doc/man/Makefile
creating doc/man/man1/Makefile
creating doc/man/man8/Makefile
creating config.h
creating ../src/common/OW_config.h - prefix OW for config.h defines

[-- Attachment #3: makeout --]
[-- Type: application/octet-stream, Size: 8059 bytes --]

make  all-recursive
make[1]: Entering directory `/opt/openwbem/build'
Making all in db
make[2]: Entering directory `/opt/openwbem/build/db'
Making all in include
make[3]: Entering directory `/opt/openwbem/build/db/include'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/opt/openwbem/build/db/include'
Making all in btree
make[3]: Entering directory `/opt/openwbem/build/db/btree'
gcc -DHAVE_CONFIG_H -I. -I../../../db/btree -I../.. -I../../../db/include -I../../../src/common    -fPIC -DNDEBUG -O3 -fno-default-inline -D_REENTRANT -c ../../../db/btree/bt_conv.c
gcc -DHAVE_CONFIG_H -I. -I../../../db/btree -I../.. -I../../../db/include -I../../../src/common    -fPIC -DNDEBUG -O3 -fno-default-inline -D_REENTRANT -c ../../../db/btree/bt_close.c
gcc -DHAVE_CONFIG_H -I. -I../../../db/btree -I../.. -I../../../db/include -I../../../src/common    -fPIC -DNDEBUG -O3 -fno-default-inline -D_REENTRANT -c ../../../db/btree/bt_debug.c
gcc -DHAVE_CONFIG_H -I. -I../../../db/btree -I../.. -I../../../db/include -I../../../src/common    -fPIC -DNDEBUG -O3 -fno-default-inline -D_REENTRANT -c ../../../db/btree/bt_delete.c
gcc -DHAVE_CONFIG_H -I. -I../../../db/btree -I../.. -I../../../db/include -I../../../src/common    -fPIC -DNDEBUG -O3 -fno-default-inline -D_REENTRANT -c ../../../db/btree/bt_get.c
gcc -DHAVE_CONFIG_H -I. -I../../../db/btree -I../.. -I../../../db/include -I../../../src/common    -fPIC -DNDEBUG -O3 -fno-default-inline -D_REENTRANT -c ../../../db/btree/bt_open.c
gcc -DHAVE_CONFIG_H -I. -I../../../db/btree -I../.. -I../../../db/include -I../../../src/common    -fPIC -DNDEBUG -O3 -fno-default-inline -D_REENTRANT -c ../../../db/btree/bt_overflow.c
gcc -DHAVE_CONFIG_H -I. -I../../../db/btree -I../.. -I../../../db/include -I../../../src/common    -fPIC -DNDEBUG -O3 -fno-default-inline -D_REENTRANT -c ../../../db/btree/bt_page.c
gcc -DHAVE_CONFIG_H -I. -I../../../db/btree -I../.. -I../../../db/include -I../../../src/common    -fPIC -DNDEBUG -O3 -fno-default-inline -D_REENTRANT -c ../../../db/btree/bt_put.c
gcc -DHAVE_CONFIG_H -I. -I../../../db/btree -I../.. -I../../../db/include -I../../../src/common    -fPIC -DNDEBUG -O3 -fno-default-inline -D_REENTRANT -c ../../../db/btree/bt_search.c
gcc -DHAVE_CONFIG_H -I. -I../../../db/btree -I../.. -I../../../db/include -I../../../src/common    -fPIC -DNDEBUG -O3 -fno-default-inline -D_REENTRANT -c ../../../db/btree/bt_seq.c
gcc -DHAVE_CONFIG_H -I. -I../../../db/btree -I../.. -I../../../db/include -I../../../src/common    -fPIC -DNDEBUG -O3 -fno-default-inline -D_REENTRANT -c ../../../db/btree/bt_split.c
gcc -DHAVE_CONFIG_H -I. -I../../../db/btree -I../.. -I../../../db/include -I../../../src/common    -fPIC -DNDEBUG -O3 -fno-default-inline -D_REENTRANT -c ../../../db/btree/bt_utils.c
rm -f libbtree.a
/opt/openwbem/build/db/btree/../../../ow_ar.sh /usr/bin/ar -- cru libbtree.a bt_conv.o bt_close.o bt_debug.o bt_delete.o bt_get.o bt_open.o bt_overflow.o bt_page.o bt_put.o bt_search.o bt_seq.o bt_split.o bt_utils.o 
ranlib libbtree.a
make[3]: Leaving directory `/opt/openwbem/build/db/btree'
Making all in mpool
make[3]: Entering directory `/opt/openwbem/build/db/mpool'
gcc -DHAVE_CONFIG_H -I. -I../../../db/mpool -I../.. -I../../../db/include -I../../../src/common    -fPIC -DNDEBUG -O3 -fno-default-inline -D_REENTRANT -c ../../../db/mpool/mpool.c
rm -f libmpool.a
/opt/openwbem/build/db/mpool/../../../ow_ar.sh /usr/bin/ar -- cru libmpool.a mpool.o 
ranlib libmpool.a
make[3]: Leaving directory `/opt/openwbem/build/db/mpool'
Making all in db
make[3]: Entering directory `/opt/openwbem/build/db/db'
gcc -DHAVE_CONFIG_H -I. -I../../../db/db -I../.. -I../../../db/include -I../../../src/common    -fPIC -DNDEBUG -O3 -fno-default-inline -D_REENTRANT -c ../../../db/db/db.c
rm -f libowdb.a
/opt/openwbem/build/db/db/../../../ow_ar.sh /usr/bin/ar -- cru libowdb.a db.o ../btree/libbtree.a ../mpool/libmpool.a
ranlib libowdb.a
rm -rf .libowdb.so.libs
mkdir .libowdb.so.libs
cd .libowdb.so.libs && \
/opt/openwbem/build/db/db/../../../ow_ar.sh /usr/bin/ar -- x ../libowdb.a 
g++ -shared -fPIC -Wl,-soname -Wl,libowdb.so -o libowdb.so.1.3.2 .libowdb.so.libs/*.o 
rm -f libowdb.so
ln -s libowdb.so.1.3.2 libowdb.so
chmod +x libowdb.so.1.3.2
make[3]: Leaving directory `/opt/openwbem/build/db/db'
Making all in test
make[3]: Entering directory `/opt/openwbem/build/db/test'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/opt/openwbem/build/db/test'
make[3]: Entering directory `/opt/openwbem/build/db'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/opt/openwbem/build/db'
make[2]: Leaving directory `/opt/openwbem/build/db'
Making all in src
make[2]: Entering directory `/opt/openwbem/build/src'
Making all in cim
make[3]: Entering directory `/opt/openwbem/build/src/cim'
c++ -DHAVE_CONFIG_H -I. -I../../../src/cim -I../.. -I../../../src -I../../../src/common	-I../../../src/thread -I../../../src/xml		-I../../../src/http/client -I../../../src/http -I../../../src/net/socket -I../../../src/client    -fPIC -DNDEBUG -O3 -fno-default-inline -D_REENTRANT -c ../../../src/cim/OW_CIMValueCast.cpp
c++ -DHAVE_CONFIG_H -I. -I../../../src/cim -I../.. -I../../../src -I../../../src/common	-I../../../src/thread -I../../../src/xml		-I../../../src/http/client -I../../../src/http -I../../../src/net/socket -I../../../src/client    -fPIC -DNDEBUG -O3 -fno-default-inline -D_REENTRANT -c ../../../src/cim/OW_CIMValue.cpp

/usr/include/g++-3/stl_uninitialized.h:61: warning: ICE: would have deleted pron                                                                                (insn 410 372 412 (set (reg:SI 7 a3)                                                    (ashiftrt:SI (reg:SI 7 a3)                                                          (const_int 24 [0x18]))) -1 (nil)                                        (nil))                                                                      /usr/include/g++-3/stl_uninitialized.h: In function `_ForwardIter               __uninitialized_copy_aux (_InputIter, _InputIter, _ForwardIter,                 __false_type) [with _InputIter = const OW_CIMObjectPath *, _ForwardIter         = OW_CIMObjectPath *]':                                                         /usr/include/g++-3/stl_uninitialized.h:61: warning: ICE: would have deleted pron                                                                                (insn 403 360 405 (set (reg:SI 7 a3)                                                    (ashiftrt:SI (reg:SI 7 a3)                                                          (const_int 24 [0x18]))) -1 (nil)                                        (nil))                                                                      
../../../src/common/OW_Array.hpp: In method `void vector<_Tp,                   _Alloc>::_M_initialize_aux (_Integer, _Integer, __true_type) [with              _Integer = int, _Tp = OW_Int32, _Alloc = allocator<OW_Int32>]':                 ../../../src/common/OW_Array.hpp:80: warning: ICE: would have deleted prologue/n                                                                                (insn 164 154 166 (set (reg:SI 7 a3)                                                    (ashiftrt:SI (reg:SI 7 a3)                                                          (const_int 24 [0x18]))) -1 (nil)                                        (nil))                                                                      c++: Internal error: Terminated (program cc1plus)                   Please submit a full bug report.                                                See <URL:http://bugzilla.redhat.com/bugzilla/> for instructions.                make[3]: *** [OW_CIMValue.o] Error 1                                            make[2]: *** [all-recursive] Error 1                                            make[1]: *** [all-recursive] Error 1                                            make: *** [all-recursive-am] Error 2                                           


[-- Attachment #4: config.log --]
[-- Type: application/octet-stream, Size: 13896 bytes --]

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:642: checking for a BSD compatible install
configure:695: checking whether build environment is sane
configure:752: checking whether make sets ${MAKE}
configure:798: checking for working aclocal
configure:811: checking for working autoconf
configure:824: checking for working automake
configure:837: checking for working autoheader
configure:850: checking for working makeinfo
configure:872: checking host system type
configure:895: checking for gcc
configure:1008: checking whether the C compiler (gcc  ) works
configure:1024: gcc -o conftest    conftest.c  1>&5
configure:1050: checking whether the C compiler (gcc  ) is a cross-compiler
configure:1055: checking whether we are using GNU C
configure:1064: gcc -E conftest.c
configure:1083: checking whether gcc accepts -g
configure:1119: checking for c++
configure:1151: checking whether the C++ compiler (c++  ) works
configure:1167: c++ -o conftest    conftest.C  1>&5
configure:1193: checking whether the C++ compiler (c++  ) is a cross-compiler
configure:1198: checking whether we are using GNU C++
configure:1207: c++ -E conftest.C
configure:1226: checking whether c++ accepts -g
configure:1265: checking how to run the C++ preprocessor
configure:1283: c++ -E  conftest.C >/dev/null 2>conftest.out
configure:1313: checking for flex
configure:1346: checking for flex
configure:1380: checking for yywrap in -lfl
configure:1402: c++ -o conftest -g -O2   conftest.C -lfl   1>&5
configure:1425: checking lex output file root
configure:1446: checking whether yytext is a pointer
configure:1465: c++ -o conftest -g -O2   conftest.C  -lfl 1>&5
configure:1489: checking for ranlib
configure:1530: checking for bison
configure:1572: checking for ar
configure:1611: checking for mv
configure:1647: checking for rm
configure:1683: checking for sed
configure:1718: checking for ANSI C header files
configure:1731: c++ -E  conftest.C >/dev/null 2>conftest.out
configure:1801: c++ -o conftest -g -O2   conftest.C  1>&5
configure:1826: checking for pthread.h
configure:1836: c++ -E  conftest.C >/dev/null 2>conftest.out
configure:1859: checking for pth.h
configure:1869: c++ -E  conftest.C >/dev/null 2>conftest.out
configure:1865:17: pth.h: No such file or directory
configure: failed program was:
#line 1864 "configure"
#include "confdefs.h"
#include <pth.h>
configure:1894: checking for security/pam_misc.h
configure:1904: c++ -E  conftest.C >/dev/null 2>conftest.out
configure:1894: checking for security/pam_appl.h
configure:1904: c++ -E  conftest.C >/dev/null 2>conftest.out
configure:1936: checking for zlib.h
configure:1946: c++ -E  conftest.C >/dev/null 2>conftest.out
configure:1979: checking for fcntl.h
configure:1989: c++ -E  conftest.C >/dev/null 2>conftest.out
configure:1979: checking for limits.h
configure:1989: c++ -E  conftest.C >/dev/null 2>conftest.out
configure:1979: checking for sys/file.h
configure:1989: c++ -E  conftest.C >/dev/null 2>conftest.out
configure:1979: checking for unistd.h
configure:1989: c++ -E  conftest.C >/dev/null 2>conftest.out
configure:1979: checking for byteswap.h
configure:1989: c++ -E  conftest.C >/dev/null 2>conftest.out
configure:1979: checking for pthread.h
configure:1979: checking for sys/cdefs.h
configure:1989: c++ -E  conftest.C >/dev/null 2>conftest.out
configure:1979: checking for sys/queue.h
configure:1989: c++ -E  conftest.C >/dev/null 2>conftest.out
configure:1979: checking for sys/int_types.h
configure:1989: c++ -E  conftest.C >/dev/null 2>conftest.out
configure:1985:27: sys/int_types.h: No such file or directory
configure: failed program was:
#line 1984 "configure"
#include "confdefs.h"
#include <sys/int_types.h>
configure:1979: checking for streambuf
configure:1989: c++ -E  conftest.C >/dev/null 2>conftest.out
configure:1985:21: streambuf: No such file or directory
configure: failed program was:
#line 1984 "configure"
#include "confdefs.h"
#include <streambuf>
configure:1979: checking for streambuf.h
configure:1989: c++ -E  conftest.C >/dev/null 2>conftest.out
configure:1979: checking for ostream
configure:1989: c++ -E  conftest.C >/dev/null 2>conftest.out
configure:1985:19: ostream: No such file or directory
configure: failed program was:
#line 1984 "configure"
#include "confdefs.h"
#include <ostream>
configure:1979: checking for ostream.h
configure:1989: c++ -E  conftest.C >/dev/null 2>conftest.out
configure:1979: checking for istream
configure:1989: c++ -E  conftest.C >/dev/null 2>conftest.out
configure:1985:19: istream: No such file or directory
configure: failed program was:
#line 1984 "configure"
#include "confdefs.h"
#include <istream>
configure:1979: checking for istream.h
configure:1989: c++ -E  conftest.C >/dev/null 2>conftest.out
configure:1979: checking for inttypes.h
configure:1989: c++ -E  conftest.C >/dev/null 2>conftest.out
configure:2017: checking whether byte ordering is bigendian
configure:2035: c++ -c -g -O2  conftest.C 1>&5
configure:2050: c++ -c -g -O2  conftest.C 1>&5
configure: In function `int main ()':
configure:2047: `big' undeclared (first use this function)
configure:2047: (Each undeclared identifier is reported only once for 
each function it appears in.)
configure:2047: parse error before `;'
configure: failed program was:
#line 2039 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/param.h>
int main() {

#if BYTE_ORDER != BIG_ENDIAN
 not big endian
#endif
; return 0; }
configure:2111: checking size of char
configure:2133: c++ -o conftest -g -O2   conftest.C  -lz 1>&5
configure:2153: checking size of short int
configure:2175: c++ -o conftest -g -O2   conftest.C  -lz 1>&5
configure:2195: checking size of int
configure:2217: c++ -o conftest -g -O2   conftest.C  -lz 1>&5
configure:2237: checking size of long int
configure:2259: c++ -o conftest -g -O2   conftest.C  -lz 1>&5
configure:2279: checking size of long long int
configure:2301: c++ -o conftest -g -O2   conftest.C  -lz 1>&5
configure:2321: checking size of float
configure:2343: c++ -o conftest -g -O2   conftest.C  -lz 1>&5
configure:2363: checking size of double
configure:2385: c++ -o conftest -g -O2   conftest.C  -lz 1>&5
configure:2405: checking size of long double
configure:2427: c++ -o conftest -g -O2   conftest.C  -lz 1>&5
configure:2448: checking for off_t
configure:2481: checking for size_t
configure:2514: checking for u_int8_t
configure:2547: checking for u_int16_t
configure:2580: checking for u_int32_t
configure:2613: checking for st_blksize in struct stat
configure:2626: c++ -c -g -O2  conftest.C 1>&5
configure:2647: checking for sys_siglist declaration in signal.h or unistd.h
configure:2664: c++ -c -g -O2  conftest.C 1>&5
configure: In function `int main ()':
configure:2660: cannot convert `const char *const' to `char *' in 
initialization
configure: failed program was:
#line 2652 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <signal.h>
/* NetBSD declares sys_siglist in unistd.h.  */
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
int main() {
char *msg = *(sys_siglist + 1);
; return 0; }
configure:2685: checking for socklen_t
configure:2699: c++ -c -g -O2  conftest.C 1>&5
configure:2722: checking for 8-bit clean memcmp
configure:2743: c++ -o conftest -g -O2   conftest.C  -lz 1>&5
configure: In function `int main ()':
configure:2738: `memcmp' undeclared (first use this function)
configure:2738: (Each undeclared identifier is reported only once for 
each function it appears in.)
configure: failed program was:
#line 2730 "configure"
#include "confdefs.h"
#ifdef __cplusplus
extern "C" void exit(int) throw();
#endif

main()
{
  char c0 = 0x40, c1 = 0x80, c2 = 0x81;
  exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
}

configure:2764: checking for unistd.h
configure:2803: checking for getpagesize
configure:2834: c++ -o conftest -g -O2   conftest.C  -lz 1>&5
configure:2859: checking for working mmap
configure:3010: c++ -o conftest -g -O2   conftest.C  -lz 1>&5
configure: In function `int main ()':
configure:2951: `getpagesize' undeclared (first use this function)
configure:2951: (Each undeclared identifier is reported only once for 
each function it appears in.)
configure:2956: cannot convert `void *' to `char *' in assignment
configure:2960: `rand' undeclared (first use this function)
configure:2961: `umask' undeclared (first use this function)
configure:2965: `write' undeclared (first use this function)
configure:2967: `close' undeclared (first use this function)
configure:2977: cannot convert `void *' to `char *' in assignment
configure:2995: cannot convert `void *' to `char *' in assignment
configure:2998: `read' undeclared (first use this function)
configure:3004: `unlink' undeclared (first use this function)
configure: failed program was:
#line 2867 "configure"
#include "confdefs.h"
#ifdef __cplusplus
extern "C" void exit(int) throw();
#endif

/* Thanks to Mike Haertel and Jim Avera for this test.
   Here is a matrix of mmap possibilities:
	mmap private not fixed
	mmap private fixed at somewhere currently unmapped
	mmap private fixed at somewhere already mapped
	mmap shared not fixed
	mmap shared fixed at somewhere currently unmapped
	mmap shared fixed at somewhere already mapped
   For private mappings, we should verify that changes cannot be read()
   back from the file, nor mmap's back from the file at a different
   address.  (There have been systems where private was not correctly
   implemented like the infamous i386 svr4.0, and systems where the
   VM page cache was not coherent with the filesystem buffer cache
   like early versions of FreeBSD and possibly contemporary NetBSD.)
   For shared mappings, we should conversely verify that changes get
   propogated back to all the places they're supposed to be.

   Grep wants private fixed already mapped.
   The main things grep needs to know about mmap are:
   * does it exist and is it safe to write into the mmap'd area
   * how to use it (BSD variants)  */
#include <sys/types.h>
#include <fcntl.h>
#include <sys/mman.h>

/* This mess was copied from the GNU getpagesize.h.  */
#ifndef HAVE_GETPAGESIZE
# ifdef HAVE_UNISTD_H
#  include <unistd.h>
# endif

/* Assume that all systems that can run configure have sys/param.h.  */
# ifndef HAVE_SYS_PARAM_H
#  define HAVE_SYS_PARAM_H 1
# endif

# ifdef _SC_PAGESIZE
#  define getpagesize() sysconf(_SC_PAGESIZE)
# else /* no _SC_PAGESIZE */
#  ifdef HAVE_SYS_PARAM_H
#   include <sys/param.h>
#   ifdef EXEC_PAGESIZE
#    define getpagesize() EXEC_PAGESIZE
#   else /* no EXEC_PAGESIZE */
#    ifdef NBPG
#     define getpagesize() NBPG * CLSIZE
#     ifndef CLSIZE
#      define CLSIZE 1
#     endif /* no CLSIZE */
#    else /* no NBPG */
#     ifdef NBPC
#      define getpagesize() NBPC
#     else /* no NBPC */
#      ifdef PAGESIZE
#       define getpagesize() PAGESIZE
#      endif /* PAGESIZE */
#     endif /* no NBPC */
#    endif /* no NBPG */
#   endif /* no EXEC_PAGESIZE */
#  else /* no HAVE_SYS_PARAM_H */
#   define getpagesize() 8192	/* punt totally */
#  endif /* no HAVE_SYS_PARAM_H */
# endif /* no _SC_PAGESIZE */

#endif /* no HAVE_GETPAGESIZE */

#ifdef __cplusplus
extern "C" { void *malloc(unsigned); }
#else
char *malloc();
#endif

int
main()
{
	char *data, *data2, *data3;
	int i, pagesize;
	int fd;

	pagesize = getpagesize();

	/*
	 * First, make a file with some known garbage in it.
	 */
	data = malloc(pagesize);
	if (!data)
		exit(1);
	for (i = 0; i < pagesize; ++i)
		*(data + i) = rand();
	umask(0);
	fd = creat("conftestmmap", 0600);
	if (fd < 0)
		exit(1);
	if (write(fd, data, pagesize) != pagesize)
		exit(1);
	close(fd);

	/*
	 * Next, try to mmap the file at a fixed address which
	 * already has something else allocated at it.  If we can,
	 * also make sure that we see the same garbage.
	 */
	fd = open("conftestmmap", O_RDWR);
	if (fd < 0)
		exit(1);
	data2 = malloc(2 * pagesize);
	if (!data2)
		exit(1);
	data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
	if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
	    MAP_PRIVATE | MAP_FIXED, fd, 0L))
		exit(1);
	for (i = 0; i < pagesize; ++i)
		if (*(data + i) != *(data2 + i))
			exit(1);

	/*
	 * Finally, make sure that changes to the mapped area
	 * do not percolate back to the file as seen by read().
	 * (This is a bug on some variants of i386 svr4.0.)
	 */
	for (i = 0; i < pagesize; ++i)
		*(data2 + i) = *(data2 + i) + 1;
	data3 = malloc(pagesize);
	if (!data3)
		exit(1);
	if (read(fd, data3, pagesize) != pagesize)
		exit(1);
	for (i = 0; i < pagesize; ++i)
		if (*(data + i) != *(data3 + i))
			exit(1);
	close(fd);
	unlink("conftestmmap");
	exit(0);
}

configure:3033: checking for vprintf
configure:3064: c++ -o conftest -g -O2   conftest.C  -lz 1>&5
configure:3146: checking for strerror
configure:3177: c++ -o conftest -g -O2   conftest.C  -lz 1>&5
configure:3146: checking for strtoll
configure:3177: c++ -o conftest -g -O2   conftest.C  -lz 1>&5
configure:3146: checking for strtoull
configure:3177: c++ -o conftest -g -O2   conftest.C  -lz 1>&5
configure:3347: checking for slp.h
configure:3357: c++ -E  conftest.C >/dev/null 2>conftest.out
configure:3353:17: slp.h: No such file or directory
configure: failed program was:
#line 3352 "configure"
#include "confdefs.h"
#include <slp.h>
configure:3514: checking for OpenSSL directory
configure:3577: c++ -o conftest -fPIC -DNDEBUG -O3 -fno-default-inline -D_REENTRANT   conftest.C  -lz -lssl -lcrypto 1>&5

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-08-13 15:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-13  8:10 native build of OpenWBEM fails on MIPS Dinesh Nagpure

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).