Problems building abiword-0.9.3-1.src.rpm


Subject: Problems building abiword-0.9.3-1.src.rpm
From: Ramón Flores d'as Seixas (fa2ramon@usc.es)
Date: Fri Sep 14 2001 - 14:05:10 CDT


Hi:

I have tried to compile abiword-0.9.3-1.src.rpm. I have a PC (pentium
200MHz), with redhat 6.1 partially upgraded to 6.2.

        FIRST ATTEMPT
I tried to rebuild the package with "rpm --rebuild
abiword-0.9.3-1.src.rpm", but the process halted.
I suppose that it was a problem with the gnome libraries, (the error messages
are included in appendix 1). I don't want to use
these libraries, but to build a pure gtk program. Is it possible to build a
pure gtk program using rpm and the abi*.src.rpm? How?

        SECOND ATTEMPT
I tried to build the program directly, using the sources that rpm extract to
the usr/src/redhat/BUILD directory. So, after reading some files, I typed

1) cd /usr/src/redhat/BUILD/abiword-0.9.3/abi
2) ./autogen.sh
3) ./configure --disable-gnome
     all run correctly and the result were finally:

        Configured to build on a Unix/Linux platform.
 
                XML Parser:      expat in -lexpat
                    PNG Library:     libpng in -lpng -lm -lz
                Psiconv Library: supplied psiconv in
/usr/src/redhat/BUILD/abiword-0.9.3/psiconv
                    WV Library:      supplied wv in
/usr/src/redhat/BUILD/abiword-0.9.3/wv
        
        Type make to build AbiWord.    

So I typed:     
4) make

         But after a while the process halted when trying to build the wv
directory. (the error messages are included in appendix 2).

        THIRD ATTEMPT
Following a suggestion of Alan, after a previous message to the user list, I
went into all the wvWare directories and ran make in each one. All went
correctly inside the subdirectories, but in the wv main directory
(/usr/src/redhat/BUILD/abiword-0.9.3/wv) the process halted giving the same
error messages that in the second attempt.

        FOURTH ATTEMPT
I downloaded and installed wv-0.6.4-1mdk.i586.rpm and
libwmf-0.1.21-2.i386.rpm. Then I followed the same steps as in the second
attempt, and the results were the same. I expected that a wv library from
the installed wv-0.6.4-1mdk.i586.rpm were used, but the result of configure
was the same:

        Configured to build on a Unix/Linux platform.
 
                XML Parser:      expat in -lexpat
                    PNG Library:     libpng in -lpng -lm -lz
                Psiconv Library: supplied psiconv in
/usr/src/redhat/BUILD/abiword-0.9.3/psiconv
                    WV Library:      supplied wv in
/usr/src/redhat/BUILD/abiword-0.9.3/wv

Logically the result of running make also was the same.

Any help is wellcome

Ramon

===========================================================

APPENDIX 1 Error messages after rpm --rebuild abiword-0.9.3-1.src.rpm

