Skip site navigation (1)Skip section navigation (2)
Date:      21 Jan 2003 13:00:22 -0500
From:      Joe Marcus Clarke <marcus@marcuscom.com>
To:        Hung Michael Nguyen <nguyenhm16@mac.com>
Cc:        FreeBSD GNOME Users <gnome@freebsd.org>
Subject:   Re: Can't update scrollkeeper
Message-ID:  <1043172022.341.11.camel@gyros>
In-Reply-To: <3E2D7E46.8070900@mac.com>
References:  <3E2D7E46.8070900@mac.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 2003-01-21 at 12:07, Hung Michael Nguyen wrote:
> Freshly CVSUPed ports... complains about docbook-dtd42-xml, but I have 
> the latest docbook-sk-4.1.2 port installed (had also run a portupgrade 
> -f to try to make it work). I'm running 5.0-CURRENT.

Looks like your build is missing a step.  It should be creating the
catalog files in the pre-configure target.  Try cvsup'ing again.  I just
did this, and it works like a champ.

Joe

> 
> Attached is:
> /export/ports/textproc/scrollkeeper/work/scrollkeeper-0.3.11/config.log
> contents of /var/db/pkg
> output of 'portupgrade scrollkeeper*'
> 
> Thanks
> Mike.
> 
> 
> ______________________________________________________________________
> 
> --->  Upgrading 'scrollkeeper-0.3.11_5,1' to 'scrollkeeper-0.3.11_6,1' (textproc/scrollkeeper)
> --->  Building '/usr/ports/textproc/scrollkeeper'
> ===>  Cleaning for unzip-5.50
> ===>  Cleaning for libiconv-1.8_2
> ===>  Cleaning for bison-1.75
> ===>  Cleaning for gettext-0.11.5_1
> ===>  Cleaning for gmake-3.80
> ===>  Cleaning for imake-4.2.0_1
> ===>  Cleaning for libtool-1.3.4_4
> ===>  Cleaning for m4-1.4_1
> ===>  Cleaning for pkgconfig-0.14.0
> ===>  Cleaning for perl-5.6.1_11
> ===>  Cleaning for python-2.2.2_2
> ===>  Cleaning for gnomehier-1.0_6
> ===>  Cleaning for freetype2-2.1.3_1
> ===>  Cleaning for docbook-sk-4.1.2
> ===>  Cleaning for docbook-xml-4.2
> ===>  Cleaning for docbook-xsl-1.55.0_1
> ===>  Cleaning for expat-1.95.5
> ===>  Cleaning for intltool-0.25
> ===>  Cleaning for libxml2-2.5.1
> ===>  Cleaning for libxslt-1.0.24
> ===>  Cleaning for mkcatalog-1.1
> ===>  Cleaning for sdocbook-xml-4.1.2.5
> ===>  Cleaning for XFree86-libraries-4.2.1_5
> ===>  Cleaning for scrollkeeper-0.3.11_6,1
> ===>  Extracting for scrollkeeper-0.3.11_6,1
> >> Checksum OK for gnome2/scrollkeeper-0.3.11.tar.bz2.
> ===>   scrollkeeper-0.3.11_6,1 depends on executable: intltool-extract - found
> ===>   scrollkeeper-0.3.11_6,1 depends on file: /usr/local/share/sk/docbook/4.1.2/docbook.cat - found
> ===>   scrollkeeper-0.3.11_6,1 depends on file: /usr/local/share/xsl/docbook/xhtml/chunk.xsl - found
> ===>   scrollkeeper-0.3.11_6,1 depends on executable: gmake - found
> ===>   scrollkeeper-0.3.11_6,1 depends on executable: libtool - found
> ===>   scrollkeeper-0.3.11_6,1 depends on executable: bison - found
> ===>   scrollkeeper-0.3.11_6,1 depends on shared library: xslt.1 - found
> ===>   scrollkeeper-0.3.11_6,1 depends on shared library: intl.4 - found
> ===>  Patching for scrollkeeper-0.3.11_6,1
> ===>  Applying FreeBSD patches for scrollkeeper-0.3.11_6,1
> ===>  Configuring for scrollkeeper-0.3.11_6,1
> creating cache ./config.cache
> checking for gawk... no
> checking for mawk... no
> checking for nawk... nawk
> checking for gcc... cc
> checking whether the C compiler (cc -O -pipe -mcpu=pentiumpro ) works... yes
> checking whether the C compiler (cc -O -pipe -mcpu=pentiumpro ) is a cross-compiler... no
> checking whether we are using GNU C... yes
> checking whether cc accepts -g... yes
> checking how to run the C preprocessor... cc -E
> checking for a BSD compatible install... /usr/bin/install -c -o root -g wheel
> checking whether ln -s works... yes
> checking whether gmake sets ${MAKE}... yes
> checking for ANSI C header files... yes
> checking for strerror in -lcposix... no
> checking host system type... i386-portbld-freebsd5.0
> checking target system type... i386-portbld-freebsd5.0
> checking build system type... i386-portbld-freebsd5.0
> checking whether build environment is sane... yes
> checking for working aclocal... found
> checking for working autoconf... found
> checking for working automake... found
> checking for working autoheader... missing
> checking for working makeinfo... found
> checking for Cygwin environment... no
> checking for mingw32 environment... no
> 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 dependant libraries... pass_all
> checking for object suffix... o
> checking for executable suffix... no
> checking command to parse /usr/bin/nm -B output... ok
> checking for dlfcn.h... yes
> checking for ranlib... ranlib
> checking for strip... strip
> checking for objdir... .libs
> checking for cc option to produce PIC... -fPIC
> checking if cc PIC flag -fPIC works... yes
> checking if cc static flag -static works... yes
> checking if cc supports -c -o file.o... yes
> checking if cc supports -c -o file.lo... yes
> checking if cc supports -fno-rtti -fno-exceptions... yes
> checking whether the linker (/usr/bin/ld) supports shared libraries... yes
> checking how to hardcode library paths into programs... immediate
> checking whether stripping libraries is possible... yes
> checking dynamic linker characteristics... freebsd5.0 ld.so
> checking if libtool supports shared libraries... yes
> checking whether -lc should be explicitly linked in... yes
> creating libtool
> checking host system type... i386-unknown-freebsdelf5.0
> checking for ranlib... ranlib
> checking whether we are using GNU C... yes
> checking for object suffix... o
> checking for executable suffix... no
> checking for cc option to produce PIC... -fPIC
> checking if cc PIC flag -fPIC works... yes
> checking if cc supports -c -o file.o... yes
> checking if cc supports -c -o file.lo... yes
> checking if cc supports -fno-rtti -fno-exceptions ... yes
> checking if cc static flag -static works... -static
> checking whether ln -s works... yes
> checking for ld used by GCC... /usr/bin/ld
> checking if the linker (/usr/bin/ld) is GNU ld... yes
> checking whether the linker (/usr/bin/ld) supports shared libraries... yes
> checking for BSD-compatible nm... /usr/bin/nm -B
> checking command to parse /usr/bin/nm -B output... ok
> checking how to hardcode library paths into programs... immediate
> checking for /usr/bin/ld option to reload object files... -r
> checking dynamic linker characteristics... freebsdelf5.0 ld.so
> checking if libtool supports shared libraries... yes
> checking whether to build shared libraries... yes
> checking whether to build static libraries... yes
> checking for objdir... .libs
> creating libtool
> checking for working const... yes
> checking for inline... inline
> checking for size_t... yes
> checking for working alloca.h... no
> checking for alloca... yes
> checking for stdlib.h... yes
> checking for unistd.h... yes
> checking for sys/stat.h... yes
> checking for sys/types.h... yes
> checking for getpagesize... yes
> checking for working mmap... no
> checking for getcwd... yes
> checking for getwd... yes
> checking for putenv... yes
> checking for strdup... yes
> checking for --with-omfdirs... /usr/X11R6/share/gnome/omf
> checking for intltool-extract... /usr/local/bin/intltool-extract
> checking intltool version... 0.25
> checking for perl... /usr/local/bin/perl
> checking for xml2-config... /usr/local/bin/xml2-config
> checking libxml2 version... 2.5.1
> checking for xslt-config... /usr/local/bin/xslt-config
> checking for docbook-dtd42-xml... * ERROR * 
>  
> Couldn't find the DocBook XML V4.1.2 DTD.  Please make sure that you have the docbook-dtd412-xml package installed. If it is installed, the package probably did not register the DTD in the catalog properly. Consult http://scrollkeeper.sourceforge.net/docbook.shtml for more information.
>  
> configure: error: DocBook XML V4.1.2 DTD not present in /usr/local/share/sk. Make sure docbook-dtd412-xml is installed and registers DTD in catalog.
> ===>  Script "configure" failed unexpectedly.
>       Please report the problem to gnome@FreeBSD.org [maintainer] and attach
>       the
>       "/export/ports/textproc/scrollkeeper/work/scrollkeeper-0.3.11/config.log"
>       including the output of the failure of your make command. Also, it might
>       be a good idea to provide an overview of all packages installed on your
>       system (e.g. an `ls /var/db/pkg`).
> *** Error code 1
> 
> Stop in /export/ports/textproc/scrollkeeper.
> 	! textproc/scrollkeeper (scrollkeeper-0.3.11_5,1)	(configure error)
> 
> ______________________________________________________________________
> 
> Hermes-1.3.2
> Mesa-3.4.2_2
> ORBit-0.5.17
> ORBit2-2.4.4
> XFree86-4.2.0_1,1
> XFree86-FontServer-4.2.0_1
> XFree86-Server-4.2.1_6
> XFree86-clients-4.2.1_2
> XFree86-documents-4.2.0
> XFree86-font100dpi-4.2.0
> XFree86-font75dpi-4.2.0
> XFree86-fontCyrillic-4.2.0_4
> XFree86-fontDefaultBitmaps-4.2.0
> XFree86-fontEncodings-4.2.0
> XFree86-fontScalable-4.2.0
> XFree86-libraries-4.2.1_5
> Xft-2.1
> aim-1.5.234
> aspell-0.50.3
> atk-1.0.3
> autoconf-2.53_1
> autoconf213-2.13.000227_5
> automake-1.5,1
> automake14-1.4.5_9
> bison-1.75
> bonobo-1.0.22
> bonobo-activation-1.0.4_1,1
> bonobo-conf-0.16
> bugbuddy2-2.2.0
> cups-base-1.1.15.1_4
> curl-7.10.3
> cvsup-16.1f
> db3-3.3.11,1
> docbook-sk-4.1.2
> docbook-xml-4.2
> docbook-xsl-1.55.0_1
> eel2-2.0.8
> eog2-1.0.4
> esound-0.2.29
> evolution-1.2.0_4
> expat-1.95.5
> fbsd-icons-1.0
> flashpluginwrapper-0.20021113
> fontconfig-2.1
> freetype-1.3.1_2
> freetype2-2.1.3_1
> gail-0.17
> gaim-esound-0.59.8_1
> gal-0.21
> gcalctool-4.1.9
> gconf-1.0.9_2
> gconf-editor-0.3.1
> gconf2-1.2.1
> gdbm-1.8.3
> gdk-pixbuf-0.22.0
> gdkxft-gnome-1.5_1
> gdm2-2.4.0.12
> gedit2-2.0.6
> gettext-0.11.5_1
> ghostscript-gnu-7.05_3
> gkrellm-2.1.5
> glade2-1.1.3
> gle-3.0.3
> glib-1.2.10_8
> glib-2.0.7
> glibwww-0.2_1
> gmake-3.80
> gnome-pkgview-0.0.7
> gnome2-2.0_6
> gnomeapplets2-2.0.4
> gnomeaudio-1.4.0
> gnomecanvas-0.21.0
> gnomecontrolcenter-1.4.0.5_1
> gnomecontrolcenter2-2.0.3
> gnomedb-0.2.96_1
> gnomedesktop-2.0.10
> gnomegames2-2.0.6_1
> gnomehier-1.0_6
> gnomelibs-1.4.2_1
> gnomemedia2-2.0.3
> gnomemimedata-2.0.1_2
> gnomemm-1.2.2
> gnomepanel-2.0.11
> gnomeprint-0.37
> gnomesession-2.0.9
> gnomespell-0.5
> gnomesystemmonitor-2.0.2
> gnometerminal-2.0.1
> gnomeuserdocs2-2.0.1
> gnomeutils2-2.0.6,1
> gnomevfs-1.0.5_4
> gnomevfs2-2.0.4.1_1
> gob-1.0.12
> gqview-gnome-1.1.1
> gtar-1.13.25_5
> gtk-1.2.10_9
> gtk-2.0.9
> gtk-bluecurve-theme-0.47
> gtk-engines2-1.9.0
> gtkhtml-1.1.6_2
> gtkmm-1.2.8_1
> guile-1.4.1_2
> help2man-1.29
> imake-4.2.0_1
> imlib-1.9.14_1
> intltool-0.25
> javavmwrapper-1.4
> jdk-1.3.1p7_2
> jpeg-6b_1
> ksh93-20021221
> lcms-1.09
> libIDL-0.8.0
> libart_lgpl2-2.3.11
> libaudiofile-0.2.3
> libbonobo-2.0.1
> libbonoboui-2.0.3.2_1
> libcapplet-1.4.0.5
> libgda-0.2.96_1
> libgda2-0.8.199
> libghttp-1.0.9
> libglade-0.17_2
> libglade2-2.0.1
> libgmp-2001.08.07
> libgnome-2.0.6
> libgnomecanvas-2.0.5
> libgnomedb-0.8.199
> libgnomeprint-1.116.3
> libgnomeprintui-1.116.3
> libgnomeui-2.0.6
> libgnugetopt-1.2
> libgtkhtml-2.0.3
> libgtop2-2.0.1
> libical-0.24
> libiconv-1.8_2
> libmikmod-esound-3.1.10
> libmng-1.0.4
> libogg-1.0_1,3
> libpanel-1.4.2
> librep-0.16.1_1
> librsvg2-2.0.1
> libsigc++-1.0.4
> libslang-1.4.6
> libtool-1.3.4_4
> libungif-4.1.0b1
> libunicode-0.4_3
> libvorbis-1.0_1,3
> libwnck-0.18
> libwww-5.4.0
> libxml-1.8.17_1
> libxml2-2.5.1
> libxslt-1.0.24
> libzvt-2.0.1_1
> linc-0.5.5
> linux-flashplugin-5.0r51
> linux-gtk-1.2_2
> linux-realplayer-8.cs2
> linux-sun-jdk-1.3.1.06_1
> linux_base-7.1_2
> lsof-4.65
> lynx-ssl-2.8.4.1c
> m4-1.4_1
> metacity-2.4.13
> metacity-setup-0.7.1_1
> metatheme2-0.9.7
> mkcatalog-1.1
> mozilla-1.1_3,2
> mozilla-headers-1.1_3,2
> mutt-1.4
> nautilus-gtkhtml-0.3.2_1
> nautilus2-2.0.8
> nmap-3.00
> nspr-4.2_1
> nss-3.4.2
> oaf-0.6.10_1
> open-motif-2.2.2_1
> openoffice-1.0.1_4
> pango-1.0.5
> pdksh-5.2.14p2
> perl-5.6.1_11
> pkg_tree-1.1
> pkgconfig-0.14.0
> pkgdb.db
> png-1.2.5
> popt-1.6.4
> portupgrade-20021216
> privoxy-3.0.0
> py22-expat-2.2.2_2
> python-2.2.2_2
> rep-gtk2-0.17,1
> rpm-3.0.6_6
> rsync-2.5.5_1
> ruby-1.6.8
> ruby-bdb1-0.1.8
> ruby-rdoc-0.0.0.b2
> ruby-shim-ruby18-1.8.0.p1
> samba-2.2.7a
> sawfish2-1.2_1,2
> scrollkeeper-0.3.11_5,1
> sdocbook-xml-4.1.2.5
> slrn-0.9.7.4
> soup-0.7.10
> sox-12.17.3_1
> startup-notification-0.4
> sudo-1.6.6
> t1lib-1.3.1
> tcl-8.3.5
> tiff-3.5.7
> tightvnc-1.2.7
> tk-8.3.5
> unzip-5.50
> urwfonts-1.0
> vim-6.1.271
> wget-1.8.2_2
> wrapper-1.0_2
> xaos-3.0
> xdaliclock-2.18
> xmbmon-107p1
> xmms-crossfade-0.2.9
> xmms-esound-gnome-1.2.7_3
> xscreensaver-gnome-4.06
> yelp-1.0.7
> zip-2.3_1
> 
> ______________________________________________________________________
> 
> This file contains any messages produced by compilers while
> running configure, to aid debugging if configure makes a mistake.
> 
> configure:713: checking for gawk
> configure:713: checking for mawk
> configure:713: checking for nawk
> configure:745: checking for gcc
> configure:858: checking whether the C compiler (cc -O -pipe -mcpu=pentiumpro ) works
> configure:874: cc -o conftest -O -pipe -mcpu=pentiumpro -I/usr/local/include  conftest.c -L/usr/local/lib -lintl 1>&5
> configure:900: checking whether the C compiler (cc -O -pipe -mcpu=pentiumpro ) is a cross-compiler
> configure:905: checking whether we are using GNU C
> configure:914: cc -E conftest.c
> configure:933: checking whether cc accepts -g
> configure:965: checking how to run the C preprocessor
> configure:986: cc -E -I/usr/local/include conftest.c >/dev/null 2>conftest.out
> configure:1075: checking for a BSD compatible install
> configure:1128: checking whether ln -s works
> configure:1149: checking whether gmake sets ${MAKE}
> configure:1178: checking for ANSI C header files
> configure:1191: cc -E -I/usr/local/include conftest.c >/dev/null 2>conftest.out
> configure:1258: cc -o conftest -O -pipe -mcpu=pentiumpro -I/usr/local/include  conftest.c -L/usr/local/lib -lintl 1>&5
> configure:1284: checking for strerror in -lcposix
> configure:1303: cc -o conftest -O -pipe -mcpu=pentiumpro -I/usr/local/include  conftest.c -lcposix  -L/usr/local/lib -lintl 1>&5
> /usr/bin/ld: cannot find -lcposix
> configure: failed program was:
> #line 1292 "configure"
> #include "confdefs.h"
> /* Override any gcc2 internal prototype to avoid an error.  */
> /* We use char because int might match the return type of a gcc2
>     builtin and then its argument prototype would still apply.  */
> char strerror();
> 
> int main() {
> strerror()
> ; return 0; }
> configure:1354: checking host system type
> configure:1375: checking target system type
> configure:1393: checking build system type
> configure:1420: checking whether build environment is sane
> configure:1496: checking for working aclocal
> configure:1509: checking for working autoconf
> configure:1522: checking for working automake
> configure:1535: checking for working autoheader
> configure:1548: checking for working makeinfo
> configure:1562: checking for Cygwin environment
> configure:1578: cc -c -O -pipe -mcpu=pentiumpro -I/usr/local/include conftest.c 1>&5
> configure: In function `main':
> configure:1574: `__CYGWIN32__' undeclared (first use in this function)
> configure:1574: (Each undeclared identifier is reported only once
> configure:1574: for each function it appears in.)
> configure: failed program was:
> #line 1567 "configure"
> #include "confdefs.h"
> 
> int main() {
> 
> #ifndef __CYGWIN__
> #define __CYGWIN__ __CYGWIN32__
> #endif
> return __CYGWIN__;
> ; return 0; }
> configure:1595: checking for mingw32 environment
> configure:1607: cc -c -O -pipe -mcpu=pentiumpro -I/usr/local/include conftest.c 1>&5
> configure: In function `main':
> configure:1603: `__MINGW32__' undeclared (first use in this function)
> configure:1603: (Each undeclared identifier is reported only once
> configure:1603: for each function it appears in.)
> configure: failed program was:
> #line 1600 "configure"
> #include "confdefs.h"
> 
> int main() {
> return __MINGW32__;
> ; return 0; }
> configure:1704: checking for ld used by GCC
> configure:1772: checking if the linker (/usr/bin/ld) is GNU ld
> GNU ld version 2.13.2 [FreeBSD] 2002-11-27
> configure:1789: checking for /usr/bin/ld option to reload object files
> configure:1801: checking for BSD-compatible nm
> configure:1839: checking how to recognise dependant libraries
> configure:2012: checking for object suffix
> configure:2018: cc -c -O -pipe -mcpu=pentiumpro -I/usr/local/include conftest.c 1>&5
> configure:2038: checking for executable suffix
> configure:2048: cc -o conftest -O -pipe -mcpu=pentiumpro -I/usr/local/include  conftest.c -L/usr/local/lib -lintl 1>&5
> configure:2079: checking command to parse /usr/bin/nm -B output
> configure:2155: cc -c -O -pipe -mcpu=pentiumpro -I/usr/local/include conftest.c 1>&5
> configure:2158: /usr/bin/nm -B conftest.o | sed -n -e 's/^.*[ ]\([ABCDGISTW][ABCDGISTW]*\)[ ][ ]*\(\)\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2\3 \3/p' > conftest.nm
> configure:2209: cc -o conftest -O -pipe -mcpu=pentiumpro -I/usr/local/include  conftest.c conftstm.o 1>&5
> configure:2255: checking for dlfcn.h
> configure:2265: cc -E -I/usr/local/include conftest.c >/dev/null 2>conftest.out
> configure:2433: checking for ranlib
> configure:2500: checking for strip
> configure:2736: checking for objdir
> configure:2763: checking for cc option to produce PIC
> configure:2915: checking if cc PIC flag -fPIC works
> configure:2929: cc -c -O -pipe -mcpu=pentiumpro -fPIC -DPIC -I/usr/local/include conftest.c 1>&5
> configure:2981: checking if cc static flag -static works
> configure:2996: cc -o conftest -O -pipe -mcpu=pentiumpro -I/usr/local/include  -static conftest.c -L/usr/local/lib -lintl 1>&5
> configure:3023: checking if cc supports -c -o file.o
> configure:3042: cc -c -O -pipe -mcpu=pentiumpro -o out/conftest2.o -I/usr/local/include conftest.c 1>&5
> configure:3071: checking if cc supports -c -o file.lo
> configure:3087: cc -c -O -pipe -mcpu=pentiumpro -c -o conftest.lo -I/usr/local/include conftest.c 1>&5
> configure:3136: checking if cc supports -fno-rtti -fno-exceptions
> configure:3149: cc -c -O -pipe -mcpu=pentiumpro -fno-rtti -fno-exceptions -c conftest.c -I/usr/local/include conftest.c 1>&5
> configure:3176: checking whether the linker (/usr/bin/ld) supports shared libraries
> configure:3792: checking how to hardcode library paths into programs
> configure:3820: checking whether stripping libraries is possible
> configure:3834: checking dynamic linker characteristics
> configure:4220: checking if libtool supports shared libraries
> configure:4713: checking whether -lc should be explicitly linked in
> configure:4720: cc -c -O -pipe -mcpu=pentiumpro -I/usr/local/include conftest.c 1>&5
> configure:4733: cc -shared conftest.o  -v -Wl,-soname -Wl,conftest -o conftest 2>&1 | grep  -lc  >/dev/null 2>&1
> configure:5314: checking for working const
> configure:5368: cc -c -O -pipe -mcpu=pentiumpro -I/usr/local/include conftest.c 1>&5
> configure:5389: checking for inline
> configure:5403: cc -c -O -pipe -mcpu=pentiumpro -I/usr/local/include conftest.c 1>&5
> configure:5429: checking for size_t
> configure:5465: checking for working alloca.h
> configure:5477: cc -o conftest -O -pipe -mcpu=pentiumpro -I/usr/local/include  conftest.c -L/usr/local/lib -lintl 1>&5
> configure:5471:20: alloca.h: No such file or directory
> configure: failed program was:
> #line 5470 "configure"
> #include "confdefs.h"
> #include <alloca.h>
> int main() {
> char *p = alloca(2 * sizeof(int));
> ; return 0; }
> configure:5498: checking for alloca
> configure:5531: cc -o conftest -O -pipe -mcpu=pentiumpro -I/usr/local/include  conftest.c -L/usr/local/lib -lintl 1>&5
> configure:5700: checking for stdlib.h
> configure:5710: cc -E -I/usr/local/include conftest.c >/dev/null 2>conftest.out
> configure:5700: checking for unistd.h
> configure:5710: cc -E -I/usr/local/include conftest.c >/dev/null 2>conftest.out
> configure:5700: checking for sys/stat.h
> configure:5710: cc -E -I/usr/local/include conftest.c >/dev/null 2>conftest.out
> configure:5700: checking for sys/types.h
> configure:5710: cc -E -I/usr/local/include conftest.c >/dev/null 2>conftest.out
> configure:5739: checking for getpagesize
> configure:5767: cc -o conftest -O -pipe -mcpu=pentiumpro -I/usr/local/include  conftest.c -L/usr/local/lib -lintl 1>&5
> configure:5792: checking for working mmap
> configure:5953: cc -o conftest -O -pipe -mcpu=pentiumpro -I/usr/local/include  conftest.c -L/usr/local/lib -lintl 1>&5
> configure:5884: conflicting types for `malloc'
> /usr/include/stdlib.h:100: previous declaration of `malloc'
> configure: failed program was:
> #line 5800 "configure"
> #include "confdefs.h"
> 
> /* 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>
> 
> #if HAVE_SYS_TYPES_H
> # include <sys/types.h>
> #endif
> 
> #if HAVE_STDLIB_H
> # include <stdlib.h>
> #endif
> 
> #if HAVE_SYS_STAT_H
> # include <sys/stat.h>
> #endif
> 
> #if HAVE_UNISTD_H
> # include <unistd.h>
> #endif
> 
> /* This mess was copied from the GNU getpagesize.h.  */
> #ifndef HAVE_GETPAGESIZE
> 
> /* 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:5978: checking for getcwd
> configure:6006: cc -o conftest -O -pipe -mcpu=pentiumpro -I/usr/local/include  conftest.c -L/usr/local/lib -lintl 1>&5
> configure:5978: checking for getwd
> configure:6006: cc -o conftest -O -pipe -mcpu=pentiumpro -I/usr/local/include  conftest.c -L/usr/local/lib -lintl 1>&5
> configure:5978: checking for putenv
> configure:6006: cc -o conftest -O -pipe -mcpu=pentiumpro -I/usr/local/include  conftest.c -L/usr/local/lib -lintl 1>&5
> configure:5978: checking for strdup
> configure:6006: cc -o conftest -O -pipe -mcpu=pentiumpro -I/usr/local/include  conftest.c -L/usr/local/lib -lintl 1>&5
> configure:6032: checking for --with-omfdirs
> configure:6051: checking for intltool-extract
> configure:6088: checking intltool version
> configure:6133: checking for perl
> configure:6180: checking for xml2-config
> configure:6217: checking libxml2 version
> configure:6234: checking for xslt-config
> configure:6282: checking for docbook-dtd42-xml
-- 
PGP Key : http://www.marcuscom.com/pgp.asc




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-gnome" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1043172022.341.11.camel>