Subject: pkg/36412: abiword build crash on Linux
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <pkgsrc@blackmouse.biz>
List: pkgsrc-bugs
Date: 05/30/2007 09:25:00
>Number:         36412
>Category:       pkg
>Synopsis:       abiword build crash on Linux
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed May 30 09:25:00 +0000 2007
>Originator:     Ondrej Tuma
>Release:        current
>Organization:
Blackmouse
>Environment:
Linux ip1 2.6.20.1 #3 Thu Mar 8 18:42:01 CET 2007 i686 athlon-4 i386 GNU/Linux
>Description:
here is part of log:
if g++ -DPACKAGE_NAME=\"AbiSuite\" -DPACKAGE_TARNAME=\"abisuite\" -DPACKAGE_VERSION=\"2.4\" -DPACKAGE_STRING=\"AbiSuite\ 2.4\" -DPACKAGE_BUGREPORT=\"http://www.abisource.com/\" -DPACKAGE=\"AbiSuite-2.4\" -DVERSION=\"2.4.6\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSIZEOF_LONG_INT=4 -DSTDC_HEADERS=1 -DHAVE_LIMITS_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DHAVE_MALLOC_H=1 -DHAVE_LIBXML2=1 -DHAVE_WV=1 -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -DRETSIGTYPE=void -DHAVE_RE_COMP=1 -DHAVE_REGCOMP=1 -DHAVE_STRDUP=1 -DHAVE_STRSTR=1 -DHAVE_STRCASECMP=1 -DHAVE_STRNLEN=1 -DABI_SCANDIR_SELECT_QUALIFIER=const  -I. -I. -I'../../../../src/af/util/xp' -I'../../../../src/af/tf/xp' -I'../../../../src/af/ev/xp' -I'../../../../src/af/ev/xp' -I'../../../../src/af/gr/xp' -I'../../../../src/af/xap/xp' -I'../../../../src/af/util/unix' -I'../../
 ../../src/af/ev/unix' -I'../../../../src/af/gr/unix' -I'../../../../src/af/xap/unix' -I'../../../../src/other/spell/xp' -I'../../../../src/other/fribidi/xp' -I'../../../../src/other/ttftool/unix'    -I/usr/pkg/include -I/usr/include -I/usr/include/db1 -I/usr/pkg/include/freetype2  -O2 -O2 -mtune=i686 -mcpu=i686 -march=i686 -I/usr/pkg/include -I/usr/include -I/usr/include/db1 -I/usr/pkg/include/freetype2 -Wall -pedantic -ansi -D_POSIX_SOURCE -D_BSD_SOURCE -pipe -DNDEBUG -I/usr/pkg/include/libxml2   -I/usr/pkg/include/fribidi -I/usr/pkg/include/wv -I/usr/pkg/include/libgsf-1 -I/usr/pkg/include/glib/glib-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/pkg/include/libxml2    -DXTHREADS -I/usr/pkg/include -I/usr/pkg/include/freetype2 -I/usr/pkg/xorg/include -I/usr/pkg/include -I/usr/pkg/include -DHAVE_THREADS=1 -pthread -I/usr/pkg/include/glib/glib-2.0 -I/usr/pkg/lib/glib-2.0/include    -DABISIZEOF_LONG_INT=4 -DXTHREADS -I/usr/pkg/include/gtk-2.0 -I/usr/pkg/lib/gtk-2.0/include -I/usr/
 pkg/include/atk-1.0 -I/usr/pkg/include/cairo -I/usr/pkg/include/pango-1.0 -I/usr/pkg/include/glib/glib-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/pkg/include/freetype2 -I/usr/pkg/include -I/usr/pkg/include/libpng12 -I/usr/pkg/xorg/include -I/usr/pkg/include/libglade-2.0 -I/usr/pkg/include/libxml2   -I/usr/pkg/include/glib/glib-2.0 -I/usr/pkg/lib/glib-2.0/include   -DXTHREADS -DORBIT2=1 -pthread -I/usr/pkg/include -I/usr/pkg/include/gtk-2.0 -I/usr/pkg/include/glib/glib-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/pkg/include/libgnomeui-2.0 -I/usr/pkg/include/libgnome-2.0 -I/usr/pkg/lib/gtk-2.0/include -I/usr/pkg/include/atk-1.0 -I/usr/pkg/include/cairo -I/usr/pkg/include/pango-1.0 -I/usr/pkg/include/freetype2 -I/usr/pkg/include/libpng12 -I/usr/pkg/xorg/include -I/usr/pkg/include/libgnomecanvas-2.0 -I/usr/pkg/include/libart-2.0 -I/usr/pkg/include/gconf/2 -I/usr/pkg/include/libbonoboui-2.0 -I/usr/pkg/include/gnome-vfs-2.0 -I/usr/pkg/lib/gnome-vfs-2.0/include -I/usr/pkg/include/gn
 ome-keyring-1 -I/usr/pkg/include/orbit-2.0 -I/usr/pkg/include/libbonobo-2.0 -I/usr/pkg/include/bonobo-activation-2.0 -I/usr/pkg/include/libxml2   -DUSE_GUCHARMAP -DXTHREADS -I/usr/pkg/include/libgnomeprint-2.2 -I/usr/pkg/include/libart-2.0 -I/usr/pkg/include/glib/glib-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/pkg/include/libxml2 -I/usr/pkg/include/pango-1.0 -I/usr/pkg/include/libgnomeprintui-2.2 -I/usr/pkg/include/libgnomecanvas-2.0 -I/usr/pkg/include -I/usr/pkg/include/freetype2 -I/usr/pkg/include/gtk-2.0 -I/usr/pkg/lib/gtk-2.0/include -I/usr/pkg/include/atk-1.0 -I/usr/pkg/include/cairo -I/usr/pkg/include/libpng12 -I/usr/pkg/xorg/include   -DSUPPORTS_UT_IDLE=1   -DABISUITE_HOME=\"/usr/pkg/share/AbiSuite-2.4\" -DABI_BUILD_VERSION=\"2.4.6\" -MT ut_iconv.o -MD -MP -MF ".deps/ut_iconv.Tpo" -c -o ut_iconv.o ut_iconv.cpp; \
	then mv -f ".deps/ut_iconv.Tpo" ".deps/ut_iconv.Po"; else rm -f ".deps/ut_iconv.Tpo"; exit 1; fi
ut_iconv.cpp: In function `size_t UT_iconv(void*, const char**, size_t*, char**, size_t*)':
ut_iconv.cpp:343: error: invalid conversion from `const char**' to `char**'
ut_iconv.cpp: At global scope:
ut_iconv.cpp:176: warning: 'void s_internal_init()' defined but not used
make[5]: *** [ut_iconv.o] Error 1

here is full log:
http://linux.blackmouse.biz/pub/blackmouse-current/i686/pkgstat/20070530.0807/editors/abiword/.broken.html

problem is in patch-ab,
if i handily edit ut_iconv.cpp by-hand, and delete 'ICONV_CONST' all build right. Problem could be in iconv, which is use from pkgsrc, instead of native glibc.

>How-To-Repeat:
bmake build
>Fix:
correct patch-ab or correct iconv using