Cups and libcups Error relocating /usr/sbin/cupsd: __select_time64: symbol not found

Hi,
i've compiled cups and libcups as described here https://github.com/TheMMcOfficial/cups-for-openwrt
but when i'm trying to run it got the fllowing error:

root@OpenWrt:~# /etc/init.d/cupsd start
Error relocating /usr/lib/libcups.so.2: __mktime64: symbol not found
Error relocating /usr/lib/libcups.so.2: __select_time64: symbol not found
Error relocating /usr/lib/libcups.so.2: __fstat_time64: symbol not found
Error relocating /usr/lib/libcups.so.2: __gmtime64: symbol not found
Error relocating /usr/lib/libcups.so.2: __clock_gettime64: symbol not found
Error relocating /usr/lib/libcups.so.2: __stat_time64: symbol not found
Error relocating /usr/lib/libcups.so.2: __time64: symbol not found
Error relocating /usr/lib/libcups.so.2: __gettimeofday_time64: symbol not found
Error relocating /usr/lib/libcups.so.2: __localtime64: symbol not found
Error relocating /usr/lib/libcups.so.2: __lstat_time64: symbol not found
Error relocating /usr/lib/libcups.so.2: __pthread_cond_timedwait_time64: symbol not found
Error relocating /usr/sbin/cupsd: __select_time64: symbol not found
Error relocating /usr/sbin/cupsd: __fstat_time64: symbol not found
Error relocating /usr/sbin/cupsd: __gmtime64: symbol not found
Error relocating /usr/sbin/cupsd: __stat_time64: symbol not found
Error relocating /usr/sbin/cupsd: __time64: symbol not found
Error relocating /usr/sbin/cupsd: __gettimeofday_time64: symbol not found
Error relocating /usr/sbin/cupsd: __localtime64: symbol not found
Error relocating /usr/sbin/cupsd: __lstat_time64: symbol not found
root@OpenWrt:~# cat /etc/openwrt_release
DISTRIB_ID='OpenWrt'
DISTRIB_RELEASE='21.02.1'
DISTRIB_REVISION='r16325-88151b8303'
DISTRIB_TARGET='mvebu/cortexa9'
DISTRIB_ARCH='arm_cortex-a9_vfpv3-d16'
DISTRIB_DESCRIPTION='OpenWrt 21.02.1 r16325-88151b8303'
DISTRIB_TAINTS=''

i undertund that it's related to internal time handling from 32bit to 64bit even in the 32bit targets as mentioned in other topics but dont get how to fix it :frowning:

You will have to sysupgrade your current snapshot.

hi slh, thank you for reply!

21.02.1 is the latest release for Lynksys WRT3200ACM

i would appreciate if you can help me tuo understund what am i missing

The errors you're quoting are indicative of the ABI breakage between musl 1.1.x (21.02.x) and 1.2.x (current master), if you are really running an 21.02.x image, you must have tried to force-install packages from master; don't do that.

1 Like

To further clarify slh's answer: if you want the package for 21.02, you must use the 21.02 toolchain to compile it.

(You have apparently now used master, with a different C library version, and it is incompatible with 21.02)