pmdk icon indicating copy to clipboard operation
pmdk copied to clipboard

PMDK does not build with musl

Open szychows opened this issue 8 years ago • 1 comments

Build output:

alpine-musl-:~/pmdk# make
make -C src all
make[1]: Entering directory '/root/pmdk/src'
make -C libpmem
make[2]: Entering directory '/root/pmdk/src/libpmem'
cc -MD -c -o ../nondebug/libpmem/os_linux.o -std=gnu99 -Wall -Werror -Wmissing-prototypes -Wpointer-arith -Wsign-conversion -Wsign-compare -Wconversion -Wunused-macros -Wmissing-field-initializers -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -std=gnu99 -fno-common -pthread -DSRCVERSION=\"1.3+b2-504-g0124a9715\"   -I../include -I../common/  -fPIC  ../../src/../src/common/os_linux.c
../../src/../src/common/os_linux.c: In function 'os_getenv':
../../src/../src/common/os_linux.c:243:9: error: implicit declaration of function 'secure_getenv' [-Werror=implicit-function-declaration]
  return secure_getenv(name);
         ^~~~~~~~~~~~~
../../src/../src/common/os_linux.c:243:9: error: return makes pointer from integer without a cast [-Werror=int-conversion]
  return secure_getenv(name);
         ^~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[2]: *** [../Makefile.inc:292: ../nondebug/libpmem/os_linux.o] Error 1
make[2]: Leaving directory '/root/pmdk/src/libpmem'
make[1]: *** [Makefile:166: libpmem] Error 2
make[1]: Leaving directory '/root/pmdk/src'
make: *** [Makefile:82: all] Error 2

Distribution: Alpine Linux 3.7.0

Found on 1.3+b2-504-g0124a9715

szychows avatar Jan 09 '18 11:01 szychows

It still fails with the same error

../../src/../src/common/os_posix.c:281:9: error: return makes pointer from integer without a cast [-Werror=int-conversion]

  return secure_getenv(name);

         ^~~~~~~~~~~~~~~~~~~

lukaszstolarczuk avatar Mar 07 '18 08:03 lukaszstolarczuk

This improvement is not considered vital at the moment. So, we do not have the resources to fulfil your request. Sorry.

janekmi avatar Aug 30 '23 18:08 janekmi