From: demunday@miavx2.ham.muohio.edu
Subject: select error and lots-o-beeps on initial startup
Organization: GNUs Not Usenet
Distribution: gnu
Date: Thu, 7 Jan 1993 09:22:05 GMT

I've spent a day and a half fiddling with parameters and I just cant get
this to install and run properly.

I'm trying to install emacs-18.59 on a perfectly generic 486 machine
running SCO UNIX System V/386 Release 3.2 Version 2.0.  I am using the 
compiler and libraries that come with the SCO 3.2.2 developer's set.

I uncompress and un-tar the files from uunet ok except for some non-sense 
errors about tar being unable to create directories. (It creates every
directory that it claims to be unable to create, and the resulting directory 
tree seems to match what's described in the install notes.)

I set the system file to s-sco3-2-2.h and the machine file to m-intel386.h
in the config.h file, as instructed in the MACHINES file.  I am using the
default /usr/local/bin, /usr/local/emacs, and /usr/local/man, so I leave
all the pathnames unchanged.

>From the root account and the build directory tree (emacs-18.59) I invoke make
as follows:

make Makefile install.sysv 2>&1 | tee /u/emacs/make.log

A transcript of the output follows this message.

In looking at the transcript there are a bunch of compiler warnings C4011 and 
C4067.  The 4011 identifyer name truncated warning is mentioned in the docs
and is to be ignored.  the 4067 results from a comment following rhe #endif
directive.  This also looks like it can be ignored.

stripping out the 4011's and 4067's there doesn't seem to be any 
problem with the installation.  everything ends up where the docs say it should
but when I envoke emacs on a text file i see the first page of the text file
displayed above a status line and an error which reads:

-----Emacs: README                   (Fundamental)----Top--------------------
select error: Invalid argument

the terminal then emits a never ending string of bells (ctl-G's i suppose)
and accepts no input.  It even lockcs PC-Term so I can't break out of it.
the emacs process must be killed from another terminal or the line must
be disconnected.

Has anyone encountered this behaviour before?  Any Ideas?

I'm really sick of using vi on this thing and I'd like to get emacs up, but 
at this point i'm stumped.



Dave Munday
demunday@miavx2.ham.muohio.edu



------------------<begin transcript>---------------------------------
`Makefile' is up to date.
        sed 's;/usr/local/emacs;/usr/local/emacs;g' < src/paths.h-dist > src/paths.h
        cd etc; make  all
        cc -o test-distrib test-distrib.c
test-distrib.c
        ./test-distrib
        cc -o etags -g -DETAGS etags.c 
etags.c
        cc -o ctags -g -DCTAGS etags.c 
etags.c
        cc -o wakeup -g wakeup.c 
wakeup.c
        cc -o make-docfile -g make-docfile.c 
make-docfile.c
        cc -o digest-doc -g digest-doc.c 
digest-doc.c
        cc -o sorted-doc -g sorted-doc.c 
sorted-doc.c
        cc -o movemail -g movemail.c 
movemail.c
        cc -o cvtmail -g cvtmail.c 
cvtmail.c
        cc -o fakemail -g fakemail.c 
fakemail.c
        cc -o yow -g yow.c 
yow.c
        cc -o env -DEMACS -g env.c 
env.c
        cc -o server -g server.c 
server.c
        cc -o emacsclient -g emacsclient.c 
emacsclient.c
        cd src; make  all
        rm -f xmakefile junk.c
        cp ymakefile junk.c
        cc -E junk.c | sed -e 's/^#.*//' -e 's/^[       ][      ]*$//' -e 's/^ /        /' | \
        sed -n -e '/^..*$/p' > xmakefile
        rm -f junk.c
        make    -f xmakefile  all
        cc -g -Demacs      -c pre-crt0.c
pre-crt0.c
        cc -g -Demacs      -c dispnew.c
dispnew.c
commands.h(36) : warning C4011: identifier truncated to 'Vminibuffer_local_completion_ma'
commands.h(39) : warning C4011: identifier truncated to 'Vminibuffer_local_must_match_ma'
dispnew.c(589) : warning C4067: unexpected characters following '#endif' directive - newline expected
dispnew.c(593) : warning C4067: unexpected characters following '#endif' directive - newline expected
dispnew.c(597) : warning C4067: unexpected characters following '#endif' directive - newline expected
        cc -g -Demacs      -c scroll.c
scroll.c
        cc -g -Demacs      -c xdisp.c
xdisp.c
commands.h(36) : warning C4011: identifier truncated to 'Vminibuffer_local_completion_ma'
commands.h(39) : warning C4011: identifier truncated to 'Vminibuffer_local_must_match_ma'
xdisp.c(2110) : warning C4067: unexpected characters following '#endif' directive - newline expected
        cc -g -Demacs      -c window.c
window.c
commands.h(36) : warning C4011: identifier truncated to 'Vminibuffer_local_completion_ma'
commands.h(39) : warning C4011: identifier truncated to 'Vminibuffer_local_must_match_ma'
        cc -g -Demacs      -c term.c
term.c
        cc -g -Demacs      -c cm.c
cm.c
        cc -g -Demacs      -c emacs.c
emacs.c
commands.h(36) : warning C4011: identifier truncated to 'Vminibuffer_local_completion_ma'
commands.h(39) : warning C4011: identifier truncated to 'Vminibuffer_local_must_match_ma'
emacs.c(317) : warning C4067: unexpected characters following '#endif' directive - newline expected
emacs.c(405) : warning C4067: unexpected characters following '#endif' directive - newline expected
emacs.c(492) : warning C4067: unexpected characters following '#endif' directive - newline expected
        cc -g -Demacs      -c keyboard.c
keyboard.c
commands.h(36) : warning C4011: identifier truncated to 'Vminibuffer_local_completion_ma'
commands.h(39) : warning C4011: identifier truncated to 'Vminibuffer_local_must_match_ma'
keyboard.c(1046) : warning C4011: identifier truncated to 'internal_with_output_to_temp_bu'
        cc -g -Demacs      -c macros.c
macros.c
commands.h(36) : warning C4011: identifier truncated to 'Vminibuffer_local_completion_ma'
commands.h(39) : warning C4011: identifier truncated to 'Vminibuffer_local_must_match_ma'
        cc -g -Demacs      -c keymap.c
keymap.c
commands.h(36) : warning C4011: identifier truncated to 'Vminibuffer_local_completion_ma'
commands.h(39) : warning C4011: identifier truncated to 'Vminibuffer_local_must_match_ma'
keymap.c(51) : warning C4011: identifier truncated to 'Vminibuffer_local_completion_ma'
keymap.c(54) : warning C4011: identifier truncated to 'Vminibuffer_local_must_match_ma'
keymap.c(875) : warning C4011: identifier truncated to 'internal_with_output_to_temp_bu'
keymap.c(1231) : warning C4011: identifier truncated to 'internal_with_output_to_temp_bu'
keymap.c(1278) : warning C4011: identifier truncated to 'Vminibuffer_local_completion_ma'
keymap.c(1279) : warning C4011: identifier truncated to 'Vminibuffer_local_completion_ma'
keymap.c(1283) : warning C4011: identifier truncated to 'Vminibuffer_local_must_match_ma'
keymap.c(1284) : warning C4011: identifier truncated to 'Vminibuffer_local_must_match_ma'
        cc -g -Demacs      -c sysdep.c
sysdep.c
        cc -g -Demacs      -c buffer.c
buffer.c
commands.h(36) : warning C4011: identifier truncated to 'Vminibuffer_local_completion_ma'
commands.h(39) : warning C4011: identifier truncated to 'Vminibuffer_local_must_match_ma'
buffer.c(334) : warning C4067: unexpected characters following '#endif' directive - newline expected
buffer.c(604) : warning C4067: unexpected characters following '#endif' directive - newline expected
buffer.c(1007) : warning C4011: identifier truncated to 'internal_with_output_to_temp_bu'
        cc -g -Demacs      -c filelock.c
filelock.c
        cc -g -Demacs      -c insdel.c
insdel.c
insdel.c(344) : warning C4011: identifier truncated to 'insert_from_string_before_marke'
        cc -g -Demacs      -c marker.c
marker.c
        cc -g -Demacs      -c minibuf.c
minibuf.c
commands.h(36) : warning C4011: identifier truncated to 'Vminibuffer_local_completion_ma'
commands.h(39) : warning C4011: identifier truncated to 'Vminibuffer_local_must_match_ma'
minibuf.c(651) : warning C4011: identifier truncated to 'Vminibuffer_completion_predicat'
minibuf.c(651) : warning C4011: identifier truncated to 'Qminibuffer_completion_predicat'
minibuf.c(671) : warning C4011: identifier truncated to 'Qminibuffer_completion_predicat'
minibuf.c(675) : warning C4011: identifier truncated to 'Vminibuffer_local_completion_ma'
minibuf.c(676) : warning C4011: identifier truncated to 'Vminibuffer_local_must_match_ma'
minibuf.c(721) : warning C4011: identifier truncated to 'Vminibuffer_completion_predicat'
minibuf.c(757) : warning C4011: identifier truncated to 'Vminibuffer_completion_predicat'
minibuf.c(758) : warning C4011: identifier truncated to 'Vminibuffer_completion_predicat'
minibuf.c(765) : warning C4011: identifier truncated to 'Vminibuffer_completion_predicat'
minibuf.c(884) : warning C4011: identifier truncated to 'Vminibuffer_completion_predicat'
minibuf.c(943) : warning C4011: identifier truncated to 'Vminibuffer_completion_predicat'
minibuf.c(950) : warning C4011: identifier truncated to 'Vminibuffer_completion_predicat'
minibuf.c(1034) : warning C4011: identifier truncated to 'Vminibuffer_completion_predicat'
minibuf.c(1042) : warning C4011: identifier truncated to 'internal_with_output_to_temp_bu'
minibuf.c(1090) : warning C4011: identifier truncated to 'Qminibuffer_completion_predicat'
minibuf.c(1091) : warning C4011: identifier truncated to 'Qminibuffer_completion_predicat'
minibuf.c(1119) : warning C4011: identifier truncated to 'Vminibuffer_completion_predicat'
minibuf.c(1120) : warning C4011: identifier truncated to 'Vminibuffer_completion_predicat'
minibuf.c(1168) : warning C4011: identifier truncated to 'Vminibuffer_local_completion_ma'
minibuf.c(1169) : warning C4011: identifier truncated to 'Vminibuffer_local_completion_ma'
minibuf.c(1170) : warning C4011: identifier truncated to 'Vminibuffer_local_completion_ma'
minibuf.c(1171) : warning C4011: identifier truncated to 'Vminibuffer_local_completion_ma'
minibuf.c(1172) : warning C4011: identifier truncated to 'Vminibuffer_local_completion_ma'
minibuf.c(1173) : warning C4011: identifier truncated to 'Vminibuffer_local_completion_ma'
minibuf.c(1175) : warning C4011: identifier truncated to 'Vminibuffer_local_must_match_ma'
minibuf.c(1176) : warning C4011: identifier truncated to 'Vminibuffer_local_must_match_ma'
minibuf.c(1177) : warning C4011: identifier truncated to 'Vminibuffer_local_must_match_ma'
minibuf.c(1178) : warning C4011: identifier truncated to 'Vminibuffer_local_must_match_ma'
minibuf.c(1179) : warning C4011: identifier truncated to 'Vminibuffer_local_must_match_ma'
minibuf.c(1180) : warning C4011: identifier truncated to 'Vminibuffer_local_must_match_ma'
        cc -g -Demacs      -c fileio.c
fileio.c
fileio.c(785) : warning C4067: unexpected characters following '#endif' directive - newline expected
        cc -g -Demacs      -c dired.c
dired.c
commands.h(36) : warning C4011: identifier truncated to 'Vminibuffer_local_completion_ma'
commands.h(39) : warning C4011: identifier truncated to 'Vminibuffer_local_must_match_ma'
        cc -g -Demacs      -c filemode.c
filemode.c
        cc -g -Demacs      -c cmds.c
cmds.c
commands.h(36) : warning C4011: identifier truncated to 'Vminibuffer_local_completion_ma'
commands.h(39) : warning C4011: identifier truncated to 'Vminibuffer_local_must_match_ma'
        cc -g -Demacs      -c casefiddle.c
casefiddle.c
commands.h(36) : warning C4011: identifier truncated to 'Vminibuffer_local_completion_ma'
commands.h(39) : warning C4011: identifier truncated to 'Vminibuffer_local_must_match_ma'
        cc -g -Demacs      -c indent.c
indent.c
        cc -g -Demacs      -c search.c
search.c
commands.h(36) : warning C4011: identifier truncated to 'Vminibuffer_local_completion_ma'
commands.h(39) : warning C4011: identifier truncated to 'Vminibuffer_local_must_match_ma'
        cc -g -Demacs      -c regex.c
regex.c
regex.c(93) : warning C4067: unexpected characters following '#endif' directive - newline expected
regex.c(539) : warning C4067: unexpected characters following '#endif' directive - newline expected
regex.c(836) : warning C4067: unexpected characters following '#endif' directive - newline expected
regex.c(1478) : warning C4067: unexpected characters following '#endif' directive - newline expected
regex.c(1725) : warning C4067: unexpected characters following '#endif' directive - newline expected
        cc -g -Demacs      -c undo.c
undo.c
        cc -g -Demacs      -c alloc.c
alloc.c
alloc.c(121) : warning C4011: identifier truncated to 'internal_with_output_to_temp_bu'
alloc.c(1076) : warning C4067: unexpected characters following '#endif' directive - newline expected
alloc.c(1313) : warning C4067: unexpected characters following '#endif' directive - newline expected
        cc -g -Demacs      -c data.c
data.c
        cc -g -Demacs      -c doc.c
doc.c
        cc -g -Demacs      -c editfns.c
editfns.c
editfns.c(582) : warning C4011: identifier truncated to 'insert_from_string_before_marke'
editfns.c(1049) : warning C4067: unexpected characters following '#endif' directive - newline expected
        cc -g -Demacs      -c callint.c
callint.c
commands.h(36) : warning C4011: identifier truncated to 'Vminibuffer_local_completion_ma'
commands.h(39) : warning C4011: identifier truncated to 'Vminibuffer_local_must_match_ma'
        cc -g -Demacs      -c eval.c
eval.c
commands.h(36) : warning C4011: identifier truncated to 'Vminibuffer_local_completion_ma'
commands.h(39) : warning C4011: identifier truncated to 'Vminibuffer_local_must_match_ma'
eval.c(1094) : warning C4011: identifier truncated to 'internal_with_output_to_temp_bu'
        cc -g -Demacs      -c fns.c
fns.c
commands.h(36) : warning C4011: identifier truncated to 'Vminibuffer_local_completion_ma'
commands.h(39) : warning C4011: identifier truncated to 'Vminibuffer_local_must_match_ma'
        cc -g -Demacs      -c print.c
print.c
print.c(264) : warning C4011: identifier truncated to 'internal_with_output_to_temp_bu'
        cc -g -Demacs      -c lread.c
lread.c
lread.c(468) : warning C4067: unexpected characters following '#endif' directive - newline expected
lread.c(1144) : warning C4067: unexpected characters following '#endif' directive - newline expected
lread.c(1233) : warning C4067: unexpected characters following '#endif' directive - newline expected
        cc -g -Demacs      -c abbrev.c
abbrev.c
commands.h(36) : warning C4011: identifier truncated to 'Vminibuffer_local_completion_ma'
commands.h(39) : warning C4011: identifier truncated to 'Vminibuffer_local_must_match_ma'
abbrev.c(390) : warning C4011: identifier truncated to 'Finsert_abbrev_table_descriptio'
abbrev.c(390) : warning C4011: identifier truncated to 'Sinsert_abbrev_table_descriptio'
abbrev.c(525) : warning C4011: identifier truncated to 'Sinsert_abbrev_table_descriptio'
        cc -g -Demacs      -c syntax.c
syntax.c
commands.h(36) : warning C4011: identifier truncated to 'Vminibuffer_local_completion_ma'
commands.h(39) : warning C4011: identifier truncated to 'Vminibuffer_local_must_match_ma'
syntax.c(358) : warning C4011: identifier truncated to 'internal_with_output_to_temp_bu'
        cc -g -Demacs      -c unexec.c
unexec.c
        cc -g -Demacs      -c mocklisp.c
mocklisp.c
mocklisp.c(196) : warning C4067: unexpected characters following '#endif' directive - newline expected
        cc -g -Demacs      -c bytecode.c
bytecode.c
        cc -g -Demacs      -c process.c
process.c
commands.h(36) : warning C4011: identifier truncated to 'Vminibuffer_local_completion_ma'
commands.h(39) : warning C4011: identifier truncated to 'Vminibuffer_local_must_match_ma'
process.c(957) : warning C4011: identifier truncated to 'internal_with_output_to_temp_bu'
        cc -g -Demacs      -c callproc.c
callproc.c
commands.h(36) : warning C4011: identifier truncated to 'Vminibuffer_local_completion_ma'
commands.h(39) : warning C4011: identifier truncated to 'Vminibuffer_local_must_match_ma'
callproc.c(244) : warning C4067: unexpected characters following '#endif' directive - newline expected
callproc.c(416) : warning C4067: unexpected characters following '#endif' directive - newline expected
        cc -g -Demacs      -c doprnt.c
doprnt.c
        cc -g -Demacs      -c terminfo.c
terminfo.c
        cc -g -Demacs      -c lastfile.c
lastfile.c
        cc -g -Demacs      -c alloca.c
alloca.c
        cc -g -Demacs      -c malloc.c
malloc.c
malloc.c(509) : warning C4067: unexpected characters following '#else' directive - newline expected
        ld   -o temacs pre-crt0.o /lib/crt0.o dispnew.o scroll.o xdisp.o window.o  term.o cm.o   emacs.o keyboard.o macros.o keymap.o sysdep.o  buffer.o filelock.o insdel.o marker.o  minibuf.o fileio.o dired.o filemode.o  cmds.o casefiddle.o indent.o search.o regex.o undo.o  alloc.o data.o doc.o editfns.o callint.o  eval.o fns.o print.o lread.o  abbrev.o syntax.o unexec.o mocklisp.o bytecode.o  process.o callproc.o   doprnt.o terminfo.o lastfile.o alloca.o malloc.o   -lcurses      -lc
        rm -f ../etc/DOC

Newsgroups: gnu.emacs.bug