i did
rpm -bb /usr/src/redhat/SPECS/apache-midgard-1.2.5.spec

after changing some things like turning ssl off an other things and this was
the error i got

i'm attaching the /var/tmp/rpm-tmp.68245 file





+ OPTIM=-O2 -m486 -fno-strength-reduce
+ LDFLAGS=-L/usr/lib/mysql -lmysqlclient -lcrypt
+ ./configure --enable-shared=no --disable-shared
--prefix=/usr/src/redhat/BUILD
/apache-midgard-1.2.5/midgard-lib-1.2.5
creating cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... missing
checking whether to enable maintainer-specific portions of Makefiles... no
checking host system type... configure: error: can not guess host type; you
must
 specify one
Bad exit status from /var/tmp/rpm-tmp.68245 (%build)

        RPM_SOURCE_DIR="/usr/src/redhat/SOURCES"
        RPM_BUILD_DIR="/usr/src/redhat/BUILD"
        RPM_OPT_FLAGS="-O2 -m486 -fno-strength-reduce"
        RPM_ARCH="i386"
        RPM_OS="linux"
        export RPM_SOURCE_DIR RPM_BUILD_DIR RPM_OPT_FLAGS RPM_ARCH RPM_OS
        RPM_DOC_DIR="/usr/doc"
        export RPM_DOC_DIR
        RPM_PACKAGE_NAME="apache-midgard"
        RPM_PACKAGE_VERSION="1.2.5"
        RPM_PACKAGE_RELEASE="8"
        export RPM_PACKAGE_NAME RPM_PACKAGE_VERSION RPM_PACKAGE_RELEASE
        RPM_BUILD_ROOT="/var/tmp/apache-root"
        export RPM_BUILD_ROOT
        
set -x

umask 022
cd /usr/src/redhat/BUILD
cd apache-midgard-1.2.5

if [ "no" = "yes"     ]
then
if [ "EU" = "US" ]
then
  mkdir rsaref-2.0
  cd rsaref-2.0
  gzip -dc $RPM_SOURCE_DIR/rsaref20.tar.Z | tar xf -
  tar xf rsaref.tar
  cp -rp install/unix local
  cd local
  make
  mv rsaref.a librsaref.a
  cd ../..
fi
fi

cd apache_1.3.9
OPTIM="$RPM_OPT_FLAGS" ./configure \
        --with-perl=/usr/bin/perl \
        --with-layout=RedHat \
        --disable-rule=WANTHSREGEX \
        --enable-module=all \
        --enable-shared=max

if [ "no" = "yes"     ]
then
  cd ../openssl-0.9.4

  if [ "EU" = "EU" ]
  then
    sh config no-idea
  elif [ "EU" = "US" ]
  then
    sh config -L`pwd`/../rsaref-2.0/local rsaref
  else
    sh config
  fi

  make
fi

MYSQLLIBS="-L/usr/lib/mysql -lmysqlclient"
export MYSQLLIBS

cd ../midgard-lib-1.2.5
mkdir include
mkdir lib
OPTIM="$RPM_OPT_FLAGS" LDFLAGS="$MYSQLLIBS -lcrypt" ./configure --enable-shared=no 
--disable-shared --prefix=`pwd`
make
make install
MIDGARDINC=-I`pwd`/include
MIDGARDWITH=`pwd`
MIDGARDLIBS="-L$MIDGARDWITH/lib -lmidgard"
export MIDGARDLIBS MIDGARDINC MIDGARDWITH

cd ../mod_midgard-1.2.5
OPTIM="$RPM_OPT_FLAGS" LIB="$MYSQLLIBS $MIDGARDLIBS -lcrypt" LIBS=$LIB LDFLAGS=$LIB 
./configure --with-midgard=$MIDGARDWITH --with-apache=../apache_1.3.9

cd ../midgard-php-1.2.5
OPTIM="$RPM_OPT_FLAGS" LIB="$MYSQLLIBS $MIDGARDLIBS $MIDGARDINC" LDFLAGS=$LIB
./configure --with-midgard=$MIDGARDWITH --with-apache=../apache_1.3.9 --with-mysql
make
make install

cd ../mm-1.0.12
OPTIM="$RPM_OPT_FLAGS" ./configure --disable-shared 
make

