scheme / scsh

A Unix shell embedded in scheme
Other
386 stars 36 forks source link

Build fails (FreeBSD 9, amd64) #7

Closed arp242 closed 11 years ago

arp242 commented 11 years ago

Building scsh gives an error on FreeBSD 9 amd64.

[~/scsh]% git submodule update --init
Submodule path 'rx': checked out 'd3231ad13de2b44e3ee173b1c9d09ff165e8b6d5'

[~/scsh]% autoreconf

[~/scsh]% ./configure
[.. snip, config.log below ..]

[~/scsh]% gmale
gcc -o scsh -g -O2 -fPIC \
-DVM=\"/usr/local/lib/scheme48-1.9/scheme48vm\" \
-DIMAGE=\"/usr/local/lib/scsh-0.7/scsh.image\" \
./c/scsh-tramp.c
gcc -g -O2 -fPIC -I/usr/local/include -rdynamic -shared -o c/syscalls.so c/syscalls.c -lutil
gcc -g -O2 -fPIC -I/usr/local/include -rdynamic -shared -o c/tty.so c/tty.c -lutil
gcc -g -O2 -fPIC -I/usr/local/include -rdynamic -shared -o c/time.so c/time.c -lutil
gcc -g -O2 -fPIC -I/usr/local/include -rdynamic -shared -o c/time-ticks-sec.so c/time-ticks-sec.c -lutil
gcc -g -O2 -fPIC -I/usr/local/include -rdynamic -shared -o c/tty-baud-rate-flags.so c/tty-baud-rate-flags.c -lutil
gcc -g -O2 -fPIC -I/usr/local/include -rdynamic -shared -o c/tty-control-chars-info.so c/tty-control-chars-info.c -lutil
gcc -g -O2 -fPIC -I/usr/local/include -rdynamic -shared -o c/tty-control-flags.so c/tty-control-flags.c -lutil
gcc -g -O2 -fPIC -I/usr/local/include -rdynamic -shared -o c/tty-input-flags.so c/tty-input-flags.c -lutil
gcc -g -O2 -fPIC -I/usr/local/include -rdynamic -shared -o c/tty-local-flags.so c/tty-local-flags.c -lutil
gcc -g -O2 -fPIC -I/usr/local/include -rdynamic -shared -o c/tty-output-flags.so c/tty-output-flags.c -lutil
gcc -g -O2 -fPIC -I/usr/local/include -rdynamic -shared -o c/tty-tcflow-flags.so c/tty-tcflow-flags.c -lutil
gcc -g -O2 -fPIC -I/usr/local/include -rdynamic -shared -o c/tty-tcflush-flags.so c/tty-tcflush-flags.c -lutil
gcc -g -O2 -fPIC -I/usr/local/include -rdynamic -shared -o c/tty-tcsetattr-flags.so c/tty-tcsetattr-flags.c -lutil
./build/build-image.sh . \
    "`pwd`/c/" 'scsh.image' '/usr/local/bin/scheme48 -h 0' './rx/interfaces.scm ./rx/packages.scm ./scheme/scsh-interfaces.scm ./scheme/scsh-package.scm ./scheme/lib/ccp-pack.scm ./scheme/lib/char-package.scm'

assertion-violation: argument of wrong type [bitwise-ior]
                    #f
                    4
gmake: *** [scsh.image] Error 3

config.log

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by scsh configure 0.7, which was
generated by GNU Autoconf 2.69.  Invocation command line was

$ ./configure 

## --------- ##
## Platform. ##
## --------- ##

hostname = rincewind.arp242.net
uname -m = amd64
uname -r = 9.1-RELEASE-p6
uname -s = FreeBSD
uname -v = FreeBSD 9.1-RELEASE-p6 #0: Wed Aug 21 20:40:52 UTC 2013     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC 

/usr/bin/uname -p = amd64
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /home/martin/bin
PATH: /sbin
PATH: /bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /usr/games
PATH: /usr/local/bin
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: //usr/local/sbin

## ----------- ##
## Core tests. ##
## ----------- ##

