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
Hi,
I've tried to upgrade our product to use DSM 0.4.3 (from 0.3.2) and have struggled somewhat - although I do now have a build. I'm building on Centos 7 with GCC 11.3.0 and TASN 4.19.0. Here are my observations for what they are worth.
With Tasn1 4.19.0 the ASN1_TYPE is macro is deprecated and should be replaced with asn1_node.
The clock_gettime.c file doesn't take into account HAVE_CLOCK_GETTIME so on Linux the build fails with fatal error: mach/mach.h: No such file or directory
I get this warning on line 231 of src/smb_message.c - I'm not sure if this is something to worry about:
warning: taking address of packed member of ‘struct ’ may result in an unaligned pointer value [-Waddress-of-packed-member
I am not at all familiar with meson and the README for this library appears to be out of date. I have built it as follows:
CFLAGS="-I${TASN1_DIR}/include -DHAVE_CLOCK_GETTIME=1" LDFLAGS="-L${TASN1_DIR}/lib -ltasn1 -Wl,-rpath,$COFIO_INSTALL/lib" \
meson setup --prefix="${DSM_DIR}" --buildtype=release --pkg-config-path=${TASN1_DIR}/lib/pkgconfig ./build_release
if [ ! $? -eq 0 ]; then
echo "Error, Meson release setup failed for DSM"
exit 1
fi
cd ./build_release
CFLAGS="-I${TASN1_DIR}/include" LDFLAGS="-L${TASN1_DIR}/lib -ltasn1 -Wl,-rpath,$COFIO_INSTALL/lib" meson compile
if [ ! $? -eq 0 ]; then
echo "Error, Meson compilation failed for DSM"
exit 1
fi
meson install
if [ ! $? -eq 0 ]; then
echo "Error, Meson install failed for DSM"
exit 1
fi
Does this seem reasonable? I have attached a patch file for the code changes I made. libdsm-0.4.3.patch
The text was updated successfully, but these errors were encountered:
Hi,
I've tried to upgrade our product to use DSM 0.4.3 (from 0.3.2) and have struggled somewhat - although I do now have a build. I'm building on Centos 7 with GCC 11.3.0 and TASN 4.19.0. Here are my observations for what they are worth.
warning: taking address of packed member of ‘struct ’ may result in an unaligned pointer value [-Waddress-of-packed-member
I am not at all familiar with meson and the README for this library appears to be out of date. I have built it as follows:
Does this seem reasonable? I have attached a patch file for the code changes I made.
libdsm-0.4.3.patch
The text was updated successfully, but these errors were encountered: