Newsgroup: it.comp.os.linux.iniziare
Titolo: quesiti sulla ricompilazione di SRPM

ciao ancora,
ieri sera ho compilato per la prima volta - che emozione :) - un 
src.rpm, anzi, 31mb di sorgenti (tutte librerie e altro richiesti da 
gnome-desktop) ottimizzandoli con un bel --target=athlon.
1)ho fatto bene a fare --target=athlon?? ho sentito che se faccio una 
simile cosa poi il pacchetto non lo posso usare su un P4 ad esempio, ma 
se è tutto qui allora nn mi importa nulla. di quanto mi va + veloce??? 
esistono altri parametri per ottimizzare ancora di più???
2)ho provato a ricompilare il sorgente rpm di mozilla 1.3alpha x redhat 
8.0. mi da questo errore:
[root@localhost SPECS]# rpmbuild -bb --target=athlon 
mozilla-2002121219-MOZILLA_1_3a_RELEASE.spec
Building target platforms: athlon
Building for target athlon
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.85978
+ umask 022
+ cd /usr/src/redhat/BUILD
+ LANG=C
+ export LANG
+ cd /usr/src/redhat/BUILD
+ rm -rf mozilla
+ /usr/bin/gzip -dc 
/usr/src/redhat/SOURCES/mozilla-source-1.3a-0_rh8_xft.tar.gz
+ tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd mozilla
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chown -Rhf root .
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chgrp -Rhf root .
+ /bin/chmod -Rf a+rX,g-w,o-w .
+ echo 'Patch #0 (mozilla-navigator-overlay-menu.patch):'
Patch #0 (mozilla-navigator-overlay-menu.patch):
+ patch -p1 -s
+ echo 'Patch #0 (mozilla-navigator-overlay-menu.patch):'
Patch #0 (mozilla-navigator-overlay-menu.patch):
+ patch -p1 -R -s
+ echo 'Patch #1 (mozilla-editor-overlay-menu.patch):'
Patch #1 (mozilla-editor-overlay-menu.patch):
+ patch -p1 -s
+ echo 'Patch #1 (mozilla-editor-overlay-menu.patch):'
Patch #1 (mozilla-editor-overlay-menu.patch):
+ patch -p1 -R -s
+ echo 'Patch #6 (mozilla-prefs-debug.patch):'
Patch #6 (mozilla-prefs-debug.patch):
+ patch -p1 -s
+ echo 'Patch #6 (mozilla-prefs-debug.patch):'
Patch #6 (mozilla-prefs-debug.patch):
+ patch -p1 -R -s
+ echo 'Patch #7 (mozilla-redhat-home-page.patch):'
Patch #7 (mozilla-redhat-home-page.patch):
+ patch -p1 -s
+ echo 'Patch #7 (mozilla-redhat-home-page.patch):'
Patch #7 (mozilla-redhat-home-page.patch):
+ patch -p1 -R -s
+ echo 'Patch #8 (mozilla-redhat-mail-home-page.patch):'
Patch #8 (mozilla-redhat-mail-home-page.patch):
+ patch -p1 -s
+ echo 'Patch #8 (mozilla-redhat-mail-home-page.patch):'
Patch #8 (mozilla-redhat-mail-home-page.patch):
+ patch -p1 -R -s
+ echo 'Patch #11 (mozilla-taskbar-nomozilla.patch):'
Patch #11 (mozilla-taskbar-nomozilla.patch):
+ patch -p1 -s
+ echo 'Patch #11 (mozilla-taskbar-nomozilla.patch):'
Patch #11 (mozilla-taskbar-nomozilla.patch):
+ patch -p1 -R -s
+ echo 'Patch #12 (mozilla-psfonts-7.2.patch):'
Patch #12 (mozilla-psfonts-7.2.patch):
+ patch -p1 -s
+ echo 'Patch #13 (mozilla-nspr-packages.patch):'
Patch #13 (mozilla-nspr-packages.patch):
+ patch -p1 -s
+ echo 'Patch #14 (mozilla-default-plugin-less-annoying.patch):'
Patch #14 (mozilla-default-plugin-less-annoying.patch):
+ patch -p1 -s
+ echo 'Patch #17 (mozilla-buildid-title.patch):'
Patch #17 (mozilla-buildid-title.patch):
+ patch -p1 -s
+ echo 'Patch #17 (mozilla-buildid-title.patch):'
Patch #17 (mozilla-buildid-title.patch):
+ patch -p1 -R -s
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.57314
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd mozilla
+ LANG=C
+ export LANG
+ '[' -x /usr/bin/getconf ']'
++ getconf _NPROCESSORS_ONLN
+ CPUS=1
+ test x1 = x -o x1 = x0
+ CC=gcc296
+ CXX=g++296
+ BUILD_OFFICIAL=1
+ MOZILLA_OFFICIAL=1
+ ./configure --prefix=/usr --enable-optimize --disable-debug 
--with-default-mozilla-five-home=/usr/lib/mozilla-1.3a --enable-strip 
--disable-tests --disable-short-wchar --enable-nspr-autoconf 
--enable-extensions=default,irc --without-mng --enable-crypto 
--disable-xprint --without-system-nspr --disable-freetype2 --enable-xft 
--with-system-zlib --mandir=/usr/share/man
creating cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for gcc... gcc296
checking whether the C compiler (gcc296  ) works... no
configure: error: installation or configuration problem: C compiler 
cannot create executables.
error: Bad exit status from /var/tmp/rpm-tmp.57314 (%build)
RPM build errors:
     Bad exit status from /var/tmp/rpm-tmp.57314 (%build)
faccio quindi un bel rpm -qi gcc e mi restituisce la versione 3.2!!! che 
vuol dire? ho la 2.96 o la 3.2??? boh...
delucidazioni??
ciao e grazie...

 vuol dire? ho la 2.96 o la 3.2??? boh...
gcc -v 
cosa restituisce?
-- 
Ikitt
"Stupid people do stupid things smart people outsmart each others"
*** mailserver: 
freemail.it

 
innanzitutto grazie per la risposta...
ecco il responso :P :
[fctk@localhost fctk]$ gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man 
--infodir=/usr/share/info --enable-shared --enable-threads=posix 
--disable-checking --host=i386-redhat-linux --with-system-zlib 
--enable-__cxa_atexit
Thread model: posix
gcc version 3.2 20020903 (Red Hat Linux 8.0 3.2-7)
niente da fare... č un bel 3.2!

 niente da fare... č un bel 3.2!
Boh, non saprei. Mi verrebbe da dirti di piallare l'infame gcc2.96 e usare
solo questo, ma poi non saprei dirti se le cose funzionano lo stesso per
la compatibilita` binaria.
