SpoilerCode:
<i>
</i>export CC=/usr/bin/cc
export CFLAGS="-c99 -diag_suppress 3649 -diag_error 1035 -woff all -Ofast=ip35 -g0 -O3 -n32 -mips4 -OPT:Olimit=0:roundoff=3:IEEE_ar=3:fast_sq=ON:div_split=ON:alias=typed -lfastm -lm -TARG:platform=IP35:proc=r16000 -IPA"
export CPPFLAGS=""
/usr/nekoware/bin/sed -i 's/#include <libintl.h>/#include \"..\/intl\/libintl.h\"/' ./lib/gftp.h
./configure --prefix=/usr/local
gmake
some notes:
also need to have "-woff all", otherwise get a compiler error
Code:
cc WARNING: -p is no longer supported, use speedshop(1) instead
cc ERROR parsing -pthread: unknown flag
with CPPFLAGS="", need to change "#include <libintl.h>" to '#include "../intl/libintl.h"' in lib/gftp.h
if CPPFLAGS="-I/usr/nekoware/include -I/usr/local/include -L/usr/nekoware/lib -L/usr/local/lib"
and lib/gftp.h still has "#include <libintl.h>" (which is located in /usr/nekoware/include)
get this error:
Code:
cc-1367 cc: ERROR File = sslcommon.c, Line = 152
A pointer to an incomplete class type is not allowed.
ext_str = ASN1_item_d2i (NULL, (const unsigned char **) &ext->value->data, ext->value->length,
^
so path of least resistance for me was just doing CPPFLAGS=""
edit: original posting below
Code:
<i>
</i>export CC=/usr/bin/cc
export CXX=/usr/bin/CC
export CFLAGS="-c99 -diag_suppress 3649 -diag_error 1035 -woff all -g0 -Ofast=ip32_10k -O3 -n32 -mips4 -OPT:Olimit=0:roundoff=3:div_split=ON:alias=typed -TARG:platform=ip32_10k:proc=r12000 -IPA"
export CXXFLAGS="-ptused -diag_suppress 3649 -woff all -g0 -Ofast=ip32_10k -O3 -n32 -mips4 -OPT:Olimit=0:roundoff=3:div_split=ON:alias=typed -TARG:platform=ip32_10k:proc=r12000 -IPA"
had to change "#include <libintl.h>" to '#include "../intl/libintl.h"' in ../../lib/gftp.h
once that was fixed it compiled fine
./configure
gmake
gmake install