[unixODBC-support] Error building from src.rpm on Centos 4.1

Linus Hicks lihicks at gpi.com
Tue Aug 16 22:39:12 BST 2005


When I try to build the unixODBC-2.2.11-1.src.rpm, I get permission errors which 
look like a problem with not prepending $(DESTDIR). I am doing the build as an 
unprivileged user, so any improper references to installation directories will 
trigger errors. You will notice that the value I have set for %_topdir is 
/home/lihicks/rpmbuild and the install for the build is the typical 
/var/tmp/<package>-root. I searched the mail archives and couldn't find any 
references to this problem.

I think the Makefile gets generated properly, so apparently make is not getting 
invoked with DESTDIR=<installdir>. Can anybody help me with a fix for this problem?

Here's the last bit of the rpmbuild output:


Making install in src
make[2]: Entering directory 
`/home/lihicks/rpmbuild/BUILD/unixODBC-2.2.11/gODBCConfig/src'
make[3]: Entering directory 
`/home/lihicks/rpmbuild/BUILD/unixODBC-2.2.11/gODBCConfig/src'
test -z "/var/tmp/unixODBC-2.2.11-root/usr/lib" || mkdir -p -- 
"/var/tmp/unixODBC-2.2.11-root/usr/lib"
  /bin/sh ../libtool --mode=install /usr/bin/install -c -s 'libgtkodbcconfig.la' 
'/var/tmp/unixODBC-2.2.11-root/usr/lib/libgtkodbcconfig.la'
/usr/bin/install -c .libs/libgtkodbcconfig.so.0.0.0 
/var/tmp/unixODBC-2.2.11-root/usr/lib/libgtkodbcconfig.so.0.0.0
strip --strip-unneeded 
/var/tmp/unixODBC-2.2.11-root/usr/lib/libgtkodbcconfig.so.0.0.0
(cd /var/tmp/unixODBC-2.2.11-root/usr/lib && rm -f libgtkodbcconfig.so.0 && ln 
-s libgtkodbcconfig.so.0.0.0 libgtkodbcconfig.so.0)
(cd /var/tmp/unixODBC-2.2.11-root/usr/lib && rm -f libgtkodbcconfig.so && ln -s 
libgtkodbcconfig.so.0.0.0 libgtkodbcconfig.so)
/usr/bin/install -c .libs/libgtkodbcconfig.lai 
/var/tmp/unixODBC-2.2.11-root/usr/lib/libgtkodbcconfig.la
/usr/bin/install -c .libs/libgtkodbcconfig.a 
/var/tmp/unixODBC-2.2.11-root/usr/lib/libgtkodbcconfig.a
strip --strip-debug /var/tmp/unixODBC-2.2.11-root/usr/lib/libgtkodbcconfig.a
ranlib /var/tmp/unixODBC-2.2.11-root/usr/lib/libgtkodbcconfig.a
chmod 644 /var/tmp/unixODBC-2.2.11-root/usr/lib/libgtkodbcconfig.a
libtool: install: warning: remember to run `libtool --finish /usr/lib'
test -z "/var/tmp/unixODBC-2.2.11-root/usr/bin" || mkdir -p -- 
"/var/tmp/unixODBC-2.2.11-root/usr/bin"
  STRIPPROG='strip' /bin/sh ../libtool --mode=install /bin/sh 
/home/lihicks/rpmbuild/BUILD/unixODBC-2.2.11/gODBCConfig/install-sh -c -s 
'gODBCConfig' '/var/tmp/unixODBC-2.2.11-root/usr/bin/gODBCConfig'
libtool: install: warning: `libgtkodbcconfig.la' has not been installed in 
`/usr/lib'
/bin/sh /home/lihicks/rpmbuild/BUILD/unixODBC-2.2.11/gODBCConfig/install-sh -c 
-s .libs/gODBCConfig /var/tmp/unixODBC-2.2.11-root/usr/bin/gODBCConfig
test -z "/var/tmp/unixODBC-2.2.11-root/usr/include" || mkdir -p -- 
"/var/tmp/unixODBC-2.2.11-root/usr/include"
  /usr/bin/install -c -m 644 'odbcconfig.h' 
'/var/tmp/unixODBC-2.2.11-root/usr/include/odbcconfig.h'
make[3]: Leaving directory 
`/home/lihicks/rpmbuild/BUILD/unixODBC-2.2.11/gODBCConfig/src'
make[2]: Leaving directory 
`/home/lihicks/rpmbuild/BUILD/unixODBC-2.2.11/gODBCConfig/src'
make[2]: Entering directory 
`/home/lihicks/rpmbuild/BUILD/unixODBC-2.2.11/gODBCConfig'
make[3]: Entering directory 
`/home/lihicks/rpmbuild/BUILD/unixODBC-2.2.11/gODBCConfig'
make[3]: Nothing to be done for `install-exec-am'.
if test -d ./pixmaps; then \
   /bin/sh ./mkinstalldirs /usr/share/pixmaps/gODBCConfig; \
   for pixmap in ./pixmaps/*; do \
     if test -f $pixmap; then \
       /usr/bin/install -c -m 644 $pixmap /usr/share/pixmaps/gODBCConfig; \
     fi \
   done \
fi
mkdir -p -- /usr/share/pixmaps/gODBCConfig
mkdir: cannot create directory `/usr/share/pixmaps/gODBCConfig': Permission denied
/usr/bin/install: cannot create regular file `/usr/share/pixmaps/gODBCConfig': 
Permission denied
/usr/bin/install: cannot create regular file `/usr/share/pixmaps/gODBCConfig': 
Permission denied
/usr/bin/install: cannot create regular file `/usr/share/pixmaps/gODBCConfig': 
Permission denied
/usr/bin/install: cannot create regular file `/usr/share/pixmaps/gODBCConfig': 
Permission denied
/usr/bin/install: cannot create regular file `/usr/share/pixmaps/gODBCConfig': 
Permission denied
/usr/bin/install: cannot create regular file `/usr/share/pixmaps/gODBCConfig': 
Permission denied
make[3]: *** [install-data-local] Error 1
make[3]: Leaving directory 
`/home/lihicks/rpmbuild/BUILD/unixODBC-2.2.11/gODBCConfig'
make[2]: *** [install-am] Error 2
make[2]: Leaving directory 
`/home/lihicks/rpmbuild/BUILD/unixODBC-2.2.11/gODBCConfig'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory 
`/home/lihicks/rpmbuild/BUILD/unixODBC-2.2.11/gODBCConfig'
make: *** [install-strip] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.19449 (%install)


RPM build errors:
     Bad exit status from /var/tmp/rpm-tmp.19449 (%install)




More information about the unixODBC-support mailing list