Проблема с установкой src.rpm пакета

Аватар пользователя GrafMAN

Местные гуру помогите плиззз но уже не знаю что делать, никак не могу установить программу для чтения djvu а книги по линуксу у меня именно в этом формате =(. Очень расчитываю на вашу помощь. Версия ASPLinux 11.2. Конечно очень хочеться узнать что я делаю не так, но буду благодарен любым советам.
Вот полный ход установки:

[root@Heckajy dj]# rpmbuild --rebuild djvulibre-3.5.14-2.src.rpm
Устанавливается djvulibre-3.5.14-2.src.rpm
предупреждение: пользователь leonb не существует - используется root
предупреждение: группа leonb не существует - используется root
предупреждение: пользователь leonb не существует - используется root
предупреждение: группа leonb не существует - используется root
Выполняется(%prep): /bin/sh -e /var/tmp/rpm-tmp.32793
+ umask 022
+ cd /usr/src/asplinux/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ cd /usr/src/asplinux/BUILD
+ rm -rf djvulibre-3.5.14
+ /bin/gzip -dc /usr/src/asplinux/SOURCES/djvulibre-3.5.14.tar.gz
+ tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd djvulibre-3.5.14
++ /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,u+w,g-w,o-w .
+ exit 0
Выполняется(%build): /bin/sh -e /var/tmp/rpm-tmp.59939
+ umask 022
+ cd /usr/src/asplinux/BUILD
+ cd djvulibre-3.5.14
+ LANG=C
+ export LANG
+ unset DISPLAY
+ CFLAGS='-O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32 -march=i386 -mtune=pentium4 -fasynchronous-unwind-tables'
+ export CFLAGS
+ CXXFLAGS='-O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32 -march=i386 -mtune=pentium4 -fasynchronous-unwind-tables'
+ export CXXFLAGS
+ FFLAGS='-O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32 -march=i386 -mtune=pentium4 -fasynchronous-unwind-tables'
+ export FFLAGS
++ find . -name config.guess -o -name config.sub
+ for i in '$(find . -name config.guess -o -name config.sub)'
++ basename ./config/config.guess
+ '[' -f /usr/lib/rpm/asplinux/config.guess ']'
+ /bin/rm -f ./config/config.guess
++ basename ./config/config.guess
+ /bin/cp -fv /usr/lib/rpm/asplinux/config.guess ./config/config.guess
`/usr/lib/rpm/asplinux/config.guess' -> `./config/config.guess'
+ for i in '$(find . -name config.guess -o -name config.sub)'
++ basename ./config/config.sub
+ '[' -f /usr/lib/rpm/asplinux/config.sub ']'
+ /bin/rm -f ./config/config.sub
++ basename ./config/config.sub
+ /bin/cp -fv /usr/lib/rpm/asplinux/config.sub ./config/config.sub
`/usr/lib/rpm/asplinux/config.sub' -> `./config/config.sub'
+ ./configure --host=i686-redhat-linux-gnu --build=i686-redhat-linux-gnu --target=i386-asplinux-linux-gnu --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/infochecking build system type... i686-redhat-linux-gnu
checking host system type... i686-redhat-linux-gnu
checking whether make sets ${MAKE}... yes
checking whether ln -s works... yes
checking for rm... /bin/rm
checking for ar... /usr/bin/ar
checking for touch... /bin/touch
checking for mkdir... /bin/mkdir
checking for i686-redhat-linux-gnu-gcc... no
checking for gcc... gcc
checking for C compiler default output... 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 a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... nm
checking how to recognise dependent libraries... pass_all
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 dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for i686-redhat-linux-gnu-g++... no
checking for i686-redhat-linux-gnu-c++... no
checking for i686-redhat-linux-gnu-gpp... no
checking for i686-redhat-linux-gnu-aCC... no
checking for i686-redhat-linux-gnu-CC... no
checking for i686-redhat-linux-gnu-cxx... no
checking for i686-redhat-linux-gnu-cc++... no
checking for i686-redhat-linux-gnu-cl... no
checking for i686-redhat-linux-gnu-FCC... no
checking for i686-redhat-linux-gnu-KCC... no
checking for i686-redhat-linux-gnu-RCC... no
checking for i686-redhat-linux-gnu-xlC_r... no
checking for i686-redhat-linux-gnu-xlC... no
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
checking for i686-redhat-linux-gnu-g77... no
checking for i686-redhat-linux-gnu-f77... no
checking for i686-redhat-linux-gnu-xlf... no
checking for i686-redhat-linux-gnu-cf77... no
checking for i686-redhat-linux-gnu-cft77... no
checking for i686-redhat-linux-gnu-frt... no
checking for i686-redhat-linux-gnu-pgf77... no
checking for i686-redhat-linux-gnu-fl32... no
checking for i686-redhat-linux-gnu-af77... no
checking for i686-redhat-linux-gnu-fort77... no
checking for i686-redhat-linux-gnu-f90... no
checking for i686-redhat-linux-gnu-xlf90... no
checking for i686-redhat-linux-gnu-pgf90... no
checking for i686-redhat-linux-gnu-epcf90... no
checking for i686-redhat-linux-gnu-f95... no
checking for i686-redhat-linux-gnu-fort... no
checking for i686-redhat-linux-gnu-xlf95... no
checking for i686-redhat-linux-gnu-lf95... no
checking for i686-redhat-linux-gnu-g95... no
checking for i686-redhat-linux-gnu-fc... no
checking for g77... no
checking for f77... no
checking for xlf... no
checking for cf77... no
checking for cft77... no
checking for frt... no
checking for pgf77... no
checking for fl32... no
checking for af77... no
checking for fort77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... f95
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether f95 accepts -g... yes
checking the maximum length of command line arguments... 32768
checking command to parse nm output from gcc object... ok
checking for objdir... .libs
checking for i686-redhat-linux-gnu-ar... /usr/bin/ar
checking for i686-redhat-linux-gnu-ranlib... no
checking for ranlib... ranlib
checking for i686-redhat-linux-gnu-strip... no
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/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 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/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/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/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
appending configuration tag "F77" to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for f95 option to produce PIC... -fPIC
checking if f95 PIC flag -fPIC works... yes
checking if f95 supports -c -o file.o... yes
checking whether the f95 linker (/usr/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 i686-redhat-linux-gnu-gcc... gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for i686-redhat-linux-gnu-g++... g++
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking if g++ accepts -Wall... yes
checking if g++ accepts -O3... yes
checking if g++ accepts -mcpu=i686... yes
checking whether the compiler recognizes bool as a built-in type... yes
checking whether the compiler supports exceptions... yes
checking whether the compiler recognizes typename... yes
checking whether the compiler comes with standard includes... yes
checking whether the compiler implements namespaces... yes
checking whether the compiler supports member templates... yes
checking for sqrt in -lm... yes
checking for libiconv in -liconv... no
checking for ANSI C header files... (cached) yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking whether time.h and sys/time.h may both be included... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking wchar.h usability... yes
checking wchar.h presence... yes
checking for wchar.h... yes
checking wctype.h usability... yes
checking wctype.h presence... yes
checking for wctype.h... yes
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking iconv.h usability... yes
checking iconv.h presence... yes
checking for iconv.h... yes
checking for stdint.h... (cached) yes
checking sys/ipc.h usability... yes
checking sys/ipc.h presence... yes
checking for sys/ipc.h... yes
checking sys/shm.h usability... yes
checking sys/shm.h presence... yes
checking for sys/shm.h... yes
checking for X11/extensions/Xext.h... yes
checking for wchar_t... yes
checking for long long int... yes
checking for mbstate_t... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... yes
checking for pid_t... yes
checking for unistd.h... (cached) yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... (cached) yes
checking for working vfork... (cached) yes
checking for wcrtomb... yes
checking for iswspace... yes
checking for putc_unlocked... yes
checking for strerror... yes
checking for vsnprintf... yes
checking for gethostname... yes
checking for iconv... yes
checking for strftime... yes
checking for getpwuid... yes
checking for jpeg library... yes
setting JPEG_CFLAGS=
setting JPEG_LIBS=-ljpeg
checking for the libtiff library... yes
setting TIFF_CFLAGS=
setting TIFF_LIBS=-ltiff
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... yes
checking if more special flags are required for pthreads... no
checking threading model... pthread
setting THREAD_CFLAGS=-pthread -DTHREADMODEL=POSIXTHREADS
setting THREAD_LIBS=
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for Qt root directory... /usr/lib/qt-3.3
checking for multithreaded Qt3 library... yes
checking for moc... /usr/lib/qt-3.3/bin/moc
checking for uic... /usr/lib/qt-3.3/bin/uic
checking for lupdate... /usr/lib/qt-3.3/bin/lupdate
checking for lrelease... /usr/lib/qt-3.3/bin/lrelease
checking if a small Qt program runs... yes
checking Qt version... 197380
setting QT_CFLAGS=-I/usr/lib/qt-3.3/include
setting QT_LIBS= -L/usr/lib/qt-3.3/lib -lqt-mt
checking for kde-config... /usr/bin/kde-config
checking for Debian menu directory... no
checking for XDG menu directory... ${datadir}/applications
checking for Gnome icon directory... ${datadir}/pixmaps
checking for Gnome mimetype directory... ${datadir}/mime-info
checking for Gnome association directory... ${datadir}/application-registry
checking for KDE icon directory... ${datadir}/icons
checking for KDE mimetype directory... ${datadir}/mimelnk
checking if g++ has the LPR0 bug... no
checking g++ version... 4.0.2
configure: creating ./config.status
config.status: creating Makefile
config.status: creating libdjvu/Makefile
config.status: creating tools/Makefile
config.status: creating xmltools/Makefile
config.status: creating gui/Makefile
config.status: creating gui/desktop/Makefile
config.status: creating gui/bin2cpp/Makefile
config.status: creating gui/djview/Makefile
config.status: creating gui/nsdejavu/Makefile
config.status: creating gsfiles/Makefile
config.status: creating i18n/Makefile
config.status: creating i18n/ja/Makefile
config.status: creating i18n/de/Makefile
config.status: creating i18n/fr/Makefile
config.status: creating config.h

Configuration is done.
Compile with command:
$ make depend (optional!)
$ make
Then install the binaries in /usr with command:
# make install
+ make
for d in libdjvu tools xmltools gui gsfiles i18n ; \
do ( cd $d && make all ) || exit ; done
make[1]: Entering directory `/usr/src/asplinux/BUILD/djvulibre-3.5.14/libdjvu'
make[1]: Circular Makefile.dep <- Makefile.dep dependency dropped.
/bin/sh ../libtool --mode=compile g++ -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32 -march=i386 -mtune=pentium4 -fasynchronous-unwind-tables -DHAVE_CONFIG_H -I.. -I. -DNDEBUG -Wall -O3 -mcpu=i686 -pthread -DTHREADMODEL=POSIXTHREADS -c DjVuGlobal.cpp
mkdir .libs
g++ -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32 -march=i386 -mtune=pentium4 -fasynchronous-unwind-tables -DHAVE_CONFIG_H -I.. -I. -DNDEBUG -Wall -O3 -mcpu=i686 -pthread -DTHREADMODEL=POSIXTHREADS -c DjVuGlobal.cpp -fPIC -DPIC -o .libs/DjVuGlobal.o
/bin/sh ../libtool --mode=compile g++ -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32 -march=i386 -mtune=pentium4 -fasynchronous-unwind-tables -DHAVE_CONFIG_H -I.. -I. -DNDEBUG -Wall -O3 -mcpu=i686 -pthread -DTHREADMODEL=POSIXTHREADS -c DjVuGlobalMemory.cpp
g++ -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32 -march=i386 -mtune=pentium4 -fasynchronous-unwind-tables -DHAVE_CONFIG_H -I.. -I. -DNDEBUG -Wall -O3 -mcpu=i686 -pthread -DTHREADMODEL=POSIXTHREADS -c DjVuGlobalMemory.cpp -fPIC -DPIC -o .libs/DjVuGlobalMemory.o
/bin/sh ../libtool --mode=compile g++ -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32 -march=i386 -mtune=pentium4 -fasynchronous-unwind-tables -DHAVE_CONFIG_H -I.. -I. -DNDEBUG -Wall -O3 -mcpu=i686 -pthread -DTHREADMODEL=POSIXTHREADS -c GOS.cpp
g++ -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32 -march=i386 -mtune=pentium4 -fasynchronous-unwind-tables -DHAVE_CONFIG_H -I.. -I. -DNDEBUG -Wall -O3 -mcpu=i686 -pthread -DTHREADMODEL=POSIXTHREADS -c GOS.cpp -fPIC -DPIC -o .libs/GOS.o
GString.h:165: error: expected ',' or '...' before '&' token
GString.h:165: error: ISO C++ forbids declaration of 'GBaseString' with no type
make[1]: *** [GOS.lo] Error 1
make[1]: Leaving directory `/usr/src/asplinux/BUILD/djvulibre-3.5.14/libdjvu'
make: *** [all] Error 2
ошибка: Неверный код возврата из /var/tmp/rpm-tmp.59939 (%build)

Ошибки сборки пакетов:
пользователь leonb не существует - используется root
группа leonb не существует - используется root
пользователь leonb не существует - используется root
группа leonb не существует - используется root
Неверный код возврата из /var/tmp/rpm-tmp.59939 (%build)

Аватар пользователя ks

Re: Проблема с установкой src.rpm пакета

djvulibre уже собран для ASPLinux. Ищите пакет на дистрибутивном диске или здесь

PS

Цитата:
djvulibre-3.5.14-2.src.rpm

В ASPLinux-11.2 версия посвежее.

А, в принципе, освойте yum. Очень удобная штука Улыбка

Аватар пользователя GrafMAN

Re: Проблема с установкой src.rpm пакета

Нет это конечно хорошо, но почему у меня не собирается этот фаил. за ссылку огромное спасибо завтра проверю и отпишусь. Но всеже меня мучает еще и тот вопрос почему я не смог собрать этот пакет сам что это за ошибки. Ктонибудь можно разъяснить.

Аватар пользователя wildsin

Re: Проблема с установкой src.rpm пакета

GrafMAN писал(а):
Местные гуру помогите плиззз но уже не знаю что делать, никак не могу установить программу для чтения djvu

развернутый ответ на сайте asplinuxclub.org в твоей же ветке... просто туда я раньше зашел.

Аватар пользователя GrafMAN

Re: Проблема с установкой src.rpm пакета

Все всем спаибо проблема решена!

RSS-материал