[RISOLTO] strano errore di compilazione

Se avete problemi con l'installazione e la configurazione di Slackware64 postate qui. Non usate questo forum per argomenti che trattano la Slackware32 o generali... per quelli usate rispettivamente il forum Slackware e Gnu/Linux in genere.

Moderatore: Staff

Regole del forum
1) Citare sempre la versione di Slackware64 usata, la versione del Kernel e magari anche la versione della libreria coinvolta. Questi dati aiutano le persone che possono rispondere.
2) Per evitare confusione prego inserire in questo forum solo topic che riguardano appunto Slackware64, se l'argomento è Slackware32 o generale usate rispettivamente il forum Slackware o Gnu/Linux in genere.
3) Leggere attentamente le risposte ricevute
4) Scrivere i messaggi con il colore di default, evitare altri colori.
5) Scrivere in Italiano o in Inglese, se possibile grammaticalmente corretto, evitate stili di scrittura poco chiari, quindi nessuna abbreviazione tipo telegramma o scrittura stile SMS o CHAT.
6) Appena registrati è consigliato presentarsi nel forum dedicato.

La non osservanza delle regole porta a provvedimenti di vari tipo da parte dello staff, in particolare la non osservanza della regola 5 porta alla cancellazione del post e alla segnalazione dell'utente. In caso di recidività l'utente rischia il ban temporaneo.
Rispondi
tom
Packager
Packager
Messaggi: 407
Iscritto il: dom 1 nov 2009, 12:53
Nome Cognome: Tommaso D'Anna
Slackware: 13.37
Kernel: 2.6.37.6
Desktop: xfce

[RISOLTO] strano errore di compilazione

Messaggio da tom »

allora, ho scaricato da slackbuild.org il seguente slackbuild+sorgenti: http://slackbuilds.org/repository/13.0/ ... /libvdpau/

Lo slackbuild in versione originale è il seguente:

Codice: Seleziona tutto

#!/bin/sh

# Slackware build script for libvdpau

# Copyright 2009 Heinz Wiesinger, Amsterdam, The Netherlands
# 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=libvdpau
VERSION=0.2
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}

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

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

set -e

rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .

CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
  --prefix=/usr \
  --libdir=/usr/lib${LIBDIRSUFFIX} \
  --sysconfdir=/etc \
  --localstatedir=/var \
  --mandir=/usr/man \
  --disable-static \
  --build=$ARCH-slackware-linux

make
make install-strip DESTDIR=$PKG

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

mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS ChangeLog COPYING INSTALL NEWS README \
  $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

cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
ad esso ho apportato solo 2 modifiche: ARCH=${ARCH:-i486} è diventato ARCH=${ARCH:-x86_64}, e ${PKGTYPE:-tgz} è diventato ${PKGTYPE:-txz}
Poi ho dato chmod +x libvdpau.SlackBuild ed infine l'ho eseguito. Il risultato è questo:

Codice: Seleziona tutto

