NoTrace Security Forum

NoTrace Security Forum
Home | Discussioni Attive | Discussioni Recenti | Segnalibro | Msg privati | Utenti | Download | cerca | faq | RSS | Security Chat
Nome Utente:
Password:
Salva Password
Password Dimenticata?

 Tutti i Forum
 Sistemi Operativi
 Linux/Unix
 Suse 9.2 e sorgenti in C++
 Forum Bloccato
 Versione Stampabile Bookmark this Topic Aggiungi Segnalibro
I seguenti utenti stanno leggendo questo Forum Qui c'è:
Pagina Successiva
Autore Discussione Precedente Discussione Discussione Successiva
Pagina: di 2

Rooster
Senior Member



236 Messaggi


Inserito il - 01/06/2005 : 15:40:16  Mostra Profilo
Salve!
Ho un problema con la suse 9.2.......
Ho scaricato il codice sorgente di un programma (archivio tipo tar.bz2)
e se tento di compilarlo in rpm (con rpmbuild -ts) mi dice che manca nell'archivio un file tipo SPEC.file ( di che si tratta :-).
Provo allora ad installarlo da shell con ./configure && make && make install ma gia dalla fase di configurazione il processo si blocca poichè la distro in questione non può compilare pacchetti in c++ poichè manca la libreria libstdc++-dev (o qualcosa del genere), per cui cerco di procurarmela e trovo un pacchetto rpm per la suse 9.1 che puntualmente nn funziona...scarico allora i sorgenti della versione più recente (non ricordo bene la versione ma se è necessario ve la farò sapere :-) ) ma sorpresa! la configurazione e compilazione si rivelano difficili....anzi impossibili poichè la compilazione non va a buon fine. Avete qualche suggerimento in merito? Ad esempio su come compilare in rpm quest'ultimo pacchetto o al limite dove reperirlo?
Grazie a chi saprà aiutarmi!
Ciao!!

Trunks
Moderatore




2016 Messaggi

Inserito il - 01/06/2005 : 22:45:26  Mostra Profilo
Se ci riporti gli errori della compilazione e il nome del pacchetto.tar.bz2 che vuoi compilare ci fai un favore :P

Per la libreria
ftp.suse[.com]/pub/suse/i386/9.1/suse/i586/libstdc++-3.3.3-41.i586.rpm

preso da

htt*://rpm.pbone.net/
Torna all'inizio della Pagina

Gimli
Moderatore


Città: Belluno


1870 Messaggi

Inserito il - 02/06/2005 : 00:57:44  Mostra Profilo
Se stai tentando di compilare un programma dai sorgenti, leggi per primissima cosa i file README e INSTALL che di solito sono presenti nel tar.(gz|bz2): in questi file dovrebbero essere elencate tutte le librerie necessarie all'installazione. Non conosco la Suse, ma con Mandrake è necessario installare la versone -devel dei pacchetti (es: se un prog richiede le libgtk2, il pacchetto da installare sarà probabilmente libgtk2-devel).
Se ci dici il nome del programma, magari si può trovare un rpm già fatto.
Ciao
Torna all'inizio della Pagina

Rooster
Senior Member



236 Messaggi

Inserito il - 02/06/2005 : 18:36:42  Mostra Profilo

Salve!
Il nome del codice sorgente che non ne vuol sapere d'essere compilato è: "kdenetwork-3.4.0.tar.bz2"
Il tentativo di compilazione in rpm mi da il seguente output

johnnylinux:~/Desktop> rpmbuild -ts kdenetwork-3.4.0.tar.bz2
error: Failed to rename /usr/src/packages/SPECS/rpm-spec.peAgs0 to /usr/src/packages/SPECS/tar: *.spec: Non trovato nell'archivio: Operation not permitted
johnnylinux:~/Desktop>

