tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Compiling libiconv-1.14 on MirBSD


I have problems compiling the new release of libiconv on MirBSD. The build 
stops with the following error during "make package":

/bin/sh ../libtool --mode=link mgcc -Wl,-O2 -Wl,-R/usr/pkg/lib -O2 -pipe 
-std=gnu99 -Os -fweb -frename-registers -Wformat -Wstrict-aliasing -Wbounded 
-fwrapv -fno-align-functions -fno-align-labels -falign-loops=4 -falign-jumps=4 
-march=i486 -mpush-args -mpreferred-stack-boundary=2 -momit-leaf-frame-pointer 
-fhonour-copts iconv_no_i18n.o ../srclib/libicrt.a ../lib/ -o 
libtool: link: mgcc -Wl,-O2 -Wl,-R/usr/pkg/lib -O2 -pipe -std=gnu99 -Os -fweb 
-frename-registers -Wformat -Wstrict-aliasing -Wbounded -fwrapv 
-fno-align-functions -fno-align-labels -falign-loops=4 -falign-jumps=4 
-march=i486 -mpush-args -mpreferred-stack-boundary=2 -momit-leaf-frame-pointer 
-fhonour-copts iconv_no_i18n.o -o .libs/iconv_no_i18n ../srclib/libicrt.a 
-L/usr/pkgsrc/converters/libiconv/work/.buildlink/lib -Wl,-rpath 
../lib/.libs/ warning: strcpy() is almost always misused, 
consider using strlcpy()
iconv_no_i18n.o: In function `subst_mb_to_uc_fallback':
iconv_no_i18n.c:(.text+0x4ce): warning: sprintf() is often misused, consider 
using snprintf()
../lib/.libs/ undefined reference to `libcharset_relocate'
collect2: ld returned 1 exit status
*** Error code 1
bmake: stopped in /usr/pkgsrc/converters/libiconv/work/libiconv-1.14/src

The attached patch links libiconv against libcharset. This fixes the build on 
my system; I am not sure if this is the right fix however.

OK to commit?


Attachment: libiconv.diff
Description: Binary data

Home | Main Index | Thread Index | Old Index