Open rsbeckerca opened 3 years ago
What seems to be required (for 64-bit FLOSS unthreaded) is:
-Wlp64
to CFLAGS`` in Makefile and tests/Makefile(short _ptr32 *)
and (char _ptr32 *)
) to mntent.c and utent.c, for the SPI programming used there.
b) (Understand and) Fix the compiler warnings in above mentioned files.Alternative to 4. and 5. is to pass a -Wlp64
option to the regular conf_script_floss_cc, and make that aware to link to the correct libs.
I have done steps 1. and 2. a) and got it to build, but I haven't done any testing
I think the steps for an SPT and PUT version might be similar.
I like the -lp64 option to conf_script_floss_cc.
Also libfloss64.a
, libfloss64.so
. Probably libfloss_spt.a
, libfloss_spt.so
.
I think those are the priorities. We don't build anything else with PUT that uses floss - with the exception of Ruby but that's not officially released.
Hmm, seems what I have as conf_script_floss_cc-64 uses a different lib and bin and sbin directories, (with a 64
appended) rather than different lib names
Hmm, seems what I have as conf_script_floss_cc-64 uses a different lib and bin and sbin directories, (with a
64
appended) rather than different lib names
Sounds like the same strategy as OpenSSL. I’m ok with that. It means -L has to change.
Which is what conf_script_floss_cc-64 takes care of, I think:
#!/bin/sh
# Front-end for GNU configure script using Floss and cc
[ -z "$PREFIX" ] && export PREFIX="/usr/local"
[ -z "$CC" ] && export CC="cc"
[ -z "$CXX" ] && export CXX="c++"
[ -z "$CPP" ] && export CPP="cpp"
if [ -z "$CFLAGS" ]
then
export CFLAGS="-Wlp64"
else
export CFLAGS="$CFLAGS -Wlp64"
fi
./configure --prefix="$PREFIX" --bindir="$PREFIX"/bin64 --sbindir="$PREFIX"/sbin64 --libexecdir="$PREFIX"/libexec64 --libdir="$PREFIX"/lib64 "$@" 2>/dev/null ||
./configure --prefix="$PREFIX" --eprefix=="$PREFIX"/bin64 --libdir="$PREFIX"/lib64 --sharedlibdir="$PREFIX"/lib64 "$@"
We need some new FLOSS builds: