[OpenIndiana-discuss] Building Filezilla 3.41.2 - second attempt

russell stream at willows7.myzen.co.uk
Tue Jun 18 20:45:00 UTC 2019


Hi,

When I specifically modify the configure command as shown below

CXX=/usr/gcc/6/bin/g++ CXXFLAGS="-std=c++14 -m64 -I/opt/gnu/include 
-I/opt/gnu/include/wx-3.0 -I/opt/gnu/include/wx-3.0/wx 
-I/usr/include/idn -I/usr/gnu/include" LDFLAGS="-L/opt/gnu/lib 
-L/opt/gnu/lib/64" CC=/usr/gcc/6/bin/gcc CFLAGS="-m64  
-I/opt/gnu/include -I/opt/gnu/include/wx-3.0 
-I/opt/gnu/include/wx-3.0/wx -I/usr/include/idn -I/usr/gnu/include" 
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

This fails complaining about c++14 support, however

checking whether C compiler accepts -Werror=partial-availability... no
checking whether the linker accepts -Wl,-no_weak_imports... no
checking whether /usr/gcc/8/bin/g++ supports C++14 features by default... no
checking whether /usr/gcc/8/bin/g++ supports C++14 features with 
-std=gnu++14... no
checking whether /usr/gcc/8/bin/g++ supports C++14 features with 
-std=gnu++1y... no
checking whether /usr/gcc/8/bin/g++ supports C++14 features with 
-std=c++14... no
checking whether /usr/gcc/8/bin/g++ supports C++14 features with 
-std=c++1y... no
configure: error: *** A compiler with support for C++14 language 
features is required.

I have tried gcc 5.4, 6, 7 and 8 and they all fail when I include 
-I/opt/gnu/include/wx-3.0/wx, checking the code the includes are 
<wx/timer.h> so there should be no need for this -I include directory.

By adjusting the configure statement to that below

CXX=g++ CXXFLAGS=" -m64 -I/opt/gnu/include -I/usr/include/idn 
-I/usr/gnu/include" LDFLAGS="-L/opt/gnu/lib -L/opt/gnu/lib/64" CC=gcc 
CFLAGS=" -m64 -I/opt/gnu/include -I/opt/gnu/include/wx-3.0 
-I/usr/include/idn -I/usr/gnu/include" 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

It will build the first two elements of the /src/interface but it always 
appear to fail on the third  asyncrequestqueue.cpp

Making all in .
gmake[4]: Entering directory '/tmp/filezilla-3.41.2/src/interface'
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/opt/gnu/include -I/usr/include/idn -I/usr/gnu/include -Wall -g 
-MT filezilla-aboutdialog.o -MD -MP -MF .deps/filezilla-aboutdialog.Tpo 
-c -o filezilla-aboutdialog.o `test -f 'aboutdialog.cpp' || echo 
'./'`aboutdialog.cpp
mv -f .deps/filezilla-aboutdialog.Tpo .deps/filezilla-aboutdialog.Po
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/opt/gnu/include -I/usr/include/idn -I/usr/gnu/include -Wall -g 
-MT filezilla-asksavepassworddialog.o -MD -MP -MF 
.deps/filezilla-asksavepassworddialog.Tpo -c -o 
filezilla-asksavepassworddialog.o `test -f 'asksavepassworddialog.cpp' 
|| echo './'`asksavepassworddialog.cpp
mv -f .deps/filezilla-asksavepassworddialog.Tpo 
.deps/filezilla-asksavepassworddialog.Po
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/opt/gnu/include -I/usr/include/idn -I/usr/gnu/include -Wall -g 
-MT filezilla-asyncrequestqueue.o -MD -MP -MF 
.deps/filezilla-asyncrequestqueue.Tpo -c -o 
filezilla-asyncrequestqueue.o `test -f 'asyncrequestqueue.cpp' || echo 
'./'`asyncrequestqueue.cpp
In file included from statusbar.h:6:0,
                  from Mainfrm.h:4,
                  from asyncrequestqueue.cpp:7:
state.h:168:26: error: 'wxFileDataObject' has not been declared
   void UploadDroppedFiles(wxFileDataObject const* pFileDataObject, 
std::wstring const& subdir, bool queueOnly);
                           ^~~~~~~~~~~~~~~~
state.h:170:26: error: 'wxFileDataObject' has not been declared
   void UploadDroppedFiles(wxFileDataObject const* pFileDataObject, 
CServerPath const& path, bool queueOnly);
                           ^~~~~~~~~~~~~~~~
state.h:172:26: error: 'wxFileDataObject' has not been declared
   void HandleDroppedFiles(wxFileDataObject const* pFileDataObject, 
CLocalPath const& path, bool copy);
                           ^~~~~~~~~~~~~~~~

I have tried modifying includes to include the wx/dataobj.h but it still 
fails.

Any thoughts?

TIA

Russell


On 17/06/2019 22:11, russell wrote:
> Hi,
>
> Thanks for the feedback on the previous error, it appears that the 
> wx-widgets-3.0.4 was compiled 32bits when it should have been 64 bits
>
> wx-widgets-3.0.4 was rebuilt using (again using Motif)
>
>         CC=gcc CFLAGS=-m64 CXX=g++ CXXFLAGS=-m64 LDFLAGS=-m64 
> QT5_CUSTOM_DIR=/usr/lib/qt/5.8 ./configure --prefix=/opt/gnu --with-qt
>
>
> After rebuilding this library and attempting the build of Filezilla 
> 3.41.2 the compilation gets much further again using
>
> CXX=g++ CXXFLAGS="-m64 -I/opt/gnu/include -I/opt/gnu/include/wx-3.0 
> -I/usr/include/idn -I/usr/gnu/include" LDFLAGS="-L/opt/gnu/lib 
> -L/opt/gnu/lib/64" CC=gcc CFLAGS="-m64 -I/opt/gnu/include 
> -I/opt/gnu/include/wx-3.0 -I/usr/include/idn -I/usr/gnu/include" 
> 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
>
>
>
> TIA
>
> Russell
>




More information about the openindiana-discuss mailing list