Subject: Can't make lib.
To: None <port-mac68k@NetBSD.ORG>
From: Yoshihisa SUGIMOTO <sugimoto@sums.shiga-med.ac.jp>
List: port-mac68k
Date: 10/25/1995 09:17:26
Hi,

I found difficulty in compiling lib in the current sources dated Oct. 22.
Gas and gcc are compiled from the current. /usr/include was already
updated. 

# pwd
/local/current-src/src/lib
# make && make install
....
....
===> libc
creating accept.o
In file included from :1:
/local/current-src/src/lib/libc/arch/m68k/SYS.h:47: `#' operator should be
followed by a macro argument name
/local/current-src/src/lib/libc/arch/m68k/SYS.h:47: `#' operator is not
followed by a macro argument name
/local/current-src/src/lib/libc/arch/m68k/SYS.h:49: `#' operator should be
followed by a macro argument name
/local/current-src/src/lib/libc/arch/m68k/SYS.h:49: `#' operator is not
followed by a macro argument name
: Assembler messages:
:2: Error: Ignoring junk after expression
:2: Error: "instruction/operands mismatch" -- Statement 'trap \0' ignored
*** Error code 1

Stop.
*** Error code 1


The codes of SYS.h are as follows
44:  ifdef __STDC__
45:
46:  #define SYSCALL(x)         .even; err: jra cerror; ENTRY(x); \
47:                             movl \#SYS_ ## x, d0; trap \#; jcs err
48:  #define RSYSCALL(x)        SYSCALL(x); rts
49:  #define PSEUDO(x,y)        ENTRY(x); movl \#SYS_ ## y,d0; trap \#0; rts
50:
51:  #else /* !__STDC__ */


Any help welcomed.

Thanks in advance.


Yoshihisa SUGIMOTO, M.D., Ph. D. - sugimoto@sums.shiga-med.ac.jp
Department of Medicine I / Medical Information Center
Shiga University of Medical Science, Shiga, JAPAN
Tel +81-775-48-2213  FAX +81-775-43-5839