[OpenIndiana-discuss] Building Filezilla 3.14.2 - compilation error
russell
stream at willows7.myzen.co.uk
Sat Jun 8 11:26:52 UTC 2019
Hi
After performing a new install of OpenIndiana Hipster onto a pair of
500GB SSDs, I decided to try and build Filezilla 3.41.2 on this clean
system.
Tried building libfilezilla 0.15.1 but this was causing me problems so I
switch to libfilezilla 0.16.0 and did get this built
Build libfilezilla-0.16.0
CXX=g++ CXXFLAGS="-m64" LDFLAGS="-L/opt/gnu/lib -L/opt/gnu/lib/64"
CC=gcc CFLAGS="-m64" NETTLE_CFLAGS=-I/opt/gnu/include
NETTLE_LIBS="-L/opt/gnu/lib/64" HOGWEED_CFLAGS=-I/opt/gnu/include
HOGWEED_LIBS=-L/opt/gnu/lib/64 ./configure --prefix=/opt/gnu
--enable-static --disable-shared
The libfillezilla 0.16.0 dependancies must be created first, I tried to
use system gmp but I could not get the lighogweed built so I resorted to
building it myself
gmp-6.1.2
CC=gcc CXX=g++ CFLAGS=-m64 ./configure
--prefix=/opt/gnu
nettle-3.4.1 (libhogweed library must be built)
CC=gcc-6 CFLAGS="-m64 -I/usr/include
-I/opt/gnu/include/" CXX=g++-6 CPPFLAGS="-m64 -I/usr/include
-I/opt/gnu/include/" NETTLE_CFLAGS="-I/opt/gnu/include/nettle"
NETTLE_LIBS="-L/opt/gnu/lib/64"
HOGWEED_CFLAGS="-I/opt/gnu/include/nettle/"
HOGWEED_LIBS="-L/opt/gnu/lib/64" ./configure --prefix=/opt/gnu
--enable-shared=yes --disable-static --disable-assembler
--build=x86_64-pc-solaris2
After building and installing libfilezilla 0.16.0, then you need to
install dependancies for Filezilla
wx-widgets-3.0.4 build (requires pkg install motif )
CC=gcc CXX=g++ QT5_CUSTOM_DIR=/usr/lib/qt/5.8
./configure --prefix=/opt/gnu --with-qt
gnutls 3.4.15 or later (install
pkg:/library/gnu/gnutls at 3.5.16-0.2017.0.0.5)
gnu idn (install pkg:/library/libidn at 1.35-2018.0.0.0)
gnu gettext ( install pkg pkg:/text/gnu-gettext at 0.19.8.1-2018.0.0.0)
PATH=/usr/gnu/bin:$PATH ; export PATH
To get Filezilla 3.41.2 to complete configure
CXX=g++ CXXFLAGS="-m64 -I/usr/include/idn -I/usr/gnu/include"
LDFLAGS="-L/opt/gnu/lib -L/opt/gnu/lib/64" CC=gcc CFLAGS="-m64"
NETTLE_CFLAGS=-I/opt/gnu/include NETTLE_LIBS="-L/opt/gnu/lib/64"
HOGWEED_CFLAGS=-I/opt/gnu/include HOGWEED_LIBS=-L/opt/gnu/lib/64
LIBFILEZILLA_CFLAGS=-I/opt/gnu/include LIBFILEZILLA_LIBS=-L/opt/gnu/lib
PKG_CONFIG_PATH="/opt/gnu/lib;/opt/gnu/lib/64"
LIBGNUTLS_CFLAGS="-I/usr/gnu/include/gnutls"
LIBGNUTLS_LIBS="-L/usr/gnu/lib" ./configure --prefix=/opt/gnu
--enable-static --disable-shared --with-pugixml=builtin
when I perform a gmake it fails here
gmake[2]: Entering directory '/tmp/filezilla-3.41.2/src/interface'
if g++ -DHAVE_CONFIG_H -I. -I../../src/include -I./../include
-I/opt/gnu/include -I/opt/gnu/include
-I/opt/gnu/lib/wx/include/motif-unicode-3.0 -I/opt/gnu/include/wx-3.0
-D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXMOTIF__ -fpch-preprocess
-m64 -I/usr/include/idn -I/usr/gnu/include -Wall -g -MT filezilla.h.gch
-MD -MP -MF ".deps/.Tpo" -c -o "filezilla.h.gch" filezilla.h; \
then mv -f ".deps/.Tpo" ".deps/.Po"; else rm -f ".deps/.Tpo"; exit 1; fi
In file included from /opt/gnu/include/wx-3.0/wx/filesys.h:26:0,
from /opt/gnu/include/wx-3.0/wx/xrc/xmlres.h:23,
from filezilla.h:75:
/opt/gnu/include/wx-3.0/wx/filename.h: In static member function 'static
wxUniChar wxFileName::GetPathSeparator(wxPathFormat)':
/opt/gnu/include/wx-3.0/wx/filename.h:473:43: error: ambiguous overload
for 'operator[]' (operand types are 'wxString' and 'unsigned int')
{ return GetPathSeparators(format)[0u]; }
^
/opt/gnu/include/wx-3.0/wx/filename.h:473:43: note: candidate:
operator[](const char*, long int) <built-in>
/opt/gnu/include/wx-3.0/wx/filename.h:473:43: note: candidate:
operator[](const wchar_t*, long int) <built-in>
In file included from /opt/gnu/include/wx-3.0/wx/memory.h:15:0,
from /opt/gnu/include/wx-3.0/wx/object.h:19,
from /opt/gnu/include/wx-3.0/wx/event.h:16,
from /opt/gnu/include/wx-3.0/wx/window.h:18,
from /opt/gnu/include/wx-3.0/wx/nonownedwnd.h:14,
from /opt/gnu/include/wx-3.0/wx/toplevel.h:20,
from /opt/gnu/include/wx-3.0/wx/dialog.h:14,
from /opt/gnu/include/wx-3.0/wx/msgdlg.h:18,
from msgbox.h:4,
from filezilla.h:6:
/opt/gnu/include/wx-3.0/wx/string.h:1544:15: note: candidate: wxUniChar
wxString::operator[](int) const
wxUniChar operator[](int n) const
^~~~~~~~
/opt/gnu/include/wx-3.0/wx/string.h:1546:15: note: candidate: wxUniChar
wxString::operator[](long int) const
wxUniChar operator[](long n) const
^~~~~~~~
/opt/gnu/include/wx-3.0/wx/string.h:1548:15: note: candidate: wxUniChar
wxString::operator[](std::size_t) const
wxUniChar operator[](size_t n) const
^~~~~~~~
/opt/gnu/include/wx-3.0/wx/string.h:1556:18: note: candidate:
wxUniCharRef wxString::operator[](int)
wxUniCharRef operator[](int n)
^~~~~~~~
/opt/gnu/include/wx-3.0/wx/string.h:1558:18: note: candidate:
wxUniCharRef wxString::operator[](long int)
wxUniCharRef operator[](long n)
^~~~~~~~
/opt/gnu/include/wx-3.0/wx/string.h:1560:18: note: candidate:
wxUniCharRef wxString::operator[](std::size_t)
wxUniCharRef operator[](size_t n)
^~~~~~~~
gmake[2]: *** [Makefile:3204: filezilla.h.gch] Error 1
gmake[2]: Leaving directory '/tmp/filezilla-3.41.2/src/interface'
gmake[1]: *** [Makefile:436: all-recursive] Error 1
gmake[1]: Leaving directory '/tmp/filezilla-3.41.2/src'
gmake: *** [Makefile:618: all-recursive] Error 1
Any suggestions on how to continue?
Russell
More information about the openindiana-discuss
mailing list