On Fri, Mar 20, 2015 at 1:18 AM, Miguel Clara <miguelmcl...@gmail.com>
wrote:

>
> On Thu, Mar 19, 2015 at 9:49 PM, Adrian Chadd <adr...@freebsd.org> wrote:
>
>> Whilst running this, can you run 'athstats 1' on the freebsd box?
>>
>> i wonder what the signal level and retransmit rates are.
>>
>
> Not sure hwo to do that... do I need ath_debug?
>
> I did found '/usr/src/tools/tools/ath/athstats' and tried to "make"
>
> clang -O2 -pipe   -DATH_DEFAULT='"ath0"'
> -I/usr/src/tools/tools/ath/athstats
> -I/usr/src/tools/tools/ath/athstats/../common
> -I/usr/src/tools/tools/ath/athstats/../../../../sys
> -I/usr/src/tools/tools/ath/athstats/../../../../sys/dev/ath
> -I/usr/src/tools/tools/ath/athstats/../../../../sys/dev/ath/ath_hal
> -I/usr/src/tools/tools/ath/athstats/../../../../sys/contrib/dev/ath/ath_hal
> -I/usr/src/tools/tools/ath/athstats -DATH_SUPPORT_ANI -DATH_SUPPORT_TDMA
> -DATH_DEFAULT='"ath0"' -I/usr/src/tools/tools/ath/athstats
> -I/usr/src/tools/tools/ath/athstats/../common
> -I/usr/src/tools/tools/ath/athstats/../../../../sys
> -I/usr/src/tools/tools/ath/athstats/../../../../sys/dev/ath
> -I/usr/src/tools/tools/ath/athstats/../../../../sys/dev/ath/ath_hal
> -I/usr/src/tools/tools/ath/athstats/../../../../sys/contrib/dev/ath/ath_hal
> -I/usr/src/tools/tools/ath/athstats -std=gnu99 -fstack-protector
> -fbracket-depth=512 -Qunused-arguments  -rpath /usr/lib/private -o athstats
> main.o athstats.o -L/usr/src/lib/libbsdstat -lbsdstat
> /usr/bin/ld: cannot find -lbsdstat
> clang: error: linker command failed with exit code 1 (use -v to see
> invocation)
> *** Error code 1
>
> Stop.
> make: stopped in /usr/src/tools/tools/ath/athstats
>
> I installed bsdstats but after make clean;make  I still get the same.
>

Oh wait:
-L/usr/src/lib/libbsdstat -lbsdstat

/usr/bin/ld: cannot find -lbsdstat

Should it look in /usr/private?

Or maybe not... I saw this:
######################
commit 050d4409aa855fa1f82f6ca0dbb7e0c865c05e32
Author: bapt <b...@freebsd.org>
Date:   Tue Nov 25 22:37:27 2014 +0000

    Convert to LIBADD

Notes:
    svn path=/head/; revision=275084

diff --git a/tools/tools/ath/athstats/Makefile
b/tools/tools/ath/athstats/Makefile
index 8d1bfa6..a7ff43b 100644
--- a/tools/tools/ath/athstats/Makefile
+++ b/tools/tools/ath/athstats/Makefile
@@ -23,9 +23,7 @@ CFLAGS+=-DATH_SUPPORT_TDMA

 CFLAGS.clang+= -fbracket-depth=512

-USEPRIVATELIB= bsdstat
-
-LDADD= ${LDBSDSTAT}
+LIBADD=        bsdstat

 opt_ah.h:
        echo "#define AH_DEBUG 1" > opt_ah.h
#################

reverting gives me this:

[...]ib/private -rpath /usr/lib/private -o athstats main.o athstats.o
athstats.o: In function `athstats_new':
athstats.c:(.text+0x3e): undefined reference to `bsdstat_init'
clang: error: linker command failed with exit code 1 (use -v to see
invocation)

If I can get arround this I'd love to post those stats



> Thanks,
>>
>>
>> -a
>>
>
>
_______________________________________________
freebsd-wireless@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-wireless
To unsubscribe, send any mail to "freebsd-wireless-unsubscr...@freebsd.org"

Reply via email to