configure:2201: checking build system type
configure:2215: result: x86_64-unknown-freebsd9.1
configure:2235: checking host system type
configure:2248: result: x86_64-unknown-freebsd9.1
configure:2318: checking for gcc
configure:2334: found /usr/bin/gcc
configure:2345: result: gcc
configure:2574: checking for C compiler version
configure:2583: gcc --version >&5
gcc (GCC) 4.2.1 20070831 patched [FreeBSD]
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:2594: $? = 0
configure:2583: gcc -v >&5
Using built-in specs.
Target: amd64-undermydesk-freebsd
Configured with: FreeBSD/amd64 system compiler
Thread model: posix
gcc version 4.2.1 20070831 patched [FreeBSD]
configure:2594: $? = 0
configure:2583: gcc -V >&5
gcc: '-V' option must have argument
configure:2594: $? = 1
configure:2583: gcc -qversion >&5
gcc: unrecognized option '-qversion'
gcc: No input files specified
configure:2594: $? = 1
configure:2614: checking whether the C compiler works
configure:2636: gcc    conftest.c  >&5
configure:2640: $? = 0
configure:2688: result: yes
configure:2691: checking for C compiler default output file name
configure:2693: result: a.out
configure:2699: checking for suffix of executables
configure:2706: gcc -o conftest    conftest.c  >&5
configure:2710: $? = 0
configure:2732: result: 
configure:2754: checking whether we are cross compiling
configure:2762: gcc -o conftest    conftest.c  >&5
configure:2766: $? = 0
configure:2773: ./conftest
configure:2777: $? = 0
configure:2792: result: no
configure:2797: checking for suffix of object files
configure:2819: gcc -c   conftest.c >&5
configure:2823: $? = 0
configure:2844: result: o
configure:2848: checking whether we are using the GNU C compiler
configure:2867: gcc -c   conftest.c >&5
configure:2867: $? = 0
configure:2876: result: yes
configure:2885: checking whether gcc accepts -g
configure:2905: gcc -c -g  conftest.c >&5
configure:2905: $? = 0
configure:2946: result: yes
configure:2963: checking for gcc option to accept ISO C89
configure:3026: gcc  -c -g -O2  conftest.c >&5
configure:3026: $? = 0
configure:3039: result: none needed
configure:3073: checking for a BSD-compatible install
configure:3141: result: /usr/bin/install -c
configure:3164: checking for scheme48
configure:3183: found /usr/local/bin/scheme48
configure:3195: result: /usr/local/bin/scheme48
configure:3222: checking how to run the C preprocessor
configure:3253: gcc -E  -I/usr/local/include conftest.c
configure:3253: $? = 0
configure:3267: gcc -E  -I/usr/local/include conftest.c
conftest.c:9:28: error: ac_nonexistent.h: No such file or directory
configure:3267: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "scsh"
| #define PACKAGE_TARNAME "scsh"
| #define PACKAGE_VERSION "0.7"
| #define PACKAGE_STRING "scsh 0.7"
| #define PACKAGE_BUGREPORT "roderyc@gmail.com"
| #define PACKAGE_URL ""
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:3292: result: gcc -E
configure:3312: gcc -E  -I/usr/local/include conftest.c
configure:3312: $? = 0
configure:3326: gcc -E  -I/usr/local/include conftest.c
conftest.c:9:28: error: ac_nonexistent.h: No such file or directory
configure:3326: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "scsh"
| #define PACKAGE_TARNAME "scsh"
| #define PACKAGE_VERSION "0.7"
| #define PACKAGE_STRING "scsh 0.7"
| #define PACKAGE_BUGREPORT "roderyc@gmail.com"
| #define PACKAGE_URL ""
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:3355: checking for grep that handles long lines and -e
configure:3413: result: /usr/bin/grep
configure:3418: checking for egrep
configure:3480: result: /usr/bin/grep -E
configure:3485: checking for ANSI C header files
configure:3505: gcc -c -g -O2  -I/usr/local/include conftest.c >&5
configure:3505: $? = 0
configure:3578: gcc -o conftest -g -O2  -I/usr/local/include  conftest.c  >&5
configure:3578: $? = 0
configure:3578: ./conftest
configure:3578: $? = 0
configure:3589: result: yes
configure:3602: checking for sys/types.h
configure:3602: gcc -c -g -O2  -I/usr/local/include conftest.c >&5
configure:3602: $? = 0
configure:3602: result: yes
configure:3602: checking for sys/stat.h
configure:3602: gcc -c -g -O2  -I/usr/local/include conftest.c >&5
configure:3602: $? = 0
configure:3602: result: yes
configure:3602: checking for stdlib.h
configure:3602: gcc -c -g -O2  -I/usr/local/include conftest.c >&5
configure:3602: $? = 0
configure:3602: result: yes
configure:3602: checking for string.h
configure:3602: gcc -c -g -O2  -I/usr/local/include conftest.c >&5
configure:3602: $? = 0
configure:3602: result: yes
configure:3602: checking for memory.h
configure:3602: gcc -c -g -O2  -I/usr/local/include conftest.c >&5
configure:3602: $? = 0
configure:3602: result: yes
configure:3602: checking for strings.h
configure:3602: gcc -c -g -O2  -I/usr/local/include conftest.c >&5
configure:3602: $? = 0
configure:3602: result: yes
configure:3602: checking for inttypes.h
configure:3602: gcc -c -g -O2  -I/usr/local/include conftest.c >&5
configure:3602: $? = 0
configure:3602: result: yes
configure:3602: checking for stdint.h
configure:3602: gcc -c -g -O2  -I/usr/local/include conftest.c >&5
configure:3602: $? = 0
configure:3602: result: yes
configure:3602: checking for unistd.h
configure:3602: gcc -c -g -O2  -I/usr/local/include conftest.c >&5
configure:3602: $? = 0
configure:3602: result: yes
configure:3617: checking fcntl.h usability
configure:3617: gcc -c -g -O2  -I/usr/local/include conftest.c >&5
configure:3617: $? = 0
configure:3617: result: yes
configure:3617: checking fcntl.h presence
configure:3617: gcc -E  -I/usr/local/include conftest.c
configure:3617: $? = 0
configure:3617: result: yes
configure:3617: checking for fcntl.h
configure:3617: result: yes
configure:3617: checking limits.h usability
configure:3617: gcc -c -g -O2  -I/usr/local/include conftest.c >&5
configure:3617: $? = 0
configure:3617: result: yes
configure:3617: checking limits.h presence
configure:3617: gcc -E  -I/usr/local/include conftest.c
configure:3617: $? = 0
configure:3617: result: yes
configure:3617: checking for limits.h
configure:3617: result: yes
configure:3617: checking netdb.h usability
configure:3617: gcc -c -g -O2  -I/usr/local/include conftest.c >&5
configure:3617: $? = 0
configure:3617: result: yes
configure:3617: checking netdb.h presence
configure:3617: gcc -E  -I/usr/local/include conftest.c
configure:3617: $? = 0
configure:3617: result: yes
configure:3617: checking for netdb.h
configure:3617: result: yes
configure:3617: checking sgtty.h usability
configure:3617: gcc -c -g -O2  -I/usr/local/include conftest.c >&5
conftest.c:55:19: error: sgtty.h: No such file or directory
configure:3617: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "scsh"
| #define PACKAGE_TARNAME "scsh"
| #define PACKAGE_VERSION "0.7"
| #define PACKAGE_STRING "scsh 0.7"
| #define PACKAGE_BUGREPORT "roderyc@gmail.com"
| #define PACKAGE_URL ""
| #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_FCNTL_H 1
| #define HAVE_LIMITS_H 1
| #define HAVE_NETDB_H 1
| /* end confdefs.h.  */
| #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 <sgtty.h>
configure:3617: result: no
configure:3617: checking sgtty.h presence
configure:3617: gcc -E  -I/usr/local/include conftest.c
conftest.c:22:19: error: sgtty.h: No such file or directory
configure:3617: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "scsh"
| #define PACKAGE_TARNAME "scsh"
| #define PACKAGE_VERSION "0.7"
| #define PACKAGE_STRING "scsh 0.7"
| #define PACKAGE_BUGREPORT "roderyc@gmail.com"
| #define PACKAGE_URL ""
| #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_FCNTL_H 1
| #define HAVE_LIMITS_H 1
| #define HAVE_NETDB_H 1
| /* end confdefs.h.  */
| #include <sgtty.h>
configure:3617: result: no
configure:3617: checking for sgtty.h
configure:3617: result: no
configure:3617: checking for stdlib.h
configure:3617: result: yes
configure:3617: checking for string.h
configure:3617: result: yes
configure:3617: checking sys/ioctl.h usability
configure:3617: gcc -c -g -O2  -I/usr/local/include conftest.c >&5
configure:3617: $? = 0
configure:3617: result: yes
configure:3617: checking sys/ioctl.h presence
configure:3617: gcc -E  -I/usr/local/include conftest.c
configure:3617: $? = 0
configure:3617: result: yes
configure:3617: checking for sys/ioctl.h
configure:3617: result: yes
configure:3617: checking sys/param.h usability
configure:3617: gcc -c -g -O2  -I/usr/local/include conftest.c >&5
configure:3617: $? = 0
configure:3617: result: yes
configure:3617: checking sys/param.h presence
configure:3617: gcc -E  -I/usr/local/include conftest.c
configure:3617: $? = 0
configure:3617: result: yes
configure:3617: checking for sys/param.h
configure:3617: result: yes
configure:3617: checking sys/time.h usability
configure:3617: gcc -c -g -O2  -I/usr/local/include conftest.c >&5
configure:3617: $? = 0
configure:3617: result: yes
configure:3617: checking sys/time.h presence
configure:3617: gcc -E  -I/usr/local/include conftest.c
configure:3617: $? = 0
configure:3617: result: yes
configure:3617: checking for sys/time.h
configure:3617: result: yes
configure:3617: checking termios.h usability
configure:3617: gcc -c -g -O2  -I/usr/local/include conftest.c >&5
configure:3617: $? = 0
configure:3617: result: yes
configure:3617: checking termios.h presence
configure:3617: gcc -E  -I/usr/local/include conftest.c
configure:3617: $? = 0
configure:3617: result: yes
configure:3617: checking for termios.h
configure:3617: result: yes
configure:3617: checking for unistd.h
configure:3617: result: yes
configure:3617: checking utime.h usability
configure:3617: gcc -c -g -O2  -I/usr/local/include conftest.c >&5
configure:3617: $? = 0
configure:3617: result: yes
configure:3617: checking utime.h presence
configure:3617: gcc -E  -I/usr/local/include conftest.c
configure:3617: $? = 0
configure:3617: result: yes
configure:3617: checking for utime.h
configure:3617: result: yes
configure:3630: checking scheme48.h usability
configure:3630: gcc -c -g -O2  -I/usr/local/include conftest.c >&5
configure:3630: $? = 0
configure:3630: result: yes
configure:3630: checking scheme48.h presence
configure:3630: gcc -E  -I/usr/local/include conftest.c
configure:3630: $? = 0
configure:3630: result: yes
configure:3630: checking for scheme48.h
configure:3630: result: yes
configure:3644: checking for pid_t
configure:3644: gcc -c -g -O2  -I/usr/local/include conftest.c >&5
configure:3644: $? = 0
configure:3644: gcc -c -g -O2  -I/usr/local/include conftest.c >&5
conftest.c: In function 'main':
conftest.c:67: error: expected expression before ')' token
configure:3644: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "scsh"
| #define PACKAGE_TARNAME "scsh"
| #define PACKAGE_VERSION "0.7"
| #define PACKAGE_STRING "scsh 0.7"
| #define PACKAGE_BUGREPORT "roderyc@gmail.com"
| #define PACKAGE_URL ""
| #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_FCNTL_H 1
| #define HAVE_LIMITS_H 1
| #define HAVE_NETDB_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_SYS_IOCTL_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_TERMIOS_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_UTIME_H 1
| #define HAVE_SCHEME48_H 1
| /* end confdefs.h.  */
| #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 ((pid_t)))
|       return 0;
|   ;
|   return 0;
| }
configure:3644: result: yes
configure:3655: checking for size_t
configure:3655: gcc -c -g -O2  -I/usr/local/include conftest.c >&5
configure:3655: $? = 0
configure:3655: gcc -c -g -O2  -I/usr/local/include conftest.c >&5
conftest.c: In function 'main':
conftest.c:67: error: expected expression before ')' token
configure:3655: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "scsh"
| #define PACKAGE_TARNAME "scsh"
| #define PACKAGE_VERSION "0.7"
| #define PACKAGE_STRING "scsh 0.7"
| #define PACKAGE_BUGREPORT "roderyc@gmail.com"
| #define PACKAGE_URL ""
| #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_FCNTL_H 1
| #define HAVE_LIMITS_H 1
| #define HAVE_NETDB_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_SYS_IOCTL_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_TERMIOS_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_UTIME_H 1
| #define HAVE_SCHEME48_H 1
| /* end confdefs.h.  */
| #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:3655: result: yes
configure:3666: checking for ssize_t
configure:3666: gcc -c -g -O2  -I/usr/local/include conftest.c >&5
configure:3666: $? = 0
configure:3666: gcc -c -g -O2  -I/usr/local/include conftest.c >&5
conftest.c: In function 'main':
conftest.c:67: error: expected expression before ')' token
configure:3666: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "scsh"
| #define PACKAGE_TARNAME "scsh"
| #define PACKAGE_VERSION "0.7"
| #define PACKAGE_STRING "scsh 0.7"
| #define PACKAGE_BUGREPORT "roderyc@gmail.com"
| #define PACKAGE_URL ""
| #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_FCNTL_H 1
| #define HAVE_LIMITS_H 1
| #define HAVE_NETDB_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_SYS_IOCTL_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_TERMIOS_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_UTIME_H 1
| #define HAVE_SCHEME48_H 1
| /* end confdefs.h.  */
| #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 ((ssize_t)))
|       return 0;
|   ;
|   return 0;
| }
configure:3666: result: yes
configure:3679: checking for uid_t in sys/types.h
configure:3698: result: yes
configure:3711: checking for unistd.h
configure:3711: result: yes
configure:3721: checking for working chown
configure:3754: gcc -o conftest -g -O2  -I/usr/local/include  conftest.c  >&5
configure:3754: $? = 0
configure:3754: ./conftest
configure:3754: $? = 0
configure:3766: result: yes
configure:3776: checking vfork.h usability
configure:3776: gcc -c -g -O2  -I/usr/local/include conftest.c >&5
conftest.c:66:19: error: vfork.h: No such file or directory
configure:3776: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "scsh"
| #define PACKAGE_TARNAME "scsh"
| #define PACKAGE_VERSION "0.7"
| #define PACKAGE_STRING "scsh 0.7"
| #define PACKAGE_BUGREPORT "roderyc@gmail.com"
| #define PACKAGE_URL ""
| #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_FCNTL_H 1
| #define HAVE_LIMITS_H 1
| #define HAVE_NETDB_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_SYS_IOCTL_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_TERMIOS_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_UTIME_H 1
| #define HAVE_SCHEME48_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_CHOWN 1
| /* end confdefs.h.  */
| #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 <vfork.h>
configure:3776: result: no
configure:3776: checking vfork.h presence
configure:3776: gcc -E  -I/usr/local/include conftest.c
conftest.c:33:19: error: vfork.h: No such file or directory
configure:3776: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "scsh"
| #define PACKAGE_TARNAME "scsh"
| #define PACKAGE_VERSION "0.7"
| #define PACKAGE_STRING "scsh 0.7"
| #define PACKAGE_BUGREPORT "roderyc@gmail.com"
| #define PACKAGE_URL ""
| #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_FCNTL_H 1
| #define HAVE_LIMITS_H 1
| #define HAVE_NETDB_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_SYS_IOCTL_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_TERMIOS_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_UTIME_H 1
| #define HAVE_SCHEME48_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_CHOWN 1
| /* end confdefs.h.  */
| #include <vfork.h>
configure:3776: result: no
configure:3776: checking for vfork.h
configure:3776: result: no
configure:3789: checking for fork
configure:3789: gcc -o conftest -g -O2  -I/usr/local/include  conftest.c  >&5
conftest.c:56: warning: conflicting types for built-in function 'fork'
configure:3789: $? = 0
configure:3789: result: yes
configure:3789: checking for vfork
configure:3789: gcc -o conftest -g -O2  -I/usr/local/include  conftest.c  >&5
configure:3789: $? = 0
configure:3789: result: yes
configure:3799: checking for working fork
configure:3821: gcc -o conftest -g -O2  -I/usr/local/include  conftest.c  >&5
configure:3821: $? = 0
configure:3821: ./conftest
configure:3821: $? = 0
configure:3831: result: yes
configure:3852: checking for working vfork
configure:3962: result: yes
configure:3987: checking whether lstat correctly handles trailing slash
configure:4013: gcc -o conftest -g -O2  -I/usr/local/include  conftest.c  >&5
configure:4013: $? = 0
configure:4013: ./conftest
configure:4013: $? = 0
configure:4030: result: yes
configure:4051: checking for stdlib.h
configure:4051: result: yes
configure:4061: checking for GNU libc compatible malloc
configure:4085: gcc -o conftest -g -O2  -I/usr/local/include  conftest.c  >&5
configure:4085: $? = 0
configure:4085: ./conftest
configure:4085: $? = 0
configure:4095: result: yes
configure:4118: checking for stdlib.h
configure:4118: result: yes
configure:4128: checking for GNU libc compatible realloc
configure:4152: gcc -o conftest -g -O2  -I/usr/local/include  conftest.c  >&5
configure:4152: $? = 0
configure:4152: ./conftest
configure:4152: $? = 0
configure:4162: result: yes
configure:4186: checking for dup2
configure:4186: gcc -o conftest -g -O2  -I/usr/local/include  conftest.c  >&5
configure:4186: $? = 0
configure:4186: result: yes
configure:4186: checking for ftruncate
configure:4186: gcc -o conftest -g -O2  -I/usr/local/include  conftest.c  >&5
configure:4186: $? = 0
configure:4186: result: yes
configure:4186: checking for gethostname
configure:4186: gcc -o conftest -g -O2  -I/usr/local/include  conftest.c  >&5
configure:4186: $? = 0
configure:4186: result: yes
configure:4186: checking for memset
configure:4186: gcc -o conftest -g -O2  -I/usr/local/include  conftest.c  >&5
conftest.c:68: warning: conflicting types for built-in function 'memset'
configure:4186: $? = 0
configure:4186: result: yes
configure:4186: checking for select
configure:4186: gcc -o conftest -g -O2  -I/usr/local/include  conftest.c  >&5
configure:4186: $? = 0
configure:4186: result: yes
configure:4186: checking for utime
configure:4186: gcc -o conftest -g -O2  -I/usr/local/include  conftest.c  >&5
configure:4186: $? = 0
configure:4186: result: yes
configure:4195: checking for openpty
configure:4195: gcc -o conftest -g -O2  -I/usr/local/include  conftest.c  >&5
/tmp//cc4uaGCC.o: In function `main':
/home/martin/scsh/conftest.c:82: undefined reference to `openpty'
configure:4195: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "scsh"
| #define PACKAGE_TARNAME "scsh"
| #define PACKAGE_VERSION "0.7"
| #define PACKAGE_STRING "scsh 0.7"
| #define PACKAGE_BUGREPORT "roderyc@gmail.com"
| #define PACKAGE_URL ""
| #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_FCNTL_H 1
| #define HAVE_LIMITS_H 1
| #define HAVE_NETDB_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_SYS_IOCTL_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_TERMIOS_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_UTIME_H 1
| #define HAVE_SCHEME48_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_CHOWN 1
| #define HAVE_FORK 1
| #define HAVE_VFORK 1
| #define HAVE_WORKING_VFORK 1
| #define HAVE_WORKING_FORK 1
| #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
| #define HAVE_STDLIB_H 1
| #define HAVE_MALLOC 1
| #define HAVE_STDLIB_H 1
| #define HAVE_REALLOC 1
| #define HAVE_DUP2 1
| #define HAVE_FTRUNCATE 1
| #define HAVE_GETHOSTNAME 1
| #define HAVE_MEMSET 1
| #define HAVE_SELECT 1
| #define HAVE_UTIME 1
| /* end confdefs.h.  */
| /* Define openpty to an innocuous variant, in case <limits.h> declares openpty.
|    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
| #define openpty innocuous_openpty
| 
| /* System header to define __stub macros and hopefully few prototypes,
|     which can conflict with char openpty (); 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 openpty
| 
| /* 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 openpty ();
| /* 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_openpty || defined __stub___openpty
| choke me
| #endif
| 
| int
| main ()
| {
| return openpty ();
|   ;
|   return 0;
| }
configure:4195: result: no
configure:4200: checking for openpty in -lutil
configure:4225: gcc -o conftest -g -O2  -I/usr/local/include  conftest.c -lutil   >&5
configure:4225: $? = 0
configure:4234: result: yes
configure:4249: checking libutil.h usability
configure:4249: gcc -c -g -O2  -I/usr/local/include conftest.c >&5
configure:4249: $? = 0
configure:4249: result: yes
configure:4249: checking libutil.h presence
configure:4249: gcc -E  -I/usr/local/include conftest.c
configure:4249: $? = 0
configure:4249: result: yes
configure:4249: checking for libutil.h
configure:4249: result: yes
configure:4263: checking how to compile position independent code
configure:4286: result: -fPIC
configure:4290: checking -rdynamic
configure:4303: gcc -o conftest -g -O2  -I/usr/local/include  -rdynamic conftest.c  -lutil >&5
configure:4303: $? = 0
configure:4303: ./conftest
configure:4303: $? = 0
configure:4304: result: yes
configure:4320: checking for ld
configure:4336: found /usr/bin/ld
configure:4347: result: ld
configure:4358: checking compile and link flags for dynamic externals
configure:4400: result: -fPIC, -shared
configure:4526: creating ./config.status

## ---------------------- ##
## Running config.status. ##
## ---------------------- ##

This file was extended by scsh config.status 0.7, which was
generated by GNU Autoconf 2.69.  Invocation command line was

CONFIG_FILES    = 
CONFIG_HEADERS  = 
CONFIG_LINKS    = 
CONFIG_COMMANDS = 
$ ./config.status 

on rincewind.arp242.net

config.status:846: creating Makefile
config.status:846: creating c/config.h
config.status:1021: c/config.h is unchanged

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=x86_64-unknown-freebsd9.1
ac_cv_c_compiler_gnu=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_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_chown_works=yes
ac_cv_func_dup2=yes
ac_cv_func_fork=yes
ac_cv_func_fork_works=yes
ac_cv_func_ftruncate=yes
ac_cv_func_gethostname=yes
ac_cv_func_lstat_dereferences_slashed_symlink=yes
ac_cv_func_malloc_0_nonnull=yes
ac_cv_func_memset=yes
ac_cv_func_openpty=no
ac_cv_func_realloc_0_nonnull=yes
ac_cv_func_select=yes
ac_cv_func_utime=yes
ac_cv_func_vfork=yes
ac_cv_func_vfork_works=yes
ac_cv_header_fcntl_h=yes
ac_cv_header_inttypes_h=yes
ac_cv_header_libutil_h=yes
ac_cv_header_limits_h=yes
ac_cv_header_memory_h=yes
ac_cv_header_netdb_h=yes
ac_cv_header_scheme48_h=yes
ac_cv_header_sgtty_h=no
ac_cv_header_stdc=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_ioctl_h=yes
ac_cv_header_sys_param_h=yes
ac_cv_header_sys_stat_h=yes
ac_cv_header_sys_time_h=yes
ac_cv_header_sys_types_h=yes
ac_cv_header_termios_h=yes
ac_cv_header_unistd_h=yes
ac_cv_header_utime_h=yes
ac_cv_header_vfork_h=no
ac_cv_host=x86_64-unknown-freebsd9.1
ac_cv_lib_util_openpty=yes
ac_cv_objext=o
ac_cv_path_EGREP='/usr/bin/grep -E'
ac_cv_path_GREP=/usr/bin/grep
ac_cv_path_SCHEME48=/usr/local/bin/scheme48
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_CPP='gcc -E'
ac_cv_prog_LD=ld
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_cc_c89=''
ac_cv_prog_cc_g=yes
ac_cv_type_pid_t=yes
ac_cv_type_size_t=yes
ac_cv_type_ssize_t=yes
ac_cv_type_uid_t=yes

## ----------------- ##
## Output variables. ##
## ----------------- ##

CC='gcc'
CFLAGS='-g -O2'
CPP='gcc -E'
CPPFLAGS=' -I/usr/local/include'
DEFS='-DHAVE_CONFIG_H'
DYNAMIC_EXTERNALS_CFLAGS='-fPIC'
DYNAMIC_EXTERNALS_LDFLAGS='-shared'
DYNAMIC_EXTERNALS_LDFLAGS_IN_PLACE='-shared'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP='/usr/bin/grep -E'
EXEEXT=''
GREP='/usr/bin/grep'
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
LD='ld'
LDFLAGS=' -rdynamic'
LIBOBJS=''
LIBS=' -lutil'
LTLIBOBJS=''
OBJEXT='o'
PACKAGE_BUGREPORT='roderyc@gmail.com'
PACKAGE_NAME='scsh'
PACKAGE_STRING='scsh 0.7'
PACKAGE_TARNAME='scsh'
PACKAGE_URL=''
PACKAGE_VERSION='0.7'
PATH_SEPARATOR=':'
S48DIR='/usr/local'
SCHEME48='/usr/local/bin/scheme48'
SHELL='/bin/sh'
ac_ct_CC='gcc'
bindir='${exec_prefix}/bin'
build='x86_64-unknown-freebsd9.1'
build_alias=''
build_cpu='x86_64'
build_os='freebsd9.1'
build_vendor='unknown'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='${prefix}'
host='x86_64-unknown-freebsd9.1'
host_alias=''
host_cpu='x86_64'
host_os='freebsd9.1'
host_vendor='unknown'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
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}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME "scsh"
#define PACKAGE_TARNAME "scsh"
#define PACKAGE_VERSION "0.7"
#define PACKAGE_STRING "scsh 0.7"
#define PACKAGE_BUGREPORT "roderyc@gmail.com"
#define PACKAGE_URL ""
#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_FCNTL_H 1
#define HAVE_LIMITS_H 1
#define HAVE_NETDB_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRING_H 1
#define HAVE_SYS_IOCTL_H 1
#define HAVE_SYS_PARAM_H 1
#define HAVE_SYS_TIME_H 1
#define HAVE_TERMIOS_H 1
#define HAVE_UNISTD_H 1
#define HAVE_UTIME_H 1
#define HAVE_SCHEME48_H 1
#define HAVE_UNISTD_H 1
#define HAVE_CHOWN 1
#define HAVE_FORK 1
#define HAVE_VFORK 1
#define HAVE_WORKING_VFORK 1
#define HAVE_WORKING_FORK 1
#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
#define HAVE_STDLIB_H 1
#define HAVE_MALLOC 1
#define HAVE_STDLIB_H 1
#define HAVE_REALLOC 1
#define HAVE_DUP2 1
#define HAVE_FTRUNCATE 1
#define HAVE_GETHOSTNAME 1
#define HAVE_MEMSET 1
#define HAVE_SELECT 1
#define HAVE_UTIME 1
#define HAVE_OPENPTY 1
#define HAVE_LIBUTIL_H 1

configure: exit 0
roderyc commented 11 years ago

Hey @Carpetsmoker, thanks for the report. Could you try out revision ce286505c7 and let me know if it builds?

arp242 commented 11 years ago

Thanks Roderic, the build & running scsh with ./go now work fine. :-)