Return-path: Received: from mail-la0-f50.google.com ([209.85.215.50]:48205 "EHLO mail-la0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752863AbaBSVzu (ORCPT ); Wed, 19 Feb 2014 16:55:50 -0500 Received: by mail-la0-f50.google.com with SMTP id ec20so742173lab.37 for ; Wed, 19 Feb 2014 13:55:49 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: From: "Luis R. Rodriguez" Date: Wed, 19 Feb 2014 13:55:28 -0800 Message-ID: (sfid-20140219_225553_778022_13345575) Subject: Re: [RFC] crda: Fix the linking order to avoid compilation error To: Krishna Chaitanya Cc: John Linville , linux-wireless , "wireless-regdb@lists.infradead.org" Content-Type: text/plain; charset=UTF-8 Sender: linux-wireless-owner@vger.kernel.org List-ID: On Mon, Dec 16, 2013 at 8:27 AM, Krishna Chaitanya wrote: > While linking the crda.o and libreg.so, first put crda.o > and then -lreg. This fixed the below error: > > # make > GEN keys-gcrypt.c > Trusted pubkeys: pubkeys/linville.key.pub.pem > CC libreg.so > CC crda.o > LD crda > crda.o: In function `main': > crda/crda.c:196: undefined reference to `reglib_get_rd_alpha2' > collect2: ld returned 1 exit status > make: *** [crda] Error 1 > > Note: This still doesn't fix the below error (will send another mail) > > CHK /usr/lib/crda/regulatory.bin > Database signature verification failed. > Invalid or empty regulatory file, note: a binary regulatory file should be used. > make: *** [verify] Error 234 > > Signed-off-by: Chaitanya T K Applied and pushed, thanks! Luis