make[4]: Leaving directory
`/usr/src/redhat/BUILD/abiword-0.9.3/abi/src/af/ev/xp'
make  ABI_ROOT=/usr/src/redhat/BUILD/abiword-0.9.3/abi -C unix build
Unknown library `gal'
Unknown library `print'
Unknown library `gal'
make[4]: Entering directory
`/usr/src/redhat/BUILD/abiword-0.9.3/abi/src/af/ev/unix'
Building with [LicensedTrademarks:Off Debug:Off BiDi:Off Optimize:On
Bonobo:Off Gnome:On LibXML:Off Pspell:Off Scripting:Off].
make  ABI_ROOT=/usr/src/redhat/BUILD/abiword-0.9.3/abi -C gnome build
Unknown library `gal'
Unknown library `print'
Unknown library `gal'
make[5]: Entering directory
`/usr/src/redhat/BUILD/abiword-0.9.3/abi/src/af/ev/unix/gnome'
Building with [LicensedTrademarks:Off Debug:Off BiDi:Off Optimize:On
Bonobo:Off Gnome:On LibXML:Off Pspell:Off Scripting:Off].
ev_UnixGnomeMenu.cpp:
ev_UnixGnomeToolbar.cpp:
ev_UnixGnomeToolbar.cpp:46: gal/widgets/gtk-combo-text.h: No such file or
directory
ev_UnixGnomeToolbar.cpp:47: gal/widgets/widget-color-combo.h: No such file or
directory
ev_UnixGnomeToolbar.cpp:48: gal/widgets/widget-pixmap-combo.h: No such file
or directory
ev_UnixGnomeToolbar.cpp:181: `ColorCombo' was not declared in this scope
ev_UnixGnomeToolbar.cpp:181: `combo' was not declared in this scope
ev_UnixGnomeToolbar.cpp:181: parse error before `*'
ev_UnixGnomeToolbar.cpp: In function `void s_color_changed(...)':
ev_UnixGnomeToolbar.cpp:189: `color' undeclared (first use this function)
ev_UnixGnomeToolbar.cpp:189: (Each undeclared identifier is reported only once
ev_UnixGnomeToolbar.cpp:189: for each function it appears in.)
ev_UnixGnomeToolbar.cpp:189: `combo' undeclared (first use this function)
ev_UnixGnomeToolbar.cpp:189: `wd' undeclared (first use this function)
ev_UnixGnomeToolbar.cpp:192: confused by earlier errors, bailing out
cpp: output pipe has been closed
make[5]: ***
[/usr/src/redhat/BUILD/abiword-0.9.3/abi/src/Linux_2.2.16-3_i386_GNOME/obj/ev_UnixGnomeToolbar.o]
Error 1
make[5]: Leaving directory
`/usr/src/redhat/BUILD/abiword-0.9.3/abi/src/af/ev/unix/gnome'
make[4]: *** [build] Error 2
make[4]: Leaving directory
`/usr/src/redhat/BUILD/abiword-0.9.3/abi/src/af/ev/unix'
make[3]: *** [build] Error 2
make[3]: Leaving directory `/usr/src/redhat/BUILD/abiword-0.9.3/abi/src/af/ev'
make[2]: *** [build] Error 2
make[2]: Leaving directory `/usr/src/redhat/BUILD/abiword-0.9.3/abi/src/af'
make[1]: *** [build] Error 2
make[1]: Leaving directory `/usr/src/redhat/BUILD/abiword-0.9.3/abi/src'
make: *** [compile] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.82849 (%build)

RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.82849 (%build)
   
==================================================================

APPENDIX 2 Error messages after executing
/usr/src/redhat/BUILD/abiword-0.9.3/abi/make

gcc  -o wvSummary wvSummary.o  -L. -lwv -lpng -lz     -L/usr/lib -lglib -lm
gcc -g -O2  -DHAVE_CONFIG_H  -I/usr/lib/glib/include -ansi -pedantic -I. -I./
-I./ -I./magick/ -I./expat/xmlparse/
-DXMLCONFIG=\"/usr/local/share/wv/wvConfig.xml\"
-DHTMLCONFIG=\"/usr/local/share/wv/wvHtml.xml\" -I./libole2/ -I./oledecod/  
-c ./wvWare.c
gcc  -o wvWare wvWare.o  -L. -lwv -lpng -lz     -L/usr/lib -lglib -lm
./libwv.a(text.o): In function `wvLIDToCodePageConverter':
/usr/src/redhat/BUILD/abiword-0.9.3/wv/./text.c:488: undefined reference to
`libiconv_open'
/usr/src/redhat/BUILD/abiword-0.9.3/wv/./text.c:488: undefined reference to
`libiconv_close'
/usr/src/redhat/BUILD/abiword-0.9.3/wv/./text.c:493: undefined reference to
`libiconv_open'
/usr/src/redhat/BUILD/abiword-0.9.3/wv/./text.c:493: undefined reference to
`libiconv_close'
./libwv.a(text.o): In function `swap_iconv':
/usr/src/redhat/BUILD/abiword-0.9.3/wv/./text.c:692: undefined reference to
`libiconv_open'
/usr/src/redhat/BUILD/abiword-0.9.3/wv/./text.c:699: undefined reference to
`libiconv'
/usr/src/redhat/BUILD/abiword-0.9.3/wv/./text.c:701: undefined reference to
`libiconv_close'
./libwv.a(text.o): In function `wvHandleCodePage':
/usr/src/redhat/BUILD/abiword-0.9.3/wv/./text.c:751: undefined reference to
`libiconv_open'
/usr/src/redhat/BUILD/abiword-0.9.3/wv/./text.c:763: undefined reference to
`libiconv'
/usr/src/redhat/BUILD/abiword-0.9.3/wv/./text.c:777: undefined reference to
`libiconv_close'
./libwv.a(text.o): In function `wvOutputFromUnicode':
/usr/src/redhat/BUILD/abiword-0.9.3/wv/./text.c:799: undefined reference to
`libiconv_close'
/usr/src/redhat/BUILD/abiword-0.9.3/wv/./text.c:801: undefined reference to
`libiconv_open'
/usr/src/redhat/BUILD/abiword-0.9.3/wv/./text.c:824: undefined reference to
`libiconv'
/usr/src/redhat/BUILD/abiword-0.9.3/wv/./text.c:846: undefined reference to
`libiconv'
collect2: ld returned 1 exit status
make[1]: *** [wvWare] Error 1
make[1]: Leaving directory `/usr/src/redhat/BUILD/abiword-0.9.3/wv'
make: *** [wv] Error 2

===========================================================



This archive was generated by hypermail 2b25 : Fri Sep 14 2001 - 14:06:51 CDT