dal comando ./configure ricevo l'output seguente:
johnnylinux:~> cd '/home/johnny/Desktop/kdenetwork-3.4.0'
johnnylinux:~/Desktop/kdenetwork-3.4.0> ./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking for -p flag to install... yes
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for kde-config... /opt/kde3/bin/kde-config
checking where to install... /opt/kde3 (as returned by kde-config)
checking for style of include used by make... GNU
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 ANSI C... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking dependency style of g++... none
checking whether g++ supports -Wmissing-format-attribute... no
checking whether gcc supports -Wmissing-format-attribute... yes
checking whether g++ supports -Wundef... no
checking whether g++ supports -Wno-long-long... no
checking whether g++ supports -Wnon-virtual-dtor... no
checking how to run the C++ preprocessor... /lib/cpp
checking whether g++ supports -O0... no
checking whether g++ supports -Wl,--no-undefined... no
not using lib directory suffix
checking for a sed that does not truncate output... /usr/bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/i586-suse-linux/bin/ld
checking if the linker (/usr/i586-suse-linux/bin/ld) is GNU ld... yes
checking for /usr/i586-suse-linux/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
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 dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for gfortran... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether accepts -g... no
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc static flag works... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/i586-suse-linux/bin/ld) 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 for shl_load... no
checking for shl_load in -ldld... no
checking for dlopen... no
checking for dlopen in -ldl... yes
checking whether a program can dlopen itself... yes
checking whether a statically linked program can dlopen itself... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating libtool
appending configuration tag "CXX" to libtool
checking whether the g++ linker (/usr/i586-suse-linux/bin/ld) supports shared libraries... yes
libtool.m4: error: problem compiling CXX test program
checking for g++ option to produce PIC...
checking if g++ supports -c -o file.o... no
checking whether the g++ linker (/usr/i586-suse-linux/bin/ld) supports shared libraries... yes
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 for shl_load... (cached) no
checking for shl_load in -ldld... (cached) no
checking for dlopen... (cached) no
checking for dlopen in -ldl... (cached) yes
checking whether a program can dlopen itself... (cached) yes
checking whether a statically linked program can dlopen itself... (cached) yes
appending configuration tag "F77" to libtool
checking for msgfmt... msgfmt
checking for gmsgfmt... msgfmt
found msgfmt program is not GNU msgfmt; ignore it
checking for xgettext... :
checking if C++ programs can be compiled... no
configure: error: Your Installation isn't able to compile simple C++ programs.
Check config.log for details - if you're using a Linux distribution you might miss
a package named similar to libstdc++-dev.
johnnylinux:~/Desktop/kdenetwork-3.4.0>

A quanto pare la suse 9.2 non ha un compilatore C++
Ho installato il pacchetto indicato da trunks ma niente da fare!
Le ricerche di questo famigerato libstdc++-dev mi hanno portato al sito gcc.gnu.org dal quale ho scaricato il codice sorgente di libstdc++-v3.0.97-gcc-3.1.x.tar.gz
ma anche qui la compilazione è un po macchinosa, le opzioni di configurazione diverse e, tanto per cambiare, tutte le istruzioni sono in inglese.
Prima di avventurarmi nell'installazione chiedo lumi su come farla in modo corretto!
Meglio sarebbe trovare un bel pacchetto rpm pronto all'uso......... :-D
Scusate la prolissità ma è stata necessaria............ :-)
Ringrazio anticipatamente chi avrà voglia di darmi un consiglio!
Ciao!! :-))
Torna all'inizio della Pagina

Trunks
Moderatore




2016 Messaggi

Inserito il - 02/06/2005 : 19:15:27  Mostra Profilo
Mi sa che durante l'installazione non hai incluso i pacchetti devel :P
Ti manca il compilatore g++
Credo lo puoi installare agilmente con Yast

lancia questi comandi per verificare sei hai installato i compilatori

gcc --version

g++ --version

Modificato da - Trunks in data 02/06/2005 19:16:42
Torna all'inizio della Pagina

Rooster
Senior Member



236 Messaggi

Inserito il - 03/06/2005 : 15:45:46  Mostra Profilo

la versione gcc è questa

johnnylinux:~> gcc --version
gcc (GCC) 3.3.4 (pre 3.3.5 20040809)
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Torna all'inizio della Pagina

Rooster
Senior Member



236 Messaggi

Inserito il - 03/06/2005 : 15:58:24  Mostra Profilo
g++ --version mi da bash: g++: command not found
Torna all'inizio della Pagina

Trunks
Moderatore




2016 Messaggi

Inserito il - 03/06/2005 : 20:11:38  Mostra Profilo
Come ti ho detto ti manca g++ :P

Torna all'inizio della Pagina

Rooster
Senior Member



236 Messaggi

