Menu

Installing/compiling X11-Basic on a Mac

Anonymous
2016-03-23
2019-06-13
1 2 > >> (Page 1 of 2)
  • Anonymous

    Anonymous - 2016-03-23

    Hi, I was trying to install X11 Basic on a Mac, but i got several errors during "make".
    Is there a wiki about the installing?

     
  • Markus Hoffmann

    Markus Hoffmann - 2016-03-27

    No, not that I am aware of. What errors do you get?

     
  • Anonymous

    Anonymous - 2016-06-08

    I try a simple ./configure and make

    During configure I got error for a different place OSX places X11, I fixed.
    During make I got errors for linux/fb.h missing. I comment to continue.
    I still got errors like:

    io.c:133:10: error: redefinition of 'timespec'
      struct timespec {
             ^
    [...] more errors removed.
    

    and it ends with:

    make: *** [libx11basic.so.1.24] Error 1

     

    Last edit: Markus Hoffmann 2016-06-10
  • Markus Hoffmann

    Markus Hoffmann - 2016-06-09

    Hm, can you post the config.log file? It looks like you are not using gcc, right? So lets walk through the errors and fix them. The first is, that the X11-environment was not found (therefore it tries to ask for a framebuffer device, missing linux/fb.h).

     
  • Anonymous

    Anonymous - 2016-06-09
    This file contains any messages produced by compilers while
    running configure, to aid debugging if configure makes a mistake.
    
    It was created by X11-Basic configure 1.24, which was
    generated by GNU Autoconf 2.69.  Invocation command line was
    
      $ ./configure 
    
    ## --------- ##
    ## Platform. ##
    ## --------- ##
    
    hostname = lavorillo-2.local
    uname -m = x86_64
    uname -r = 14.4.0
    uname -s = Darwin
    uname -v = Darwin Kernel Version 14.4.0: Thu May 28 11:35:04 PDT 2015; root:xnu-2782.30.5~1/RELEASE_X86_64
    
    /usr/bin/uname -p = i386
    /bin/uname -X     = unknown
    
    /bin/arch              = unknown
    /usr/bin/arch -k       = unknown
    /usr/convex/getsysinfo = unknown
    /usr/bin/hostinfo      = Mach kernel version:
         Darwin Kernel Version 14.4.0: Thu May 28 11:35:04 PDT 2015; root:xnu-2782.30.5~1/RELEASE_X86_64
    Kernel configured for up to 4 processors.
    2 processors are physically available.
    4 processors are logically available.
    Processor type: x86_64h (Intel x86-64h Haswell)
    Processors active: 0 1 2 3
    Primary memory available: 4.00 gigabytes
    Default processor set: 228 tasks, 988 threads, 4 processors
    Load average: 1.63, Mach factor: 2.35
    /bin/machine           = unknown
    /usr/bin/oslevel       = unknown
    /bin/universe          = unknown
    
    PATH: /usr/local/bin
    PATH: /usr/bin
    PATH: /bin
    PATH: /usr/sbin
    PATH: /sbin
    PATH: /opt/X11/bin
    
    ## ----------- ##
    ## Core tests. ##
    ## ----------- ##
    
    configure:2260: checking for xbasic
    configure:2288: result: no
    configure:2352: checking for gcc
    configure:2368: found /usr/bin/gcc
    configure:2379: result: gcc
    configure:2608: checking for C compiler version
    configure:2617: gcc --version >&5
    Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
    Target: x86_64-apple-darwin14.4.0
    Thread model: posix
    Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
    configure:2628: $? = 0
    configure:2617: gcc -v >&5
    Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
    Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
    Target: x86_64-apple-darwin14.4.0
    Thread model: posix
    configure:2628: $? = 0
    configure:2617: gcc -V >&5
    clang: error: argument to '-V' is missing (expected 1 value)
    clang: error: no input files
    configure:2628: $? = 1
    configure:2617: gcc -qversion >&5
    clang: error: unknown argument: '-qversion'
    clang: error: no input files
    configure:2628: $? = 1
    configure:2648: checking whether the C compiler works
    configure:2670: gcc    conftest.c  >&5
    configure:2674: $? = 0
    configure:2722: result: yes
    configure:2725: checking for C compiler default output file name
    configure:2727: result: a.out
    configure:2733: checking for suffix of executables
    configure:2740: gcc -o conftest    conftest.c  >&5
    configure:2744: $? = 0
    configure:2766: result: 
    configure:2788: checking whether we are cross compiling
    configure:2796: gcc -o conftest    conftest.c  >&5
    configure:2800: $? = 0
    configure:2807: ./conftest
    configure:2811: $? = 0
    configure:2826: result: no
    configure:2831: checking for suffix of object files
    configure:2853: gcc -c   conftest.c >&5
    configure:2857: $? = 0
    configure:2878: result: o
    configure:2882: checking whether we are using the GNU C compiler
    configure:2901: gcc -c   conftest.c >&5
    configure:2901: $? = 0
    configure:2910: result: yes
    configure:2919: checking whether gcc accepts -g
    configure:2939: gcc -c -g  conftest.c >&5
    configure:2939: $? = 0
    configure:2980: result: yes
    configure:2997: checking for gcc option to accept ISO C89
    configure:3060: gcc  -c -g -O2  conftest.c >&5
    configure:3060: $? = 0
    configure:3073: result: none needed
    configure:3094: checking whether ln -s works
    configure:3098: result: yes
    configure:3110: checking how to run the C preprocessor
    configure:3141: gcc -E  conftest.c
    configure:3141: $? = 0
    configure:3155: gcc -E  conftest.c
    conftest.c:9:10: fatal error: 'ac_nonexistent.h' file not found
    #include <ac_nonexistent.h>
             ^
    1 error generated.
    configure:3155: $? = 1
    configure: failed program was:
    | #include <ac_nonexistent.h>
    configure:3180: result: gcc -E
    configure:3200: gcc -E  conftest.c
    configure:3200: $? = 0
    configure:3214: gcc -E  conftest.c
    conftest.c:9:10: fatal error: 'ac_nonexistent.h' file not found
    #include <ac_nonexistent.h>
             ^
    1 error generated.
    configure:3214: $? = 1
    configure: failed program was:
    | #include <ac_nonexistent.h>
    configure:3244: checking for library containing strerror
    configure:3275: gcc -o conftest -g -O2   conftest.c  >&5
    conftest.c:16:6: warning: incompatible redeclaration of library function 'strerror' [-Wincompatible-library-redeclaration]
    char strerror ();
         ^
    conftest.c:16:6: note: 'strerror' is a builtin with type 'char *(int)'
    1 warning generated.
    configure:3275: $? = 0
    configure:3292: result: none required
    configure:3316: checking whether #! works in shell scripts
    configure:3333: result: yes
    configure:3347: checking for X
    configure:3455: gcc -E  conftest.c
    configure:3455: $? = 0
    configure:3486: gcc -o conftest -g -O2   conftest.c -lX11  >&5
    ld: library not found for -lX11
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    configure:3486: $? = 1
    configure: failed program was:
    | #include <X11/Xlib.h>
    | int
    | main ()
    | {
    | XrmInitialize ()
    |   ;
    |   return 0;
    | }
    configure:3536: result: libraries /usr/X11/lib, headers 
    configure:3556: checking whether -R must be followed by a space
    configure:3572: gcc -o conftest -g -O2   conftest.c  -R/usr/X11/lib >&5
    warning: unknown remark option '-R/usr/X11/lib' [-Wunknown-warning-option]
    1 warning generated.
    configure:3572: $? = 0
    configure: failed program was:
    | 
    | int
    | main ()
    | {
    | 
    |   ;
    |   return 0;
    | }
    configure:3589: gcc -o conftest -g -O2   conftest.c  -R /usr/X11/lib >&5
    warning: unknown remark option '-R' [-Wunknown-warning-option]
    1 warning generated.
    ld: can't map file, errno=22 file '/usr/X11/lib' for architecture x86_64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    configure:3589: $? = 1
    configure: failed program was:
    | 
    | int
    | main ()
    | {
    | 
    |   ;
    |   return 0;
    | }
    configure:3594: result: neither works
    configure:3635: gcc -o conftest -g -O2   conftest.c   -L/usr/X11/lib -lX11 >&5
    configure:3635: $? = 0
    configure:3733: checking for gethostbyname
    configure:3733: gcc -o conftest -g -O2   conftest.c  >&5
    configure:3733: $? = 0
    configure:3733: result: yes
    configure:3830: checking for connect
    configure:3830: gcc -o conftest -g -O2   conftest.c  >&5
    configure:3830: $? = 0
    configure:3830: result: yes
    configure:3879: checking for remove
    configure:3879: gcc -o conftest -g -O2   conftest.c  >&5
    configure:3879: $? = 0
    configure:3879: result: yes
    configure:3928: checking for shmat
    configure:3928: gcc -o conftest -g -O2   conftest.c  >&5
    configure:3928: $? = 0
    configure:3928: result: yes
    configure:3986: checking for IceConnectionNumber in -lICE
    configure:4011: gcc -o conftest -g -O2   -L/usr/X11/lib conftest.c -lICE   >&5
    configure:4011: $? = 0
    configure:4020: result: yes
    configure:4038: checking for dirent.h that defines DIR
    configure:4057: gcc -c -g -O2  conftest.c >&5
    configure:4057: $? = 0
    configure:4065: result: yes
    configure:4078: checking for library containing opendir
    configure:4109: gcc -o conftest -g -O2   conftest.c  >&5
    configure:4109: $? = 0
    configure:4126: result: none required
    configure:4193: checking for grep that handles long lines and -e
    configure:4251: result: /usr/bin/grep
    configure:4256: checking for egrep
    configure:4318: result: /usr/bin/grep -E
    configure:4323: checking for ANSI C header files
    configure:4343: gcc -c -g -O2  conftest.c >&5
    configure:4343: $? = 0
    configure:4416: gcc -o conftest -g -O2   conftest.c  >&5
    configure:4416: $? = 0
    configure:4416: ./conftest
    configure:4416: $? = 0
    configure:4427: result: yes
    configure:4440: checking for sys/types.h
    configure:4440: gcc -c -g -O2  conftest.c >&5
    configure:4440: $? = 0
    configure:4440: result: yes
    configure:4440: checking for sys/stat.h
    configure:4440: gcc -c -g -O2  conftest.c >&5
    configure:4440: $? = 0
    configure:4440: result: yes
    configure:4440: checking for stdlib.h
    configure:4440: gcc -c -g -O2  conftest.c >&5
    configure:4440: $? = 0
    configure:4440: result: yes
    configure:4440: checking for string.h
    configure:4440: gcc -c -g -O2  conftest.c >&5
    configure:4440: $? = 0
    configure:4440: result: yes
    configure:4440: checking for memory.h
    configure:4440: gcc -c -g -O2  conftest.c >&5
    configure:4440: $? = 0
    configure:4440: result: yes
    configure:4440: checking for strings.h
    configure:4440: gcc -c -g -O2  conftest.c >&5
    configure:4440: $? = 0
    configure:4440: result: yes
    configure:4440: checking for inttypes.h
    configure:4440: gcc -c -g -O2  conftest.c >&5
    configure:4440: $? = 0
    configure:4440: result: yes
    configure:4440: checking for stdint.h
    configure:4440: gcc -c -g -O2  conftest.c >&5
    configure:4440: $? = 0
    configure:4440: result: yes
    configure:4440: checking for unistd.h
    configure:4440: gcc -c -g -O2  conftest.c >&5
    configure:4440: $? = 0
    configure:4440: result: yes
    configure:4455: checking sys/kd.h usability
    configure:4455: gcc -c -g -O2  conftest.c >&5
    conftest.c:53:10: fatal error: 'sys/kd.h' file not found
    #include <sys/kd.h>
             ^
    1 error generated.
    configure:4455: $? = 1
    configure: failed program was:
    | #include <stdio.h>
    | #ifdef HAVE_SYS_TYPES_H
    | # include <sys/types.h>
    | #endif
    | #ifdef HAVE_SYS_STAT_H
    | # include <sys/stat.h>
    | #endif
    | #ifdef STDC_HEADERS
    | # include <stdlib.h>
    | # include <stddef.h>
    | #else
    | # ifdef HAVE_STDLIB_H
    | #  include <stdlib.h>
    | # endif
    | #endif
    | #ifdef HAVE_STRING_H
    | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
    | #  include <memory.h>
    | # endif
    | # include <string.h>
    | #endif
    | #ifdef HAVE_STRINGS_H
    | # include <strings.h>
    | #endif
    | #ifdef HAVE_INTTYPES_H
    | # include <inttypes.h>
    | #endif
    | #ifdef HAVE_STDINT_H
    | # include <stdint.h>
    | #endif
    | #ifdef HAVE_UNISTD_H
    | # include <unistd.h>
    | #endif
    | #include <sys/kd.h>
    configure:4455: result: no
    configure:4455: checking sys/kd.h presence
    configure:4455: gcc -E  conftest.c
    conftest.c:20:10: fatal error: 'sys/kd.h' file not found
    #include <sys/kd.h>
             ^
    1 error generated.
    configure:4455: $? = 1
    configure: failed program was:
    | #include <sys/kd.h>
    configure:4455: result: no
    configure:4455: checking for sys/kd.h
    configure:4455: result: no
    configure:4455: checking complex.h usability
    configure:4455: gcc -c -g -O2  conftest.c >&5
    configure:4455: $? = 0
    configure:4455: result: yes
    configure:4455: checking complex.h presence
    configure:4455: gcc -E  conftest.c
    configure:4455: $? = 0
    configure:4455: result: yes
    configure:4455: checking for complex.h
    configure:4455: result: yes
    configure:4455: checking png.h usability
    configure:4455: gcc -c -g -O2  conftest.c >&5
    configure:4455: $? = 0
    configure:4455: result: yes
    configure:4455: checking png.h presence
    configure:4455: gcc -E  conftest.c
    configure:4455: $? = 0
    configure:4455: result: yes
    configure:4455: checking for png.h
    configure:4455: result: yes
    configure:4455: checking jpeglib.h usability
    configure:4455: gcc -c -g -O2  conftest.c >&5
    configure:4455: $? = 0
    configure:4455: result: yes
    configure:4455: checking jpeglib.h presence
    configure:4455: gcc -E  conftest.c
    configure:4455: $? = 0
    configure:4455: result: yes
    configure:4455: checking for jpeglib.h
    configure:4455: result: yes
    configure:4455: checking pty.h usability
    configure:4455: gcc -c -g -O2  conftest.c >&5
    conftest.c:56:10: fatal error: 'pty.h' file not found
    #include <pty.h>
             ^
    1 error generated.
    configure:4455: $? = 1
    configure: failed program was:
    | #include <stdio.h>
    | #ifdef HAVE_SYS_TYPES_H
    | # include <sys/types.h>
    | #endif
    | #ifdef HAVE_SYS_STAT_H
    | # include <sys/stat.h>
    | #endif
    | #ifdef STDC_HEADERS
    | # include <stdlib.h>
    | # include <stddef.h>
    | #else
    | # ifdef HAVE_STDLIB_H
    | #  include <stdlib.h>
    | # endif
    | #endif
    | #ifdef HAVE_STRING_H
    | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
    | #  include <memory.h>
    | # endif
    | # include <string.h>
    | #endif
    | #ifdef HAVE_STRINGS_H
    | # include <strings.h>
    | #endif
    | #ifdef HAVE_INTTYPES_H
    | # include <inttypes.h>
    | #endif
    | #ifdef HAVE_STDINT_H
    | # include <stdint.h>
    | #endif
    | #ifdef HAVE_UNISTD_H
    | # include <unistd.h>
    | #endif
    | #include <pty.h>
    configure:4455: result: no
    configure:4455: checking pty.h presence
    configure:4455: gcc -E  conftest.c
    conftest.c:23:10: fatal error: 'pty.h' file not found
    #include <pty.h>
             ^
    1 error generated.
    configure:4455: $? = 1
    configure: failed program was:
    | #include <pty.h>
    configure:4455: result: no
    configure:4455: checking for pty.h
    configure:4455: result: no
    configure:4455: checking errno.h usability
    configure:4455: gcc -c -g -O2  conftest.c >&5
    configure:4455: $? = 0
    configure:4455: result: yes
    configure:4455: checking errno.h presence
    configure:4455: gcc -E  conftest.c
    configure:4455: $? = 0
    configure:4455: result: yes
    configure:4455: checking for errno.h
    configure:4455: result: yes
    configure:4455: checking fcntl.h usability
    configure:4455: gcc -c -g -O2  conftest.c >&5
    configure:4455: $? = 0
    configure:4455: result: yes
    configure:4455: checking fcntl.h presence
    configure:4455: gcc -E  conftest.c
    configure:4455: $? = 0
    configure:4455: result: yes
    configure:4455: checking for fcntl.h
    configure:4455: result: yes
    configure:4455: checking limits.h usability
    configure:4455: gcc -c -g -O2  conftest.c >&5
    configure:4455: $? = 0
    configure:4455: result: yes
    configure:4455: checking limits.h presence
    configure:4455: gcc -E  conftest.c
    configure:4455: $? = 0
    configure:4455: result: yes
    configure:4455: checking for limits.h
    configure:4455: result: yes
    configure:4455: checking netdb.h usability
    configure:4455: gcc -c -g -O2  conftest.c >&5
    configure:4455: $? = 0
    configure:4455: result: yes
    configure:4455: checking netdb.h presence
    configure:4455: gcc -E  conftest.c
    configure:4455: $? = 0
    configure:4455: result: yes
    configure:4455: checking for netdb.h
    configure:4455: result: yes
    configure:4455: checking netinet/in.h usability
    configure:4455: gcc -c -g -O2  conftest.c >&5
    configure:4455: $? = 0
    configure:4455: result: yes
    configure:4455: checking netinet/in.h presence
    configure:4455: gcc -E  conftest.c
    configure:4455: $? = 0
    configure:4455: result: yes
    configure:4455: checking for netinet/in.h
    configure:4455: result: yes
    configure:4455: checking stddef.h usability
    configure:4455: gcc -c -g -O2  conftest.c >&5
    configure:4455: $? = 0
    configure:4455: result: yes
    configure:4455: checking stddef.h presence
    configure:4455: gcc -E  conftest.c
    configure:4455: $? = 0
    configure:4455: result: yes
    configure:4455: checking for stddef.h
    configure:4455: result: yes
    configure:4455: checking for stdlib.h
    configure:4455: result: yes
    configure:4455: checking for string.h
    configure:4455: result: yes
    configure:4455: checking sys/file.h usability
    configure:4455: gcc -c -g -O2  conftest.c >&5
    configure:4455: $? = 0
    configure:4455: result: yes
    configure:4455: checking sys/file.h presence
    configure:4455: gcc -E  conftest.c
    configure:4455: $? = 0
    configure:4455: result: yes
    configure:4455: checking for sys/file.h
    configure:4455: result: yes
    configure:4455: checking sys/ioctl.h usability
    configure:4455: gcc -c -g -O2  conftest.c >&5
    configure:4455: $? = 0
    configure:4455: result: yes
    configure:4455: checking sys/ioctl.h presence
    configure:4455: gcc -E  conftest.c
    configure:4455: $? = 0
    configure:4455: result: yes
    configure:4455: checking for sys/ioctl.h
    configure:4455: result: yes
    configure:4455: checking sys/param.h usability
    configure:4455: gcc -c -g -O2  conftest.c >&5
    configure:4455: $? = 0
    configure:4455: result: yes
    configure:4455: checking sys/param.h presence
    configure:4455: gcc -E  conftest.c
    configure:4455: $? = 0
    configure:4455: result: yes
    configure:4455: checking for sys/param.h
    configure:4455: result: yes
    configure:4455: checking sys/socket.h usability
    configure:4455: gcc -c -g -O2  conftest.c >&5
    configure:4455: $? = 0
    configure:4455: result: yes
    configure:4455: checking sys/socket.h presence
    configure:4455: gcc -E  conftest.c
    configure:4455: $? = 0
    configure:4455: result: yes
    configure:4455: checking for sys/socket.h
    configure:4455: result: yes
    configure:4455: checking sys/time.h usability
    configure:4455: gcc -c -g -O2  conftest.c >&5
    configure:4455: $? = 0
    configure:4455: result: yes
    configure:4455: checking sys/time.h presence
    configure:4455: gcc -E  conftest.c
    configure:4455: $? = 0
    configure:4455: result: yes
    configure:4455: checking for sys/time.h
    configure:4455: result: yes
    configure:4455: checking sys/timeb.h usability
    configure:4455: gcc -c -g -O2  conftest.c >&5
    configure:4455: $? = 0
    configure:4455: result: yes
    configure:4455: checking sys/timeb.h presence
    configure:4455: gcc -E  conftest.c
    configure:4455: $? = 0
    configure:4455: result: yes
    configure:4455: checking for sys/timeb.h
    configure:4455: result: yes
    configure:4455: checking termios.h usability
    configure:4455: gcc -c -g -O2  conftest.c >&5
    configure:4455: $? = 0
    configure:4455: result: yes
    configure:4455: checking termios.h presence
    configure:4455: gcc -E  conftest.c
    configure:4455: $? = 0
    configure:4455: result: yes
    configure:4455: checking for termios.h
    configure:4455: result: yes
    configure:4455: checking for unistd.h
    configure:4455: result: yes
    configure:4455: checking utime.h usability
    configure:4455: gcc -c -g -O2  conftest.c >&5
    configure:4455: $? = 0
    configure:4455: result: yes
    configure:4455: checking utime.h presence
    configure:4455: gcc -E  conftest.c
    configure:4455: $? = 0
    configure:4455: result: yes
    configure:4455: checking for utime.h
    configure:4455: result: yes
    configure:4470: checking for XOpenDisplay in -lX11
    configure:4495: gcc -o conftest -g -O2   conftest.c -lX11  -L/usr/X11/lib  >&5
    configure:4495: $? = 0
    configure:4504: result: yes
    configure:4511: checking for dlopen in -ldl
    configure:4536: gcc -o conftest -g -O2   conftest.c -ldl   >&5
    configure:4536: $? = 0
    configure:4545: result: yes
    configure:4560: checking for sin in -lm
    configure:4585: gcc -o conftest -g -O2   conftest.c -lm   >&5
    conftest.c:49:6: warning: incompatible redeclaration of library function 'sin' [-Wincompatible-library-redeclaration]
    char sin ();
         ^
    conftest.c:49:6: note: 'sin' is a builtin with type 'double (double)'
    1 warning generated.
    configure:4585: $? = 0
    configure:4594: result: yes
    configure:4600: checking for floor in -lm
    configure:4625: gcc -o conftest -g -O2   conftest.c -lm   >&5
    conftest.c:49:6: warning: incompatible redeclaration of library function 'floor' [-Wincompatible-library-redeclaration]
    char floor ();
         ^
    conftest.c:49:6: note: 'floor' is a builtin with type 'double (double)'
    1 warning generated.
    configure:4625: $? = 0
    configure:4634: result: yes
    configure:4642: checking for logb in -lm
    configure:4667: gcc -o conftest -g -O2   conftest.c -lm   >&5
    conftest.c:50:6: warning: incompatible redeclaration of library function 'logb' [-Wincompatible-library-redeclaration]
    char logb ();
         ^
    conftest.c:50:6: note: 'logb' is a builtin with type 'double (double)'
    1 warning generated.
    configure:4667: $? = 0
    configure:4676: result: yes
    configure:4684: checking for sqrt in -lm
    configure:4709: gcc -o conftest -g -O2   conftest.c -lm   >&5
    conftest.c:51:6: warning: incompatible redeclaration of library function 'sqrt' [-Wincompatible-library-redeclaration]
    char sqrt ();
         ^
    conftest.c:51:6: note: 'sqrt' is a builtin with type 'double (double)'
    1 warning generated.
    configure:4709: $? = 0
    configure:4718: result: yes
    configure:4726: checking for pow in -lm
    configure:4751: gcc -o conftest -g -O2   conftest.c -lm   >&5
    conftest.c:52:6: warning: incompatible redeclaration of library function 'pow' [-Wincompatible-library-redeclaration]
    char pow ();
         ^
    conftest.c:52:6: note: 'pow' is a builtin with type 'double (double, double)'
    1 warning generated.
    configure:4751: $? = 0
    configure:4760: result: yes
    configure:4768: checking for expm1 in -lm
    configure:4793: gcc -o conftest -g -O2   conftest.c -lm   >&5
    conftest.c:53:6: warning: incompatible redeclaration of library function 'expm1' [-Wincompatible-library-redeclaration]
    char expm1 ();
         ^
    conftest.c:53:6: note: 'expm1' is a builtin with type 'double (double)'
    1 warning generated.
    configure:4793: $? = 0
    configure:4802: result: yes
    configure:4810: checking for clog10 in -lm
    configure:4835: gcc -o conftest -g -O2   conftest.c -lm   >&5
    Undefined symbols for architecture x86_64:
      "_clog10", referenced from:
          _main in conftest-a6dcc7.o
    ld: symbol(s) not found for architecture x86_64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    configure:4835: $? = 1
    configure: failed program was:
    | 
    | /* Override any GCC internal prototype to avoid an error.
    |    Use char because int might match the return type of a GCC
    |    builtin and then its argument prototype would still apply.  */
    | #ifdef __cplusplus
    | extern "C"
    | #endif
    | char clog10 ();
    | int
    | main ()
    | {
    | return clog10 ();
    |   ;
    |   return 0;
    | }
    configure:4844: result: no
    configure:4852: checking for cacos in -lm
    configure:4877: gcc -o conftest -g -O2   conftest.c -lm   >&5
    conftest.c:54:6: warning: incompatible redeclaration of library function 'cacos' [-Wincompatible-library-redeclaration]
    char cacos ();
         ^
    conftest.c:54:6: note: 'cacos' is a builtin with type '_Complex double (_Complex double)'
    1 warning generated.
    configure:4877: $? = 0
    configure:4886: result: yes
    configure:4894: checking for log1p in -lm
    configure:4919: gcc -o conftest -g -O2   conftest.c -lm   >&5
    conftest.c:55:6: warning: incompatible redeclaration of library function 'log1p' [-Wincompatible-library-redeclaration]
    char log1p ();
         ^
    conftest.c:55:6: note: 'log1p' is a builtin with type 'double (double)'
    1 warning generated.
    configure:4919: $? = 0
    configure:4928: result: yes
    configure:4944: checking for pthread_create in -lpthread
    configure:4969: gcc -o conftest -g -O2   conftest.c -lpthread   >&5
    configure:4969: $? = 0
    configure:4978: result: yes
    configure:4986: checking for snd_pcm_recover in -lasound
    configure:5011: gcc -o conftest -g -O2   conftest.c -lasound  -ldl -lm -lpthread  >&5
    ld: library not found for -lasound
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    configure:5011: $? = 1
    configure: failed program was:
    | 
    | /* Override any GCC internal prototype to avoid an error.
    |    Use char because int might match the return type of a GCC
    |    builtin and then its argument prototype would still apply.  */
    | #ifdef __cplusplus
    | extern "C"
    | #endif
    | char snd_pcm_recover ();
    | int
    | main ()
    | {
    | return snd_pcm_recover ();
    |   ;
    |   return 0;
    | }
    configure:5020: result: no
    configure:5045: checking for forkpty in -lutil
    configure:5070: gcc -o conftest -g -O2   conftest.c -lutil  -ldl -lm -lpthread  >&5
    configure:5070: $? = 0
    configure:5079: result: yes
    configure:5092: checking for readline in -lreadline
    configure:5117: gcc -o conftest -g -O2   conftest.c -lreadline  -ldl -lm -lpthread -lutil  >&5
    configure:5117: $? = 0
    configure:5126: result: yes
    configure:5140: checking for dgelss_ in -llapack
    configure:5165: gcc -o conftest -g -O2   conftest.c -llapack  -ldl -lm -lpthread -lutil -lreadline  >&5
    configure:5165: $? = 0
    configure:5174: result: yes
    configure:5187: checking for __gmpz_init in -lgmp
    configure:5212: gcc -o conftest -g -O2   conftest.c -lgmp  -ldl -lm -lpthread -lutil -lreadline -llapack  >&5
    ld: library not found for -lgmp
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    configure:5212: $? = 1
    configure: failed program was:
    | 
    | /* Override any GCC internal prototype to avoid an error.
    |    Use char because int might match the return type of a GCC
    |    builtin and then its argument prototype would still apply.  */
    | #ifdef __cplusplus
    | extern "C"
    | #endif
    | char __gmpz_init ();
    | int
    | main ()
    | {
    | return __gmpz_init ();
    |   ;
    |   return 0;
    | }
    configure:5221: result: no
    configure:5234: checking for __gmpz_primorial_ui in -lgmp
    configure:5259: gcc -o conftest -g -O2   conftest.c -lgmp  -ldl -lm -lpthread -lutil -lreadline -llapack  >&5
    ld: library not found for -lgmp
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    configure:5259: $? = 1
    configure: failed program was:
    | 
    | /* Override any GCC internal prototype to avoid an error.
    |    Use char because int might match the return type of a GCC
    |    builtin and then its argument prototype would still apply.  */
    | #ifdef __cplusplus
    | extern "C"
    | #endif
    | char __gmpz_primorial_ui ();
    | int
    | main ()
    | {
    | return __gmpz_primorial_ui ();
    |   ;
    |   return 0;
    | }
    configure:5268: result: no
    configure:5281: checking for usb_open in -lusb
    configure:5306: gcc -o conftest -g -O2   conftest.c -lusb  -ldl -lm -lpthread -lutil -lreadline -llapack  >&5
    ld: library not found for -lusb
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    configure:5306: $? = 1
    configure: failed program was:
    | 
    | /* Override any GCC internal prototype to avoid an error.
    |    Use char because int might match the return type of a GCC
    |    builtin and then its argument prototype would still apply.  */
    | #ifdef __cplusplus
    | extern "C"
    | #endif
    | char usb_open ();
    | int
    | main ()
    | {
    | return usb_open ();
    |   ;
    |   return 0;
    | }
    configure:5315: result: no
    configure:5341: checking for SDL_MapRGB in -lSDL
    configure:5366: gcc -o conftest -g -O2   conftest.c -lSDL   >&5
    configure:5366: $? = 0
    configure:5375: result: yes
    configure:5383: checking for hlineRGBA in -lSDL_gfx
    configure:5408: gcc -o conftest -g -O2   conftest.c -lSDL_gfx   >&5
    configure:5408: $? = 0
    configure:5417: result: yes
    configure:5429: checking for _SystemCycle in -ltine
    configure:5454: gcc -o conftest -g -O2   conftest.c -ltine  -lm  >&5
    ld: library not found for -ltine
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    configure:5454: $? = 1
    configure: failed program was:
    | 
    | /* Override any GCC internal prototype to avoid an error.
    |    Use char because int might match the return type of a GCC
    |    builtin and then its argument prototype would still apply.  */
    | #ifdef __cplusplus
    | extern "C"
    | #endif
    | char _SystemCycle ();
    | int
    | main ()
    | {
    | return _SystemCycle ();
    |   ;
    |   return 0;
    | }
    configure:5463: result: no
    configure:5472: checking for eq_int in -lDOOCSclient
    configure:5497: gcc -o conftest -g -O2   conftest.c -lDOOCSclient  -lm -lpthread -ltine  >&5
    ld: library not found for -lDOOCSclient
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    configure:5497: $? = 1
    configure: failed program was:
    | 
    | /* Override any GCC internal prototype to avoid an error.
    |    Use char because int might match the return type of a GCC
    |    builtin and then its argument prototype would still apply.  */
    | #ifdef __cplusplus
    | extern "C"
    | #endif
    | char eq_int ();
    | int
    | main ()
    | {
    | return eq_int ();
    |   ;
    |   return 0;
    | }
    configure:5506: result: no
    configure:5515: checking for main in -lvga
    configure:5534: gcc -o conftest -g -O2   conftest.c -lvga   >&5
    ld: library not found for -lvga
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    configure:5534: $? = 1
    configure: failed program was:
    | 
    | 
    | int
    | main ()
    | {
    | return main ();
    |   ;
    |   return 0;
    | }
    configure:5543: result: no
    configure:5569: gcc -o conftest -g -O2   conftest.c  >&5
    conftest.c:58:8: warning: incompatible pointer types passing 'void (int) __attribute__((noreturn))' to parameter of type 'void (*)(void)' [-Wincompatible-pointer-types]
    atexit(exit);
           ^~~~
    /usr/include/stdlib.h:130:20: note: passing argument to parameter here
    int      atexit(void (*)(void));
                           ^
    1 warning generated.
    configure:5569: $? = 0
    configure:5771: checking for an ANSI C-conforming const
    configure:5837: gcc -c -g -O2  conftest.c >&5
    configure:5837: $? = 0
    configure:5844: result: yes
    configure:5852: checking for off_t
    configure:5852: gcc -c -g -O2  conftest.c >&5
    configure:5852: $? = 0
    configure:5852: gcc -c -g -O2  conftest.c >&5
    conftest.c:90:20: error: expected expression
    if (sizeof ((off_t)))
                       ^
    1 error generated.
    configure:5852: $? = 1
    configure: failed program was:
    | #include <stdio.h>
    | #ifdef HAVE_SYS_TYPES_H
    | # include <sys/types.h>
    | #endif
    | #ifdef HAVE_SYS_STAT_H
    | # include <sys/stat.h>
    | #endif
    | #ifdef STDC_HEADERS
    | # include <stdlib.h>
    | # include <stddef.h>
    | #else
    | # ifdef HAVE_STDLIB_H
    | #  include <stdlib.h>
    | # endif
    | #endif
    | #ifdef HAVE_STRING_H
    | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
    | #  include <memory.h>
    | # endif
    | # include <string.h>
    | #endif
    | #ifdef HAVE_STRINGS_H
    | # include <strings.h>
    | #endif
    | #ifdef HAVE_INTTYPES_H
    | # include <inttypes.h>
    | #endif
    | #ifdef HAVE_STDINT_H
    | # include <stdint.h>
    | #endif
    | #ifdef HAVE_UNISTD_H
    | # include <unistd.h>
    | #endif
    | int
    | main ()
    | {
    | if (sizeof ((off_t)))
    |       return 0;
    |   ;
    |   return 0;
    | }
    configure:5852: result: yes
    configure:5863: checking for size_t
    configure:5863: gcc -c -g -O2  conftest.c >&5
    configure:5863: $? = 0
    configure:5863: gcc -c -g -O2  conftest.c >&5
    conftest.c:90:21: error: expected expression
    if (sizeof ((size_t)))
                        ^
    1 error generated.
    configure:5863: $? = 1
    configure: failed program was:
    | #include <stdio.h>
    | #ifdef HAVE_SYS_TYPES_H
    | # include <sys/types.h>
    | #endif
    | #ifdef HAVE_SYS_STAT_H
    | # include <sys/stat.h>
    | #endif
    | #ifdef STDC_HEADERS
    | # include <stdlib.h>
    | # include <stddef.h>
    | #else
    | # ifdef HAVE_STDLIB_H
    | #  include <stdlib.h>
    | # endif
    | #endif
    | #ifdef HAVE_STRING_H
    | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
    | #  include <memory.h>
    | # endif
    | # include <string.h>
    | #endif
    | #ifdef HAVE_STRINGS_H
    | # include <strings.h>
    | #endif
    | #ifdef HAVE_INTTYPES_H
    | # include <inttypes.h>
    | #endif
    | #ifdef HAVE_STDINT_H
    | # include <stdint.h>
    | #endif
    | #ifdef HAVE_UNISTD_H
    | # include <unistd.h>
    | #endif
    | int
    | main ()
    | {
    | if (sizeof ((size_t)))
    |       return 0;
    |   ;
    |   return 0;
    | }
    configure:5863: result: yes
    configure:5874: checking for struct stat.st_blocks
    configure:5874: gcc -c -g -O2  conftest.c >&5
    configure:5874: $? = 0
    configure:5874: result: yes
    configure:5894: checking whether time.h and sys/time.h may both be included
    configure:5914: gcc -c -g -O2  conftest.c >&5
    configure:5914: $? = 0
    configure:5921: result: yes
    configure:5929: checking whether struct tm is in sys/time.h or time.h
    configure:5949: gcc -c -g -O2  conftest.c >&5
    configure:5949: $? = 0
    configure:5956: result: time.h
    configure:5966: checking for error_at_line
    configure:5982: gcc -o conftest -g -O2   conftest.c  >&5
    conftest.c:57:10: fatal error: 'error.h' file not found
    #include <error.h>
             ^
    1 error generated.
    configure:5982: $? = 1
    configure: failed program was:
    | #include <error.h>
    | int
    | main ()
    | {
    | error_at_line (0, 0, "", 0, "an error occurred");
    |   ;
    |   return 0;
    | }
    configure:5990: result: no
    configure:6001: checking for working POSIX fnmatch
    configure:6034: gcc -o conftest -g -O2   conftest.c  >&5
    configure:6034: $? = 0
    configure:6034: ./conftest
    configure:6034: $? = 0
    configure:6044: result: yes
    configure:6053: checking for pid_t
    configure:6053: gcc -c -g -O2  conftest.c >&5
    configure:6053: $? = 0
    configure:6053: gcc -c -g -O2  conftest.c >&5
    conftest.c:94:20: error: expected expression
    if (sizeof ((pid_t)))
                       ^
    1 error generated.
    configure:6053: $? = 1
    configure: failed program was:
    configure:6053: result: yes
    configure:6066: checking vfork.h usability
    configure:6066: gcc -c -g -O2  conftest.c >&5
    conftest.c:91:10: fatal error: 'vfork.h' file not found
    #include <vfork.h>
             ^
    1 error generated.
    configure:6066: $? = 1
    configure: failed program was:
    configure:6066: result: no
    configure:6066: checking vfork.h presence
    configure:6066: gcc -E  conftest.c
    conftest.c:58:10: fatal error: 'vfork.h' file not found
    #include <vfork.h>
             ^
    1 error generated.
    configure:6066: $? = 1
    configure: failed program was:
    | #include <vfork.h>
    configure:6066: result: no
    configure:6066: checking for vfork.h
    configure:6066: result: no
    configure:6079: checking for fork
    configure:6079: gcc -o conftest -g -O2   conftest.c  >&5
    configure:6079: $? = 0
    configure:6079: result: yes
    configure:6079: checking for vfork
    configure:6079: gcc -o conftest -g -O2   conftest.c  >&5
    conftest.c:82:6: warning: incompatible redeclaration of library function 'vfork' [-Wincompatible-library-redeclaration]
    char vfork ();
         ^
    conftest.c:82:6: note: 'vfork' is a builtin with type 'int (void)'
    1 warning generated.
    configure:6079: $? = 0
    configure:6079: result: yes
    configure:6089: checking for working fork
    configure:6111: gcc -o conftest -g -O2   conftest.c  >&5
    configure:6111: $? = 0
    configure:6111: ./conftest
    configure:6111: $? = 0
    configure:6121: result: yes
    configure:6142: checking for working vfork
    configure:6252: result: yes
    configure:6278: checking whether gcc needs -traditional
    conftest.c:62:10: fatal error: 'termio.h' file not found
    #include <termio.h>
             ^
    1 error generated.
    configure:6312: result: no
    configure:6321: checking for stdlib.h
    configure:6321: result: yes
    configure:6331: checking for GNU libc compatible malloc
    configure:6355: gcc -o conftest -g -O2   conftest.c  >&5
    configure:6355: $? = 0
    configure:6355: ./conftest
    configure:6355: $? = 0
    configure:6365: result: yes
    configure:6386: checking for working memcmp
    configure:6429: gcc -o conftest -g -O2   conftest.c  >&5
    configure:6429: $? = 0
    configure:6429: ./conftest
    configure:6429: $? = 0
    configure:6439: result: yes
    configure:6448: checking return type of signal handlers
    configure:6466: gcc -c -g -O2  conftest.c >&5
    conftest.c:70:8: error: indirection requires pointer operand ('void' invalid)
    return *(signal (0, 0)) (0) == 1;
           ^~~~~~~~~~~~~~~~~~~~
    1 error generated.
    configure:6466: $? = 1
    configure: failed program was:
    | #include <sys/types.h>
    | #include <signal.h>
    | 
    | int
    | main ()
    | {
    | return *(signal (0, 0)) (0) == 1;
    |   ;
    |   return 0;
    | }
    configure:6473: result: void
    configure:6481: checking whether lstat correctly handles trailing slash
    configure:6507: gcc -o conftest -g -O2   conftest.c  >&5
    configure:6507: $? = 0
    configure:6507: ./conftest
    configure:6507: $? = 1
    configure: program exited with status 1
    configure: failed program was:
    | #include <stdio.h>
    | #ifdef HAVE_SYS_TYPES_H
    | # include <sys/types.h>
    | #endif
    | #ifdef HAVE_SYS_STAT_H
    | # include <sys/stat.h>
    | #endif
    | #ifdef STDC_HEADERS
    | # include <stdlib.h>
    | # include <stddef.h>
    | #else
    | # ifdef HAVE_STDLIB_H
    | #  include <stdlib.h>
    | # endif
    | #endif
    | #ifdef HAVE_STRING_H
    | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
    | #  include <memory.h>
    | # endif
    | # include <string.h>
    | #endif
    | #ifdef HAVE_STRINGS_H
    | # include <strings.h>
    | #endif
    | #ifdef HAVE_INTTYPES_H
    | # include <inttypes.h>
    | #endif
    | #ifdef HAVE_STDINT_H
    | # include <stdint.h>
    | #endif
    | #ifdef HAVE_UNISTD_H
    | # include <unistd.h>
    | #endif
    | int
    | main ()
    | {
    | struct stat sbuf;
    |      /* Linux will dereference the symlink and fail, as required by POSIX.
    |   That is better in the sense that it means we will not
    |   have to compile and use the lstat wrapper.  */
    |      return lstat ("conftest.sym/", &sbuf) == 0;
    |   ;
    |   return 0;
    | }
    configure:6524: result: no
    configure:6543: checking whether stat accepts an empty string
    configure:6563: gcc -o conftest -g -O2   conftest.c  >&5
    configure:6563: $? = 0
    configure:6563: ./conftest
    configure:6563: $? = 0
    configure:6573: result: no
    configure:6595: checking for utime.h
    configure:6595: result: yes
    configure:6609: checking whether utime accepts a null argument
    configure:6638: gcc -o conftest -g -O2   conftest.c  >&5
    configure:6638: $? = 0
    configure:6638: ./conftest
    configure:6638: $? = 0
    configure:6648: result: yes
    configure:6661: checking for nanosleep
    configure:6661: gcc -o conftest -g -O2   conftest.c  >&5
    configure:6661: $? = 0
    configure:6661: result: yes
    configure:6661: checking for inotify_init
    configure:6661: gcc -o conftest -g -O2   conftest.c  >&5
    Undefined symbols for architecture x86_64:
      "_inotify_init", referenced from:
          _main in conftest-52f2fc.o
    ld: symbol(s) not found for architecture x86_64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    configure:6661: $? = 1
    configure: failed program was:
    | /* Define inotify_init to an innocuous variant, in case <limits.h> declares inotify_init.
    |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    | #define inotify_init innocuous_inotify_init
    | 
    | /* System header to define __stub macros and hopefully few prototypes,
    |     which can conflict with char inotify_init (); below.
    |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    |     <limits.h> exists even on freestanding compilers.  */
    | 
    | #ifdef __STDC__
    | # include <limits.h>
    | #else
    | # include <assert.h>
    | #endif
    | 
    | #undef inotify_init
    | 
    | /* Override any GCC internal prototype to avoid an error.
    |    Use char because int might match the return type of a GCC
    |    builtin and then its argument prototype would still apply.  */
    | #ifdef __cplusplus
    | extern "C"
    | #endif
    | char inotify_init ();
    | /* The GNU C library defines this for functions which it implements
    |     to always fail with ENOSYS.  Some functions are actually named
    |     something starting with __ and the normal name is an alias.  */
    | #if defined __stub_inotify_init || defined __stub___inotify_init
    | choke me
    | #endif
    | 
    | int
    | main ()
    | {
    | return inotify_init ();
    |   ;
    |   return 0;
    | }
    configure:6661: result: no
    configure:6661: checking for alarm
    configure:6661: gcc -o conftest -g -O2   conftest.c  >&5
    configure:6661: $? = 0
    configure:6661: result: yes
    configure:6661: checking for atexit
    configure:6661: gcc -o conftest -g -O2   conftest.c  >&5
    configure:6661: $? = 0
    configure:6661: result: yes
    configure:6661: checking for getcwd
    configure:6661: gcc -o conftest -g -O2   conftest.c  >&5
    configure:6661: $? = 0
    configure:6661: result: yes
    configure:6661: checking for gethostbyname
    configure:6661: result: yes
    configure:6661: checking for gettimeofday
    configure:6661: gcc -o conftest -g -O2   conftest.c  >&5
    configure:6661: $? = 0
    configure:6661: result: yes
    configure:6661: checking for inet_ntoa
    configure:6661: gcc -o conftest -g -O2   conftest.c  >&5
    configure:6661: $? = 0
    configure:6661: result: yes
    configure:6673: checking for memmove
    configure:6673: gcc -o conftest -g -O2   conftest.c  >&5
    conftest.c:97:6: warning: incompatible redeclaration of library function 'memmove' [-Wincompatible-library-redeclaration]
    char memmove ();
         ^
    conftest.c:97:6: note: 'memmove' is a builtin with type 'void *(void *, const void *, unsigned long)'
    1 warning generated.
    configure:6673: $? = 0
    configure:6673: result: yes
    configure:6673: checking for memfrob
    configure:6673: gcc -o conftest -g -O2   conftest.c  >&5
    Undefined symbols for architecture x86_64:
      "_memfrob", referenced from:
          _main in conftest-f3776a.o
    ld: symbol(s) not found for architecture x86_64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    configure:6673: $? = 1
    configure: failed program was:
    | /* Define memfrob to an innocuous variant, in case <limits.h> declares memfrob.
    |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    | #define memfrob innocuous_memfrob
    | 
    | /* System header to define __stub macros and hopefully few prototypes,
    |     which can conflict with char memfrob (); below.
    |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    |     <limits.h> exists even on freestanding compilers.  */
    | 
    | #ifdef __STDC__
    | # include <limits.h>
    | #else
    | # include <assert.h>
    | #endif
    | 
    | #undef memfrob
    | 
    | /* Override any GCC internal prototype to avoid an error.
    |    Use char because int might match the return type of a GCC
    |    builtin and then its argument prototype would still apply.  */
    | #ifdef __cplusplus
    | extern "C"
    | #endif
    | char memfrob ();
    | /* The GNU C library defines this for functions which it implements
    |     to always fail with ENOSYS.  Some functions are actually named
    |     something starting with __ and the normal name is an alias.  */
    | #if defined __stub_memfrob || defined __stub___memfrob
    | choke me
    | #endif
    | 
    | int
    | main ()
    | {
    | return memfrob ();
    |   ;
    |   return 0;
    | }
    configure:6673: result: no
    configure:6673: checking for select
    configure:6673: gcc -o conftest -g -O2   conftest.c  >&5
    configure:6673: $? = 0
    configure:6673: result: yes
    configure:6673: checking for socket
    configure:6673: gcc -o conftest -g -O2   conftest.c  >&5
    configure:6673: $? = 0
    configure:6673: result: yes
    configure:6673: checking for strchr
    configure:6673: gcc -o conftest -g -O2   conftest.c  >&5
    conftest.c:100:6: warning: incompatible redeclaration of library function 'strchr' [-Wincompatible-library-redeclaration]
    char strchr ();
         ^
    conftest.c:100:6: note: 'strchr' is a builtin with type 'char *(const char *, int)'
    1 warning generated.
    configure:6673: $? = 0
    configure:6673: result: yes
    configure:6673: checking for strdup
    configure:6673: gcc -o conftest -g -O2   conftest.c  >&5
    conftest.c:101:6: warning: incompatible redeclaration of library function 'strdup' [-Wincompatible-library-redeclaration]
    char strdup ();
         ^
    conftest.c:101:6: note: 'strdup' is a builtin with type 'char *(const char *)'
    1 warning generated.
    configure:6673: $? = 0
    configure:6673: result: yes
    configure:6673: checking for strstr
    configure:6673: gcc -o conftest -g -O2   conftest.c  >&5
    conftest.c:102:6: warning: incompatible redeclaration of library function 'strstr' [-Wincompatible-library-redeclaration]
    char strstr ();
         ^
    conftest.c:102:6: note: 'strstr' is a builtin with type 'char *(const char *, const char *)'
    1 warning generated.
    configure:6673: $? = 0
    configure:6673: result: yes
    configure:6673: checking for utime
    configure:6673: gcc -o conftest -g -O2   conftest.c  >&5
    configure:6673: $? = 0
    configure:6673: result: yes
    configure:6673: checking for execvp
    configure:6673: gcc -o conftest -g -O2   conftest.c  >&5
    configure:6673: $? = 0
    configure:6673: result: yes
    configure:6673: checking for execvpe
    configure:6673: gcc -o conftest -g -O2   conftest.c  >&5
    Undefined symbols for architecture x86_64:
      "_execvpe", referenced from:
          _main in conftest-95937e.o
    ld: symbol(s) not found for architecture x86_64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    configure:6673: $? = 1
    configure: failed program was:
    | /* Define execvpe to an innocuous variant, in case <limits.h> declares execvpe.
    |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    | #define execvpe innocuous_execvpe
    | 
    | /* System header to define __stub macros and hopefully few prototypes,
    |     which can conflict with char execvpe (); below.
    |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    |     <limits.h> exists even on freestanding compilers.  */
    | 
    | #ifdef __STDC__
    | # include <limits.h>
    | #else
    | # include <assert.h>
    | #endif
    | 
    | #undef execvpe
    | 
    | /* Override any GCC internal prototype to avoid an error.
    |    Use char because int might match the return type of a GCC
    |    builtin and then its argument prototype would still apply.  */
    | #ifdef __cplusplus
    | extern "C"
    | #endif
    | char execvpe ();
    | /* The GNU C library defines this for functions which it implements
    |     to always fail with ENOSYS.  Some functions are actually named
    |     something starting with __ and the normal name is an alias.  */
    | #if defined __stub_execvpe || defined __stub___execvpe
    | choke me
    | #endif
    | 
    | int
    | main ()
    | {
    | return execvpe ();
    |   ;
    |   return 0;
    | }
    configure:6673: result: no
    configure:6673: checking for futimens
    configure:6673: gcc -o conftest -g -O2   conftest.c  >&5
    Undefined symbols for architecture x86_64:
      "_futimens", referenced from:
          _main in conftest-c2e250.o
    ld: symbol(s) not found for architecture x86_64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    configure:6673: $? = 1
    configure: failed program was:
    | /* Define futimens to an innocuous variant, in case <limits.h> declares futimens.
    |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    | #define futimens innocuous_futimens
    | 
    | /* System header to define __stub macros and hopefully few prototypes,
    |     which can conflict with char futimens (); below.
    |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    |     <limits.h> exists even on freestanding compilers.  */
    | 
    | #ifdef __STDC__
    | # include <limits.h>
    | #else
    | # include <assert.h>
    | #endif
    | 
    | #undef futimens
    | 
    | /* Override any GCC internal prototype to avoid an error.
    |    Use char because int might match the return type of a GCC
    |    builtin and then its argument prototype would still apply.  */
    | #ifdef __cplusplus
    | extern "C"
    | #endif
    | char futimens ();
    | /* The GNU C library defines this for functions which it implements
    |     to always fail with ENOSYS.  Some functions are actually named
    |     something starting with __ and the normal name is an alias.  */
    | #if defined __stub_futimens || defined __stub___futimens
    | choke me
    | #endif
    | 
    | int
    | main ()
    | {
    | return futimens ();
    |   ;
    |   return 0;
    | }
    configure:6673: result: no
    configure:6820: creating ./config.status
    
    ## ---------------------- ##
    ## Running config.status. ##
    ## ---------------------- ##
    
    This file was extended by X11-Basic config.status 1.24, which was
    generated by GNU Autoconf 2.69.  Invocation command line was
    
      CONFIG_FILES    = 
      CONFIG_HEADERS  = 
      CONFIG_LINKS    = 
      CONFIG_COMMANDS = 
      $ ./config.status 
    
    on lavorillo-2.local
    
    config.status:878: creating examples/compiler/xbc.bas
    config.status:878: creating Makefile
    config.status:977: WARNING:  'Makefile.in' seems to ignore the --datarootdir setting
    config.status:878: creating config.h
    
    ## ---------------- ##
    ## Cache variables. ##
    ## ---------------- ##
    
    ac_cv_c_compiler_gnu=yes
    ac_cv_c_const=yes
    ac_cv_env_CC_set=
    ac_cv_env_CC_value=
    ac_cv_env_CFLAGS_set=
    ac_cv_env_CFLAGS_value=
    ac_cv_env_CPPFLAGS_set=
    ac_cv_env_CPPFLAGS_value=
    ac_cv_env_CPP_set=
    ac_cv_env_CPP_value=
    ac_cv_env_LDFLAGS_set=
    ac_cv_env_LDFLAGS_value=
    ac_cv_env_LIBS_set=
    ac_cv_env_LIBS_value=
    ac_cv_env_XMKMF_set=
    ac_cv_env_XMKMF_value=
    ac_cv_env_build_alias_set=
    ac_cv_env_build_alias_value=
    ac_cv_env_host_alias_set=
    ac_cv_env_host_alias_value=
    ac_cv_env_target_alias_set=
    ac_cv_env_target_alias_value=
    ac_cv_func_alarm=yes
    ac_cv_func_atexit=yes
    ac_cv_func_connect=yes
    ac_cv_func_execvp=yes
    ac_cv_func_execvpe=no
    ac_cv_func_fnmatch_works=yes
    ac_cv_func_fork=yes
    ac_cv_func_fork_works=yes
    ac_cv_func_futimens=no
    ac_cv_func_getcwd=yes
    ac_cv_func_gethostbyname=yes
    ac_cv_func_gettimeofday=yes
    ac_cv_func_inet_ntoa=yes
    ac_cv_func_inotify_init=no
    ac_cv_func_lstat_dereferences_slashed_symlink=no
    ac_cv_func_malloc_0_nonnull=yes
    ac_cv_func_memcmp_working=yes
    ac_cv_func_memfrob=no
    ac_cv_func_memmove=yes
    ac_cv_func_nanosleep=yes
    ac_cv_func_remove=yes
    ac_cv_func_select=yes
    ac_cv_func_shmat=yes
    ac_cv_func_socket=yes
    ac_cv_func_stat_empty_string_bug=no
    ac_cv_func_strchr=yes
    ac_cv_func_strdup=yes
    ac_cv_func_strstr=yes
    ac_cv_func_utime=yes
    ac_cv_func_utime_null=yes
    ac_cv_func_vfork=yes
    ac_cv_func_vfork_works=yes
    ac_cv_have_x='have_x=yes    ac_x_includes='\'''\''  ac_x_libraries='\''/usr/X11/lib'\'''
    ac_cv_header_complex_h=yes
    ac_cv_header_dirent_dirent_h=yes
    ac_cv_header_errno_h=yes
    ac_cv_header_fcntl_h=yes
    ac_cv_header_inttypes_h=yes
    ac_cv_header_jpeglib_h=yes
    ac_cv_header_limits_h=yes
    ac_cv_header_memory_h=yes
    ac_cv_header_netdb_h=yes
    ac_cv_header_netinet_in_h=yes
    ac_cv_header_png_h=yes
    ac_cv_header_pty_h=no
    ac_cv_header_stdc=yes
    ac_cv_header_stddef_h=yes
    ac_cv_header_stdint_h=yes
    ac_cv_header_stdlib_h=yes
    ac_cv_header_string_h=yes
    ac_cv_header_strings_h=yes
    ac_cv_header_sys_file_h=yes
    ac_cv_header_sys_ioctl_h=yes
    ac_cv_header_sys_kd_h=no
    ac_cv_header_sys_param_h=yes
    ac_cv_header_sys_socket_h=yes
    ac_cv_header_sys_stat_h=yes
    ac_cv_header_sys_time_h=yes
    ac_cv_header_sys_timeb_h=yes
    ac_cv_header_sys_types_h=yes
    ac_cv_header_termios_h=yes
    ac_cv_header_time=yes
    ac_cv_header_unistd_h=yes
    ac_cv_header_utime_h=yes
    ac_cv_header_vfork_h=no
    ac_cv_lib_DOOCSclient_eq_int=no
    ac_cv_lib_ICE_IceConnectionNumber=yes
    ac_cv_lib_SDL_SDL_MapRGB=yes
    ac_cv_lib_SDL_gfx_hlineRGBA=yes
    ac_cv_lib_X11_XOpenDisplay=yes
    ac_cv_lib_asound_snd_pcm_recover=no
    ac_cv_lib_dl_dlopen=yes
    ac_cv_lib_error_at_line=no
    ac_cv_lib_gmp___gmpz_init=no
    ac_cv_lib_gmp___gmpz_primorial_ui=no
    ac_cv_lib_lapack_dgelss_=yes
    ac_cv_lib_m_cacos=yes
    ac_cv_lib_m_clog10=no
    ac_cv_lib_m_expm1=yes
    ac_cv_lib_m_floor=yes
    ac_cv_lib_m_log1p=yes
    ac_cv_lib_m_logb=yes
    ac_cv_lib_m_pow=yes
    ac_cv_lib_m_sin=yes
    ac_cv_lib_m_sqrt=yes
    ac_cv_lib_pthread_pthread_create=yes
    ac_cv_lib_readline_readline=yes
    ac_cv_lib_tine__SystemCycle=no
    ac_cv_lib_usb_usb_open=no
    ac_cv_lib_util_forkpty=yes
    ac_cv_lib_vga_main=no
    ac_cv_member_struct_stat_st_blocks=yes
    ac_cv_objext=o
    ac_cv_path_EGREP='/usr/bin/grep -E'
    ac_cv_path_GREP=/usr/bin/grep
    ac_cv_prog_CPP='gcc -E'
    ac_cv_prog_X11BASICAT=no
    ac_cv_prog_ac_ct_CC=gcc
    ac_cv_prog_cc_c89=
    ac_cv_prog_cc_g=yes
    ac_cv_prog_gcc_traditional=no
    ac_cv_search_opendir='none required'
    ac_cv_search_strerror='none required'
    ac_cv_struct_tm=time.h
    ac_cv_sys_interpreter=yes
    ac_cv_type_off_t=yes
    ac_cv_type_pid_t=yes
    ac_cv_type_signal=void
    ac_cv_type_size_t=yes
    
    ## ----------------- ##
    ## Output variables. ##
    ## ----------------- ##
    
    CC='gcc'
    CFLAGS='-g -O2'
    CPP='gcc -E'
    CPPFLAGS=''
    DEFS='-DHAVE_CONFIG_H'
    ECHO_C='\c'
    ECHO_N=''
    ECHO_T=''
    EGREP='/usr/bin/grep -E'
    EXEEXT=''
    GREP='/usr/bin/grep'
    LDFLAGS=''
    LIBOBJS=' ${LIBOBJDIR}error$U.o ${LIBOBJDIR}lstat$U.o'
    LIBS=''
    LN_S='ln -s'
    LTLIBOBJS=' ${LIBOBJDIR}error$U.lo ${LIBOBJDIR}lstat$U.lo'
    OBJEXT='o'
    PACKAGE_BUGREPORT='kollo@users.sourceforge.net'
    PACKAGE_NAME='X11-Basic'
    PACKAGE_STRING='X11-Basic 1.24'
    PACKAGE_TARNAME='x11-basic'
    PACKAGE_URL=''
    PACKAGE_VERSION='1.24'
    PATH_SEPARATOR=':'
    SHELL='/bin/sh'
    X11BASICAT='no'
    XMKMF=''
    X_CFLAGS=''
    X_EXTRA_LIBS=''
    X_LIBS=' -L/usr/X11/lib'
    X_PRE_LIBS=' -lSM -lICE'
    ac_ct_CC='gcc'
    bindir='${exec_prefix}/bin'
    build_alias=''
    copt='-O3'
    datadir='${datarootdir}'
    datarootdir='${prefix}/share'
    def=''
    docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
    dvidir='${docdir}'
    exec_prefix='${prefix}'
    host_alias=''
    htmldir='${docdir}'
    inc=''
    includedir='${prefix}/include'
    infodir='${datarootdir}/info'
    libdir='${exec_prefix}/lib'
    libexecdir='${exec_prefix}/libexec'
    libs=' -ldl -lm -lpthread -lutil -lreadline -llapack  -lX11'
    localedir='${datarootdir}/locale'
    localstatedir='${prefix}/var'
    mandir='${datarootdir}/man'
    oldincludedir='/usr/include'
    pdfdir='${docdir}'
    prefix='/usr/local'
    program_transform_name='s,x,x,'
    psdir='${docdir}'
    regs='-fomit-frame-pointer'
    sbindir='${exec_prefix}/sbin'
    sharedstatedir='${prefix}/com'
    static=''
    sysconfdir='${prefix}/etc'
    target_alias=''
    version='1.24'
    xtra=''
    
    ## ----------- ##
    ## confdefs.h. ##
    ## ----------- ##
    
    /* confdefs.h */
    #define PACKAGE_NAME "X11-Basic"
    #define PACKAGE_TARNAME "x11-basic"
    #define PACKAGE_VERSION "1.24"
    #define PACKAGE_STRING "X11-Basic 1.24"
    #define PACKAGE_BUGREPORT "kollo@users.sourceforge.net"
    #define PACKAGE_URL ""
    #define HAVE_DIRENT_H 1
    #define STDC_HEADERS 1
    #define HAVE_SYS_TYPES_H 1
    #define HAVE_SYS_STAT_H 1
    #define HAVE_STDLIB_H 1
    #define HAVE_STRING_H 1
    #define HAVE_MEMORY_H 1
    #define HAVE_STRINGS_H 1
    #define HAVE_INTTYPES_H 1
    #define HAVE_STDINT_H 1
    #define HAVE_UNISTD_H 1
    #define HAVE_COMPLEX_H 1
    #define HAVE_PNG_H 1
    #define HAVE_JPEGLIB_H 1
    #define HAVE_ERRNO_H 1
    #define HAVE_FCNTL_H 1
    #define HAVE_LIMITS_H 1
    #define HAVE_NETDB_H 1
    #define HAVE_NETINET_IN_H 1
    #define HAVE_STDDEF_H 1
    #define HAVE_STDLIB_H 1
    #define HAVE_STRING_H 1
    #define HAVE_SYS_FILE_H 1
    #define HAVE_SYS_IOCTL_H 1
    #define HAVE_SYS_PARAM_H 1
    #define HAVE_SYS_SOCKET_H 1
    #define HAVE_SYS_TIME_H 1
    #define HAVE_SYS_TIMEB_H 1
    #define HAVE_TERMIOS_H 1
    #define HAVE_UNISTD_H 1
    #define HAVE_UTIME_H 1
    #define HAVE_LIBDL 1
    #define HAVE_DLOPEN 1
    #define HAVE_FLOOR 1
    #define HAVE_LOGB 1
    #define HAVE_SQRT 1
    #define HAVE_POW 1
    #define HAVE_EXPM1 1
    #define HAVE_CACOS 1
    #define HAVE_LOG1P 1
    #define HAVE_FORKPTY 1
    #define HAVE_READLINE 1
    #define HAVE_LAPACK 1
    #define HAVE_SDL 1
    #define HAVE_SDL_GFX 1
    #define HAVE_STRUCT_STAT_ST_BLOCKS 1
    #define HAVE_ST_BLOCKS 1
    #define TIME_WITH_SYS_TIME 1
    #define HAVE_FNMATCH 1
    #define HAVE_FORK 1
    #define HAVE_VFORK 1
    #define HAVE_WORKING_VFORK 1
    #define HAVE_WORKING_FORK 1
    #define HAVE_STDLIB_H 1
    #define HAVE_MALLOC 1
    #define RETSIGTYPE void
    #define HAVE_UTIME_H 1
    #define HAVE_UTIME_NULL 1
    #define HAVE_NANOSLEEP 1
    #define HAVE_ALARM 1
    #define HAVE_ATEXIT 1
    #define HAVE_GETCWD 1
    #define HAVE_GETHOSTBYNAME 1
    #define HAVE_GETTIMEOFDAY 1
    #define HAVE_INET_NTOA 1
    #define HAVE_MEMMOVE 1
    #define HAVE_SELECT 1
    #define HAVE_SOCKET 1
    #define HAVE_STRCHR 1
    #define HAVE_STRDUP 1
    #define HAVE_STRSTR 1
    #define HAVE_UTIME 1
    #define HAVE_EXECVP 1
    #define VERSION "1.24"
    #define VERSION_DATE "Thu Jun  9 11:13:42 CEST 2016"
    
    configure: exit 0
    
     

    Last edit: Markus Hoffmann 2016-06-13
  • Markus Hoffmann

    Markus Hoffmann - 2016-06-10

    OK, thanks. This does not look too bad. So now, lets try to compile a working version of X11-basic. Some fixes might be necessary. First of all, do not run configure again, since we will make manual changes to the defs. I assume, that you have the recent sources from gitlab:

    git clone https://gitlab.com/kollo/X11Basic.git
    cd X11Basic
    git fetch origin apple
    git checkout apple
    cd src
    ./configure

    (If you are using git, please let me know, this will improve debugging and working together much)

    now please edit options.h
    put a

    define NOGRAPHICS 1

    after the line

    define OPTIONS_H

    Then please do a

    make clean static

    This should produce a file xbasic.static which has a version of X11-Basic without graphics commands. I think we should debug this first and make it run.

     
    • Anonymous

      Anonymous - 2016-06-10

      HI, actually I'm not a programmer, I downloaded the source here from sourceforge, I don't know if this is the last from gitlab.
      I follow your instruction. Here is the LOG: (NB: yesterday I changed manually the linux/fb.h references in files and replaced with /opt/X11/include/xorg/fb.h )

      lavorillo-2:X11Basic-1.24 fabriziovenerandi$ make clean static
      gcc -fomit-frame-pointer -Wall  -MM -MT xb2c.o -MT xb2c.d  xb2c.c -o xb2c.d
      gcc -fomit-frame-pointer -Wall  -MM -MT xbvm.o -MT xbvm.d  xbvm.c -o xbvm.d
      gcc -fomit-frame-pointer -Wall  -MM -MT xbbc.o -MT xbbc.d  xbbc.c -o xbbc.d
      gcc -fomit-frame-pointer -Wall  -MM -MT main.o -MT main.d  main.c -o main.d
      gcc -fomit-frame-pointer -Wall  -MM -MT terminal.o -MT terminal.d  terminal.c -o terminal.d
      In file included from terminal.c:15:
      /opt/X11/include/xorg/fb.h:28:10: fatal error: 'pixman.h' file not found
      #include <pixman.h>
               ^
      1 error generated.
      
      [...] more errors removed.
      
                    ^
      16 warnings and 7 errors generated.
      make: *** [io.o] Error 1
      lavorillo-2:X11Basic-1.24 fabriziovenerandi$
      
       

      Last edit: Markus Hoffmann 2016-06-10
  • Markus Hoffmann

    Markus Hoffmann - 2016-06-10

    Hi, OK,
    1. The change for fb.h: this is not the right way. fb.h should not be used at all.
    2. The change to options.h (NOGRAPHICS) should inactivate this anyways.
    3. I did some more changes to the sources which are on gitlab (not sourceforge), which should fix more errors. The easiest way to get them is via git. (do you have git on the MAC? If so, I could talk you through how to use it). Updating the sources can be made by a single command in the terminal: "git pull origin apple" and then you have the exact same sources than I do. If this does not work for you, I could also try to put the new files into attachments of this forum.

     
  • Markus Hoffmann

    Markus Hoffmann - 2016-06-10

    OK, after installation of git, you should open a terminal window and cd to some home folder.

    then try to enter the commands given in my earlier post, starting with the "git clone..." statement. This should download the complete source tree (similar to what you got from unpacking the tar.gz file from sourceforge). The commands download and unpack everything and then switch to a special version of the sources, called apple, where I put the fixes (still untested).

    To try to compile you should go to the src/ directory and do ./configure (only once) and make.

    or modify options.h and do a make static, as mentioned before.

    Then you get maybe some errors, let me know about them, I try to fix them.

    If you want to check if there are some changes I made, type the "git pull..." command mentioned in an earlier post (from inside the X11Basic directory). this will update the sources. Then you should go on with "make clean" and "make static" and so on.

    From time to time you can also try to make the regular version of X11-Basic:
    undo the modifications to options.h
    do a make

     
  • Anonymous

    Anonymous - 2016-06-10

    Mh.. maybe I did not understand:

    lavorillo-2:Coding fabriziovenerandi$ git clone origin apple
    fatal: repository 'origin' does not exist
    
     
    • Markus Hoffmann

      Markus Hoffmann - 2016-06-10

      Good: git works.
      However:
      This was a mistype:
      should be:

      git clone https://gitlab.com/kollo/X11Basic.git
      and then
      cd X11Basic
      git fetch origin apple
      git checkout apple

       
  • Anonymous

    Anonymous - 2016-06-10

    Thank for the instructions. Git worked. Configure worked. I changed the options.h and made a "make static".

    Here comes the feedback:

    [logfile.log]

     

    Last edit: Markus Hoffmann 2017-05-12
  • Markus Hoffmann

    Markus Hoffmann - 2016-06-10

    Ok, lets see...

    I think, the warnings can be ignored and the one error should be fixed now.

     
  • Markus Hoffmann

    Markus Hoffmann - 2016-06-10

    If you do not want to get all warnings again, just leave out the make clean, just do a make static after the "git pull ..."

     
  • Anonymous

    Anonymous - 2016-06-10

    Hi, I made a git pull... and make static:

    [logfile.log]

     

    Last edit: Markus Hoffmann 2017-05-12
  • Markus Hoffmann

    Markus Hoffmann - 2016-06-10

    OK, good. The compilation now worked. Now the linker gives strange messages about undresoved symbols for 64 bit architecture.... Hm...

     
  • Markus Hoffmann

    Markus Hoffmann - 2016-06-10

    Ok, I think I have fixed it. Lets look at the next try...

     
  • Anonymous

    Anonymous - 2016-06-10

    Here is it!

    lavorillo-2:src fabriziovenerandi$ make static
    gcc -fomit-frame-pointer -Wall  -MM -MT decode.o -MT decode.d  decode.c -o decode.d
    gcc -fomit-frame-pointer -Wall  -MM -MT graphics.o -MT graphics.d  graphics.c -o graphics.d
    gcc -fomit-frame-pointer -Wall  -MM -MT sfunctions.o -MT sfunctions.d  sfunctions.c -o sfunctions.d
    gcc -fomit-frame-pointer -Wall  -MM -MT functions.o -MT functions.d  functions.c -o functions.d
    gcc -fomit-frame-pointer -Wall  -I.  -O3   -c -o functions.o functions.c
    In file included from functions.c:30:
    ./parameter.h:209:15: warning: variable 'a' is uninitialized when used here [-Wuninitialized]
      p2arbint(sp,a);
                  ^
    ./parameter.h:207:11: note: initialize the variable 'a' to silence this warning
      ARBINT a;
              ^
               = 0
    functions.c:736:48: warning: cast to 'short *' from smaller integer type 'int'
          [-Wint-to-pointer-cast]
    static int    f_dpeek(int adr)  {return((int)(*(short *)adr));}
                                                   ^
    functions.c:745:48: warning: cast to 'long *' from smaller integer type 'int'
          [-Wint-to-pointer-cast]
    static int    f_lpeek(int adr)  {return((int)(*(long *)adr));}
                                                   ^
    functions.c:776:48: warning: cast to 'char *' from smaller integer type 'int'
          [-Wint-to-pointer-cast]
    static int    f_peek(int adr)   {return((int)(*(char *)adr));}
                                                   ^
    functions.c:781:64: warning: cast to 'char *' from smaller integer type 'int'
          [-Wint-to-pointer-cast]
    static int    f_realloc(int adr,int size) {return((int)realloc((char *)adr,(size_t)size));}
                                                                   ^
    5 warnings generated.
    gcc -fomit-frame-pointer -Wall  -I.  -O3   -c -o sfunctions.o sfunctions.c
    In file included from sfunctions.c:35:
    ./parameter.h:209:15: warning: variable 'a' is uninitialized when used here [-Wuninitialized]
      p2arbint(sp,a);
                  ^
    ./parameter.h:207:11: note: initialize the variable 'a' to silence this warning
      ARBINT a;
              ^
               = 0
    sfunctions.c:231:50: warning: illegal character encoding in character literal
          [-Winvalid-source-encoding]
           (*(n.pointer)=='`' && n.pointer[n.len-1]=='<B4>') ||
                                                     ^
    2 warnings generated.
    gcc -fomit-frame-pointer -Wall  -I.  -O3   -c -o graphics.o graphics.c
    graphics.c:104:12: warning: variable 'r' is uninitialized when used here [-Wuninitialized]
        return(r);
               ^
    graphics.c:88:10: note: initialize the variable 'r' to silence this warning
        int r;
             ^
              = 0
    In file included from graphics.c:264:
    ./bitmaps/fill.xbm:3:19: warning: unused variable 'fill_bits' [-Wunused-variable]
    static const char fill_bits[] = {
                      ^
    graphics.c:299:1: warning: control reaches end of non-void function [-Wreturn-type]
    }
    ^
    graphics.c:319:1: warning: control reaches end of non-void function [-Wreturn-type]
    }
    ^
    graphics.c:343:1: warning: control reaches end of non-void function [-Wreturn-type]
    }
    ^
    graphics.c:363:1: warning: control reaches end of non-void function [-Wreturn-type]
    }
    ^
    graphics.c:394:1: warning: control reaches end of non-void function [-Wreturn-type]
    }
    ^
    7 warnings generated.
    gcc -fomit-frame-pointer -Wall  -I.  -O3   -c -o decode.o decode.c
    ar -ru x11basic.a xbasic.o tools.o loadprg.o file.o io.o io_basic.o parser.o variablen.o svariablen.o array.o parameter.o fft.o mathematics.o runtime.o wort_sep.o ltext.o functions.o sfunctions.o afunctions.o kommandos.o gkommandos.o bitmap.o do_gets.o errortxt.o window.o sysVstuff.o aes.o graphics.o sound.o number.o decode.o virtual-machine.o type.o lodepng.o 
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: x11basic.a(gkommandos.o) has no symbols
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: x11basic.a(aes.o) has no symbols
    gcc -fomit-frame-pointer -Wall  -O3  -o xbasic.static main.o x11basic.a -ldl -lm -lpthread -lutil -lreadline -llapack  -lX11  -L/usr/X11/lib 
    strip xbasic.static
    gcc -fomit-frame-pointer -Wall  -I.  -O3   -c -o xbbc.o xbbc.c
    In file included from xbbc.c:38:
    ./parameter.h:209:15: warning: variable 'a' is uninitialized when used here [-Wuninitialized]
      p2arbint(sp,a);
                  ^
    ./parameter.h:207:11: note: initialize the variable 'a' to silence this warning
      ARBINT a;
              ^
               = 0
    1 warning generated.
    gcc -fomit-frame-pointer -Wall  -I.  -O3   -c -o bytecode.o bytecode.c
    In file included from bytecode.c:24:
    ./parameter.h:209:15: warning: variable 'a' is uninitialized when used here [-Wuninitialized]
      p2arbint(sp,a);
                  ^
    ./parameter.h:207:11: note: initialize the variable 'a' to silence this warning
      ARBINT a;
              ^
               = 0
    bytecode.c:479:37: warning: invalid conversion specifier 'Z' [-Wformat-invalid-specifier]
          if(verbose>1) gmp_printf("<\"%Zd\">.c ",a);
                                       ~^
    bytecode.c:995:18: warning: variable 'a' is uninitialized when used here [-Wuninitialized]
            arbint_parser(s,a);
                            ^
    bytecode.c:993:17: note: initialize the variable 'a' to silence this warning
            ARBINT a;
                    ^
                     = 0
    bytecode.c:477:30: warning: variable 'a' is uninitialized when used here [-Wuninitialized]
          arbint_parser(funktion,a);
                                 ^
    bytecode.c:475:15: note: initialize the variable 'a' to silence this warning
          ARBINT a;
                  ^
                   = 0
    4 warnings generated.
    gcc -fomit-frame-pointer -Wall  -o xbbc.static xbbc.o bytecode.o x11basic.a -lm -L /usr/X11/lib/ -lX11 -ldl -lm -lpthread -lutil -lreadline -llapack  -lX11         
    strip xbbc.static
    gcc -fomit-frame-pointer -Wall  -I.  -O3   -c -o xbvm.o xbvm.c
    In file included from xbvm.c:29:
    ./parameter.h:209:15: warning: variable 'a' is uninitialized when used here [-Wuninitialized]
      p2arbint(sp,a);
                  ^
    ./parameter.h:207:11: note: initialize the variable 'a' to silence this warning
      ARBINT a;
              ^
               = 0
    1 warning generated.
    gcc -fomit-frame-pointer -Wall  -o xbvm.static xbvm.o x11basic.a -lm -L /usr/X11/lib/ -ldl -lm -lpthread -lutil -lreadline -llapack  -lX11  -lX11   
    strip xbvm.static
    gcc -fomit-frame-pointer -Wall  -c -I.  -O3 -DDUMMY_LIST -o xb2c_d.o xb2c.c
    xb2c.c:315:40: warning: format specifies type 'unsigned int' but the argument has type
          'unsigned long' [-Wformat]
        fprintf(optr,"/* %02x / %02x */",i,i+sizeof(BYTECODE_HEADER));
                                ~~~~       ^~~~~~~~~~~~~~~~~~~~~~~~~
                                %02lx
    xb2c.c:758:39: warning: format specifies type 'unsigned int' but the argument has type
          'unsigned long' [-Wformat]
        fprintf(optr,"txt:    $%08x %d\n",sizeof(BYTECODE_HEADER),(int)bytecode->textseglen);
                               ~~~~       ^~~~~~~~~~~~~~~~~~~~~~~
                               %08lx
    xb2c.c:759:39: warning: format specifies type 'unsigned int' but the argument has type
          'unsigned long' [-Wformat]
        fprintf(optr,"rodata: $%08x %d\n",sizeof(BYTECODE_HEADER)+
                               ~~~~       ^~~~~~~~~~~~~~~~~~~~~~~~
                               %08lx
    xb2c.c:762:39: warning: format specifies type 'unsigned int' but the argument has type
          'unsigned long' [-Wformat]
        fprintf(optr,"sdata:  $%08x %d\n",sizeof(BYTECODE_HEADER)+
                               ~~~~       ^~~~~~~~~~~~~~~~~~~~~~~~
                               %08lx
    xb2c.c:765:39: warning: format specifies type 'unsigned int' but the argument has type
          'unsigned long' [-Wformat]
        fprintf(optr,"data:   $%08x %d\n",sizeof(BYTECODE_HEADER)+
                               ~~~~       ^~~~~~~~~~~~~~~~~~~~~~~~
                               %08lx
    xb2c.c:771:39: warning: format specifies type 'unsigned int' but the argument has type
          'unsigned long' [-Wformat]
        fprintf(optr,"bss:    $%08x %d\n",sizeof(BYTECODE_HEADER)+
                               ~~~~       ^~~~~~~~~~~~~~~~~~~~~~~~
                               %08lx
    xb2c.c:776:39: warning: format specifies type 'unsigned int' but the argument has type
          'unsigned long' [-Wformat]
        fprintf(optr,"str:    $%08x %d\n",sizeof(BYTECODE_HEADER)+
                               ~~~~       ^~~~~~~~~~~~~~~~~~~~~~~~
                               %08lx
    xb2c.c:781:39: warning: format specifies type 'unsigned int' but the argument has type
          'unsigned long' [-Wformat]
        fprintf(optr,"sym:    $%08x %d\n",sizeof(BYTECODE_HEADER)+
                               ~~~~       ^~~~~~~~~~~~~~~~~~~~~~~~
                               %08lx
    8 warnings generated.
    gcc -fomit-frame-pointer -Wall  -c -I.  -O3 -DDUMMY_LIST -o functions_d.o functions.c
    In file included from functions.c:30:
    ./parameter.h:209:15: warning: variable 'a' is uninitialized when used here [-Wuninitialized]
      p2arbint(sp,a);
                  ^
    ./parameter.h:207:11: note: initialize the variable 'a' to silence this warning
      ARBINT a;
              ^
               = 0
    1 warning generated.
    gcc -fomit-frame-pointer -Wall  -c -I.  -O3 -DDUMMY_LIST -o afunctions_d.o afunctions.c
    In file included from afunctions.c:20:
    ./parameter.h:209:15: warning: variable 'a' is uninitialized when used here [-Wuninitialized]
      p2arbint(sp,a);
                  ^
    ./parameter.h:207:11: note: initialize the variable 'a' to silence this warning
      ARBINT a;
              ^
               = 0
    1 warning generated.
    gcc -fomit-frame-pointer -Wall  -c -I.  -O3 -DDUMMY_LIST -o svariablen_d.o svariablen.c
    In file included from svariablen.c:27:
    ./parameter.h:209:15: warning: variable 'a' is uninitialized when used here [-Wuninitialized]
      p2arbint(sp,a);
                  ^
    ./parameter.h:207:11: note: initialize the variable 'a' to silence this warning
      ARBINT a;
              ^
               = 0
    1 warning generated.
    gcc -fomit-frame-pointer -Wall  -c -I.  -O3 -DDUMMY_LIST -o sfunctions_d.o sfunctions.c
    In file included from sfunctions.c:35:
    ./parameter.h:209:15: warning: variable 'a' is uninitialized when used here [-Wuninitialized]
      p2arbint(sp,a);
                  ^
    ./parameter.h:207:11: note: initialize the variable 'a' to silence this warning
      ARBINT a;
              ^
               = 0
    1 warning generated.
    gcc -fomit-frame-pointer -Wall  -c -I.  -O3 -DDUMMY_LIST -o kommandos_d.o kommandos.c
    In file included from kommandos.c:42:
    ./parameter.h:209:15: warning: variable 'a' is uninitialized when used here [-Wuninitialized]
      p2arbint(sp,a);
                  ^
    ./parameter.h:207:11: note: initialize the variable 'a' to silence this warning
      ARBINT a;
              ^
               = 0
    1 warning generated.
    gcc -fomit-frame-pointer -Wall  -o xb2c.static xb2c_d.o functions_d.o tools.o afunctions_d.o svariablen_d.o file.o io_basic.o sfunctions_d.o kommandos_d.o  -lm -L /usr/X11/lib/ -lX11 -ldl -lm -lpthread -lutil -lreadline -llapack  -lX11 
    strip xb2c.static
    
     
  • Markus Hoffmann

    Markus Hoffmann - 2016-06-10

    OK, sucess. Now you have xbasic.static (the interpreter) and xbbc.static (the bytecode compiler), both without graphics. But you now can start xbasic.static by entering ./xbasic.static in the src/ directory. type in some BASIC commands ....

    get an example program (without graphics, so take them from /calculation or /console from the examples at the web site)
    run it with

    ./xbasic.static example.bas

    The next step would be to try to make the full version.

    remove the "#define NOGRAPHICS" line in options.h and do a make clean and make static again, and see if everything works out.

     
  • Markus Hoffmann

    Markus Hoffmann - 2016-06-10

    If the version with X11-Graphics support fails, we still have another option: I see from the output of configure, that you have the SDL library installed and usabel. This could be used instead. But I would prefer to use the X11-libs.

     
  • Anonymous

    Anonymous - 2016-06-10

    The without graphics works! I test using some print commands and array.bas and it works.
    Now, I try the full one.

     
  • Anonymous

    Anonymous - 2016-06-10

    Well, we have a winner :)

     

    Last edit: Anonymous 2016-06-10
  • Anonymous

    Anonymous - 2016-06-10

    I'm trying the examples.bas
    Some are working fine, some are not working (no sound, and some graphic text do not work or other (puttest) give fatal error X11BASIC-QUIT Segmentation fault: 11)

     
    • Markus Hoffmann

      Markus Hoffmann - 2016-06-13

      Hi, I have worked a little bit on the 64bit specific errors. You can checkout this version with:

      git fetch origin 64bit
      git checkout 64bit

      Some more example programs should work now. You can now make limited use of PEEK/POKE/VARPTR etc.

      Update 2017-04: I have merged the 64bit stuff to the main branch now. Do bot use the branches apple and 64bit anymore.

       

      Last edit: Markus Hoffmann 2017-05-12
  • Markus Hoffmann

    Markus Hoffmann - 2016-06-10

    Great! Good to know that X11-Basic works again on Mac-OSX. The last time i did it myself was 2009 or so. Since then I have not tested it on a mac. So the changes made in the branch apple can be merged to the master branch.
    Have you tried a make install? I am not sure if the file system hirarchy is the same as on linux.If make install does not work, you can at least use the static binaries just created. Move them whereever you want, mabe in some bin/ folder in your path. E.g. /usr/local/bin/ That could probably be enough to use it in most if the cases.

     
1 2 > >> (Page 1 of 2)

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.