[hatari-users] Compilation error with Hatari 2.2.0 on Linux |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-users Archives
]
- To: hatari-users@xxxxxxxxxxxxxxxxxxx
- Subject: [hatari-users] Compilation error with Hatari 2.2.0 on Linux
- From: tuxic@xxxxxxxxx
- Date: Fri, 1 Feb 2019 03:41:29 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1548988903; bh=0CkK6B1xmJYSn5WL+UATxOLm9YX1l7ijlfKbGriFBeM=; h=Date:From:To:Subject:From; b=K8/0hxKhwPrzxkvzLEMMVSea9Duwn8Shn08YdROo+VMneifjRCQf7G4F+bmn5nc/r /V1a2Ixc4sHaIJWm4N6VkTqvBgiHlTMmG49ZhUgc9rhdRxzF6an2g/WeUbB4600FOg /K6CT62HdAnnAFQOeqeUyc3Lp4u2u/YnIXspWKq7GXQkOmSP3+8EGTbFVaxjAumak7 TC6kj9Lo69BasBO4eyIjRKKN7dD6PI5y31dS5yeJp8JQMsFpQYdCs8MMGy1rlTXEbL XLKwpTtXAH0qK5Wf79L/pzWt46liFG6gYPVstR4GE95Qr6zXBExCKKUhwHLzPHHSFD j+MykNNRvNC/Q==
Hi,
trying to compile Hatari 2.2.0 on Linux gives me this error:
[ 2%] Built target build68k
[ 5%] Built target gencpu
[ 24%] Built target UaeCpu
[ 27%] Built target Floppy
[ 35%] Built target Debug
[ 39%] Built target Falcon
[ 49%] Built target GuiSdl
[ 49%] Building C object src/CMakeFiles/hatari.dir/floppy_ipf.c.o
/home/mccramer/data/pools/pool05/hatari-2.2.0/src/floppy_ipf.c:64:2: error: unknown type name ‘CapsLong’
CapsLong CapsImage[ MAX_FLOPPYDRIVES ]; /* Image Id or -1 if drive empty */
^~~~~~~~
/home/mccramer/data/pools/pool05/hatari-2.2.0/src/floppy_ipf.c:65:2: error: unknown type name ‘CapsLong’
CapsLong CapsImageType[ MAX_FLOPPYDRIVES ]; /* ImageType or -1 if not known */
^~~~~~~~
/home/mccramer/data/pools/pool05/hatari-2.2.0/src/floppy_ipf.c:86:53: error: unknown type name ‘CapsULong’
static void IPF_CallBack_Trk ( struct CapsFdc *pc , CapsULong State );
^~~~~~~~~
/home/mccramer/data/pools/pool05/hatari-2.2.0/src/floppy_ipf.c:87:53: error: unknown type name ‘CapsULong’
static void IPF_CallBack_Irq ( struct CapsFdc *pc , CapsULong State );
^~~~~~~~~
/home/mccramer/data/pools/pool05/hatari-2.2.0/src/floppy_ipf.c:88:53: error: unknown type name ‘CapsULong’
static void IPF_CallBack_Drq ( struct CapsFdc *pc , CapsULong State );
^~~~~~~~~
/home/mccramer/data/pools/pool05/hatari-2.2.0/src/floppy_ipf.c: In function ‘IPF_MemorySnapShot_Capture’:
/home/mccramer/data/pools/pool05/hatari-2.2.0/src/floppy_ipf.c:170:26: error: ‘IPF_CallBack_Irq’ undeclared (first use in this function)
IPF_State.Fdc.cbirq = IPF_CallBack_Irq;
^~~~~~~~~~~~~~~~
/home/mccramer/data/pools/pool05/hatari-2.2.0/src/floppy_ipf.c:170:26: note: each undeclared identifier is reported only once for each function it appears in
/home/mccramer/data/pools/pool05/hatari-2.2.0/src/floppy_ipf.c:171:26: error: ‘IPF_CallBack_Drq’ undeclared (first use in this function)
IPF_State.Fdc.cbdrq = IPF_CallBack_Drq;
^~~~~~~~~~~~~~~~
/home/mccramer/data/pools/pool05/hatari-2.2.0/src/floppy_ipf.c:172:26: error: ‘IPF_CallBack_Trk’ undeclared (first use in this function)
IPF_State.Fdc.cbtrk = IPF_CallBack_Trk;
^~~~~~~~~~~~~~~~
/home/mccramer/data/pools/pool05/hatari-2.2.0/src/floppy_ipf.c: In function ‘IPF_Init’:
/home/mccramer/data/pools/pool05/hatari-2.2.0/src/floppy_ipf.c:386:24: error: ‘IPF_CallBack_Irq’ undeclared (first use in this function)
IPF_State.Fdc.cbirq = IPF_CallBack_Irq;
^~~~~~~~~~~~~~~~
/home/mccramer/data/pools/pool05/hatari-2.2.0/src/floppy_ipf.c:387:24: error: ‘IPF_CallBack_Drq’ undeclared (first use in this function)
IPF_State.Fdc.cbdrq = IPF_CallBack_Drq;
^~~~~~~~~~~~~~~~
/home/mccramer/data/pools/pool05/hatari-2.2.0/src/floppy_ipf.c:388:24: error: ‘IPF_CallBack_Trk’ undeclared (first use in this function)
IPF_State.Fdc.cbtrk = IPF_CallBack_Trk;
^~~~~~~~~~~~~~~~
/home/mccramer/data/pools/pool05/hatari-2.2.0/src/floppy_ipf.c: In function ‘IPF_Insert’:
/home/mccramer/data/pools/pool05/hatari-2.2.0/src/floppy_ipf.c:422:2: error: unknown type name ‘CapsLong’
CapsLong ImageId;
^~~~~~~~
/home/mccramer/data/pools/pool05/hatari-2.2.0/src/floppy_ipf.c:423:2: error: unknown type name ‘CapsLong’
CapsLong ImageType;
^~~~~~~~
/home/mccramer/data/pools/pool05/hatari-2.2.0/src/floppy_ipf.c:483:55: error: ‘CapsULong’ undeclared (first use in this function)
if ( CAPSLockImageMemory ( ImageId , pImageBuffer , (CapsULong)ImageSize , DI_LOCK_MEMREF ) == imgeOk )
^~~~~~~~~
/home/mccramer/data/pools/pool05/hatari-2.2.0/src/floppy_ipf.c:483:65: error: expected ‘)’ before ‘ImageSize’
if ( CAPSLockImageMemory ( ImageId , pImageBuffer , (CapsULong)ImageSize , DI_LOCK_MEMREF ) == imgeOk )
^~~~~~~~~
)
/home/mccramer/data/pools/pool05/hatari-2.2.0/src/floppy_ipf.c:483:7: error: too few arguments to function ‘CAPSLockImageMemory’
if ( CAPSLockImageMemory ( ImageId , pImageBuffer , (CapsULong)ImageSize , DI_LOCK_MEMREF ) == imgeOk )
^~~~~~~~~~~~~~~~~~~
In file included from /usr/include/caps5/CapsLibAll.h:9,
from /home/mccramer/data/pools/pool05/hatari-2.2.0/src/floppy_ipf.c:33:
/usr/include/caps5/CapsLib.h:21:15: note: declared here
ExtSub SDWORD CAPSLockImageMemory(SDWORD id, PUBYTE buffer, UDWORD length, UDWORD flag);
^~~~~~~~~~~~~~~~~~~
/home/mccramer/data/pools/pool05/hatari-2.2.0/src/floppy_ipf.c: At top level:
/home/mccramer/data/pools/pool05/hatari-2.2.0/src/floppy_ipf.c:716:53: error: unknown type name ‘CapsULong’
static void IPF_CallBack_Trk ( struct CapsFdc *pc , CapsULong State )
^~~~~~~~~
/home/mccramer/data/pools/pool05/hatari-2.2.0/src/floppy_ipf.c:745:53: error: unknown type name ‘CapsULong’
static void IPF_CallBack_Irq ( struct CapsFdc *pc , CapsULong State )
^~~~~~~~~
/home/mccramer/data/pools/pool05/hatari-2.2.0/src/floppy_ipf.c:764:53: error: unknown type name ‘CapsULong’
static void IPF_CallBack_Drq ( struct CapsFdc *pc , CapsULong State )
^~~~~~~~~
make[2]: *** [src/CMakeFiles/hatari.dir/build.make:310: src/CMakeFiles/hatari.dir/floppy_ipf.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:172: src/CMakeFiles/hatari.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
[1] 8682 exit 2 make
Installed on the system are
[I] sys-devel/gcc
Installed versions: 8.2.0-r6(8.2.0)^s(03:46:19 PM 12/31/2018)(cxx fortran nls nptl openmp pch pie sanitize ssp vtv -altivec -debug -doc -fixed-point -go -graphite -hardened -jit -libssp -mpx -multilib -objc -objc++ -objc-gc -pgo -regression-test -systemtap -vanilla)
Homepage: https://gcc.gnu.org/
Description: The GNU Compiler Collection
[I] sys-libs/glibc
Installed versions: 2.28-r5(2.2)^s(04:04:29 AM 01/11/2019)(multiarch -audit -caps -cet -compile-locales -doc -gd -headers-only -multilib -nscd -profile -selinux -suid -systemtap -test -vanilla)
Homepage: https://www.gnu.org/software/libc/
The system is a GENTOO system.
Currentlu only an older version of Hatari is provided by emerge, the
Gentoo package system.
Hatari 2.1.0 compiles fine on the system.
How can I compile Hatari successfully?
Thank you very much in advance for any help!
Cheers!
Meino