root@Penelope:/home/tom_slack/Download/libvdpau# ./libvdpau.SlackBuild    
libvdpau-0.2/                                                             
libvdpau-0.2/acinclude.m4                                                 
libvdpau-0.2/autogen.sh                                                   
libvdpau-0.2/src/                                                         
libvdpau-0.2/src/Makefile.am                                              
libvdpau-0.2/src/Makefile.in                                              
libvdpau-0.2/src/vdpau_wrapper.c                                          
libvdpau-0.2/trace/                                                       
libvdpau-0.2/trace/vdpau_trace.cpp                                        
libvdpau-0.2/trace/Makefile.am                                            
libvdpau-0.2/trace/Makefile.in                                            
libvdpau-0.2/include/                                                     
libvdpau-0.2/include/vdpau/                                               
libvdpau-0.2/include/vdpau/vdpau_x11.h                                    
libvdpau-0.2/include/vdpau/vdpau.h                                        
libvdpau-0.2/INSTALL                                                      
libvdpau-0.2/depcomp                                                      
libvdpau-0.2/Makefile.am                                                  
libvdpau-0.2/COPYING                                                      
libvdpau-0.2/ChangeLog                                                    
libvdpau-0.2/configure                                                    
libvdpau-0.2/Makefile.in                                                  
libvdpau-0.2/configure.ac                                                 
libvdpau-0.2/aclocal.m4                                                   
libvdpau-0.2/ltmain.sh                                                    
libvdpau-0.2/config.sub                                                   
libvdpau-0.2/config.h.in                                                  
libvdpau-0.2/install-sh                                                   
libvdpau-0.2/NEWS                                                         
libvdpau-0.2/README                                                       
libvdpau-0.2/AUTHORS                                                      
libvdpau-0.2/config.guess                                                 
libvdpau-0.2/missing                                                      
libvdpau-0.2/vdpau.pc.in                                                  
checking for a BSD-compatible install... /bin/ginstall -c                 
checking whether build environment is sane... yes                         
checking for a thread-safe mkdir -p... /bin/mkdir -p                      
checking for gawk... gawk                                                 
checking whether make sets $(MAKE)... yes                                 
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc                                                   
checking for C compiler default output file name... a.out                 
checking whether the C compiler works... yes                              
checking whether we are cross compiling... no                             
checking for suffix of executables...                                     
checking for suffix of object files... o                                  
checking whether we are using the GNU C compiler... yes                   
checking whether gcc accepts -g... yes                                    
checking for gcc option to accept ISO C89... none needed                  
checking for style of include used by make... GNU                         
checking dependency style of gcc... gcc3                                  
checking for g++... g++                                                   
checking whether we are using the GNU C++ compiler... yes                 
checking whether g++ accepts -g... yes                                    
checking dependency style of g++... gcc3                                  
checking build system type... x86_64-slackware-linux-gnu                  
checking host system type... x86_64-slackware-linux-gnu                   
checking for a sed that does not truncate output... /bin/sed              
checking for grep that handles long lines and -e... /bin/grep             
checking for egrep... /bin/grep -E                                        
checking for fgrep... /bin/grep -F                                        
checking for ld used by gcc... /usr/x86_64-slackware-linux/bin/ld         
checking if the linker (/usr/x86_64-slackware-linux/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B       
checking the name lister (/usr/bin/nm -B) interface... BSD nm               
checking whether ln -s works... yes                                         
checking the maximum length of command line arguments... 1572864            
checking whether the shell understands some XSI constructs... yes           
checking whether the shell understands "+="... yes                          
checking for /usr/x86_64-slackware-linux/bin/ld option to reload object files... -r
checking for objdump... objdump                                                    
checking how to recognize dependent libraries... pass_all                          
checking for ar... ar                                                              
checking for strip... strip                                                        
checking for ranlib... ranlib                                                      
checking command to parse /usr/bin/nm -B output from gcc object... ok              
checking how to run the C preprocessor... gcc -E                                   
checking for ANSI C header files... yes                                            
checking for sys/types.h... yes                                                    
checking for sys/stat.h... yes                                                     
checking for stdlib.h... yes                                                       
checking for string.h... yes                                                       
checking for memory.h... yes                                                       
checking for strings.h... yes                                                      
checking for inttypes.h... yes                                                     
checking for stdint.h... yes                                                       
checking for unistd.h... yes                                                       
checking for dlfcn.h... yes                                                        
checking whether we are using the GNU C++ compiler... (cached) yes                 
checking whether g++ accepts -g... (cached) yes                                    
checking dependency style of g++... (cached) gcc3                                  
checking how to run the C++ preprocessor... g++ -E                                 
checking for objdir... .libs                                                       
checking if gcc supports -fno-rtti -fno-exceptions... no                           
checking for gcc option to produce PIC... -fPIC -DPIC                              
checking if gcc PIC flag -fPIC -DPIC works... yes                                  
checking if gcc static flag -static works... yes                                   
checking if gcc supports -c -o file.o... yes                                       
checking if gcc supports -c -o file.o... (cached) yes                              
checking whether the gcc linker (/usr/x86_64-slackware-linux/bin/ld -m elf_x86_64) supports shared libraries... yes                                                             
checking whether -lc should be explicitly linked in... no                               
checking dynamic linker characteristics... GNU/Linux ld.so                              
checking how to hardcode library paths into programs... immediate                       
checking whether stripping libraries is possible... yes                                 
checking if libtool supports shared libraries... yes                                    
checking whether to build shared libraries... yes                                       
checking whether to build static libraries... no                                        
checking for ld used by g++... /usr/x86_64-slackware-linux/bin/ld -m elf_x86_64         
checking if the linker (/usr/x86_64-slackware-linux/bin/ld -m elf_x86_64) is GNU ld... yes                                                                                      
checking whether the g++ linker (/usr/x86_64-slackware-linux/bin/ld -m elf_x86_64) supports shared libraries... yes                                                             
checking for g++ option to produce PIC... -fPIC -DPIC                                   
checking if g++ PIC flag -fPIC -DPIC works... yes                                       
checking if g++ static flag -static works... yes                                        
checking if g++ supports -c -o file.o... yes                                            
checking if g++ supports -c -o file.o... (cached) yes                                   
checking whether the g++ linker (/usr/x86_64-slackware-linux/bin/ld -m elf_x86_64) supports shared libraries... yes                                                             
checking dynamic linker characteristics... GNU/Linux ld.so                              
checking how to hardcode library paths into programs... immediate                       
checking for pkg-config... /usr/bin/pkg-config                                          
checking pkg-config is at least version 0.9.0... yes                                    
checking for X11... yes                                                                 
checking for dlopen... no                                                               
checking for dlopen in -ldl... yes                                                      
configure: creating ./config.status                                                     
config.status: creating Makefile                                                        
config.status: creating src/Makefile                                                    
config.status: creating trace/Makefile                                                  
config.status: creating vdpau.pc                                                        
config.status: creating config.h                                                        
config.status: executing depfiles commands                                              
config.status: executing libtool commands                                               
make  all-recursive                                                                     
make[1]: Entering directory `/tmp/SBo/libvdpau-0.2'                                     
Making all in src                                                                       
make[2]: Entering directory `/tmp/SBo/libvdpau-0.2/src'                                 
/bin/sh ../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..    -I../include  -O2 -fPIC -MT vdpau_wrapper.lo -MD -MP -MF .deps/vdpau_wrapper.Tpo -c -o vdpau_wrapper.lo vdpau_wrapper.c                                                                    
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -fPIC -MT vdpau_wrapper.lo -MD -MP -MF .deps/vdpau_wrapper.Tpo -c vdpau_wrapper.c  -fPIC -DPIC -o .libs/vdpau_wrapper.o                                                                                
mv -f .deps/vdpau_wrapper.Tpo .deps/vdpau_wrapper.Plo                                   
/bin/sh ../libtool --tag=CC   --mode=link gcc -I../include  -O2 -fPIC -version-info 1:0:0 -no-undefined  -o libvdpau.la -rpath /usr/lib64 vdpau_wrapper.lo -ldl                 
libtool: link: gcc -shared  .libs/vdpau_wrapper.o   -ldl    -Wl,-soname -Wl,libvdpau.so.1 -o .libs/libvdpau.so.1.0.0                                                            
libtool: link: (cd ".libs" && rm -f "libvdpau.so.1" && ln -s "libvdpau.so.1.0.0" "libvdpau.so.1")                                                                               
libtool: link: (cd ".libs" && rm -f "libvdpau.so" && ln -s "libvdpau.so.1.0.0" "libvdpau.so")                                                                                   
libtool: link: ( cd ".libs" && rm -f "libvdpau.la" && ln -s "../libvdpau.la" "libvdpau.la" )                                                                                    
make[2]: Leaving directory `/tmp/SBo/libvdpau-0.2/src'                                  
Making all in trace                                                                     
make[2]: Entering directory `/tmp/SBo/libvdpau-0.2/trace'                               
/bin/sh ../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I..    -I../include  -O2 -fPIC -MT vdpau_trace.lo -MD -MP -MF .deps/vdpau_trace.Tpo -c -o vdpau_trace.lo vdpau_trace.cpp                                                                         
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -fPIC -MT vdpau_trace.lo -MD -MP -MF .deps/vdpau_trace.Tpo -c vdpau_trace.cpp  -fPIC -DPIC -o .libs/vdpau_trace.o                                                                                      
mv -f .deps/vdpau_trace.Tpo .deps/vdpau_trace.Plo                                       
/bin/sh ../libtool --tag=CXX   --mode=link g++ -I../include  -O2 -fPIC -avoid-version -module -no-undefined  -o libvdpau_trace.la -rpath /usr/lib64 vdpau_trace.lo -ldl         
libtool: link: g++ -shared -nostdlib /usr/lib64/gcc/x86_64-slackware-linux/4.3.3/../../../../lib64/crti.o /usr/lib64/gcc/x86_64-slackware-linux/4.3.3/crtbeginS.o  .libs/vdpau_trace.o   -Wl,-rpath -Wl,/usr/lib64/../lib64 -Wl,-rpath -Wl,/usr/lib64/../lib64 -ldl -L/usr/lib64/gcc/x86_64-slackware-linux/4.3.3 -L/usr/lib64/gcc/x86_64-slackware-linux/4.3.3/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib64/gcc/x86_64-slackware-linux/4.3.3/../../../../x86_64-slackware-linux/lib -L/usr/lib64/gcc/x86_64-slackware-linux/4.3.3/../../.. /usr/lib64/../lib64/libstdc++.so -lm -lc -lgcc_s /usr/lib64/gcc/x86_64-slackware-linux/4.3.3/crtendS.o /usr/lib64/gcc/x86_64-slackware-linux/4.3.3/../../../../lib64/crtn.o    -Wl,-soname -Wl,libvdpau_trace.so -o .libs/libvdpau_trace.so           
libtool: link: ( cd ".libs" && rm -f "libvdpau_trace.la" && ln -s "../libvdpau_trace.la" "libvdpau_trace.la" )                                                                  
make[2]: Leaving directory `/tmp/SBo/libvdpau-0.2/trace'                                
make[2]: Entering directory `/tmp/SBo/libvdpau-0.2'                                     
make[2]: Leaving directory `/tmp/SBo/libvdpau-0.2'                                      
make[1]: Leaving directory `/tmp/SBo/libvdpau-0.2'                                      
make  INSTALL_PROGRAM="/bin/sh /tmp/SBo/libvdpau-0.2/install-sh -c -s" \                
          install_sh_PROGRAM="/bin/sh /tmp/SBo/libvdpau-0.2/install-sh -c -s" INSTALL_STRIP_FLAG=-s \                                                                           
          `test -z 'strip' || \                                                         
            echo "INSTALL_PROGRAM_ENV=STRIPPROG='strip'"` install                       
make[1]: Entering directory `/tmp/SBo/libvdpau-0.2'                                     
Making install in src                                                                   
make[2]: Entering directory `/tmp/SBo/libvdpau-0.2/src'                                 
make[3]: Entering directory `/tmp/SBo/libvdpau-0.2/src'                                 
test -z "/usr/lib64" || /bin/mkdir -p "/tmp/SBo/package-libvdpau/usr/lib64"             
 /bin/sh ../libtool   --mode=install /bin/ginstall -c -s 'libvdpau.la' '/tmp/SBo/package-libvdpau/usr/lib64/libvdpau.la'                                                        
libtool: install: /bin/ginstall -c .libs/libvdpau.so.1.0.0 /tmp/SBo/package-libvdpau/usr/lib64/libvdpau.so.1.0.0                                                                
libtool: install: strip --strip-unneeded /tmp/SBo/package-libvdpau/usr/lib64/libvdpau.so.1.0.0                                                                                  
libtool: install: (cd /tmp/SBo/package-libvdpau/usr/lib64 && { ln -s -f libvdpau.so.1.0.0 libvdpau.so.1 || { rm -f libvdpau.so.1 && ln -s libvdpau.so.1.0.0 libvdpau.so.1; }; })
libtool: install: (cd /tmp/SBo/package-libvdpau/usr/lib64 && { ln -s -f libvdpau.so.1.0.0 libvdpau.so || { rm -f libvdpau.so && ln -s libvdpau.so.1.0.0 libvdpau.so; }; })      
libtool: install: /bin/ginstall -c .libs/libvdpau.lai /tmp/SBo/package-libvdpau/usr/lib64/libvdpau.la                                                                           
libtool: install: warning: remember to run `libtool --finish /usr/lib64'                
test -z "/usr/include/vdpau" || /bin/mkdir -p "/tmp/SBo/package-libvdpau/usr/include/vdpau"                                                                                     
 /bin/ginstall -c -m 644 '../include/vdpau/vdpau.h' '/tmp/SBo/package-libvdpau/usr/include/vdpau/vdpau.h'                                                                       
 /bin/ginstall -c -m 644 '../include/vdpau/vdpau_x11.h' '/tmp/SBo/package-libvdpau/usr/include/vdpau/vdpau_x11.h'                                                               
make[3]: Leaving directory `/tmp/SBo/libvdpau-0.2/src'                                  
make[2]: Leaving directory `/tmp/SBo/libvdpau-0.2/src'                                  
Making install in trace                                                                 
make[2]: Entering directory `/tmp/SBo/libvdpau-0.2/trace'                               
make[3]: Entering directory `/tmp/SBo/libvdpau-0.2/trace'                               
test -z "/usr/lib64" || /bin/mkdir -p "/tmp/SBo/package-libvdpau/usr/lib64"             
 /bin/sh ../libtool   --mode=install /bin/ginstall -c -s 'libvdpau_trace.la' '/tmp/SBo/package-libvdpau/usr/lib64/libvdpau_trace.la'                                            
libtool: install: /bin/ginstall -c .libs/libvdpau_trace.so /tmp/SBo/package-libvdpau/usr/lib64/libvdpau_trace.so                                                                
libtool: install: strip --strip-unneeded /tmp/SBo/package-libvdpau/usr/lib64/libvdpau_trace.so                                                                                  
libtool: install: /bin/ginstall -c .libs/libvdpau_trace.lai /tmp/SBo/package-libvdpau/usr/lib64/libvdpau_trace.la                                                               
libtool: install: warning: remember to run `libtool --finish /usr/lib64'                
test -z "/usr/include/vdpau" || /bin/mkdir -p "/tmp/SBo/package-libvdpau/usr/include/vdpau"                                                                                     
 /bin/ginstall -c -m 644 '../include/vdpau/vdpau.h' '/tmp/SBo/package-libvdpau/usr/include/vdpau/vdpau.h'                                                                       
 /bin/ginstall -c -m 644 '../include/vdpau/vdpau_x11.h' '/tmp/SBo/package-libvdpau/usr/include/vdpau/vdpau_x11.h'                                                               
make[3]: Leaving directory `/tmp/SBo/libvdpau-0.2/trace'                                
make[2]: Leaving directory `/tmp/SBo/libvdpau-0.2/trace'                                
make[2]: Entering directory `/tmp/SBo/libvdpau-0.2'                                     
make[3]: Entering directory `/tmp/SBo/libvdpau-0.2'                                     
make[3]: Nothing to be done for `install-exec-am'.                                      
test -z "/usr/lib64/pkgconfig" || /bin/mkdir -p "/tmp/SBo/package-libvdpau/usr/lib64/pkgconfig"                                                                                 
 /bin/ginstall -c -m 644 'vdpau.pc' '/tmp/SBo/package-libvdpau/usr/lib64/pkgconfig/vdpau.pc'
make[3]: Leaving directory `/tmp/SBo/libvdpau-0.2'
make[2]: Leaving directory `/tmp/SBo/libvdpau-0.2'
make[1]: Leaving directory `/tmp/SBo/libvdpau-0.2'

Usage: makepkg package_name.tgz
       (or: package_name.tbz, package_name.tlz, package_name.txz)

Makes a Slackware compatible package containing the contents of the current
and all subdirectories.  If symbolic links exist, they will be removed and
an installation script will be made to recreate them later. This script will
be called "install/doinst.sh". You may add any of your own ash-compatible
shell scripts to this file and rebuild the package if you wish.

options:  -l, --linkadd y|n (moves symlinks into doinst.sh: recommended)
          -p, --prepend (prepend rather than append symlinks to an existing
                         doinst.sh.  Useful to link libraries needed by
                         programs in the doinst.sh script)
          -c, --chown y|n (resets all permissions to root:root 755
                           - not generally recommended)

If these options are not set, makepkg will prompt as appropriate.
./libvdpau.SlackBuild: line 85: /tmp/libvdpau-0.2-x86_64-1_SBo.txz: No such file or directory
Ci sono 2 cose stranissime:
1) se rimodifico nello slackbuild txz in tgz il risultato non cambia mi dà lo stesso messaggio di errore
2) se invece ELIMINO la directory di lavoro, e poi riscompatto il tar.gz (con lo slackbuild dentro), gli infilo i sorgenti e modifico nello slackbuild nuovo SOLTANTO i486 con X86_64, ottenendo pertanto lo stesso IDENTICO slackbuild del punto 1, la compilazione allora va a buon fine.

Perchè?

PS: Slackware64 appena installata, che sia un bug che è stato risolto con gli aggiornamenti di sicurezza?
Ultima modifica di tom il mar 19 gen 2010, 15:46, modificato 1 volta in totale.

tom
Packager
Packager
Messaggi: 407
Iscritto il: dom 1 nov 2009, 12:53
Nome Cognome: Tommaso D'Anna
Slackware: 13.37
Kernel: 2.6.37.6
Desktop: xfce

Re: strano errore di compilazione

Messaggio da tom »

3) ho scaricato lo slackbuild da qui: http://people.salixos.org/tasodan/x86_6 ... vdpau/src/
ed è già in formato txz e, come potete vedere, a parte qualche piccolissimo dettaglio, è identico a quell'altro. Ma la compilazione va.

Insomma in poche parole se scarico uno slackbuild e lo compilo senza modificare l'estensione del pacchetto che ne verrà fuori (che sia tgz o txz) la compilazione va a buon fine, se invece modifico l'estensione del pacchetto (da tgz a txz) non va più, neanche se poi ritorno indietro sui miei passi (di nuovo da txz a tgz).

Tutto ciò mi sa di assurdo...come mai succede?

Avatar utente
mcosta
Linux 0.x
Linux 0.x
Messaggi: 54
Iscritto il: mar 15 giu 2004, 0:00
Nome Cognome: Massimo Costa
Slackware: 13.0
Kernel: 2.6.29.6
Desktop: KDE 4.2.4
Località: Marano (NA)

Re: strano errore di compilazione

Messaggio da mcosta »

L'errore che hai descritto sembra un problema di invocazione di makepkg quindi io farei un echo della linea di comando.

comunque per la cronaca la sintassi
${ARCH:-i686}

sta ad indicare che se la variabile ARCH non è definita gli assegna il valore i486.
Quindi invece di modificare lo Sackbuild puoi definire le variabili ARCH e PKGTYPE fuori dallo script e poi lanciarlo.
IO faccio così

Codice: Seleziona tutto

#export ARCH=x86_64
#export PKGTYPE=txz
#./xxxx.Slackbuild

Vic Steele
Linux 3.x
Linux 3.x
Messaggi: 534
Iscritto il: dom 27 apr 2008, 13:46
Nome Cognome: Luigi Caiazza
Slackware: current x86_64
Kernel: 3.0.0
Desktop: Fluxbox / KDE 4.7.0
Distribuzione: Fedora 15
Località: Potenza
Contatta:

Re: strano errore di compilazione

Messaggio da Vic Steele »

Per me è una cosa ancora più semplice: modifichi con nano e con la finestra della console in piccolo?
Perché ti manda un a capo automatico quando la finestra è troppo piccola per contenere la riga, una vera porcheria :D .
Assumi il fatto che l'ultima riga (quella del makepkg) sia una sola linea e non due.

Avatar utente
414N
Iper Master
Iper Master
Messaggi: 2922
Iscritto il: mer 13 feb 2008, 16:19
Slackware: 15.0
Kernel: 5.15.19
Desktop: KDE5
Località: Bulagna
Contatta:

Re: strano errore di compilazione

Messaggio da 414N »

Tanto per essere pignoli, questo non è un problema di compilazione. Se guardi il listato di compilazione che hai riportato, tutto procede liscio (persino l'installazione successiva alla compilazione) mentre la procedura fallisce quando viene invocato il comando makepkg, e la shell ti restituisce un errore sulla riga 85, dicendo che il file del pacchetto che vuoi costruire non esiste.
Molto probabilmente, come ha già scritto Vic Steele, questo è dovuto ad un "a capo" di troppo, che ha spezzato la riga di invocazione di makepkg richiamandolo senza un parametro fondamentale (il path del pacchetto da creare) e, in seguito, tentando di lanciare il file del pacchetto ancora inesistente ergo -> EPIC FAIL :) .

tom
Packager
Packager
Messaggi: 407
Iscritto il: dom 1 nov 2009, 12:53
Nome Cognome: Tommaso D'Anna
Slackware: 13.37
Kernel: 2.6.37.6
Desktop: xfce

Re: strano errore di compilazione

Messaggio da tom »

ma noooo....ma dai è assurdo!!!! Ora non sono con il mio computer ma sto notando questa cosa e praticamente sono sicuro che il problema sia quello che avete inquadrato :geniale:

Ma questa porcheria di aggiungere automaticamente un "a capo" per far entrare la riga nella finestra della shell più che essere un problema di nano ho l'impressione che sia un bug (a mio parere pure gravissimo) di konsole, visto che fino a qualche giorno fa usavo salix (derivata di slack che usa xfce), e con il terminale di xfce ciò non succedeva.
La versione di kde che ho è quella nativa di slackware 13.0, cioè la 4.2.4. Che voi sappiate attualmente c'è ancora questo bug con le versioni più aggiornate di kde (4.3.4 - 4.4.rc1; potete controllare aprendo un qualsiasi documento), o e stato risolto?

Avatar utente
414N
Iper Master
Iper Master
Messaggi: 2922
Iscritto il: mer 13 feb 2008, 16:19
Slackware: 15.0
Kernel: 5.15.19
Desktop: KDE5
Località: Bulagna
Contatta:

Re: strano errore di compilazione

Messaggio da 414N »

tasodan ha scritto: Ma questa porcheria di aggiungere automaticamente un "a capo" per far entrare la riga nella finestra della shell più che essere un problema di nano ho l'impressione che sia un bug (a mio parere pure gravissimo) di konsole, visto che fino a qualche giorno fa usavo salix (derivata di slack che usa xfce), e con il terminale di xfce ciò non succedeva.
Io con vim in konsole non ho mai avuto di questi problemi...

Mario Vanoni
Iper Master
Iper Master
Messaggi: 3174
Iscritto il: lun 3 set 2007, 21:20
Nome Cognome: Mario Vanoni
Slackware: 12.2
Kernel: 3.0.4 statico
Desktop: fluxbox/seamonkey
Località: Cuasso al Monte (VA)

Re: strano errore di compilazione

Messaggio da Mario Vanoni »

414N ha scritto:
tasodan ha scritto: Ma questa porcheria di aggiungere automaticamente un "a capo" per far entrare la riga nella finestra della shell più che essere un problema di nano ho l'impressione che sia un bug (a mio parere pure gravissimo) di konsole, visto che fino a qualche giorno fa usavo salix (derivata di slack che usa xfce), e con il terminale di xfce ciò non succedeva.
Io con vim in konsole non ho mai avuto di questi problemi...
Non uso vim, ma nvi di Berkeley:
sia su un xterm piccolo di 80 righe, che a livello tty/sh,
se scrivo 1000 caratteri, poi un a capo (Return/Enter/Invio),
la riga e` sempre lunga 1000 caratteri!

tom
Packager
Packager
Messaggi: 407
Iscritto il: dom 1 nov 2009, 12:53
Nome Cognome: Tommaso D'Anna
Slackware: 13.37
Kernel: 2.6.37.6
Desktop: xfce

Re: strano errore di compilazione

Messaggio da tom »

Come avevate bene inquadrato, il problema era proprio quello. Risolto :D

Rispondi