From patchwork Mon Dec 16 16:27:39 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krishna Chaitanya X-Patchwork-Id: 3355681 Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id BF644C0D4A for ; Mon, 16 Dec 2013 16:28:07 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B1C72201C8 for ; Mon, 16 Dec 2013 16:28:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A54C8201C0 for ; Mon, 16 Dec 2013 16:28:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754401Ab3LPQ2C (ORCPT ); Mon, 16 Dec 2013 11:28:02 -0500 Received: from mail-we0-f180.google.com ([74.125.82.180]:64953 "EHLO mail-we0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754211Ab3LPQ2B (ORCPT ); Mon, 16 Dec 2013 11:28:01 -0500 Received: by mail-we0-f180.google.com with SMTP id t61so4820412wes.39 for ; Mon, 16 Dec 2013 08:28:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:cc:content-type; bh=JtF5Kpvy6a/OlXS5AGDT5mfh2UQG2an6DnUQGSkeRs4=; b=Gzmm7dCuum3ABLva5tBVZFupvTdAefCSJtMB9SDO7wpmlTEfZTPSIlvR1ihCUpP6Q1 b0u+xwtJ42GnbQryhAfRxA36zOOJpOnQRrZXqTO907Y7MlljojxS4pnZUv20ucZ/92k7 +2bsfoXUtMnOrPeT6exKrjGZv/r52DCvnz4HYKlZVtSjjJlQyhp+cD8qtmPJt5/Pza53 HVV7d31NUUbfwMCrIFxSdEjkXNtfdWFm9Ql9lJlXhigSHnUuw26WVBxhILZoFEPXclXG rL+6rcPSyEGcacXM0A/yNdqsb0R79idOzY9E/bkIwd9Wa91PTTJIWJML639e/6w/5zmi lTxw== X-Received: by 10.180.21.101 with SMTP id u5mr10071436wie.38.1387211279966; Mon, 16 Dec 2013 08:27:59 -0800 (PST) MIME-Version: 1.0 Received: by 10.194.23.103 with HTTP; Mon, 16 Dec 2013 08:27:39 -0800 (PST) From: Krishna Chaitanya Date: Mon, 16 Dec 2013 21:57:39 +0530 Message-ID: Subject: [RFC] crda: Fix the linking order to avoid compilation error To: John Linville Cc: linux-wireless , wireless-regdb@lists.infradead.org Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/Makefile b/Makefile index 4a351c6..0b2f0d7 100644 --- a/Makefile +++ b/Makefile @@ -28,10 +28,11 @@ RUNTIME_PUBKEY_DIR?=/etc/wireless-regdb/pubkeys CFLAGS += -O2 -fpic CFLAGS += -std=gnu99 -Wall -Werror -pedantic CFLAGS += -Wall -g -LDLIBS += -lm LDLIBREG += -lreg +LDLIBS += $(LDLIBREG) +LDLIBS += -lm LIBREG += libreg.so -LDFLAGS += -L ./ $(LDLIBREG) +LDFLAGS += -L ./ all: all_noverify verify -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in