What's new

please help how to compile libsub-1.0 ?

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

I checked further and found out in fact libusb-1.0 is already available in ~/asus-merlin.ng/release/src/router/libusb10
however this is not the same source like in https://libusb.info
There is no function libusb_get_port_number()
 
I think I found libusb-1.0 to use which is in directory
asus-merlin.ng/release/src/router/arm-uclibc/install/libusb10/usr/lib
then I manage to compile pl2303gpio / cp2103gpio successfully
however executing pl2303gpio, got segmentation fault
I try to debug using valgrind and show this below
Anybody can help what it means?
 
Last edited:
usb plug unto RT-AC68U corrupted, so I have to recompile this
however with latest firmware, I have problem recompile natively

execute
admin@RT-AC68U-C068:/tmp/mnt/RT-AC68U/entware/home/Download/pl2303gpio# make

result error
cc -I/opt/include/libusb-1.0 -Wall -Werror -I"../include" -o pl2303gpio usb.c main.c pl2303.o -lusb-1.0
/opt/bin/ld: warning: libc.so.0, needed by /usr/lib/libusb-1.0.so, may conflict with libc.so.6
/opt/bin/ld: errno@@GLIBC_PRIVATE: TLS definition in /tmp/mnt/RT-AC68U/entware/bin/../lib/gcc/arm-openwrt-linux-gnueabi/7.4.0/libc.so.6 section .tbss mismatches non-TLS definition in /lib/libc.so.0 section .bss
/opt/bin/ld: /lib/libc.so.0: error adding symbols: bad value
collect2: error: ld returned 1 exit status
make: *** [Makefile:10: pl2303gpio] Error 1

anybody help?
 

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top