Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build Errors on Linux Mint 19.1 #13

Closed
GaryMacMinn opened this issue Feb 5, 2019 · 3 comments
Closed

Build Errors on Linux Mint 19.1 #13

GaryMacMinn opened this issue Feb 5, 2019 · 3 comments

Comments

@GaryMacMinn
Copy link

Hi There,

Tried a build on a fresh Mint 19.1 install and it bombed out as below. Any ideas?

Thanks,
Gary

=================================================

netsim@NetSimManager:~/src/multivnc-0.5$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking whether to enable debugging... no
checking wxWidgets version... 3.0.4
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for library containing strerror... none required
checking how to run the C preprocessor... gcc -E
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking whether gcc and cc understand -c and -o together... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for a sed that does not truncate output... /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking dependency style of g++... (cached) gcc3
checking how to run the C++ preprocessor... g++ -E
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking jpeglib.h usability... yes
checking jpeglib.h presence... yes
checking for jpeglib.h... yes
checking for jpeg_CreateCompress in -ljpeg... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for deflate in -lz... yes
checking for libgcrypt-config... /usr/bin/libgcrypt-config
checking for LIBGCRYPT - version >= 1.4.0... yes (1.8.1)
checking for GNUTLS... no
checking for getaddrinfo... yes
checking for ANSI C header files... (cached) yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/timeb.h usability... yes
checking sys/timeb.h presence... yes
checking for sys/timeb.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking for unistd.h... (cached) yes
checking ws2tcpip.h usability... no
checking ws2tcpip.h presence... no
checking for ws2tcpip.h... no
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking whether byte ordering is bigendian... no
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for socklen_t... yes
checking for stdint-types....... "(putting them into src/rfb/rfbint.h)"
checking for uintptr_t... yes
checking for uint64_t... yes
... seen our uintptr_t in stdint.h (uint64_t too)
creating src/rfb/rfbint.h : _SRC_RFB_RFBINT_H
checking for int_least32_t... yes
checking for int_fast32_t... yes
..adding include stdint.h
... seen good stdint.h inttypes
... seen good uint64_t
... DONE src/rfb/rfbint.h
checking for in_addr_t... 
checking for working memcmp... yes
checking whether lstat correctly handles trailing slash... yes
checking whether stat accepts an empty string... no
checking for strftime... yes
checking for vprintf... yes
checking for _doprnt... no
checking for pid_t... yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking for gethostbyname in -lnsl... yes
checking for socket in -lsocket... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating src/wxServDisc/Makefile
config.status: creating src/libvncclient/Makefile
config.status: creating src/gui/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing src/rfb/rfbconfig.h commands
config.status: creating src/rfb/rfbconfig.h - prefix LIBVNCSERVER for config.h defines
config.status: src/rfb/rfbconfig.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
netsim@NetSimManager:~/src/multivnc-0.5$ make
make  all-recursive
make[1]: Entering directory '/home/netsim/src/multivnc-0.5'
Making all in src
make[2]: Entering directory '/home/netsim/src/multivnc-0.5/src'
Making all in wxServDisc
make[3]: Entering directory '/home/netsim/src/multivnc-0.5/src/wxServDisc'
gcc -DHAVE_CONFIG_H -I. -I../..  -I/usr/lib/x86_64-linux-gnu/wx/include/base-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL   -O2   -MT libwxservdisc_a-1035.o -MD -MP -MF .deps/libwxservdisc_a-1035.Tpo -c -o libwxservdisc_a-1035.o `test -f '1035.c' || echo './'`1035.c
mv -f .deps/libwxservdisc_a-1035.Tpo .deps/libwxservdisc_a-1035.Po
gcc -DHAVE_CONFIG_H -I. -I../..  -I/usr/lib/x86_64-linux-gnu/wx/include/base-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL   -O2   -MT libwxservdisc_a-mdnsd.o -MD -MP -MF .deps/libwxservdisc_a-mdnsd.Tpo -c -o libwxservdisc_a-mdnsd.o `test -f 'mdnsd.c' || echo './'`mdnsd.c
mdnsd.c: In function ‘mdnsd_out’:
mdnsd.c:469:13: warning: implicit declaration of function ‘htons’ [-Wimplicit-function-declaration]
     *port = htons(5353);
             ^~~~~
