Bug 20491

Summary: AbiWord-0.7.10 fails to compile on FreeBSD-4.1
Product: Ports & Packages Reporter: stevedav <stevedav>
Component: Individual Port(s)Assignee: freebsd-ports (Nobody) <ports>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description stevedav 2000-08-09 01:40:01 UTC
A make on the latest Abiword port fails:

[...]
iconv/iconv.c:33: warning: (near initialization for `inputs[7]')
iconv/iconv.c:34: warning: excess elements in struct initializer
iconv/iconv.c:34: warning: (near initialization for `inputs[8]')
iconv/iconv.c:41: warning: excess elements in struct initializer
iconv/iconv.c:41: warning: (near initialization for `outputs[0]')
iconv/iconv.c:42: warning: excess elements in struct initializer
iconv/iconv.c:42: warning: (near initialization for `outputs[1]')
iconv/iconv.c:43: warning: excess elements in struct initializer
iconv/iconv.c:43: warning: (near initialization for `outputs[2]')
iconv/iconv.c:44: warning: excess elements in struct initializer
iconv/iconv.c:44: warning: (near initialization for `outputs[3]')
iconv/iconv.c: In function `iconv_open':
iconv/iconv.c:51: warning: implicit declaration of function `strcasecmp'
iconv/iconv.c:56: structure has no member named `proc'
iconv/iconv.c:65: structure has no member named `proc'
iconv/iconv.c: In function `iconv':
iconv/iconv.c:82: syntax error before `proc'
iconv/iconv.c:83: warning: implicit declaration of function `proc'
iconv/iconv.c:80: warning: unused variable `out'
iconv/iconv.c:79: warning: unused variable `j'
iconv/iconv.c:79: warning: unused variable `i'
gmake[4]: *** [/usr/home/sdn/p/s/pub/FreeBSD/branches/-current/ports/editors/AbiWord/work/abi-0.7.10/src/../src/FreeBSD_
4.1-RELEASE_i386_OBJ/obj/wv/iconv/iconv.o] Error 1
gmake[4]: Leaving directory `/usr/home/sdn/p/s/pub/FreeBSD/branches/-current/ports/editors/AbiWord/work/wv'
gmake[3]: *** [_LIBWV_] Error 2
gmake[3]: Leaving directory `/usr/home/sdn/p/s/pub/FreeBSD/branches/-current/ports/editors/AbiWord/work/abi-0.7.10/src/c
onfig/require/unix'
gmake[2]: *** [build] Error 2
gmake[2]: Leaving directory `/usr/home/sdn/p/s/pub/FreeBSD/branches/-current/ports/editors/AbiWord/work/abi-0.7.10/src/c
onfig/require'
gmake[1]: *** [build] Error 2
gmake[1]: Leaving directory `/usr/home/sdn/p/s/pub/FreeBSD/branches/-current/ports/editors/AbiWord/work/abi-0.7.10/src/c
onfig'
gmake: *** [build] Error 2
*** Error code 2

Stop in /usr/home/sdn/p/s/pub/FreeBSD/branches/-current/ports/editors/AbiWord.
*** Error code 1

Stop in /usr/home/sdn/p/s/pub/FreeBSD/branches/-current/ports/editors/AbiWord.
*** Error code 1

Stop in /usr/home/sdn/p/s/pub/FreeBSD/branches/-current/ports/editors/AbiWord.

Fix: 

Fix the port.
How-To-Repeat: cd /usr/ports/editors/Abiword
make
Comment 1 Ade Lovett freebsd_committer freebsd_triage 2000-09-19 04:01:24 UTC
Responsible Changed
From-To: freebsd-ports->ade

I'll take a look at this.. was trying to build it the other night..
Comment 2 Ade Lovett freebsd_committer freebsd_triage 2000-10-02 23:08:14 UTC
Responsible Changed
From-To: ade->freebsd-ports

I'm handing this back to the -ports community at large. 
AbiWord is a mess, including its own copies of libole2, expat, 
and iconv (which is the problem here).  For this to be done 
right, appropriate LIB_DEPENDS need adding to the Makefile and 
incredible amounts of hackery will be needed in the various 
Makefiles to link against these external libraries. 

Oh, and an upgrade to 0.7.11 didn't help.
Comment 3 Trevor Johnson 2000-10-04 07:02:55 UTC
> I'm handing this back to the -ports community at large.
> AbiWord is a mess, including its own copies of libole2, expat,
> and iconv (which is the problem here).  For this to be done
> right, appropriate LIB_DEPENDS need adding to the Makefile and
> incredible amounts of hackery will be needed in the various
> Makefiles to link against these external libraries.
> 
> Oh, and an upgrade to 0.7.11 didn't help.

I made a simple attempt (no deep hacks) at updating the port to 0.7.11.  
It compiles for me, but crashes when I run it, after displaying an error
message about not being able to find its fonts.  I noticed the names of
many of the fonts (in the fonts.dir file) have spaces in them, but without
the double quotes around them that the mkfontdir man page says are needed.  
I tried adding the quotes and restarting X, but it made no difference.  I
made a patch of what I have, not including the quotes in the fonts.dir
file:

	http://people.freebsd.org/~trevor/ports/abiword.diff.gz
-- 
Trevor Johnson
http://jpj.net/~trevor/gpgkey.txt
Comment 4 Vanilla I. Shu freebsd_committer freebsd_triage 2001-03-16 23:57:19 UTC
State Changed
From-To: open->closed

Well, please try latest version of abiwork, it's ok to me.