Skip site navigation (1) Skip section navigation (2)

Re: PostgreSQL compile error

From: Václav Vozár <vaclav(dot)vozar(at)emicad(dot)cz>
To: "PostgreSQL archive (el(dot) adresa)" <pgsql-cygwin(at)postgresql(dot)org>
Subject: Re: PostgreSQL compile error
Date: 2004-08-05 15:13:21
Message-ID: B85E886963E48D468C66D923C9895CC5FE42@srv.int2.emicad.cz (view raw or flat)
Thread:
Lists: pgsql-cygwin
I run : built.sh 7.4.3-1 5432
 
Here is built.sh file:
 
#! /bin/bash
 
# $Id: build.sh,v 1.19 2004/01/09 15:18:13 jt Exp $
 
# vim: tabstop=4
 
# parse arguments
version=$1
port=$2
 
# constants
pkg=postgresql
 
# dir variables
Prefix=/usr
TmpDir=/tmp/$pkg.$$
InstallPrefix=$TmpDir$Prefix
 
DataDir=$InstallPrefix/share
BinDir=$InstallPrefix/bin
LibDir=$InstallPrefix/lib
ManDir=$DataDir/man
DocDir=$DataDir/doc/$pkg-$version
CygDocDir=$DataDir/doc/Cygwin
PatchDir=CYGWIN-PATCHES
SrcDocDir=doc
 
# configure
configure --enable-multibyte --with-python --with-perl --with-CXX --with-openssl --prefix=$Prefix --sysconfdir=/etc --datadir=/usr/share --mandir=/usr/share/man --docdir=$Prefix/share/doc/$pkg-$version
 
# make
make
make -C contrib
 
# make install
make DESTDIR=$TmpDir install
make DESTDIR=$TmpDir install-all-headers
make -C contrib DESTDIR=$TmpDir install
 
# strip executables and DLLs
find $InstallPrefix -name '*.exe' -o -name '*.dll' | xargs strip
 
# move DLLs from lib to bin
mv $LibDir/*.dll $BinDir
 
# copy libpostgres.a to lib (FIXME: temporary hack)
cp src/backend/libpostgres.a $LibDir
 
# create man cat dirs
mkdir $ManDir/cat1 $ManDir/catl
 
# convert doc symlinks into "hard" links
find $DocDir -type l | xargs -r ls -l | gawk '{i = NF - 2; print $i, $NF}' |
while read link file
do
 path=$(dirname $link)
 rm -f $link
 ln $path/$file $link
done
 
# copy Cygwin PostgreSQL README file
mkdir -p $CygDocDir
cp $PatchDir/README $CygDocDir/$pkg-$version.README
 
# copy PostgreSQL COPYRIGHT, README, etc. files
TopFiles=(COPYRIGHT HISTORY INSTALL README)
DocFiles=(FAQ FAQ_MSWIN KNOWN_BUGS MISSING_FEATURES README.mb.big5 \
 README.mb.jp bug.template)
cp ${TopFiles[*]} ${DocFiles[*]/#/$SrcDocDir/} $DocDir
 
# create package
tar -C $TmpDir -cjf $pkg-$version-$port.tar.bz2 usr
 
# remove temporary directory
rm -fr $TmpDir 

Responses

pgsql-cygwin by date

Next:From: Mike LeahyDate: 2004-08-05 17:11:59
Subject: Re: WARNING: dup(0) failed after 3195 successes: Bad file descriptor
Previous:From: Václav VozárDate: 2004-08-05 13:41:58
Subject: PostgreSQL compile error

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group