Building 64 bit library on Unix with configure.

Do you have a typical platform dependent issue you're battling with ? Ask it here. Make sure you mention your platform, compiler, and wxWidgets version.
Post Reply
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 4529
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Building 64 bit library on Unix with configure.

Post by ONEEYEMAN » Wed Oct 21, 2020 4:15 am

Hi, ALL,
Building wx-3.1.4 as 64-bit library with "good old configure" gives following:

Code: Select all

[email protected]:~/wxWidgets/buildSol$ CFLAGS="-m64" CXXFLAGS="-m64 -std=c++11" LDFLAGS="-m64" ../configure --enable-debug --with-gtk=3 && make
checking build system type... i386-pc-solaris2.11
checking host system type... i386-pc-solaris2.11
checking for toolkit... gtk
checking for gcc... no
checking for cc... cc
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... no
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking whether we are using the Intel C compiler... no
checking whether we are using the Sun C compiler... yes
checking how to run the C preprocessor... cc -E
checking for grep that handles long lines and -e... /usr/bin/ggrep
checking for egrep... /usr/bin/ggrep -E
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... CC
checking whether we are using the GNU C++ compiler... no
checking whether CC accepts -g... yes
checking whether we are using the Intel C++ compiler... no
checking whether we are using the Sun C++ compiler... yes
checking for ANSI C header files... yes
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 langinfo.h... yes
checking for wchar.h... yes
checking for sys/select.h... yes
checking for cxxabi.h... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking size of short... 2
checking size of void *... 8
checking size of int... 4
checking size of long... 8
checking size of size_t... 8
checking size of long long... 8
checking size of wchar_t... 4
checking for va_copy... yes
checking whether the compiler supports variadic macros... yes
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking if large file support is available... yes
checking for _LARGEFILE_SOURCE value needed for large files... no
checking whether byte ordering is bigendian... no
checking for std::wstring in <string>... yes
checking for std::istream... yes
checking for std::ostream... yes
checking for type_traits... yes
checking for libraries directories... /usr/lib/64
checking for cos... no
checking for floor... no
checking if floating point functions link without -lm... no
checking for sin... yes
checking for ceil... yes
checking if floating point functions link with -lm... yes
checking for strtoull... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
configure: WARNING: Defaulting to the builtin regex library for Unicode build.
checking for zlib.h >= 1.1.4... yes
checking for zlib.h... (cached) yes
checking for deflate in -lz... yes
checking for png.h > 0.90... yes
checking for png.h... (cached) yes
checking for png_sig_cmp in -lpng... yes
checking for jpeglib.h... yes
checking for jpeg_read_header in -ljpeg... yes
checking lzma.h usability... yes
checking lzma.h presence... yes
checking for lzma.h... yes
checking for lzma_code in -llzma... yes
checking for jbg_dec_init in -ljbig... no
checking for LIBTIFF... yes
checking for expat.h... yes
checking if expat.h is valid C++ header... yes
checking for XML_ParserCreate in -lexpat... yes
checking for GTK+ version... 
checking for pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.16... yes
checking for GTK+ - version >= 3.0.0... yes (version 3.22.12)
checking for X11/Xlib.h... yes
checking for X11/XKBlib.h... yes
checking for pkg-config... (cached) /usr/bin/pkg-config
checking for Xxf86vm... yes
checking for X11/extensions/xf86vmode.h... yes
checking for pkg-config... (cached) /usr/bin/pkg-config
checking for SM... yes
checking for OpenGL headers... found in /usr/openwin/include
checking for GL/gl.h... yes
checking for GL/glu.h... yes
checking for pkg-config... (cached) /usr/bin/pkg-config
checking for GL... yes
checking for pkg-config... (cached) /usr/bin/pkg-config
checking for GLU... yes
checking if the linker accepts --version-script... no
checking for mode_t... yes
checking for off_t... yes
checking for pid_t... yes
checking for size_t... yes
checking for ssize_t... yes
checking if size_t is unsigned int... no
checking if size_t is unsigned long... yes
checking if wchar_t is separate type... yes
checking for pw_gecos in struct passwd... yes
checking for wcslen... yes
checking for wcsftime... yes
checking for strnlen... yes
checking for wcsdup... yes
checking for wcsnlen... yes
checking for wcscasecmp... yes
checking for wcsncasecmp... yes
checking for mbstate_t... yes
checking for wcsrtombs... yes
checking for snprintf... yes
checking for vsnprintf... yes
checking for vsscanf... yes
checking for vsnprintf declaration... yes
checking if vsnprintf declaration is broken... no
checking for snprintf declaration... yes
checking if snprintf supports positional arguments... yes
checking for vsscanf declaration... yes
checking if vsscanf() declaration is broken... no
checking for widec.h... yes
checking for putws... yes
checking for fputws... yes
checking for wprintf... yes
checking for vswprintf... yes
checking for vswscanf... yes
checking for _vsnwprintf... no
checking for fsync... yes
checking for round... yes
checking for iconv... yes
checking if iconv needs const... no
checking for sigaction... yes
checking for sa_handler type... int
checking for backtrace()... yes
checking for library containing backtrace... none required
checking for __cxa_demangle() in <cxxabi.h>... yes
checking for mkstemp... yes
checking for statfs... no
checking for statvfs... yes
checking for statvfs argument type... statvfs_t
checking for fcntl... yes
checking for setenv... yes
checking for unsetenv... yes
checking for nanosleep... yes
checking for uname... yes
checking for strtok_r... yes
checking for inet_addr... yes
checking for inet_aton... yes
checking for fdopen... yes
checking for sysconf... yes
checking for getpwuid_r... yes
checking for getgrgid_r... yes
checking whether pthreads work with -mt... yes
checking if more special flags are required for pthreads... -D_REENTRANT
checking for pthread_setconcurrency... yes
checking for pthread_cleanup_push/pop... yes
checking for sched.h... yes
checking for sched_yield... yes
checking for pthread_attr_getschedpolicy... yes
checking for pthread_attr_setschedparam... yes
checking for sched_get_priority_max... yes
checking for pthread_cancel... yes
checking for pthread_mutex_timedlock... yes
checking for pthread_attr_setstacksize... yes
checking for pthread_mutexattr_t... yes
checking for pthread_mutexattr_settype declaration... yes
checking for abi::__forced_unwind() in <cxxabi.h>... yes
checking for localtime_r... yes
checking for gmtime_r... yes
checking how many arguments gethostbyname_r() takes... five
checking how many arguments getservbyname_r() takes... five
checking for dlopen... yes
checking for dladdr... yes
checking whether inotify is usable... no
checking for sys/event.h... no
configure: WARNING: wxFileSystemWatcher won't be available on this platform
checking for LIBSECRET... yes
checking for SNDCTL_DSP_SPEED in sys/soundcard.h... yes
checking for GTKPRINT... yes
checking for LIBNOTIFY... yes
checking xlocale.h usability... no
checking xlocale.h presence... no
checking for xlocale.h... no
checking for locale_t... no
configure: WARNING: No locale_t support, wxXLocale won't be available
checking for sys/epoll.h... no
configure: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled
checking for gettimeofday... yes
checking whether gettimeofday takes two arguments... yes
checking for timezone variable in <time.h>... timezone
checking for localtime... yes
checking for tm_gmtoff in struct tm... no
checking for _NL_TIME_FIRST_WEEKDAY in langinfo.h... no
checking for setpriority... yes
checking for socket... yes
checking what is the type of the third argument of getsockname... socklen_t
checking what is the type of the fifth argument of getsockopt... socklen_t
checking for linux/joystick.h... no
configure: WARNING: Joystick not supported by this system... disabled
checking for XTST... yes
checking for PRIVATE_FONTS... yes
checking for python... /usr/bin/python
checking for WEBKIT... configure: WARNING: webkit2gtk not found, falling back to webkitgtk
checking for WEBKIT... configure: WARNING: webkitgtk not found.
configure: WARNING: WebKit not available, disabling wxWebView
checking for CAIRO... yes
checking for cairo_push_group... yes
checking for GST... configure: GStreamer 1.7.2+ not available. Not using GstPlayer and falling back to 1.0
checking for GST... yes
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking for ranlib... ranlib
checking whether ln -s works... yes
checking whether make sets $(MAKE)... yes
checking for strip... strip
checking for nm... nm
checking if make is GNU make... no
checking for dependency tracking method... Sun cc
awk: syntax error near line 1
awk: bailing out near line 1
awk: syntax error near line 1
awk: bailing out near line 1
awk: syntax error near line 1
awk: bailing out near line 1
awk: syntax error near line 1
awk: bailing out near line 1
checking whether make sets $(MAKE)... (cached) yes
checking whether catch.hpp file exists... yes
configure: creating ./config.status
config.status: creating lib/wx/config/gtk3-unicode-3.1
config.status: creating lib/wx/config/inplace-gtk3-unicode-3.1
config.status: creating utils/ifacecheck/rungccxml.sh
config.status: creating Makefile
config.status: creating samples/xrc/Makefile
config.status: creating samples/wrapsizer/Makefile
config.status: creating samples/wizard/Makefile
config.status: creating samples/widgets/Makefile
config.status: creating samples/vscroll/Makefile
config.status: creating samples/validate/Makefile
config.status: creating samples/uiaction/Makefile
config.status: creating samples/typetest/Makefile
config.status: creating samples/treelist/Makefile
config.status: creating samples/treectrl/Makefile
config.status: creating samples/toolbar/Makefile
config.status: creating samples/thread/Makefile
config.status: creating samples/text/Makefile
config.status: creating samples/taskbar/Makefile
config.status: creating samples/taborder/Makefile
config.status: creating samples/svg/Makefile
config.status: creating samples/stc/Makefile
config.status: creating samples/statbar/Makefile
config.status: creating samples/splitter/Makefile
config.status: creating samples/splash/Makefile
config.status: creating samples/sound/Makefile
config.status: creating samples/sockets/Makefile
config.status: creating samples/shaped/Makefile
config.status: creating samples/secretstore/Makefile
config.status: creating samples/scroll/Makefile
config.status: creating samples/sashtest/Makefile
config.status: creating samples/richtext/Makefile
config.status: creating samples/ribbon/Makefile
config.status: creating samples/render/Makefile
config.status: creating samples/propgrid/Makefile
config.status: creating samples/printing/Makefile
config.status: creating samples/preferences/Makefile
config.status: creating samples/power/Makefile
config.status: creating samples/popup/Makefile
config.status: creating samples/opengl/pyramid/Makefile
config.status: creating samples/opengl/penguin/Makefile
config.status: creating samples/opengl/isosurf/Makefile
config.status: creating samples/opengl/cube/Makefile
config.status: creating samples/opengl/Makefile
config.status: creating samples/notebook/Makefile
config.status: creating samples/minimal/Makefile
config.status: creating samples/menu/Makefile
config.status: creating samples/mediaplayer/Makefile
config.status: creating samples/mdi/Makefile
config.status: creating samples/listctrl/Makefile
config.status: creating samples/layout/Makefile
config.status: creating samples/keyboard/Makefile
config.status: creating samples/ipc/Makefile
config.status: creating samples/internat/Makefile
config.status: creating samples/image/Makefile
config.status: creating samples/html/zip/Makefile
config.status: creating samples/html/widget/Makefile
config.status: creating samples/html/virtual/Makefile
config.status: creating samples/html/test/Makefile
config.status: creating samples/html/printing/Makefile
config.status: creating samples/html/helpview/Makefile
config.status: creating samples/html/help/Makefile
config.status: creating samples/html/about/Makefile
config.status: creating samples/html/Makefile
config.status: creating samples/htlbox/Makefile
config.status: creating samples/help/Makefile
config.status: creating samples/grid/Makefile
config.status: creating samples/font/Makefile
config.status: creating samples/exec/Makefile
config.status: creating samples/except/Makefile
config.status: creating samples/event/Makefile
config.status: creating samples/erase/Makefile
config.status: creating samples/drawing/Makefile
config.status: creating samples/dragimag/Makefile
config.status: creating samples/docview/Makefile
config.status: creating samples/dnd/Makefile
config.status: creating samples/display/Makefile
config.status: creating samples/dialup/Makefile
config.status: creating samples/dialogs/Makefile
config.status: creating samples/debugrpt/Makefile
config.status: creating samples/dataview/Makefile
config.status: creating samples/console/Makefile
config.status: creating samples/config/Makefile
config.status: creating samples/combo/Makefile
config.status: creating samples/collpane/Makefile
config.status: creating samples/clipboard/Makefile
config.status: creating samples/caret/Makefile
config.status: creating samples/calendar/Makefile
config.status: creating samples/aui/Makefile
config.status: creating samples/artprov/Makefile
config.status: creating samples/archive/Makefile
config.status: creating samples/animate/Makefile
config.status: creating samples/Makefile
config.status: creating demos/forty/Makefile
config.status: creating demos/fractal/Makefile
config.status: creating demos/life/Makefile
config.status: creating demos/bombs/Makefile
config.status: creating demos/poem/Makefile
config.status: creating demos/Makefile
config.status: creating utils/hhp2cached/Makefile
config.status: creating utils/Makefile
config.status: creating utils/helpview/Makefile
config.status: creating utils/helpview/src/Makefile
config.status: creating utils/execmon/Makefile
config.status: creating utils/ifacecheck/src/Makefile
config.status: creating utils/screenshotgen/Makefile
config.status: creating utils/screenshotgen/src/Makefile
config.status: creating utils/emulator/src/Makefile
config.status: creating utils/emulator/Makefile
config.status: creating utils/wxrc/Makefile
config.status: creating tests/benchmarks/Makefile
config.status: creating tests/Makefile
config.status: creating lib/wx/include/gtk3-unicode-3.1/wx/setup.h
config.status: executing wx-config commands

Configured wxWidgets 3.1.4 for `i386-pc-solaris2.11'

  Which GUI toolkit should wxWidgets use?                 GTK+ 3 with support for GTK+ printing libnotify
  Should wxWidgets be compiled into single library?       no
  Should wxWidgets be linked as a shared library?         yes
  Should wxWidgets support Unicode?                       yes (using wchar_t)
  What level of wxWidgets compatibility should be enabled?
                                       wxWidgets 2.8      no
                                       wxWidgets 3.0      yes
  Which libraries should wxWidgets use?
                                       STL                no
                                       jpeg               sys
                                       png                sys
                                       regex              builtin
                                       tiff               sys
                                       lzma               yes
                                       zlib               sys
                                       expat              sys
                                       libmspack          no
                                       sdl                no

/export/home/igor/wxWidgets/buildSol/bk-deps cc -c -o wxregex_regcomp.o  -DNDEBUG -D__WXGTK__    -KPIC -DPIC  -m64 ../src/regex/regcomp.c
"../src/regex/regcustom.h", line 39: cannot find include file: "wx/defs.h"
"../src/regex/regcustom.h", line 40: cannot find include file: "wx/chartype.h"
"../src/regex/regcustom.h", line 41: cannot find include file: "wx/wxcrtbase.h"
"../src/regex/regcustom.h", line 84: warning: no explicit type given
"../src/regex/regcustom.h", line 84: syntax error before or at: chr
"../src/regex/regcustom.h", line 84: warning: old-style declaration or incorrect type for: chr
"../src/regex/regguts.h", line 257: syntax error before or at: chr
"../src/regex/regguts.h", line 260: syntax error before or at: chr
"../src/regex/regguts.h", line 264: syntax error before or at: chr
"../src/regex/regguts.h", line 279: incomplete struct/union/enum state: <unnamed>
"../src/regex/regguts.h", line 279: warning: unnamed struct member
"../src/regex/regguts.h", line 281: warning: unnamed struct member
"../src/regex/regguts.h", line 293: warning: unnamed struct member
"../src/regex/regguts.h", line 299: (struct) tag redeclared: state
"../src/regex/regguts.h", line 299: warning: unnamed struct member
"../src/regex/regguts.h", line 315: warning: unnamed struct member
"../src/regex/regguts.h", line 336: warning: unnamed struct member
"../src/regex/regguts.h", line 341: warning: unnamed struct member
"../src/regex/regguts.h", line 361: warning: unnamed struct member
"../src/regex/regguts.h", line 396: warning: unnamed struct member
"../src/regex/regguts.h", line 405: warning: unnamed struct member
"../src/regex/regcomp.c", line 41: warning: no explicit type given
"../src/regex/regcomp.c", line 41: syntax error before or at: *
"../src/regex/regcomp.c", line 41: warning: undefined or missing type for: size_t
"../src/regex/regcomp.c", line 41: warning: undefined or missing type for: int
"../src/regex/regcomp.c", line 41: member cannot be function: wx_re_comp
"../src/regex/regcomp.c", line 42: member cannot be function: moresubs
"../src/regex/regcomp.c", line 43: syntax error before or at: static
"../src/regex/regcomp.c", line 43: member cannot be function: freev
"../src/regex/regcomp.c", line 44: syntax error before or at: static
"../src/regex/regcomp.c", line 44: member cannot be function: makesearch
"../src/regex/regcomp.c", line 45: syntax error before or at: static
"../src/regex/regcomp.c", line 45: member cannot be function: parse
"../src/regex/regcomp.c", line 46: syntax error before or at: static
"../src/regex/regcomp.c", line 46: member cannot be function: parsebranch
"../src/regex/regcomp.c", line 47: syntax error before or at: static
"../src/regex/regcomp.c", line 47: member cannot be function: parseqatom
"../src/regex/regcomp.c", line 48: syntax error before or at: static
"../src/regex/regcomp.c", line 48: member cannot be function: nonword
"../src/regex/regcomp.c", line 49: syntax error before or at: static
"../src/regex/regcomp.c", line 49: member cannot be function: word
"../src/regex/regcomp.c", line 50: syntax error before or at: static
"../src/regex/regcomp.c", line 50: member cannot be function: scannum
"../src/regex/regcomp.c", line 51: syntax error before or at: static
"../src/regex/regcomp.c", line 51: member cannot be function: repeat
"../src/regex/regcomp.c", line 52: syntax error before or at: static
"../src/regex/regcomp.c", line 52: member cannot be function: bracket
"../src/regex/regcomp.c", line 53: syntax error before or at: static
"../src/regex/regcomp.c", line 53: member cannot be function: cbracket
"../src/regex/regcomp.c", line 54: syntax error before or at: static
"../src/regex/regcomp.c", line 54: member cannot be function: brackpart
"../src/regex/regcomp.c", line 55: syntax error before or at: static
"../src/regex/regcomp.c", line 55: syntax error before or at: )
"../src/regex/regcomp.c", line 55: warning: syntax requires ";" after last struct/union member
"../src/regex/regguts.h", line 254: zero-sized struct/union
"../src/regex/regcomp.c", line 274: undefined symbol: rfree
"../src/regex/regcomp.c", line 274: warning: improper pointer/integer combination: op "="
"../src/regex/regcomp.c", line 274: non-constant initializer involving a cast
"../src/regex/regcomp.c", line 286: warning: no explicit type given
"../src/regex/regcomp.c", line 286: parameter not in identifier list: chr
"../src/regex/regcomp.c", line 286: syntax error before or at: *
"../src/regex/regcomp.c", line 286: parameter redeclared: string
"../src/regex/regcomp.c", line 290: syntax error before or at: struct
"../src/regex/regcomp.c", line 350: warning: syntax error:  empty declaration
"../src/regex/regcomp.c", line 351: syntax error before or at: ->
"../src/regex/regcomp.c", line 351: parameter not in identifier list: cv
"../src/regex/regcomp.c", line 351: cannot initialize parameter: cv
"../src/regex/regcomp.c", line 351: warning: implicit function declaration: newcvec
"../src/regex/regcomp.c", line 351: warning: statement not reached
"../src/regex/regcomp.c", line 352: syntax error before or at: if
"../src/regex/regcomp.c", line 352: parameter not in identifier list: cv
"../src/regex/regcomp.c", line 353: syntax error before or at: 12
"../src/regex/regcomp.c", line 353: parameter not in identifier list: freev
"../src/regex/regcomp.c", line 354: parameter not in identifier list: i
"../src/regex/regcomp.c", line 354: cannot initialize parameter: i
"../src/regex/regcomp.c", line 354: warning: implicit function declaration: nmcces
"../src/regex/regcomp.c", line 354: undefined symbol: v
"../src/regex/regcomp.c", line 355: syntax error before or at: if
"../src/regex/regcomp.c", line 357: warning: syntax error:  empty declaration
"../src/regex/regcomp.c", line 358: parameter not in identifier list: v
"../src/regex/regcomp.c", line 358: syntax error before or at: ->
"../src/regex/regcomp.c", line 358: parameter not in identifier list: mcces
"../src/regex/regcomp.c", line 358: cannot initialize parameter: mcces
"../src/regex/regcomp.c", line 358: warning: implicit function declaration: allmcces
"../src/regex/regcomp.c", line 358: undefined struct/union member: mcces
"../src/regex/regcomp.c", line 358: left operand of "->" must be pointer to struct/union
"../src/regex/regcomp.c", line 359: parameter redeclared: v
"../src/regex/regcomp.c", line 359: syntax error before or at: ->
"../src/regex/regcomp.c", line 359: parameter not in identifier list: leaders
"../src/regex/regcomp.c", line 360: syntax error before or at: ->
"../src/regex/regcomp.c", line 360: parameter not in identifier list: addmcce
"../src/regex/regcomp.c", line 360: warning: syntax error:  empty declaration
"../src/regex/regcomp.c", line 362: warning: syntax error:  empty declaration
"../src/regex/regcomp.c", line 365: warning: function prototype parameters must have types
"../src/regex/regcomp.c", line 365: parameter not in identifier list: lexstart
"../src/regex/regcomp.c", line 366: syntax error before or at: if
"../src/regex/regcomp.c", line 366: syntax error before or at: ->
"../src/regex/regcomp.c", line 366: parameter not in identifier list: cflags
"../src/regex/regcomp.c", line 366: parameter not in identifier list: cflags
"../src/regex/regcomp.c", line 371: warning: syntax error:  empty declaration
"../src/regex/regcomp.c", line 372: parameter not in identifier list: v
"../src/regex/regcomp.c", line 372: syntax error before or at: ->
"../src/regex/regcomp.c", line 372: parameter not in identifier list: tree
"../src/regex/regcomp.c", line 372: cannot initialize parameter: tree
"../src/regex/regcomp.c", line 372: warning: implicit function declaration: parse
"../src/regex/regcomp.c", line 372: undefined struct/union member: nfa
"../src/regex/regcomp.c", line 372: left operand of "->" must be pointer to struct/union
"../src/regex/regcomp.c", line 372: left operand of "->" must be pointer to struct/union
"../src/regex/regcomp.c", line 372: left operand of "->" must be pointer to struct/union
"../src/regex/regcomp.c", line 372: left operand of "->" must be pointer to struct/union
"../src/regex/regcomp.c", line 373: syntax error before or at: void
"../src/regex/regcomp.c", line 373: warning: syntax error:  empty declaration
"../src/regex/regcomp.c", line 374: warning: syntax error:  empty declaration
"../src/regex/regcomp.c", line 375: syntax error before or at: void
"../src/regex/regcomp.c", line 375: warning: syntax error:  empty declaration
"../src/regex/regcomp.c", line 378: syntax error before or at: ->
"../src/regex/regcomp.c", line 378: parameter not in identifier list: specialcolors
"../src/regex/regcomp.c", line 379: syntax error before or at: if
"../src/regex/regcomp.c", line 379: warning: syntax error:  empty declaration
"../src/regex/regcomp.c", line 385: parameter redeclared: v
"../src/regex/regcomp.c", line 385: syntax error before or at: ->
"../src/regex/regcomp.c", line 385: parameter not in identifier list: optst
"../src/regex/regcomp.c", line 386: parameter not in identifier list: v
"../src/regex/regcomp.c", line 386: syntax error before or at: ->
"../src/regex/regcomp.c", line 386: parameter not in identifier list: ntree
"../src/regex/regcomp.c", line 386: cannot initialize parameter: ntree
"../src/regex/regcomp.c", line 386: warning: implicit function declaration: numst
"../src/regex/regcomp.c", line 386: non-unique member requires struct/union pointer: tree
"../src/regex/regcomp.c", line 386: left operand of "->" must be pointer to struct/union
"../src/regex/regcomp.c", line 387: syntax error before or at: ->
"../src/regex/regcomp.c", line 387: parameter not in identifier list: markst
"../src/regex/regcomp.c", line 388: warning: function prototype parameters must have types
"../src/regex/regcomp.c", line 388: parameter not in identifier list: cleanst
"../src/regex/regcomp.c", line 389: syntax error before or at: if
"../src/regex/regcomp.c", line 395: parameter not in identifier list: re
"../src/regex/regcomp.c", line 395: parameter not in identifier list: re_info
"../src/regex/regcomp.c", line 395: parameter redeclared: v
"../src/regex/regcomp.c", line 395: syntax error before or at: ->
"../src/regex/regcomp.c", line 395: warning: function prototype parameters must have types
"../src/regex/regcomp.c", line 395: parameter not in identifier list: nfatree
"../src/regex/regcomp.c", line 396: syntax error before or at: if
"../src/regex/regcomp.c", line 396: warning: syntax error:  empty declaration
"../src/regex/regcomp.c", line 397: syntax error before or at: void
"../src/regex/regcomp.c", line 397: warning: syntax error:  empty declaration
"../src/regex/regcomp.c", line 398: warning: syntax error:  empty declaration
"../src/regex/regcomp.c", line 398: parameter not in identifier list: i
"../src/regex/regcomp.c", line 398: parameter not in identifier list: v
"../src/regex/regcomp.c", line 398: parameter not in identifier list: nlacons
"../src/regex/regcomp.c", line 398: parameter not in identifier list: i
"../src/regex/regcomp.c", line 398: syntax error before or at: ++
"../src/regex/regcomp.c", line 403: warning: syntax error:  empty declaration
"../src/regex/regcomp.c", line 404: parameter not in identifier list: tree
"../src/regex/regcomp.c", line 404: parameter not in identifier list: flags
"../src/regex/regcomp.c", line 405: parameter not in identifier list: re
"../src/regex/regcomp.c", line 405: parameter not in identifier list: re_info
"../src/regex/regcomp.c", line 405: warning: syntax error:  empty declaration
"../src/regex/regcomp.c", line 409: syntax error before or at: "\n\n\n========= SEARCH ==========\n"
"../src/regex/regcomp.c", line 409: parameter not in identifier list: fprintf
"../src/regex/regcomp.c", line 411: syntax error before or at: void
"../src/regex/regcomp.c", line 411: syntax error before or at: ->
"../src/regex/regcomp.c", line 411: warning: function prototype parameters must have types
"../src/regex/regcomp.c", line 411: parameter not in identifier list: optimize
"../src/regex/regcomp.c", line 412: syntax error before or at: if
"../src/regex/regcomp.c", line 412: warning: syntax error:  empty declaration
"../src/regex/regcomp.c", line 413: parameter redeclared: v
"../src/regex/regcomp.c", line 413: syntax error before or at: ->
"../src/regex/regcomp.c", line 413: parameter not in identifier list: makesearch
"../src/regex/regcomp.c", line 414: syntax error before or at: if
"../src/regex/regcomp.c", line 414: warning: syntax error:  empty declaration
"../src/regex/regcomp.c", line 415: syntax error before or at: ->
"../src/regex/regcomp.c", line 415: parameter not in identifier list: compact
"../src/regex/regcomp.c", line 416: syntax error before or at: if
"../src/regex/regcomp.c", line 416: warning: syntax error:  empty declaration
"../src/regex/regcomp.c", line 419: parameter not in identifier list: re
"../src/regex/regcomp.c", line 419: syntax error before or at: ->
"../src/regex/regcomp.c", line 419: parameter not in identifier list: re_nsub
"../src/regex/regcomp.c", line 419: cannot initialize parameter: re_nsub
"../src/regex/regcomp.c", line 419: undefined struct/union member: nsubexp
"../src/regex/regcomp.c", line 419: left operand of "->" must be pointer to struct/union
"../src/regex/regcomp.c", line 420: parameter not in identifier list: v
"../src/regex/regcomp.c", line 420: syntax error before or at: ->
"../src/regex/regcomp.c", line 420: parameter not in identifier list: re
"../src/regex/regcomp.c", line 420: cannot initialize parameter: re
"../src/regex/regcomp.c", line 421: parameter not in identifier list: g
"../src/regex/regcomp.c", line 421: syntax error before or at: ->
"../src/regex/regcomp.c", line 421: parameter not in identifier list: magic
"../src/regex/regcomp.c", line 421: cannot initialize parameter: magic
"../src/regex/regcomp.c", line 422: parameter not in identifier list: g
"../src/regex/regcomp.c", line 422: syntax error before or at: ->
"../src/regex/regcomp.c", line 422: parameter not in identifier list: cflags
"../src/regex/regcomp.c", line 422: cannot initialize parameter: cflags
"../src/regex/regcomp.c", line 422: left operand of "->" must be pointer to struct/union
"../src/regex/regcomp.c", line 423: parameter not in identifier list: g
"../src/regex/regcomp.c", line 423: syntax error before or at: ->
"../src/regex/regcomp.c", line 423: parameter not in identifier list: info
"../src/regex/regcomp.c", line 423: cannot initialize parameter: info
"../src/regex/regcomp.c", line 423: left operand of "->" must be pointer to struct/union
"../src/regex/regcomp.c", line 424: parameter not in identifier list: g
"../src/regex/regcomp.c", line 424: syntax error before or at: ->
"../src/regex/regcomp.c", line 424: parameter not in identifier list: nsub
"../src/regex/regcomp.c", line 424: cannot initialize parameter: nsub
"../src/regex/regcomp.c", line 424: left operand of "->" must be pointer to struct/union
"../src/regex/regcomp.c", line 425: parameter not in identifier list: g
"../src/regex/regcomp.c", line 425: syntax error before or at: ->
"../src/regex/regcomp.c", line 425: parameter not in identifier list: tree
"../src/regex/regcomp.c", line 425: cannot initialize parameter: tree
"../src/regex/regcomp.c", line 425: non-unique member requires struct/union pointer: tree
"../src/regex/regcomp.c", line 425: left operand of "->" must be pointer to struct/union
"../src/regex/regcomp.c", line 425: warning: improper pointer/integer combination: op "="
"../src/regex/regcomp.c", line 426: parameter not in identifier list: v
"../src/regex/regcomp.c", line 426: syntax error before or at: ->
"../src/regex/regcomp.c", line 426: parameter not in identifier list: tree
"../src/regex/regcomp.c", line 426: cannot initialize parameter: tree
"../src/regex/regcomp.c", line 427: parameter not in identifier list: g
"../src/regex/regcomp.c", line 427: syntax error before or at: ->
"../src/regex/regcomp.c", line 427: parameter not in identifier list: ntree
"../src/regex/regcomp.c", line 427: cannot initialize parameter: ntree
"../src/regex/regcomp.c", line 427: left operand of "->" must be pointer to struct/union
"../src/regex/regcomp.c", line 428: parameter not in identifier list: g
"../src/regex/regcomp.c", line 428: syntax error before or at: ->
"../src/regex/regcomp.c", line 428: parameter not in identifier list: compare
"../src/regex/regcomp.c", line 428: cannot initialize parameter: compare
"../src/regex/regcomp.c", line 428: left operand of "->" must be pointer to struct/union
"../src/regex/regcomp.c", line 428: undefined symbol: casecmp
"../src/regex/regcomp.c", line 428: undefined symbol: cmp
"../src/regex/regcomp.c", line 429: parameter not in identifier list: g
"../src/regex/regcomp.c", line 429: syntax error before or at: ->
"../src/regex/regcomp.c", line 429: parameter not in identifier list: lacons
"../src/regex/regcomp.c", line 429: cannot initialize parameter: lacons
"../src/regex/regcomp.c", line 429: left operand of "->" must be pointer to struct/union
"../src/regex/regcomp.c", line 429: warning: improper pointer/integer combination: op "="
"../src/regex/regcomp.c", line 430: parameter not in identifier list: v
"../src/regex/regcomp.c", line 430: syntax error before or at: ->
"../src/regex/regcomp.c", line 430: parameter not in identifier list: lacons
"../src/regex/regcomp.c", line 430: cannot initialize parameter: lacons
"../src/regex/regcomp.c", line 431: parameter not in identifier list: g
"../src/regex/regcomp.c", line 431: syntax error before or at: ->
"../src/regex/regcomp.c", line 431: parameter not in identifier list: nlacons
"../src/regex/regcomp.c", line 431: cannot initialize parameter: nlacons
"../src/regex/regcomp.c", line 431: left operand of "->" must be pointer to struct/union
"../src/regex/regcomp.c", line 433: syntax error before or at: if
"../src/regex/regcomp.c", line 434: syntax error before or at: (
"../src/regex/regcomp.c", line 434: parameter not in identifier list: dump
"../src/regex/regcomp.c", line 434: warning: syntax error:  empty declaration
"../src/regex/regcomp.c", line 436: syntax error before or at: void
"../src/regex/regcomp.c", line 436: warning: syntax error:  empty declaration
"../src/regex/regcomp.c", line 437: syntax error before or at: 0
"../src/regex/regcomp.c", line 437: parameter not in identifier list: freev
"../src/regex/regcomp.c", line 444: only "register" valid as formal parameter storage class
"../src/regex/regcomp.c", line 445: warning: function prototype parameters must have types
"../src/regex/regcomp.c", line 445: parameter not in identifier list: moresubs
"../src/regex/regcomp.c", line 446: parameter not in identifier list: v
"../src/regex/regcomp.c", line 447: parameter not in identifier list: wanted
"../src/regex/regcomp.c", line 448: cannot recover from previous errors
cc: acomp failed for ../src/regex/regcomp.c
*** Error code 2
make: Fatal error: Command failed for target `wxregex_regcomp.o'
[email protected]:~/wxWidgets/buildSol$ 
Am I missing some configure switch?

Thank you.

stahta01
Super wx Problem Solver
Super wx Problem Solver
Posts: 398
Joined: Fri Nov 03, 2006 2:00 pm

Re: Building 64 bit library on Unix with configure.

Post by stahta01 » Wed Oct 21, 2020 4:49 am

Code: Select all

[email protected]:~/wxWidgets/buildSol$ CFLAGS="-m64" CXXFLAGS="-m64 -std=c++11" LDFLAGS="-m64" ../configure --enable-debug --with-gtk=3 && make
checking build system type... i386-pc-solaris2.11
checking host system type... i386-pc-solaris2.11
The above raises questions about whether it is supposed to be 32 bit or 64 bit build.

Please confirm what you are trying to build and what build/host you are using!

Edit: Adding "-m64" is not magic that works unless the GCC Compiler is an multilib version!
And, I would guess you need to change the host to the correct value even then.

Tim S.

stahta01
Super wx Problem Solver
Super wx Problem Solver
Posts: 398
Joined: Fri Nov 03, 2006 2:00 pm

Re: Building 64 bit library on Unix with configure.

Post by stahta01 » Wed Oct 21, 2020 6:29 am

Per https://stackoverflow.com/questions/332 ... on-solaris

I suggest trying CC="gcc -m64" and CXX="g++ -m64"

Tim S.

ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 4529
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: Building 64 bit library on Unix with configure.

Post by ONEEYEMAN » Wed Oct 21, 2020 6:37 am

Hi, Tim,
I'm not using gcc - trying with Solaris compiler.

Turns out that switching off regex library works.

Hopefully this will generate a good binary.

BTW, with a recent standard this library becomes obsolete - regular expressions are now part of the standard...

Thank you.

ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 4529
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: Building 64 bit library on Unix with configure.

Post by ONEEYEMAN » Fri Oct 23, 2020 8:12 am

Tim,
I just tried to build 64-bit of the 3.1.3 version.

It went further but stops with another problem:

Code: Select all

/export/home/igor/wxWidgets-3.1.3/buildSol/bk-deps CC -c -o
coredll_paletteg.o  -D__WXGTK__        -DWXBUILDING
-I../src/regex  -DWXUSINGDLL -DWXMAKINGDLL_CORE  -DwxUSE_BASE=0 -KPIC
-DPIC  -D_FILE_OFFSET_BITS=64
-I/export/home/igor/wxWidgets-3.1.3/buildSol/lib/wx/include/gtk3-unicode-3.1
-I../include -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT
-I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0
-I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0
-I/usr/lib/dbus-1.0/include -I/usr/include/gtk-3.0
-I/usr/include/gio-unix-2.0/ -I/usr/include/cairo
-I/usr/include/pango-1.0 -I/usr/include/harfbuzz
-I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo
-I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libdrm
-I/usr/include/libpng14 -I/usr/include/gdk-pixbuf-2.0
-I/usr/include/libpng14 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/pcre -D_REENTRANT
-I/usr/include/gstreamer-1.0 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/pcre -I/usr/openwin/include
-mt -D_REENTRANT -g -I/usr/include/pango-1.0 -I/usr/include/harfbuzz
-I/usr/include/pango-1.0 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/pcre
-I/usr/include/freetype2 -I/usr/include/libpng14 -D_REENTRANT
-D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -I/usr/include/gdk-pixbuf-2.0
-I/usr/include/libpng14 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/pcre -D_REENTRANT
-D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT
-I/usr/include/gtk-3.0/unix-print -I/usr/include/gtk-3.0
-I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0
-I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include
-I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/
-I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz
-I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo
-I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libdrm
-I/usr/include/libpng14 -I/usr/include/gdk-pixbuf-2.0
-I/usr/include/libpng14 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/pcre -D_REENTRANT
-I/usr/include/libsecret-1 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/pcre -features=tmplife -m64
-std=c++11 ../src/generic/paletteg.cpp
/export/home/igor/wxWidgets-3.1.3/buildSol/bk-deps CC -c -o
coredll_gtk_app.o  -D__WXGTK__        -DWXBUILDING
-I../src/regex  -DWXUSINGDLL -DWXMAKINGDLL_CORE  -DwxUSE_BASE=0 -KPIC
-DPIC  -D_FILE_OFFSET_BITS=64
-I/export/home/igor/wxWidgets-3.1.3/buildSol/lib/wx/include/gtk3-unicode-3.1
-I../include -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT
-I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0
-I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0
-I/usr/lib/dbus-1.0/include -I/usr/include/gtk-3.0
-I/usr/include/gio-unix-2.0/ -I/usr/include/cairo
-I/usr/include/pango-1.0 -I/usr/include/harfbuzz
-I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo
-I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libdrm
-I/usr/include/libpng14 -I/usr/include/gdk-pixbuf-2.0
-I/usr/include/libpng14 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/pcre -D_REENTRANT
-I/usr/include/gstreamer-1.0 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/pcre -I/usr/openwin/include
-mt -D_REENTRANT -g -I/usr/include/pango-1.0 -I/usr/include/harfbuzz
-I/usr/include/pango-1.0 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/pcre
-I/usr/include/freetype2 -I/usr/include/libpng14 -D_REENTRANT
-D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -I/usr/include/gdk-pixbuf-2.0
-I/usr/include/libpng14 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/pcre -D_REENTRANT
-D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT
-I/usr/include/gtk-3.0/unix-print -I/usr/include/gtk-3.0
-I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0
-I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include
-I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/
-I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz
-I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo
-I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libdrm
-I/usr/include/libpng14 -I/usr/include/gdk-pixbuf-2.0
-I/usr/include/libpng14 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/pcre -D_REENTRANT
-I/usr/include/libsecret-1 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/pcre -features=tmplife -m64
-std=c++11 ../src/gtk/app.cpp
"../src/gtk/app.cpp", line 112: Error: Cannot cast from void* to
integer of smaller size.
1 Error(s) detected.
*** Error code 2
make: Fatal error: Command failed for target `coredll_gtk_app.o'
[email protected]:~/wxWidgets-3.1.3/buildSol$
Thank you.

stahta01
Super wx Problem Solver
Super wx Problem Solver
Posts: 398
Joined: Fri Nov 03, 2006 2:00 pm

Re: Building 64 bit library on Unix with configure.

Post by stahta01 » Fri Oct 23, 2020 11:56 am

So, how are you setting the -m64 option in the configure command, now?

Tim S.

ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 4529
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: Building 64 bit library on Unix with configure.

Post by ONEEYEMAN » Fri Oct 23, 2020 3:21 pm

Tim,
I am setting it through CXXFLAGS variable.

You know any other way?

Thank you.

P.s. do you have solaris compiler installed?

stahta01
Super wx Problem Solver
Super wx Problem Solver
Posts: 398
Joined: Fri Nov 03, 2006 2:00 pm

Re: Building 64 bit library on Unix with configure.

Post by stahta01 » Sat Oct 24, 2020 12:07 am

The way I already posted by setting CC and CXX!

Edit: I am guessing you know the name of your compiler use that in place of the "gcc" I posted!

I have no running unix installation; and, the ones I normally run are Linux.

Tim S.

Post Reply