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: Wed Sep 12 2001 - 13:30:11 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 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. 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?

Following are the error messages

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)
    
===================================================================================
   

    
In a 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, giving the following error messages:

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

Any help is wellcome

Ramon

-----------------------------------------------
To unsubscribe from this list, send a message to
abiword-user-request@abisource.com with the word
unsubscribe in the message body.



This archive was generated by hypermail 2b25 : Wed Sep 12 2001 - 13:31:51 CDT