UnixODBC

From CBLFS
Revision as of 11:49, 24 September 2006 by Jciccone (talk | contribs) (64Bit)
Jump to navigationJump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
Download Source: http://www.unixodbc.org/unixODBC-2.2.11.tar.gz

Dependencies

Optional

Non-Multilib

Compile the package:

sed -i "s/void yyerror/#define YY_FLUSH_BUFFER\n\n&/" sqp/lex.l &&
./configure --prefix=/usr --sysconfdir=/etc/unixodbc \
    --enable-ltdllib --enable-fdb &&
make

Install the package

make install &&
find doc -name "Makefile*" -exec rm {} \; &&
chmod 644 doc/{lst,ProgrammerManual/Tutorial}/* &&
install -v -m755 -d /usr/share/doc/unixODBC-2.2.11 &&
cp -v -R doc/* /usr/share/doc/unixODBC-2.2.11

Multilib

32Bit

Compile the package:

sed -i "s/void yyerror/#define YY_FLUSH_BUFFER\n\n&/" sqp/lex.l &&
CC="gcc ${BUILD32}" CXX="g++ ${BUILD32}" USE_ARCH=32 PKG_CONFIG_PATH="${PKG_CONFIG_PATH32}" \
LDFLAGS="-L/usr/lib" ./configure --prefix=/usr --sysconfdir=/etc/unixodbc \
    --enable-ltdllib --enable-fdb &&
make

Install the package

make install &&
mv -v /usr/bin/odbc_config{,-32}

N32

Compile the package:

sed -i "s/void yyerror/#define YY_FLUSH_BUFFER\n\n&/" sqp/lex.l &&
CC="gcc ${BUILDN32}" CXX="g++ ${BUILDN32}" USE_ARCH=n32 PKG_CONFIG_PATH="${PKG_CONFIG_PATHN32}" \
LDFLAGS="-L/usr/lib32" ./configure --prefix=/usr --sysconfdir=/etc/unixodbc \
    --libdir=/usr/lib32 --enable-ltdllib --enable-fdb &&
make

Install the package

make install &&
mv -v /usr/bin/odbc_config{,-n32}

64Bit

Compile the package:

sed -i "s/void yyerror/#define YY_FLUSH_BUFFER\n\n&/" sqp/lex.l &&
CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" USE_ARCH=64 PKG_CONFIG_PATH="${PKG_CONFIG_PATH64}" \
LDFLAGS="-L/usr/lib64" ./configure --prefix=/usr --sysconfdir=/etc/unixodbc \
    --libdir=/usr/lib64 --enable-ltdllib --enable-fdb --with-qt-libraries=${QTDIR}/lib64 &&
make

Install the package

make install &&
mv -v /usr/bin/odbc_config{,-64} &&
ln -sfv multiarch_wrapper /usr/bin/odbc_config &&
find doc -name "Makefile*" -exec rm {} \; &&
chmod 644 doc/{lst,ProgrammerManual/Tutorial}/* &&
install -v -m755 -d /usr/share/doc/unixODBC-2.2.11 &&
cp -v -R doc/* /usr/share/doc/unixODBC-2.2.11