if [ "no" = "yes" ]
then
  cd ../mod_ssl-2.4.10-1.3.9

  if [ "EU" = "US" ]
  then
    SSLFLAGS=""
         SSLOPT="--with-rsa=../rsaref-2.0/local"
  elif [ "EU" = "EU" ]
  then
    SSLFLAGS="-DNO_IDEA"
         SSLOPT=""
  else
    SSLFLAGS=""
         SSLOPT=""
  fi
  export SSLFLAGS SSLOPT

  OPTIM="$RPM_OPT_FLAGS $SSLFLAGS" ./configure \
          --with-perl=/usr/bin/perl \
          --with-apache=../apache_1.3.9 \
          --with-ssl=../openssl-0.9.4 \
          $SSLOPT \
          --with-mm=../mm-1.0.12 \
          --with-layout=RedHat \
          --disable-rule=WANTHSREGEX \
          --enable-module=all \
          --enable-module=define \
          --enable-shared=max \
          --enable-suexec --suexec-caller=nobody \
          --suexec-uidmin=500 --suexec-gidmin=500
fi

cd ../apache_1.3.9

if [ "no" = "yes" ]
then
  SSL_BASE=../openssl-0.9.4
  SSLOPTS="--enable-module=define --enable-module=ssl --disable-shared=ssl"

  if [ "EU" = "EU" ]
  then
    SSLFLAGS=-DNO_IDEA
         SSLLIBS=""
  elif [ "EU" = "US" ]
  then
    SSLFLAGS=""
         SLLLIBS="-L../rsaref-2.0 -lrsaref"
  else
    SSLFLAGS=""
         SSLLIBS=""
  fi
else
  SSL_BASE=""
  SSLOPTS=""
  SSLFLAGS=""
  SLLLIBS=""
fi

export SSL_BASE SSLFLAGS SSLLIBS SSLOPTS

OPTIM="$RPM_OPT_FLAGS $SSLFLAGS" \
CFLAGS=$MIDGARDINC \
LIB="$MYSQLLIBS $MIDGARDLIBS $SSLLIBS" \
LDFLAGS="$LIB $SSLLIBS" ./configure \
           --with-perl=/usr/bin/perl \
           --with-layout=RedHat \
           --disable-rule=WANTHSREGEX \
           --enable-module=all \
           --enable-shared=max \
           --enable-suexec --suexec-caller=nobody \
           --suexec-uidmin=500 --suexec-gidmin=500 \
           --activate-module=src/modules/php3/libphp3.a \
                $SSLOPTS \
           --add-module=../mod_midgard-1.2.5/mod_midgard.c

cp src/modules/experimental/Makefile src/modules/experimental/Makefile.bak
sed -e "s/-rpath /-L/" < src/modules/experimental/Makefile.bak > 
src/modules/experimental/Makefile
cp src/modules/standard/Makefile src/modules/standard/Makefile.bak
sed -e "s/-rpath /-L/" < src/modules/standard/Makefile.bak > 
src/modules/standard/Makefile
cp src/modules/extra/Makefile src/modules/extra/Makefile.bak
sed -e "s/-rpath /-L/" < src/modules/extra/Makefile.bak > src/modules/extra/Makefile
cp src/modules/proxy/Makefile src/modules/proxy/Makefile.bak
sed -e "s/-rpath /-L/" < src/modules/proxy/Makefile.bak > src/modules/proxy/Makefile
cp src/modules/example/Makefile src/modules/example/Makefile.bak
sed -e "s/-rpath /-L/" < src/modules/example/Makefile.bak > 
src/modules/example/Makefile

if [ "no" = "yes" ]
then
  cp src/modules/ssl/Makefile src/modules/ssl/Makefile.bak
  sed -e "s/-rpath /-L/" < src/modules/ssl/Makefile.bak > src/modules/ssl/Makefile
fi

if [ "no" = "yes" ]
then
  if [ "EU" = "EU" ]
  then
    LIB="$MYSQLLIBS $MIDGARDLIBS $SSLLIBS" LDFLAGS=$LIB CFLAGS="-DNO_IDEA" make
  else
    LIB="$MYSQLLIBS $MIDGARDLIBS $SSLLIBS" LDFLAGS=$LIB make
  fi
  make certificate TYPE=dummy
  cd ..
fi


exit 0

--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org

To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]

Reply via email to