Inserito il - 04/06/2005 : 11:58:20  Mostra Profilo
Trunks.........l'avevo intuito!
Ma dove me lo procuro?
Sapresti indicarmi il nome del pacchetto preferibilmente in rpm??

Grazie!
Ciao.......
Torna all'inizio della Pagina

Trunks
Moderatore




2016 Messaggi

Inserito il - 06/06/2005 : 13:33:40  Mostra Profilo
il pacchetto g++ lo trovi sicuramente sui cd della suse.

Con Yast, dal centro di controllo installazione software, dovresti installarlo in pochi clikke :D
Torna all'inizio della Pagina

Rooster
Senior Member



236 Messaggi

Inserito il - 06/06/2005 : 17:54:02  Mostra Profilo
Il pacchetto è sul dvd d'installazione della suse.......... l'ho installato ma............
La configurazione dei sorgenti continua a fallire! Ecco dove si blocca:
johnnylinux:~> cd '/home/johnny/Desktop/kdenetwork-3.4.0'
johnnylinux:~/Desktop/kdenetwork-3.4.0> ./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking for -p flag to install... yes
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for kde-config... /opt/kde3/bin/kde-config
checking where to install... /opt/kde3 (as returned by kde-config)
checking for style of include used by make... GNU
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 ANSI C... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
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 whether g++ supports -Wmissing-format-attribute... yes
checking whether gcc supports -Wmissing-format-attribute... yes
checking whether g++ supports -Wundef... yes
checking whether g++ supports -Wno-long-long... yes
checking whether g++ supports -Wnon-virtual-dtor... yes
checking whether g++ supports -fno-exceptions... yes
checking whether g++ supports -fno-check-new... yes
checking whether g++ supports -fno-common... yes
checking whether g++ supports -fexceptions... yes
checking how to run the C++ preprocessor... g++ -E
checking whether g++ supports -O0... yes
checking whether g++ supports -Wl,--no-undefined... yes
checking whether g++ supports -Wl,--allow-shlib-undefined... yes
not using lib directory suffix
checking for a sed that does not truncate output... /usr/bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/i586-suse-linux/bin/ld
checking if the linker (/usr/i586-suse-linux/bin/ld) is GNU ld... yes
checking for /usr/i586-suse-linux/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
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 dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for gfortran... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether accepts -g... no
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc static flag works... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/i586-suse-linux/bin/ld) 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 for shl_load... no
checking for shl_load in -ldld... no
checking for dlopen... no
checking for dlopen in -ldl... yes
checking whether a program can dlopen itself... yes
checking whether a statically linked program can dlopen itself... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/i586-suse-linux/bin/ld
checking if the linker (/usr/i586-suse-linux/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/i586-suse-linux/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/i586-suse-linux/bin/ld) supports shared libraries... yes
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 for shl_load... (cached) no
checking for shl_load in -ldld... (cached) no
checking for dlopen... (cached) no
checking for dlopen in -ldl... (cached) yes
checking whether a program can dlopen itself... (cached) yes
checking whether a statically linked program can dlopen itself... (cached) yes
appending configuration tag "F77" to libtool
checking for msgfmt... msgfmt
checking for gmsgfmt... msgfmt
found msgfmt program is not GNU msgfmt; ignore it
checking for xgettext... :
checking if C++ programs can be compiled... yes
checking for strlcat... no
checking if strlcat needs custom prototype... yes - in libkdefakes
checking for strlcpy... no
checking if strlcpy needs custom prototype... yes - in libkdefakes
checking for main in -lutil... yes
checking for main in -lcompat... no
checking for crypt in -lcrypt... yes
checking for socklen_t... yes
checking for dnet_ntoa in -ldnet... no
checking for dnet_ntoa in -ldnet_stub... no
checking for inet_ntoa... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for sys/types.h... (cached) yes
checking for stdint.h... (cached) yes
checking sys/bitypes.h usability... yes
checking sys/bitypes.h presence... yes
checking for sys/bitypes.h... yes
checking for poll in -lpoll... no
checking Carbon/Carbon.h usability... no
checking Carbon/Carbon.h presence... no
checking for Carbon/Carbon.h... no
checking CoreAudio/CoreAudio.h usability... no
checking CoreAudio/CoreAudio.h presence... no
checking for CoreAudio/CoreAudio.h... no
checking if res_init needs -lresolv... yes
checking for res_init... yes
checking if res_init needs custom prototype... no
checking for killpg in -lucb... no
checking for int... yes
checking size of int... 4
checking for short... yes
checking size of short... 2
checking for long... yes
checking size of long... 4
checking for char *... yes
checking size of char *... 4
checking for dlopen in -ldl... (cached) yes
checking for shl_unload in -ldld... no
checking for size_t... yes
checking size of size_t... 4
checking for unsigned long... yes
checking size of unsigned long... 4
checking sizeof size_t == sizeof unsigned long... yes
checking crt_externs.h usability... no
checking crt_externs.h presence... no
checking for crt_externs.h... no
checking for _NSGetEnviron... no
checking for vsnprintf... yes
checking for snprintf... yes
checking for X... configure: error: Can't find X includes. Please check your installation and add the correct paths!
johnnylinux:~/Desktop/kdenetwork-3.4.0>

