From owner-freebsd-current@FreeBSD.ORG Wed Sep 18 03:05:25 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 619842F0 for ; Wed, 18 Sep 2013 03:05:25 +0000 (UTC) (envelope-from rizzo@i805.com.br) Received: from server.i805.com.br (mailhost.i805.com.br [72.52.97.105]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4DECB2754 for ; Wed, 18 Sep 2013 03:05:24 +0000 (UTC) Received: from i805.com.br (localhost [127.0.0.1]) by server.i805.com.br (8.14.6/8.14.5) with ESMTP id r8I35MaU045168 for ; Wed, 18 Sep 2013 00:05:22 -0300 (BRT) (envelope-from rizzo@i805.com.br) From: "Nilton Jose Rizzo" To: freebsd-current@freebsd.org Subject: Fw: Re: problems with libiconv into kernel Date: Wed, 18 Sep 2013 00:05:22 -0300 Message-Id: <20130918030452.M4304@i805.com.br> In-Reply-To: <20130918025740.M32718@i805.com.br> X-Mailer: OpenWebMail 3.00_beta4 20121104 671 X-OriginatingIP: 179.218.87.141 (rizzo) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED autolearn=unavailable version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on server.i805.com.br X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 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: Wed, 18 Sep 2013 03:05:25 -0000 Em Mon, 16 Sep 2013 17:53:06 -0700, John-Mark Gurney escreveu > Nilton Jose Rizzo wrote this message on Mon, Sep 16, 2013 at 20:26 -0300: > > Em Mon, 16 Sep 2013 16:07:28 -0700, John-Mark Gurney escreveu > > > Nilton Jose Rizzo wrote this message on Sun, Sep 15, 2013 at 13:14 -0300: > > > > Last night, I has tried to put in my kernel config the libiconv with this > > > > knobs from LINT: > > > > > > > > options CD9660_ICONV > > > > options MSDOSFS_ICONV > > > > options UDF_ICONV > > > > options LIBICONV > > > > > > > > but this results int this error: > > > > > > > > cc -c -O2 -pipe -fno-strict-aliasing -std=c99 -Wall -Wredundant-decls > > > > -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith > > > > -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions > > > > -Wmissing-include-dirs -fdiagnostics-show-option > > > > -Wno-error-tautological-compare -Wno-error-empty-body > > > > -Wno-error-parentheses-equality -nostdinc -I. -I../../.. > > > > -I../../../contrib/altq -I../../../contrib/libfdt -D_KERNEL > > > > -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-omit-frame-pointer > > > > -mno-omit-leaf-frame-pointer -mno-aes -mno-avx -mcmodel=kernel -mno-red-zone > > > > -mno-mmx -mno-sse -msoft-float -fno-asynchronous-unwind-tables -ffreestanding > > > > -fstack-protector -Werror ../../../libkern/iconv.c > > > > ../../../libkern/iconv.c:39:10: fatal error: 'iconv_converter_if.h' file not > > > > found > > > > #include "iconv_converter_if.h" > > > > ^ > > > > 1 error generated. > > > > *** Error code 1 > > > > > > > > Stop. > > > > make: stopped in /usr/src/sys/amd64/compile/VALFENDA > > > > > > > > What am I doing wrong? My svn version is 255531 > > > > > > How are you building your kernel? are you using config and make or > > > are you using buildkernel? If you are using config and make, did you > > > run: make cleandepend && make depend first before make like said? > > > > First, i tried with buildkernel, but i get the error, I tried config and > > make, again, I got error, so I tried make clean && make but I got error. > > I'll try with make cleandepend and then report. > > tinderbox should report these errors if they were a general issue.. > I just tried LINT, and it was able to build iconv.o fine, and as part > of the first step, it built iconv_converter_if.h via: > awk -f ../../../tools/makeobjops.awk > ../../../libkern/iconv_converter_if.m -h > > Make sure that you don't have any local patches, and that your > src/sys/conf directory is up to date, as the file sys/conf/kmod.mk sets > up the rules to build the .h file... I update the src to revision 255658 and the error change to make clean && make cleandepend && make depend && make and results: ===> zlib (depend) @ -> /usr/src/sys rm -f .depend mkdep -f .depend -a -nostdinc -D_KERNEL -DKLD_MODULE -DHAVE_KERNEL_OPTION_HEADERS -I. -I@ -I@/contrib/altq -I/usr/src/sys/amd64/compile/VALFENDA -std=iso9899:1999 /usr/src/sys/modules/zlib/../../net/zlib.c linking kernel udf_iconv.o: In function `udf_iconv_mod_handler': ../../../fs/udf/udf_iconv.c:(.text+0x24): undefined reference to `udf_iconv' ../../../fs/udf/udf_iconv.c:(.text+0x3b): undefined reference to `udf_iconv' *** Error code 1 Stop. make: stopped in /usr/src/sys/amd64/compile/VALFENDA The make buildworld was fine! but the kernel is not. TA, Rizzo > > -- > John-Mark Gurney Voice: +1 415 225 5579 > > "All that I will do, has been done, All that I have, has not."