Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mosquitto-dev] Unknown linker option when building on a x86 NAS

Hi Karl.
I'm using make...

In the meantime I've deleted that option (editing "config.mk") and the compilation was OK!
Actually I encountered another problem: the option "--strip-program=…" in the install is not supported by the busybox of my qnap NAS.
So I've edited each Makefile and deleted the "--strip-program=…". By doing this, the "make install" completed succesfully!!

Just another little point... I don't know if it's a bug of the scripts or it's due to my lack of experience: I decided to install mosquitto in "/opt" instead of the default "/usr/local". I've edited "config.mk" to change "prefix" from "/usr/local" to "/opt". The result was as expected for all the files (i.e. installed in "/opt/...") except few files that have been installed in "/etc" even if prefix was "/opt". Such files are:

/etc/mosquitto/mosquitto.conf.example
/etc/mosquitto/pskfile.example
/etc/mosquitto/aclfile.example
/etc/mosquitto/pwfile.example

I've solved by manually copying those files to "/opt/etc".

Now i've a NAS running mosquitto! I'm testing it to make sure that my compilation has generated reliable binaries...

Br.

2015-08-15 19:50 GMT+02:00 Karl Palsson <karlp@xxxxxxxxxxxx>:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Are you using cmake?  You should not be using cmake on linux (for the
mosquitto project)


Arturo Lotito <arturo.lotito@xxxxxxxxx> wrote:
> Hello.
> I'm trying to compile mosquitto 1.4.2 on a QNAP TS-251 NAS (x86).
>
> I've installed all the dependencies (via ipkg) then i run "make
> install".
> The compilation seems to be successfully but then during the linking I
> get an error regarding an unknown option:
>
> ... 
> gcc mosquitto.o bridge.o conf.o context.o database.o logging.o loop.o
> memory_mosq.o persist.o net.o net_mosq.o read_handle.o
> read_handle_client.o read_handle_server.o read_handle_shared.o
> security.o security_default.o send_client_mosq.o send_mosq.o
> send_server.o service.o subs.o sys_tree.o time_mosq.o tls_mosq.o
> util_mosq.o websockets.o will_mosq.o -o mosquitto  -ldl -lm -lrt
> -Wl,--dynamic-list=linker.syms -lssl -lcrypto
>
> /share/CACHEDEV1_DATA/.qpkg/Optware/bin/../lib/gcc/i686-unknown-linux-gnu/4.2.1/../../../../i686-unknown-linux-gnu/bin/ld: unrecognized option '--dynamic-list=linker.syms'
>
> /share/CACHEDEV1_DATA/.qpkg/Optware/bin/../lib/gcc/i686-unknown-linux-gnu/4.2.1/../../../../i686-unknown-linux-gnu/bin/ld: use the --help option for usage information
>
> collect2: ld returned 1 exit status
>
> make[1]: *** [mosquitto] Error 1
>
> make[1]: Leaving directory `/root/mosquitto-1.4.2/src'
>
> make: *** [mosquitto] Error 2
>
>
>
> Can you kindly help me?
>
>
> Thank you very much and br.
>
>
> _______________________________________________
> mosquitto-dev mailing list
> mosquitto-dev@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe
> from this list, visit
> https://dev.eclipse.org/mailman/listinfo/mosquitto-dev

- --
Sent using Mailpile, Free Software from www.mailpile.is

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQIcBAEBAgAGBQJVz3vqAAoJEBmotQ/U1cr2L8cQALeJmC+o7PdhU24SqE2jwxLH
bAagoTtKKVnTVMTvoxkQ88NT9d9NRn7zkbLpk3wrnnxYEleR9dHYqbZo8gUzcJMp
69QDjAhSUSSuV1IywvQnZrX9rPjO4RVIhby1Iz+RnVyvz8LGGMGVxoFUIWIdiQR6
7PpiFfcBTJSRoHJDmWSRoOfIPgg8WAy/gb47diS5IcYw0G28GSx12WDvEURZhrX/
xipQa31RmubdzAOjMOp5j4odbJPLNTzqP7RXswPjVkaVLRTn+pVn6++PH0TfqwPN
w+PFAErmnmzY7ghzaFfG5DikZ9tlUzClJWdAnJfIAcCcBFcjde38PH8Zb1mTrToG
tFrkWponUOJUW3hC+r01PVBxfjZy/pOfS9W6N1xi6v02wMjx4FaI2PYVcNqeMUkf
DitAxdEMNhXXUto9CGdnuLdo4ttLQ/QzjX1HeiIAQ/xYytHpakE9COCxAiC/DNiU
86zZ5HTz+ku8HJBnCxQrkNbQqmvBEhJFaChMqE6c0+sFKGzjBrV+Spx/iJ8mcoyv
fzouSRCKcmd/99xvKF4I/vnttCVYyz4OjzMlI2UJFW33inhrRy24vfnlzt64nJ9s
fzkuG44mg27hbiaRioPyZTCFuJ0r/BGRcco4H0u6LccgU+5cOyboM/kyEzFOi7mf
vVYS7I48sNwqoxCvQadb
=/SZm
-----END PGP SIGNATURE-----

_______________________________________________
mosquitto-dev mailing list
mosquitto-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/mosquitto-dev


Back to the top