You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to build this library on RHEL 8.6, using the master branch as of today.
./build-aux/autogen.sh
./configure
I ran make and make install, they ran without errors. But when I link against libsafec, I see these 2 errors which I am investigating.
libest/libest-source/src/est/.libs/libest.so: undefined reference to memzero_s' libest/libest-source/src/est/.libs/libest.so: undefined reference to memcpy_s'
collect2: error: ld returned 1 exit status
When I check the config.log, I see this error
configure:19287: result: no
configure:19287: checking for memzero_s
configure:19287: gcc -o conftest -O2 -D_FORTIFY_SOURCE=2 conftest.c >&5
/tmp/ccI0LrQJ.o: In function main': conftest.c:(.text.startup+0x7): undefined reference to memzero_s'
collect2: error: ld returned 1 exit status
configure:19287: $? = 1
configure: failed program was:
configure:19247: result: no
configure:19266: checking for _memcpy_s_chk
configure:19266: gcc -o conftest -O2 -D_FORTIFY_SOURCE=2 conftest.c >&5
/tmp/ccQ5cu5d.o: In function main': conftest.c:(.text.startup+0x7): undefined reference to _memcpy_s_chk'
collect2: error: ld returned 1 exit status
configure:19266: $? = 1
configure: failed program was:
I see a bunch of the functions that are undefined as well.
conftest.c:(.text.startup+0x7): undefined reference to _snprintf_s_chk' conftest.c:(.text.startup+0x7): undefined reference to _vfprintf_s_chk'
conftest.c:(.text.startup+0x7): undefined reference to _vsprintf_s_chk' conftest.c:(.text.startup+0x7): undefined reference to _vsnprintf_s_chk'
conftest.c:(.text.startup+0x7): undefined reference to memset_s' conftest.c:(.text.startup+0x7): undefined reference to memcpy_s'
conftest.c:(.text.startup+0x7): undefined reference to memmove_s' conftest.c:(.text.startup+0x7): undefined reference to memzero_s'
conftest.c:(.text.startup+0x7): undefined reference to memchr_s' conftest.c:(.text.startup+0x7): undefined reference to memrchr_s'
conftest.c:(.text.startup+0x7): undefined reference to memccpy_s' conftest.c:(.text.startup+0x7): undefined reference to sprintf_s'
conftest.c:(.text.startup+0x7): undefined reference to strcat_s' conftest.c:(.text.startup+0x7): undefined reference to strcpy_s'
conftest.c:(.text.startup+0x7): undefined reference to strncat_s' conftest.c:(.text.startup+0x7): undefined reference to strncpy_s'
conftest.c:(.text.startup+0x7): undefined reference to strnlen_s' conftest.c:(.text.startup+0x7): undefined reference to strtok_s'
conftest.c:(.text.startup+0x7): undefined reference to strerror_s' conftest.c:(.text.startup+0x7): undefined reference to vsprintf_s'
conftest.c:(.text.startup+0x7): undefined reference to tmpnam_s' conftest.c:(.text.startup+0x7): undefined reference to snprintf_s'
conftest.c:(.text.startup+0x7): undefined reference to `vsnprintf_s'
etc
Did configure work as expected? or Do I have to pass any arguments to it?
Thanks,
Sudha
The text was updated successfully, but these errors were encountered:
Hi,
I am trying to build this library on RHEL 8.6, using the master branch as of today.
./build-aux/autogen.sh
./configure
I ran make and make install, they ran without errors. But when I link against libsafec, I see these 2 errors which I am investigating.
libest/libest-source/src/est/.libs/libest.so: undefined reference to
memzero_s' libest/libest-source/src/est/.libs/libest.so: undefined reference to
memcpy_s'collect2: error: ld returned 1 exit status
When I check the config.log, I see this error
configure:19287: result: no
configure:19287: checking for memzero_s
configure:19287: gcc -o conftest -O2 -D_FORTIFY_SOURCE=2 conftest.c >&5
/tmp/ccI0LrQJ.o: In function
main': conftest.c:(.text.startup+0x7): undefined reference to
memzero_s'collect2: error: ld returned 1 exit status
configure:19287: $? = 1
configure: failed program was:
configure:19247: result: no
configure:19266: checking for _memcpy_s_chk
configure:19266: gcc -o conftest -O2 -D_FORTIFY_SOURCE=2 conftest.c >&5
/tmp/ccQ5cu5d.o: In function
main': conftest.c:(.text.startup+0x7): undefined reference to
_memcpy_s_chk'collect2: error: ld returned 1 exit status
configure:19266: $? = 1
configure: failed program was:
I see a bunch of the functions that are undefined as well.
conftest.c:(.text.startup+0x7): undefined reference to
_snprintf_s_chk' conftest.c:(.text.startup+0x7): undefined reference to
_vfprintf_s_chk'conftest.c:(.text.startup+0x7): undefined reference to
_vsprintf_s_chk' conftest.c:(.text.startup+0x7): undefined reference to
_vsnprintf_s_chk'conftest.c:(.text.startup+0x7): undefined reference to
memset_s' conftest.c:(.text.startup+0x7): undefined reference to
memcpy_s'conftest.c:(.text.startup+0x7): undefined reference to
memmove_s' conftest.c:(.text.startup+0x7): undefined reference to
memzero_s'conftest.c:(.text.startup+0x7): undefined reference to
memchr_s' conftest.c:(.text.startup+0x7): undefined reference to
memrchr_s'conftest.c:(.text.startup+0x7): undefined reference to
memccpy_s' conftest.c:(.text.startup+0x7): undefined reference to
sprintf_s'conftest.c:(.text.startup+0x7): undefined reference to
strcat_s' conftest.c:(.text.startup+0x7): undefined reference to
strcpy_s'conftest.c:(.text.startup+0x7): undefined reference to
strncat_s' conftest.c:(.text.startup+0x7): undefined reference to
strncpy_s'conftest.c:(.text.startup+0x7): undefined reference to
strnlen_s' conftest.c:(.text.startup+0x7): undefined reference to
strtok_s'conftest.c:(.text.startup+0x7): undefined reference to
strerror_s' conftest.c:(.text.startup+0x7): undefined reference to
vsprintf_s'conftest.c:(.text.startup+0x7): undefined reference to
tmpnam_s' conftest.c:(.text.startup+0x7): undefined reference to
snprintf_s'conftest.c:(.text.startup+0x7): undefined reference to `vsnprintf_s'
etc
Did configure work as expected? or Do I have to pass any arguments to it?
Thanks,
Sudha
The text was updated successfully, but these errors were encountered: