From owner-freebsd-current@FreeBSD.ORG Sun Jul 4 15:59:01 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 183E71065673; Sun, 4 Jul 2010 15:59:01 +0000 (UTC) (envelope-from swell.k@gmail.com) Received: from mail-ew0-f54.google.com (mail-ew0-f54.google.com [209.85.215.54]) by mx1.freebsd.org (Postfix) with ESMTP id 7192E8FC21; Sun, 4 Jul 2010 15:58:59 +0000 (UTC) Received: by ewy26 with SMTP id 26so1620278ewy.13 for ; Sun, 04 Jul 2010 08:58:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:references :date:message-id:user-agent:mime-version:content-type; bh=WPVvw8CGmoHNInJI2wMRAI59tIEE42hHChyB6H2ozow=; b=WAoJxZAISmxU5nzbTmhFSmRr9zICtv+MvtWmyGSKYWIOdIOTt3u2XJPpWYNj/6nv5X ZOxWoRdyHm0afaxwrY+AyKBKkA3HTHuDLHj49GSkiZDQYMAfw4sF+x40UKFPKhnDfTdF s11JxJF0L+bTPHQc21nCSLa1b+bG+4tz0viIw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:message-id:user-agent :mime-version:content-type; b=ToJivAnyw6qtHPR/OnUremXyqg4aQg+Iv3eNTtjTSIcQfv5gJ4oa+ZbS1QTUI1nyy6 CmmO7tpsNKGwqtPVBQrmuJsZG3Nh1sRoB5l6nzFNFM59Ub0YI1wj3hdakhUOZiXJwbuX pReVEK7S1vYhuSpxRhvI7qbcXXMKroQ7I4ask= Received: by 10.213.32.197 with SMTP id e5mr1246892ebd.41.1278259134705; Sun, 04 Jul 2010 08:58:54 -0700 (PDT) Received: from localhost (5ED6701E.cable.ziggo.nl [94.214.112.30]) by mx.google.com with ESMTPS id v59sm26363200eeh.16.2010.07.04.08.58.48 (version=SSLv3 cipher=RC4-MD5); Sun, 04 Jul 2010 08:58:53 -0700 (PDT) From: Anonymous To: Gabor Kovesdan References: <4C16C5B5.1070308@FreeBSD.org> <867hlzq4lb.fsf@gmail.com> <867hlzufl6.fsf@gmail.com> <4C1A7A57.3000006@FreeBSD.org> <86bpb9z77g.fsf@gmail.com> <4C2F7917.7040900@FreeBSD.org> Date: Sun, 04 Jul 2010 19:58:25 +0400 Message-ID: <86fwzz9r32.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: FreeBSD Current Subject: Re: [CFT] BSDL iconv in base system X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Jul 2010 15:59:01 -0000 Gabor Kovesdan writes: > Em 2010.06.17. 23:21, Anonymous escreveu: >>> If cross-compiling doesn't work, how did you build the former one that >>> gave you that error? >>> >> Here is my guess >> >> libiconv_modules compiles fine but installs both normal and lib32 objdir >> into /usr/lib when lib32 should use /usr/lib32. >> >> mkcsmapper/mkesdb are failing to install because they're treated as >> build-tools for host system and never compiled for target >> system. However, they're not included in lib32 target and so are not >> built for i386 arch during normal buildworld on amd64 host where >> host = target. >> > Here's the new patch, which is supposed to fix the following issues: > - Fixed build on amd64 and fixed cross-compiling > - Fixed hang when linked to libthr > - Fixed iconv() prototype as per POSIX > - More GNU compatibility: "" or "char" means the current local > encoding in use > > http://kovesdan.org/patches/iconv_current.diff Do you create /usr/lib32/i18n directory before installing into it? $ make buildworld ... ===> lib/libiconv_modules/BIG5 (install) sh /a/dirty_build/tools/install.sh -o root -g wheel -m 444 libBIG5.so.4 /a/objdir/a/dirty_build/lib32/usr/lib32/i18n ln -fs libBIG5.so.4 /a/objdir/a/dirty_build/lib32/usr/lib32/i18n/libBIG5.so ln: /a/objdir/a/dirty_build/lib32/usr/lib32/i18n/libBIG5.so: Not a directory *** Error code 1 $ sudo make installworld ... ===> libiconv_modules (install) ===> libiconv_modules/BIG5 (install) install -o root -g wheel -m 444 libBIG5.so.4 /usr/lib32/i18n ln -fs libBIG5.so.4 /usr/lib32/i18n/libBIG5.so ln: /usr/lib32/i18n/libBIG5.so: Not a directory *** Error code 1 $ file /a/objdir/a/dirty_build/lib32/usr/lib32/dtrace /a/objdir/a/dirty_build/lib32/usr/lib32/dtrace: ELF 32-bit LSB relocatable, Intel 80386, version 1 (FreeBSD), not stripped $ file /a/objdir/a/dirty_build/lib32/usr/lib32/i18n /a/objdir/a/dirty_build/lib32/usr/lib32/i18n: ELF 32-bit LSB shared object, Intel 80386, version 1 (FreeBSD), dynamically linked, not stripped $ file /usr/lib32/i18n /usr/lib32/i18n: ELF 32-bit LSB shared object, Intel 80386, version 1 (FreeBSD), dynamically linked, not stripped %% this fixes only `installworld' case, though --- Makefile.inc1~ +++ Makefile.inc1 @@ -481,9 +481,11 @@ distribute32 install32: .if make(distribute32) mkdir -p ${DISTDIR}/${DISTRIBUTION}/usr/lib32 # XXX add to mtree mkdir -p ${DISTDIR}/${DISTRIBUTION}/usr/lib32/dtrace # XXX add to mtree + mkdir -p ${DISTDIR}/${DISTRIBUTION}/usr/lib32/i18n # XXX add to mtree .else mkdir -p ${DESTDIR}/usr/lib32 # XXX add to mtree mkdir -p ${DESTDIR}/usr/lib32/dtrace # XXX add to mtree + mkdir -p ${DESTDIR}/usr/lib32/i18n # XXX add to mtree .endif cd ${.CURDIR}/lib; ${LIB32IMAKE} ${.TARGET:S/32$//} .if ${MK_CDDL} != "no" %%