xar icon indicating copy to clipboard operation
xar copied to clipboard

xar on latest cygwin32 is not usable?

Open trippleflux opened this issue 7 years ago • 1 comments

@mackyle I have tried after 2 days battling around with compiling boringssl on mingw32, and compiled xar with --enable-static, i find it the resulting compiled xar executable is not usable, only able to run version number.

When directly invoke xar -cf it will goes into segmentation dump

When testing to create a sample.xar archive with xar -xf /home/username/xar it will just creating xar.heap.randomstring file and exit.

Can you help me to make it working?, it's really important for me.

trippleflux avatar May 24 '17 13:05 trippleflux

I don't have time to play with this right now. I will give you some
hints but that's all I have time for at the moment.

On May 24, 2017, at 06:49, trippleflux wrote:

@mackyle I have tried after 2 days battling around with compiling boringssl
on mingw32, and compiled xar with --enable-static, i find it the
resulting compiled xar executable is not usable, only able to run
version number.

mingw32 != cygwin. Try cygwin (cygwin.com). I'm sure cygwin has a
pre-built SSL (either one or both of OpenSSL/LibreSSL). BoringSSL may
or may not be compatible. You only need the libcrypto library, no
need to build the libssl one.

If you are comfortable modifying the code, the only thing xar links
against in the "SSL" library really is the hash generating functions
(and those are in libcrypto). You can get a public domain version of
them from LibTomCrypt (see http://www.libtom.net/) and just build xar
to use those instead (no, I cannot help you do this, and yes it would
be nice if those were already included and available via a configure
option).

When directly invoke xar -cf it will goes into segmentation dump

When testing to create a sample.xar archive with xar -xf /home/ username/xar it will just creating xar.heap.randomstring file and
exit.

Can you help me to make it working?, it's really important for me.

cygwin probably has a pre-built xar available for installation too.

mackyle avatar Jun 01 '17 20:06 mackyle