Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 May 1995 13:06:16 -0500
From:      "John A. Perry" <perry@vishnu.alias.net>
To:        freebsd-questions@freefall.cdrom.com
Subject:   I need help with pcvt!
Message-ID:  <199505211806.NAA24790@vishnu.alias.net>

next in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE-----

I'm trying to compile pcvt 3.00 under FreeBSD 1.1.5.1R. I was able to
compile this package under version 1.1 without a hitch. But now,
trying to compile under 1.1.5.1R is giving me nothing but
headaches. Out of the box, pcvt 3.00 is giving me the following errors
when I try to compile it into a kernel:

cc  -c -O -D__FreeBSD__ -W -Wreturn-type -Wcomment  -I. -I../.. -I../../sys -DJPUNIX -DI486_CPU -DPCVT_META_ESC=0 -DPCVT_EMU_MOUSE=0 -DPCVT_24LINESDEF=1 -DPCVT_USEKBDSEC=1 -DPCVT_CTRL_ALT_DEL=0 -DPCVT_PRETTYSCRNS=1 -DPCVT_NSCREENS=4 -DPCVT_220KEYB=0 -DPCVT_FREEBSD=1151 -DCOM_BIDIR -DGATEWAY -DFAT_CURSOR -DTCP_COMPAT_42 -DCOMPAT_43 -DPCFS -DNFS -DISOFS -DINET -DKERNEL -Di386 -DNPX  ../../i386/isa/pcvt/pcvt_drv.c
../../i386/isa/pcvt/pcvt_drv.c: In function `pcopen':
../../i386/isa/pcvt/pcvt_drv.c:333: `TS_WOPEN' undeclared (first use this function)
../../i386/isa/pcvt/pcvt_drv.c:333: (Each undeclared identifier is reported only once
../../i386/isa/pcvt/pcvt_drv.c:333: for each function it appears in.)
../../i386/isa/pcvt/pcvt_drv.c: In function `pcstart':
../../i386/isa/pcvt/pcvt_drv.c:695: request for member `rb_hd' in something not a structure or union
../../i386/isa/pcvt/pcvt_drv.c:695: request for member `rb_tl' in something not a structure or union
../../i386/isa/pcvt/pcvt_drv.c:695: request for member `rb_tl' in something not a structure or union
../../i386/isa/pcvt/pcvt_drv.c:695: request for member `rb_hd' in something not a structure or union
../../i386/isa/pcvt/pcvt_drv.c:695: request for member `rb_hd' in something not a structure or union
../../i386/isa/pcvt/pcvt_drv.c:695: request for member `rb_tl' in something not a structure or union
../../i386/isa/pcvt/pcvt_drv.c:697: `TS_ASLEEP' undeclared (first use this function)
../../i386/isa/pcvt/pcvt_drv.c:711: request for member `rb_hd' in something not a structure or union
../../i386/isa/pcvt/pcvt_drv.c:711: request for member `rb_tl' in something not a structure or union
../../i386/isa/pcvt/pcvt_drv.c:711: request for member `rb_tl' in something not a structure or union
../../i386/isa/pcvt/pcvt_drv.c:711: request for member `rb_hd' in something not a structure or union
../../i386/isa/pcvt/pcvt_drv.c:711: request for member `rb_hd' in something not a structure or union
../../i386/isa/pcvt/pcvt_drv.c:711: request for member `rb_tl' in something not a structure or union
../../i386/isa/pcvt/pcvt_drv.c:716: warning: passing arg 1 of `getc' from incompatible pointer type
*** Error code 1

Stop.

Ok. I discovered that pcvt_drv.c probably needed to call sys/tty.h in
order to clear these problems out. So I added a #include <sys/tty.h>
to pcvt_drv.c and now this is what I get:

cc  -c -O -D__FreeBSD__ -W -Wreturn-type -Wcomment  -I. -I../.. -I../../sys -DJPUNIX -DI486_CPU -DPCVT_META_ESC=0 -DPCVT_EMU_MOUSE=0 -DPCVT_24LINESDEF=1 -DPCVT_USEKBDSEC=1 -DPCVT_CTRL_ALT_DEL=0 -DPCVT_PRETTYSCRNS=1 -DPCVT_NSCREENS=4 -DPCVT_220KEYB=0 -DPCVT_FREEBSD=1151 -DCOM_BIDIR -DGATEWAY -DFAT_CURSOR -DTCP_COMPAT_42 -DCOMPAT_43 -DPCFS -DNFS -DISOFS -DINET -DKERNEL -Di386 -DNPX  ../../i386/isa/pcvt/pcvt_drv.c
In file included from ../../i386/isa/pcvt/pcvt_drv.c:77:
../../sys/tty.h:89: parse error before `pid_t'
../../sys/tty.h:89: warning: no semicolon at end of struct or union
../../sys/tty.h:90: warning: data definition has no type or storage class
../../sys/tty.h:91: parse error before `T_LINEP'
../../sys/tty.h:91: warning: data definition has no type or storage class
../../sys/tty.h:95: parse error before `t_dev'
../../sys/tty.h:95: warning: data definition has no type or storage class
../../sys/tty.h:126: parse error before `}'
../../sys/tty.h:242: parse error before `caddr_t'
../../sys/tty.h:259: parse error before `caddr_t'
../../sys/tty.h:273: parse error before `rb_write'
../../sys/tty.h:273: parse error before `size_t'
../../sys/tty.h:273: warning: data definition has no type or storage class
../../sys/tty.h:276: parse error before `caddr_t'
In file included from ../../i386/isa/pcvt/pcvt_drv.c:83:
../../i386/isa/pcvt/pcvt_hdr.h:1224: invalid use of undefined type `struct tty'
../../i386/isa/pcvt/pcvt_drv.c: In function `pcattach':
../../i386/isa/pcvt/pcvt_drv.c:247: invalid use of undefined type `struct tty'
../../i386/isa/pcvt/pcvt_drv.c: In function `get_pccons':
../../i386/isa/pcvt/pcvt_drv.c:270: invalid use of undefined type `struct tty'
../../i386/isa/pcvt/pcvt_drv.c: In function `pcopen':
../../i386/isa/pcvt/pcvt_drv.c:327: dereferencing pointer to incomplete type
../../i386/isa/pcvt/pcvt_drv.c:328: dereferencing pointer to incomplete type
../../i386/isa/pcvt/pcvt_drv.c:329: dereferencing pointer to incomplete type
../../i386/isa/pcvt/pcvt_drv.c:331: dereferencing pointer to incomplete type
../../i386/isa/pcvt/pcvt_drv.c:333: dereferencing pointer to incomplete type
../../i386/isa/pcvt/pcvt_drv.c:333: `TS_WOPEN' undeclared (first use this function)
../../i386/isa/pcvt/pcvt_drv.c:333: (Each undeclared identifier is reported only once
../../i386/isa/pcvt/pcvt_drv.c:333: for each function it appears in.)
../../i386/isa/pcvt/pcvt_drv.c:335: dereferencing pointer to incomplete type
../../i386/isa/pcvt/pcvt_drv.c:336: dereferencing pointer to incomplete type
../../i386/isa/pcvt/pcvt_drv.c:337: dereferencing pointer to incomplete type
../../i386/isa/pcvt/pcvt_drv.c:338: dereferencing pointer to incomplete type
../../i386/isa/pcvt/pcvt_drv.c:339: dereferencing pointer to incomplete type
../../i386/isa/pcvt/pcvt_drv.c:339: dereferencing pointer to incomplete type
../../i386/isa/pcvt/pcvt_drv.c:340: dereferencing pointer to incomplete type
../../i386/isa/pcvt/pcvt_drv.c:343: dereferencing pointer to incomplete type
../../i386/isa/pcvt/pcvt_drv.c:346: dereferencing pointer to incomplete type
../../i386/isa/pcvt/pcvt_drv.c:347: dereferencing pointer to incomplete type
../../i386/isa/pcvt/pcvt_drv.c:352: dereferencing pointer to incomplete type
../../i386/isa/pcvt/pcvt_drv.c: In function `pcclose':
../../i386/isa/pcvt/pcvt_drv.c:374: dereferencing pointer to incomplete type
../../i386/isa/pcvt/pcvt_drv.c: In function `pcread':
../../i386/isa/pcvt/pcvt_drv.c:419: dereferencing pointer to incomplete type
../../i386/isa/pcvt/pcvt_drv.c: In function `pcwrite':
../../i386/isa/pcvt/pcvt_drv.c:430: dereferencing pointer to incomplete type
../../i386/isa/pcvt/pcvt_drv.c: In function `pcioctl':
../../i386/isa/pcvt/pcvt_drv.c:558: dereferencing pointer to incomplete type
../../i386/isa/pcvt/pcvt_drv.c: In function `pcrint':
../../i386/isa/pcvt/pcvt_drv.c:619: dereferencing pointer to incomplete type
../../i386/isa/pcvt/pcvt_drv.c: In function `pcstart':
../../i386/isa/pcvt/pcvt_drv.c:688: dereferencing pointer to incomplete type
../../i386/isa/pcvt/pcvt_drv.c:695: dereferencing pointer to incomplete type
../../i386/isa/pcvt/pcvt_drv.c:695: dereferencing pointer to incomplete type
../../i386/isa/pcvt/pcvt_drv.c:695: dereferencing pointer to incomplete type
../../i386/isa/pcvt/pcvt_drv.c:695: dereferencing pointer to incomplete type
../../i386/isa/pcvt/pcvt_drv.c:695: dereferencing pointer to incomplete type
../../i386/isa/pcvt/pcvt_drv.c:695: dereferencing pointer to incomplete type
../../i386/isa/pcvt/pcvt_drv.c:695: dereferencing pointer to incomplete type
../../i386/isa/pcvt/pcvt_drv.c:697: dereferencing pointer to incomplete type
../../i386/isa/pcvt/pcvt_drv.c:697: `TS_ASLEEP' undeclared (first use this function)
../../i386/isa/pcvt/pcvt_drv.c:699: dereferencing pointer to incomplete type
../../i386/isa/pcvt/pcvt_drv.c:700: dereferencing pointer to incomplete type
../../i386/isa/pcvt/pcvt_drv.c:703: dereferencing pointer to incomplete type
../../i386/isa/pcvt/pcvt_drv.c:705: dereferencing pointer to incomplete type
../../i386/isa/pcvt/pcvt_drv.c:705: dereferencing pointer to incomplete type
../../i386/isa/pcvt/pcvt_drv.c:706: dereferencing pointer to incomplete type
../../i386/isa/pcvt/pcvt_drv.c:707: dereferencing pointer to incomplete type
../../i386/isa/pcvt/pcvt_drv.c:711: dereferencing pointer to incomplete type
../../i386/isa/pcvt/pcvt_drv.c:711: dereferencing pointer to incomplete type
../../i386/isa/pcvt/pcvt_drv.c:711: dereferencing pointer to incomplete type
../../i386/isa/pcvt/pcvt_drv.c:711: dereferencing pointer to incomplete type
../../i386/isa/pcvt/pcvt_drv.c:711: dereferencing pointer to incomplete type
../../i386/isa/pcvt/pcvt_drv.c:711: dereferencing pointer to incomplete type
../../i386/isa/pcvt/pcvt_drv.c:716: dereferencing pointer to incomplete type
../../i386/isa/pcvt/pcvt_drv.c:718: dereferencing pointer to incomplete type
../../i386/isa/pcvt/pcvt_drv.c:720: dereferencing pointer to incomplete type
../../i386/isa/pcvt/pcvt_drv.c:722: dereferencing pointer to incomplete type
../../i386/isa/pcvt/pcvt_drv.c: In function `pccnprobe':
../../i386/isa/pcvt/pcvt_drv.c:760: invalid use of undefined type `struct tty'
../../i386/isa/pcvt/pcvt_drv.c: In function `pcparam':
../../i386/isa/pcvt/pcvt_drv.c:816: dereferencing pointer to incomplete type
../../i386/isa/pcvt/pcvt_drv.c:817: dereferencing pointer to incomplete type
../../i386/isa/pcvt/pcvt_drv.c:818: dereferencing pointer to incomplete type
../../i386/isa/pcvt/pcvt_hdr.h: At top level:
../../i386/isa/pcvt/pcvt_hdr.h:1033: storage size of `pccons' isn't known
*** Error code 1

Stop.

So what changed from 1.1 to 1.1.5.1 that won't let me compile pcvt
into the kernel? I sure would like to have it!

 John Perry - KG5RG - perry@jpunix.com -  PGP-encrypted e-mail welcome!
 WWW - http://www.jpunix.com
 PGP 2.62 key for perry@jpunix.com is on the keyservers.
 Finger kserver@jpunix.com for PGP keyserver help.

-----BEGIN PGP SIGNATURE-----
Version: 2.6.2

iQCVAwUBL7+BC1OTpEThrthvAQEZPwQApWTtG4yr+fKWPglddCqD7eT6Z3QAn5za
pAeouZb6AG+DJClXR/UcmyWv26F66n4Nm/pmIrNwu6c67ZzjX5W1X5nuEgNYQcRI
MmZP++SyUazANfYJgp3ilqa4WFkckwNmNuN6vBYbiYifLuZlNB9gCD7eOCmjJX2q
6L9MSeVbx1U=
=xcUQ
-----END PGP SIGNATURE-----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199505211806.NAA24790>