[wireless-regdb] [RFC] crda: Fix the linking order to avoid compilation error

Luis R. Rodriguez mcgrof at do-not-panic.com
Wed Feb 19 16:55:28 EST 2014


On Mon, Dec 16, 2013 at 8:27 AM, Krishna Chaitanya
<chaitanya.mgit at gmail.com> 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 <chaitanya.mgit at gmail.com>

Applied and pushed, thanks!

  Luis



More information about the wireless-regdb mailing list