← Back to team overview

mqtt-users team mailing list archive

Re: undefined reference to `be64toh'

 

Hi Diogo,

FYI - On the IBM site there's an NSLU2 binary for the RSMB you could have a
play about with if you don't want to build the Mosquitto broker, your slug
has to be either unflashed (or only unslung) else you'll get endian problems
though. You can get hold of the ia92 Java client too there which helps with
trouble shooting.

Tim
On Sun, Nov 28, 2010 at 12:28 AM, Diogo Mamede <diogo.mamede@xxxxxxxxx>wrote:

> Hello,
>
> I'm new to mosquitto and mqtt but i find the concept fascinating. I've got
> some ideias for using it at home, but i'm stuck at the beginning :-(
> I'm trying to compile mosquitto-0.9 on nslu2 but i'm getting errors:
>
> root@BRAIN1:~/mosquitto-0.9# uname -a
> Linux BRAIN1 2.6.32-bpo.5-ixp4xx #1 Thu Oct 28 02:17:16 UTC 2010 armv5tel
> GNU/Linux
>
> root@BRAIN1:~/mosquitto-0.9# make
> for d in lib client src man; do make -C ${d}; done
> make[1]: Entering directory `/root/mosquitto-0.9/lib'
> make -C cpp
> make[2]: Entering directory `/root/mosquitto-0.9/lib/cpp'
> make[2]: Nothing to be done for `all'.
> make[2]: Leaving directory `/root/mosquitto-0.9/lib/cpp'
> make -C python
> make[2]: Entering directory `/root/mosquitto-0.9/lib/python'
> python ./setup.py build
> running build
> running build_py
> make[2]: Leaving directory `/root/mosquitto-0.9/lib/python'
> make[1]: Leaving directory `/root/mosquitto-0.9/lib'
> make[1]: Entering directory `/root/mosquitto-0.9/client'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/root/mosquitto-0.9/client'
> make[1]: Entering directory `/root/mosquitto-0.9/src'
> gcc mosquitto.o bridge.o conf.o context.o database.o logging.o
> memory_mosq.o persist.o net.o net_mosq.o raw_send.o raw_send_client.o
> raw_send_server.o read_handle.o read_handle_client.o read_handle_server.o
> subs.o util.o util_mosq.o -o mosquitto -lsqlite3
> persist.o: In function `_db_retain_chunk_restore':
> /root/mosquitto-0.9/src/persist.c:606: undefined reference to `be64toh'
> persist.o: In function `_db_msg_store_chunk_restore':
> /root/mosquitto-0.9/src/persist.c:509: undefined reference to `be64toh'
> persist.o: In function `mqtt3_db_restore':
> /root/mosquitto-0.9/src/persist.c:711: undefined reference to `be64toh'
> persist.o: In function `_db_client_msg_chunk_restore':
> /root/mosquitto-0.9/src/persist.c:472: undefined reference to `be64toh'
> persist.o: In function `_db_subs_retain_write':
> /root/mosquitto-0.9/src/persist.c:306: undefined reference to `htobe64'
> persist.o: In function `mqtt3_db_backup':
> /root/mosquitto-0.9/src/persist.c:374: undefined reference to `htobe64'
> persist.o: In function `mqtt3_db_message_store_write':
> /root/mosquitto-0.9/src/persist.c:197: undefined reference to `htobe64'
> persist.o: In function `mqtt3_db_client_messages_write':
> /root/mosquitto-0.9/src/persist.c:142: undefined reference to `htobe64'
> collect2: ld returned 1 exit status
> make[1]: *** [mosquitto] Error 1
> make[1]: Leaving directory `/root/mosquitto-0.9/src'
> make[1]: Entering directory `/root/mosquitto-0.9/man'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/root/mosquitto-0.9/man'
>
> Do you know how to get past this error?
> --
> Diogo Mamede
>
> _______________________________________________
> Mailing list: https://launchpad.net/~mqtt-users
> Post to     : mqtt-users@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~mqtt-users
> More help   : https://help.launchpad.net/ListHelp
>
>

Follow ups

References