IBM OS/2 FAQ

Building postgreSQL

You will need the following to do a build
GCC 3.3.5 for OS/2 - currently available at http://www.innotek.de
Unix utilities and the ASH shell - available at http://www.innotek.de
Bison 1.875 available at http://hobbes.nmsu.edu
Flex - available at http://hobbes.nmsu.edu
Gettext tools - available at http://www.innotek.de
Perl 5.8.0 - available at http://www.innotek.de or http://hobbes.nmsu.edu
OpenJade and OpenSP - available at http://hobbes.nmsu.edu

Make sure that these utilities are all available on the PATH

1) You will have to set the following environment variables for
configure to locate your tools
set CC=gcc.exe
set SHELL=ash.exe
set YACC=bison.exe
set FLEX=flex.exe
set AWK=awk.exe
set PERL=perl.exe
set JADE=openjade.exe
set TAR=tar.exe
set XGETTEXT=xgettext.exe
set MSGFMT=msgfmt.exe
set MSGMERGE=msgmerge.exe

2) Generate intl.lib and intl.a and libintl.a from the GCC IvIntl6i.dll
emximp -o intl.lib InIntl6i.dll
emximp -o libintl.a InIntl6i.dll
emximp -o intl.a InIntl6i.dll

These libs are preferred for linking the postgreSQL code as they do not require
earlier versions of LIBC.

3) From the ASH shell run configure
./configure --without-readline --without-zlib --enable-nls
After configure finishes
make
then
make install


