Pagina 1 di 1

Problema ricompilazione wine

Inviato: dom nov 01, 2009 16:48
da Blallo
Sto ricompilando wine, essendo uscita la versione 1.1.32
incontro però alcuni problemi
mi da questi warning in fase di configurazione

Codice: Seleziona tutto

configure: WARNING: zlib.h: present but cannot be compiled
configure: WARNING: zlib.h:     check for missing prerequisite headers?
configure: WARNING: zlib.h: see the Autoconf documentation
configure: WARNING: zlib.h:     section "Present But Cannot Be Compiled"
configure: WARNING: zlib.h: proceeding with the compiler's result
configure: WARNING:     ## ------------------------------------ ##
configure: WARNING:     ## Report this to wine-devel@winehq.org ##
configure: WARNING:     ## ------------------------------------ ##

non solo per zlib, ma per molte altre cose
e in più fallisce al make

Codice: Seleziona tutto

configure: error: pthread 32-bit development files not found.
Wine cannot support threads without libpthread.
Use the --without-pthread option if you really want this.
make: *** No rule to make target `depend'.  Stop.
make: *** No targets specified and no makefile found.  Stop.
make: *** No rule to make target `install'.  Stop.
cp: impossibile fare stat di `ChangeLog': No such file or directory
./wine.SlackBuild FAILED on line 279!

uso lo SB di alien, qualcuno sa aiutarmi?

Re: Problema ricompilazione wine

Inviato: dom nov 01, 2009 18:48
da muzzle
Dando per scontato che hai installato tutti i pacchetti di alien, hai digitato prima di compilare

Codice: Seleziona tutto

 . /etc/profile.d/32dev.sh

Inoltre controlla se nello slackbuild c'è

Codice: Seleziona tutto

LDFLAGS=-L/usr/lib
e che punti alle /usr/lib e non alle 64. La prima volta questo mi ha fregato nella compilazione.

Re: Problema ricompilazione wine

Inviato: dom nov 01, 2009 19:06
da Blallo
peggio di prima...

Codice: Seleziona tutto

checking for C compiler default output file name...
configure: error: in `/tmp/build/tmp-wine/wine-1.1.29':
configure: error: C compiler cannot create executables

Re: Problema ricompilazione wine

Inviato: dom nov 01, 2009 19:13
da muzzle
Io l'ho compilato due giorni fa senza problemi, comunque questo è il mio slackbuild, credo sia quello di alien o comunque quello di Slackbuild.org

Codice: Seleziona tutto

#!/bin/sh

# Slackware build script for wine

# Copyright 2006-2009  Robby Workman  Northport, AL, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

PRGNAM=wine
VERSION=1.1.32
ARCH=${ARCH:-x86_64}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}

CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}

# Some user reports indicate the wine and IE don't get along
# always, and that this might fix it.  The wine team doesn't
# agree that it's the right thing to do, but it's your call.
#IEFIX=${IEFIX:-NO}

if [ "$ARCH" = "i486" ]; then
  SLKCFLAGS="-O2 -march=i486 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
  SLKCFLAGS="-O2 -march=i686 -mtune=i686"
elif [ "$ARCH" = "x86_64" ]; then
  SLKCFLAGS="-O2 -fPIC"
  LIBDIRSUFFIX=""
fi

set -e

rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
cd $PRGNAM-$VERSION
chown -R root:root .
find . \
 \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
 -exec chmod 755 {} \; -o \
 \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
 -exec chmod 644 {} \;

# If IEFIX != NO above, then reverse the patch
#if [ "$IEFIX" != "NO" ]; then
#  patch -p1 -R --verbose < $CWD/IE_fix_maybe.patch
#fi

# All of the libraries produced are 32bit libs anyway
LDFLAGS=-L/usr/lib${LIBDIRSUFFIX} \
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
  --prefix=/usr \
  --libdir=/usr/lib${LIBDIRSUFFIX} \
  --mandir=/usr/man \
  --docdir=/usr/doc/$PRGNAM-$VERSION \
  --build=$ARCH-slackware-linux

make depend
make
make install DESTDIR=$PKG

( cd $PKG
  find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
    xargs strip --strip-unneeded 2> /dev/null || true
  find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
    xargs strip --strip-unneeded 2> /dev/null
)

( cd $PKG/usr/man || exit 1
  find . -type f -exec gzip -9 {} \;
  for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done
)

mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
  ANNOUNCE AUTHORS COPYING.LIB LICENSE* README VERSION \
    $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild

mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh

cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}

Se per caso la compilazione si blocca prova a reinstallare i pacchetti multilib di gcc e glibc, e poi a ricompilare, non so perchè ma alla prima installazione si inceppava la compilazione a me.

Re: Problema ricompilazione wine

Inviato: lun nov 02, 2009 10:16
da scartozzo
Ho trovato questa informazione che potrebbe essere utile.
http://www.gnu.org/software/autoconf/ma ... e-Compiled

Buon lavoro

Re: Problema ricompilazione wine

Inviato: gio nov 05, 2009 16:59
da Blallo
problema risolto, è bastato reinstallare le gcc-multilib (dato che io in precedenza feci casini per compilare a 32 bit)