mdnsd.c:470:11: warning: implicit declaration of function ‘inet_addr’ [-Wimplicit-function-declaration]
     *ip = inet_addr("224.0.0.251");
           ^~~~~~~~~
mv -f .deps/libwxservdisc_a-mdnsd.Tpo .deps/libwxservdisc_a-mdnsd.Po
g++ -DHAVE_CONFIG_H -I. -I../..  -I/usr/lib/x86_64-linux-gnu/wx/include/base-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL   -Wall -O2 -fno-strict-aliasing  -MT libwxservdisc_a-wxServDisc.o -MD -MP -MF .deps/libwxservdisc_a-wxServDisc.Tpo -c -o libwxservdisc_a-wxServDisc.o `test -f 'wxServDisc.cpp' || echo './'`wxServDisc.cpp
wxServDisc.cpp: In member function ‘virtual void* wxServDisc::Entry()’:
wxServDisc.cpp:166:5: error: ‘close’ was not declared in this scope
     close(sock);
     ^~~~~
wxServDisc.cpp:166:5: note: suggested alternative: ‘clone’
     close(sock);
     ^~~~~
     clone
wxServDisc.cpp: In member function ‘SOCKET wxServDisc::msock()’:
wxServDisc.cpp:347:7: error: ‘close’ was not declared in this scope
       close(sock);
       ^~~~~
wxServDisc.cpp:347:7: note: suggested alternative: ‘clone’
       close(sock);
       ^~~~~
       clone
wxServDisc.cpp: In constructor ‘wxServDisc::wxServDisc(void*, const wxString&, int)’:
wxServDisc.cpp:395:14: warning: ‘wxThreadError wxThreadHelper::Create(unsigned int)’ is deprecated [-Wdeprecated-declarations]
   if( Create() != wxTHREAD_NO_ERROR )
              ^
In file included from wxServDisc.cpp:26:0:
/usr/include/wx-3.0/wx/thread.h:760:22: note: declared here
 inline wxThreadError wxThreadHelper::Create(unsigned int stackSize)
                      ^~~~~~~~~~~~~~
wxServDisc.cpp: In member function ‘void wxServDisc::post_notify()’:
wxServDisc.cpp:444:28: error: variable ‘wxCommandEvent event’ has initializer but incomplete type
       wxCommandEvent event(wxServDiscNOTIFY, wxID_ANY);
                            ^~~~~~~~~~~~~~~~
Makefile:347: recipe for target 'libwxservdisc_a-wxServDisc.o' failed
make[3]: *** [libwxservdisc_a-wxServDisc.o] Error 1
make[3]: Leaving directory '/home/netsim/src/multivnc-0.5/src/wxServDisc'
Makefile:409: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/home/netsim/src/multivnc-0.5/src'
Makefile:419: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/netsim/src/multivnc-0.5'
Makefile:288: recipe for target 'all' failed
make: *** [all] Error 2
@bk138 bk138 added the building label Feb 5, 2019
@bk138 bk138 self-assigned this Feb 5, 2019
@bk138
Copy link
Owner

bk138 commented Feb 5, 2019

Hi, are you able to build https://github.com/bk138/wxservdisc stand-alone?

@bk138
Copy link
Owner

bk138 commented Sep 1, 2019

@GaryMacMinn did you try the CMake-based build system?

@bk138
Copy link
Owner

bk138 commented Oct 12, 2019

Tentatively closing, feel free to re-open in case you have new info.

@bk138 bk138 closed this as completed Oct 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants