Uploaded image for project: 'MariaDB Connector/C'
  1. MariaDB Connector/C
  2. CONC-248

fails to compile on Bigendian

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Duplicate
    • 2.3.2
    • 2.3.3
    • None
    • None
    • ppc64 (bigendian)

    Description

      rhel73 build-mariadb-connector-c]$ cmake ../mariadb-connector-c/ -DINSTALL_LAYOUT=RPM
      -- The C compiler identification is GNU 4.8.5
      -- Check for working C compiler: /usr/bin/cc
      -- Check for working C compiler: /usr/bin/cc -- works
      -- Detecting C compiler ABI info
      -- Detecting C compiler ABI info - done
      -- Check if the system is big endian
      -- Searching 16 bit integer
      -- Looking for sys/types.h
      -- Looking for sys/types.h - found
      -- Looking for stdint.h
      -- Looking for stdint.h - found
      -- Looking for stddef.h
      -- Looking for stddef.h - found
      -- Check size of unsigned short
      -- Check size of unsigned short - done
      -- Using unsigned short
      -- Check if the system is big endian - big endian
      -- Looking for inet_ntoa
      -- Looking for inet_ntoa - found
      -- Looking for inet_ntoa in c
      -- Looking for inet_ntoa in c - found
      -- Looking for bind
      -- Looking for bind - found
      -- Looking for bind in c
      -- Looking for bind in c - found
      -- Looking for setsockopt
      -- Looking for setsockopt - found
      -- Looking for setsockopt in c
      -- Looking for setsockopt in c - found
      -- Looking for dlopen
      -- Looking for dlopen - not found
      -- Looking for dlopen in dl
      -- Looking for dlopen in dl - found
      -- Looking for floor
      -- Looking for floor - not found
      -- Looking for floor in m
      -- Looking for floor in m - found
      -- Looking for pthread_getspecific
      -- Looking for pthread_getspecific - not found
      -- Looking for pthread_getspecific in pthread
      -- Looking for pthread_getspecific in pthread - found
      -- Looking for include file pthread.h
      -- Looking for include file pthread.h - found
      -- Looking for pthread_create
      -- Looking for pthread_create - not found
      -- Looking for pthread_create in pthreads
      -- Looking for pthread_create in pthreads - not found
      -- Looking for pthread_create in pthread
      -- Looking for pthread_create in pthread - found
      -- Found Threads: TRUE  
      -- Looking for include file alloca.h
      -- Looking for include file alloca.h - found
      -- Looking for include file arpa/inet.h
      -- Looking for include file arpa/inet.h - found
      -- Looking for include file crypt.h
      -- Looking for include file crypt.h - found
      -- Looking for include file dirent.h
      -- Looking for include file dirent.h - found
      -- Looking for include file dlfcn.h
      -- Looking for include file dlfcn.h - found
      -- Looking for include file execinfo.h
      -- Looking for include file execinfo.h - found
      -- Looking for include file fcntl.h
      -- Looking for include file fcntl.h - found
      -- Looking for include file fenv.h
      -- Looking for include file fenv.h - found
      -- Looking for include file float.h
      -- Looking for include file float.h - found
      -- Looking for include file fpu/control.h
      -- Looking for include file fpu/control.h - not found
      -- Looking for include file grp.h
      -- Looking for include file grp.h - found
      -- Looking for include file ieeefp.h
      -- Looking for include file ieeefp.h - not found
      -- Looking for include file limits.h
      -- Looking for include file limits.h - found
      -- Looking for include file malloc.h
      -- Looking for include file malloc.h - found
      -- Looking for include file memory.h
      -- Looking for include file memory.h - found
      -- Looking for include file netinet/in.h
      -- Looking for include file netinet/in.h - found
      -- Looking for include file paths.h
      -- Looking for include file paths.h - found
      -- Looking for include file pwd.h
      -- Looking for include file pwd.h - found
      -- Looking for include file sched.h
      -- Looking for include file sched.h - found
      -- Looking for include file select.h
      -- Looking for include file select.h - not found
      -- Looking for include file signal.h
      -- Looking for include file signal.h - found
      -- Looking for include file stdlib.h
      -- Looking for include file stdlib.h - found
      -- Looking for include file string.h
      -- Looking for include file string.h - found
      -- Looking for include file strings.h
      -- Looking for include file strings.h - found
      -- Looking for include file synch.h
      -- Looking for include file synch.h - not found
      -- Looking for include file sys/fpu.h
      -- Looking for include file sys/fpu.h - not found
      -- Looking for include file sys/ioctl.h
      -- Looking for include file sys/ioctl.h - found
      -- Looking for include file sys/ipc.h
      -- Looking for include file sys/ipc.h - found
      -- Looking for include file sys/mman.h
      -- Looking for include file sys/mman.h - found
      -- Looking for include file sys/prctl.h
      -- Looking for include file sys/prctl.h - found
      -- Looking for include file sys/select.h
      -- Looking for include file sys/select.h - found
      -- Looking for include file sys/shm.h
      -- Looking for include file sys/shm.h - found
      -- Looking for include file sys/socket.h
      -- Looking for include file sys/socket.h - found
      -- Looking for include file sys/stat.h
      -- Looking for include file sys/stat.h - found
      -- Looking for include file sys/stream.h
      -- Looking for include file sys/stream.h - not found
      -- Looking for include file sys/timeb.h
      -- Looking for include file sys/timeb.h - found
      -- Looking for include file sys/un.h
      -- Looking for include file sys/un.h - found
      -- Looking for include file sysent.h
      -- Looking for include file sysent.h - not found
      -- Looking for include file termio.h
      -- Looking for include file termio.h - found
      -- Looking for include file termios.h
      -- Looking for include file termios.h - found
      -- Looking for include file ucontext.h
      -- Looking for include file ucontext.h - found
      -- Looking for include file unistd.h
      -- Looking for include file unistd.h - found
      -- Looking for include file utime.h
      -- Looking for include file utime.h - found
      -- Looking for access
      -- Looking for access - found
      -- Looking for aiowait
      -- Looking for aiowait - not found
      -- Looking for alarm
      -- Looking for alarm - found
      -- Looking for alloca
      -- Looking for alloca - not found
      -- Looking for bcmp
      -- Looking for bcmp - found
      -- Looking for bfill
      -- Looking for bfill - not found
      -- Looking for bmove
      -- Looking for bmove - not found
      -- Looking for bzero
      -- Looking for bzero - found
      -- Looking for clock_gettime
      -- Looking for clock_gettime - found
      -- Looking for compress
      -- Looking for compress - not found
      -- Looking for crypt
      -- Looking for crypt - not found
      -- Looking for dlerror
      -- Looking for dlerror - not found
      -- Looking for dlopen
      -- Looking for dlopen - not found
      -- Looking for fchmod
      -- Looking for fchmod - found
      -- Looking for fcntl
      -- Looking for fcntl - found
      -- Looking for fconvert
      -- Looking for fconvert - not found
      -- Looking for fdatasync
      -- Looking for fdatasync - found
      -- Looking for fesetround
      -- Looking for fesetround - not found
      -- Looking for finite
      -- Looking for finite - found
      -- Looking for fseeko
      -- Looking for fseeko - found
      -- Looking for fsync
      -- Looking for fsync - found
      -- Looking for getaddrinfo
      -- Looking for getaddrinfo - found
      -- Looking for getcwd
      -- Looking for getcwd - found
      -- Looking for gethostbyaddr_r
      -- Looking for gethostbyaddr_r - found
      -- Looking for gethostbyname_r
      -- Looking for gethostbyname_r - found
      -- Looking for gethrtime
      -- Looking for gethrtime - not found
      -- Looking for getnameinfo
      -- Looking for getnameinfo - found
      -- Looking for getpagesize
      -- Looking for getpagesize - found
      -- Looking for getpass
      -- Looking for getpass - found
      -- Looking for getpassphrase
      -- Looking for getpassphrase - not found
      -- Looking for getpwnam
      -- Looking for getpwnam - found
      -- Looking for getpwuid
      -- Looking for getpwuid - found
      -- Looking for getrlimit
      -- Looking for getrlimit - found
      -- Looking for getrusage
      -- Looking for getrusage - found
      -- Looking for getwd
      -- Looking for getwd - found
      -- Looking for gmtime_r
      -- Looking for gmtime_r - found
      -- Looking for initgroups
      -- Looking for initgroups - found
      -- Looking for ldiv
      -- Looking for ldiv - found
      -- Looking for localtime_r
      -- Looking for localtime_r - found
      -- Looking for log2
      -- Looking for log2 - not found
      -- Looking for longjmp
      -- Looking for longjmp - found
      -- Looking for lstat
      -- Looking for lstat - found
      -- Looking for madvise
      -- Looking for madvise - found
      -- Looking for mallinfo
      -- Looking for mallinfo - found
      -- Looking for memalign
      -- Looking for memalign - found
      -- Looking for memcpy
      -- Looking for memcpy - found
      -- Looking for memmove
      -- Looking for memmove - found
      -- Looking for mkstemp
      -- Looking for mkstemp - found
      -- Looking for mlock
      -- Looking for mlock - found
      -- Looking for mlockall
      -- Looking for mlockall - found
      -- Looking for mmap
      -- Looking for mmap - found
      -- Looking for mmap64
      -- Looking for mmap64 - found
      -- Looking for perror
      -- Looking for perror - found
      -- Looking for poll
      -- Looking for poll - found
      -- Looking for pread
      -- Looking for pread - found
      -- Looking for pthread_attr_create
      -- Looking for pthread_attr_create - not found
      -- Looking for pthread_attr_getstacksize
      -- Looking for pthread_attr_getstacksize - not found
      -- Looking for pthread_attr_setprio
      -- Looking for pthread_attr_setprio - not found
      -- Looking for pthread_attr_setschedparam
      -- Looking for pthread_attr_setschedparam - found
      -- Looking for pthread_attr_setscope
      -- Looking for pthread_attr_setscope - found
      -- Looking for pthread_attr_setstacksize
      -- Looking for pthread_attr_setstacksize - not found
      -- Looking for pthread_condattr_create
      -- Looking for pthread_condattr_create - not found
      -- Looking for pthread_init
      -- Looking for pthread_init - not found
      -- Looking for pthread_key_delete
      -- Looking for pthread_key_delete - not found
      -- Looking for pthread_kill
      -- Looking for pthread_kill - not found
      -- Looking for pthread_rwlock_rdlock
      -- Looking for pthread_rwlock_rdlock - not found
      -- Looking for pthread_setprio_np
      -- Looking for pthread_setprio_np - not found
      -- Looking for pthread_setschedparam
      -- Looking for pthread_setschedparam - found
      -- Looking for pthread_sigmask
      -- Looking for pthread_sigmask - not found
      -- Looking for pthread_threadmask
      -- Looking for pthread_threadmask - not found
      -- Looking for pthread_yield_np
      -- Looking for pthread_yield_np - not found
      -- Looking for readdir_r
      -- Looking for readdir_r - found
      -- Looking for readlink
      -- Looking for readlink - found
      -- Looking for realpath
      -- Looking for realpath - found
      -- Looking for rename
      -- Looking for rename - found
      -- Looking for sched_yield
      -- Looking for sched_yield - found
      -- Looking for select
      -- Looking for select - found
      -- Looking for setfd
      -- Looking for setfd - not found
      -- Looking for setfilepointer
      -- Looking for setfilepointer - not found
      -- Looking for sigaction
      -- Looking for sigaction - found
      -- Looking for sigthreadmask
      -- Looking for sigthreadmask - not found
      -- Looking for sigwait
      -- Looking for sigwait - found
      -- Looking for sleep
      -- Looking for sleep - found
      -- Looking for snprintf
      -- Looking for snprintf - found
      -- Looking for stpcpy
      -- Looking for stpcpy - found
      -- Looking for strerror
      -- Looking for strerror - found
      -- Looking for strlcpy
      -- Looking for strlcpy - not found
      -- Looking for strnlen
      -- Looking for strnlen - found
      -- Looking for strpbrk
      -- Looking for strpbrk - found
      -- Looking for strsep
      -- Looking for strsep - found
      -- Looking for strstr
      -- Looking for strstr - found
      -- Looking for strtok_r
      -- Looking for strtok_r - found
      -- Looking for strtol
      -- Looking for strtol - found
      -- Looking for strtoll
      -- Looking for strtoll - found
      -- Looking for strtoul
      -- Looking for strtoul - found
      -- Looking for strtoull
      -- Looking for strtoull - found
      -- Looking for tell
      -- Looking for tell - not found
      -- Looking for thr_setconcurrency
      -- Looking for thr_setconcurrency - not found
      -- Looking for thr_yield
      -- Looking for thr_yield - not found
      -- Looking for vasprintf
      -- Looking for vasprintf - found
      -- Looking for vsnprintf
      -- Looking for vsnprintf - found
      -- Check size of sigset_t
      -- Check size of sigset_t - done
      -- Check size of char
      -- Check size of char - done
      -- Check size of char *
      -- Check size of char * - done
      -- Check size of short
      -- Check size of short - done
      -- Check size of int
      -- Check size of int - done
      -- Check size of long
      -- Check size of long - done
      -- Check size of long long
      -- Check size of long long - done
      -- Check size of size_t
      -- Check size of size_t - done
      -- Check size of off_t
      -- Check size of off_t - done
      -- Check size of uchar
      -- Check size of uchar - failed
      -- Check size of uint
      -- Check size of uint - done
      -- Check size of ulong
      -- Check size of ulong - done
      -- Check size of int8
      -- Check size of int8 - failed
      -- Check size of uint8
      -- Check size of uint8 - failed
      -- Check size of int16
      -- Check size of int16 - failed
      -- Check size of uint16
      -- Check size of uint16 - failed
      -- Check size of int32
      -- Check size of int32 - failed
      -- Check size of uint32
      -- Check size of uint32 - failed
      -- Check size of u_int32_t
      -- Check size of u_int32_t - done
      -- Check size of int64
      -- Check size of int64 - failed
      -- Check size of uint64
      -- Check size of uint64 - failed
      -- Check size of socklen_t
      -- Check size of socklen_t - failed
      -- Performing Test IS_VOID_SIGNAL
      -- Performing Test IS_VOID_SIGNAL - Success
      -- Performing Test IS_VOID_QSORT
      -- Performing Test IS_VOID_QSORT - Success
      -- Performing Test SOCKET_SIZE_FOUND_socklen_t
      -- Performing Test SOCKET_SIZE_FOUND_socklen_t - Success
      -- Found OpenSSL: /usr/lib64/libssl.so;/usr/lib64/libcrypto.so (found version "1.0.1e") 
      -- Found ICONV: /usr/lib64/libc.so  
      -- Performing Test ICONV_SECOND_ARGUMENT_IS_CONST
      -- Performing Test ICONV_SECOND_ARGUMENT_IS_CONST - Success
      -- cerating certificates
      Generating a 1024 bit RSA private key
      ........................................................++++++
      ...............++++++
      writing new private key to 'server-key-enc.pem'
      -----
      writing RSA key
      Generating a 1024 bit RSA private key
      ............++++++
      .................................++++++
      writing new private key to 'client-key-enc.pem'
      -----
      writing RSA key
      -- MariaDB Connector/c configuration:
      -- CPack generation: TGZ
      -- SSL support: ON
      -- Experimental Sqlite support: 
      -- Zlib support: yes (using bundled zlib)
      -- Installation layout: RPM
      -- Include files will be installed in /usr/include/mariadb
      -- Libraries will be installed in /usr/lib/mariadb
      -- Binaries will be installed in /usr/bin
      -- Required: /usr/lib64/libc.so
      -- Configuring done
      -- Generating done
      -- Build files have been written to: /home/ozlabs/build-mariadb-connector-c
       
      make
       
      [ 66%] Building C object libmariadb/CMakeFiles/mariadb_obj.dir/my_stmt.c.o                                                                                                                    
      Building C object libmariadb/CMakeFiles/mariadb_obj.dir/my_stmt_codec.c.o                                                                                                                     
      [ 68%] [ 68%] [ 68%] Building C object libmariadb/CMakeFiles/mariadb_obj.dir/client_plugin.c.o
      In file included from /home/ozlabs/mariadb-connector-c/libmariadb/my_stmt_codec.c:46:0:
      /home/ozlabs/mariadb-connector-c/libmariadb/my_stmt_codec.c: In function ‘convert_from_long’:
      /home/ozlabs/mariadb-connector-c/include/my_global.h:928:31: warning: dereferencing ‘void *’ pointer [enabled by default]
       #define float4store(T,A) do { *(T)= ((uchar *) &A)[3];\
                                     ^
      /home/ozlabs/mariadb-connector-c/libmariadb/my_stmt_codec.c:361:7: note: in expansion of macro ‘float4store’
             float4store(r_param->buffer, fval);
             ^
      /home/ozlabs/mariadb-connector-c/libmariadb/my_stmt_codec.c:361:7: error: invalid use of void expression
      In file included from /home/ozlabs/mariadb-connector-c/libmariadb/my_stmt_codec.c:46:0:
      /home/ozlabs/mariadb-connector-c/include/my_global.h:929:31: warning: dereferencing ‘void *’ pointer [enabled by default]
                                     *((T)+1)=(char) ((uchar *) &A)[2];\
                                     ^
      /home/ozlabs/mariadb-connector-c/libmariadb/my_stmt_codec.c:361:7: note: in expansion of macro ‘float4store’
             float4store(r_param->buffer, fval);
             ^
      /home/ozlabs/mariadb-connector-c/libmariadb/my_stmt_codec.c:361:7: error: invalid use of void expression
      In file included from /home/ozlabs/mariadb-connector-c/libmariadb/my_stmt_codec.c:46:0:
      /home/ozlabs/mariadb-connector-c/include/my_global.h:930:31: warning: dereferencing ‘void *’ pointer [enabled by default]
                                     *((T)+2)=(char) ((uchar *) &A)[1];\
                                     ^
      /home/ozlabs/mariadb-connector-c/libmariadb/my_stmt_codec.c:361:7: note: in expansion of macro ‘float4store’
             float4store(r_param->buffer, fval);
             ^
      /home/ozlabs/mariadb-connector-c/libmariadb/my_stmt_codec.c:361:7: error: invalid use of void expression
      Building C object libmariadb/CMakeFiles/mariadb_obj.dir/my_auth.c.o
      In file included from /home/ozlabs/mariadb-connector-c/libmariadb/my_stmt_codec.c:46:0:
      /home/ozlabs/mariadb-connector-c/include/my_global.h:931:31: warning: dereferencing ‘void *’ pointer [enabled by default]
                                     *((T)+3)=(char) ((uchar *) &A)[0]; } while(0)
                                     ^
      /home/ozlabs/mariadb-connector-c/libmariadb/my_stmt_codec.c:361:7: note: in expansion of macro ‘float4store’
             float4store(r_param->buffer, fval);
             ^
      /home/ozlabs/mariadb-connector-c/libmariadb/my_stmt_codec.c:361:7: error: invalid use of void expression
      Building C object libmariadb/CMakeFiles/mariadb_obj.dir/ma_secure.c.o
      make[2]: *** [libmariadb/CMakeFiles/mariadb_obj.dir/my_stmt_codec.c.o] Error 1
      make[2]: *** Waiting for unfinished jobs....
      make[1]: *** [libmariadb/CMakeFiles/mariadb_obj.dir/all] Error 2
      make: *** [all] Error 2
      

      Attachments

        Activity

          People

            georg Georg Richter
            danblack Daniel Black
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.