Dove sta adesso l'errore? Non trova il percorso del server X?? E' così? Dovrei indicarlo dove? Nel file di configurazione (quale ?) o devo dare qualche comando da shell?
Grazie per l'attenzione!
Ciao!
Torna all'inizio della Pagina

Trunks
Moderatore




2016 Messaggi

Inserito il - 06/06/2005 : 20:55:37  Mostra Profilo
mi sa che ti mancano alcune librerie del serverX.... dovresti avere Xorg prova ad installere il pacchetto xorg-devel o xlib-dev (o xlib-devel non ricordo :P )

Se le hai installato prova così

#./configure --x-includes=percorso agli includes di X

Modificato da - Trunks in data 06/06/2005 20:58:43
Torna all'inizio della Pagina

Rooster
Senior Member



236 Messaggi

Inserito il - 08/06/2005 : 12:44:37  Mostra Profilo

Salve!!

Il server X è xorg-x11-server versione 6.8.1-15.6 l'ho aggiornato da poco.........
cosa dovrei fare a questo punto??

Torna all'inizio della Pagina

Trunks
Moderatore




2016 Messaggi

Inserito il - 08/06/2005 : 23:03:19  Mostra Profilo
Per quanto riguarda l'aggiornamente di Xorg non è detto che ci siano i pakketti da me menzionati.Controlla se veramente ci sono.
Torna all'inizio della Pagina

Trunks
Moderatore




2016 Messaggi

Inserito il - 08/06/2005 : 23:31:43  Mostra Profilo
Dal file install

For packages that use the X Window System, `configure' can usually
find the X include and library files automatically, but if it doesn't,
you can use the `configure' options `--x-includes=DIR' and
`--x-libraries=DIR' to specify their locations.

A me da un casino di errori perkè non ho le librerie di kde 3.4, ma gli include di X li trova
Torna all'inizio della Pagina

Rooster
Senior Member



236 Messaggi

Inserito il - 10/06/2005 : 17:20:48  Mostra Profilo
la configurazione dei sorgenti si sta rivelando una storia senza fine!
Certo che se questo è l'inizio.........!! Poveri noi!
Trunks, ho seguito le tue indicazioni e fin lì tutto a posto, ma........
guarda un pò che mi dice adesso, io non l'ho capito cos'altro mi chiede!

johnnylinux:~/Desktop/kdenetwork-3.4.0> ./configure --x-includes=/usr/X11R6/inc
lude --x-libraries=/usr/X11R6/lib
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking for -p flag to install... yes
.................
.................
................
checking for snprintf... yes
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking for IceConnectionNumber in -lICE... no
checking for libXext... no
configure: error: We need a working libXext to proceed. Since configure
can't find it itself, we stop here assuming that make wouldn't find
them either.
Tu ci capisci qualcosa?
Ciao!!
Torna all'inizio della Pagina
Pagina: di 2 Discussione Precedente Discussione Discussione Successiva  
Pagina Successiva

 Forum Bloccato
 Versione Stampabile Bookmark this Topic Aggiungi Segnalibro
Vai a:
NoTrace Security Forum
© Nazzareno Schettino
RSS NEWS
Torna all'inizio della Pagina
Pagina generata in 0,59 secondi. TargatoNA | SuperDeeJay | Snitz Forums 2000