wolfcw / libfaketime

libfaketime modifies the system time for a single application
https://github.com/wolfcw/libfaketime
GNU General Public License v2.0
2.62k stars 319 forks source link

libfaketime build fails on alpine #467

Open adesko opened 3 months ago

adesko commented 3 months ago

libfaketime builds started failing after recent changes on alpine reproduced using docker alpine image alpine:latest


/libfaketime # make install
make  -C src install
make[1]: Entering directory '/libfaketime/src'
cc -o libfaketime.o -c -std=gnu99 -Wall -Wextra -Werror -DFAKE_PTHREAD -DFAKE_STAT -DFAKE_UTIME -DFAKE_SLEEP -DFAKE_TIMERS -DFAKE_INTERNAL_CALLS -fPIC -DPREFIX='"'/usr/local'"' -DLIBDIRNAME='"'/lib/faketime'"'  -Wno-nonnull-compare   libfaketime.c
libfaketime.c: In function 'ft_dlvsym':
libfaketime.c:3054:63: error: unused parameter 'version' [-Werror=unused-parameter]
 3054 | void *ft_dlvsym(void *handle, const char *symbol, const char *version,
      |                                                   ~~~~~~~~~~~~^~~~~~~
cc1: all warnings being treated as errors
make[1]: *** [Makefile:161: libfaketime.o] Error 1
make[1]: Leaving directory '/libfaketime/src'
make: *** [Makefile:15: install] Error 2

On previous version (commit b716122cbe51432977e3795c78c2005fdd8df14d) installation works fine On ubuntu 20.04 also installed without any issues

PartosK commented 3 months ago

we also face this problem