public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* parse error
@ 2000-07-07  3:48 Ext-Kannan.Venkatakrishnan
  2000-07-07 10:09 ` Martin v. Loewis
  2000-07-07 12:33 ` Alexandre Oliva
  0 siblings, 2 replies; 4+ messages in thread
From: Ext-Kannan.Venkatakrishnan @ 2000-07-07  3:48 UTC (permalink / raw)
  To: help-gcc

[-- Attachment #1: Type: text/plain, Size: 405 bytes --]

Hi,
	I am new to this list and gcc.
     	I am trying to compile some C code and I am getting 'parse error' in
standard .h files. I want to make a shared library out of it. Please find
attached, the Makefile. The file named 'x' shows the errors that occured in
the compilation process.
     	The compilation goes fine with cc.
	I am working on SunOS 5.8.
 
Can you please help me out,
Regards,
Venkat.
 


[-- Attachment #2: Makefile --]
[-- Type: text/plain, Size: 21976 bytes --]

#
# Copyright [C] The Regents of the University of Michigan and Merit Network,
# Inc. 1992, 1993, 1994, 1995, 1996, 1997, 1998 All Rights Reserved.
#

#
# Makefile for RADIUS - Remote Authentication Dial In User Service
#	$Id: Makefile,v 1.43 1998/07/13 15:19:52 web Exp $
#
# RADIUS target versions:
#
#	radiusd:  Default is multitasking server w/o Kerberos authentication.
#		  The client, authfile, and users (optionally) files are
#		  stored in memory.  Includes RADIUS-RADIUS relay (proxy)
#		  authentication capability and accounting.
#	mkerb:    The default plus MIT Kerberos.
#	akerb:    The default plus AFS Kerberos.  Must be properly licensed.
#	dbm:	  Same as default, but with dbm(3) users database lookup.
#	kchap:	  Same as default, but with special Kerberos CHAP experimental
#		  protocol capability.  Runs on Kerberos server machine.
#	tacacs:	  Same as default, but with special XTACACS protocol support.
#		  Requires changes to XTACACS authentication server.  See the
#		  INSTALL file.
#	utils:	  Generates additional utility routines.
#
#
# Various client modules:
#
#   radcheck - Polls a RADIUS server to see if it's still alive.
#   radpwtst - Generates various kinds of authentication requests for
#		testing a RADIUS server.
#   sendserver - A utility function to issue requests and process replies.
#		 Used by the radcheck and radpwtst client programs.
#   builddbm - Generate routine to build dbm(3) database from "users" file.
#   radpass - Sets password for individual user id entries in "users" file.
#
#
# Add -DNOSHADOW to DEFS if you don't have Shadow Passwords (no shadow.h file).
# Add -DHAUGHSHADOW to your DEFS macro if you _do_ have PD Shadow Passwords.

# Where the sources (*.h and *.c) live.
SRC		= .
# Where the .h files live.
INCLUDE		= ../../include/sir
# Where the objects are compiled.
OBJ		= ../../lib/sir
# Where the executables are linked.
BIN		= ../../lib/sir
# Where the man pages live.
MAN		= ./man
# Where the extra documentation lives.
DOC		= ./doc
# Where the configuration files live.
RADDB		= ../../config/sir
# Some installation stuff.
DAEMON_INSDIR	= /usr/private/etc
BIN_INSDIR	= /usr/private/etc
MAN_INSDIR	= /usr/local/man
RADDB_INSDIR	= /usr/private/etc/raddb.new
RADACCT_INSDIR	= /usr/private/etc/radacct
# The server does not need to be owned by root, unless some shadow password
# scheme needs it.  You might create a user id "radius" for just this purpose.
# The O G and M macros are for AIX, OSF/1 and HP-UX, see below.
O		= -o
G		= -g
M		= -m
RADOWN		= root
RADGRP		= bin

# Define COMPRESS to hold the pathname of your favourite compress program if
# you need to override the default value of /usr/ucb/compress:
#COMPRESS	= -DRAD_COMPRESS=\"/usr/local/bin/gzip\"
#COMPRESS_ARGS	= -DCOMPRESS_ARGS=\"-9\"

# Define SRV to hold any combination of server names you'd like to override:
#SRV3	  = -DDEFAULT_TACACS_SERVER=\"vms.dns.name\"
#SRV2	  = -DDEFAULT_RADIUS_SERVER=\"radius.server.dns.name\"
#SRV1	  = -DDEFAULT_SERVER=\"your.server.dns.name\"
#SRV	  = $(SRV1) $(SRV2) $(SRV3)

# Define DIRS to hold any combination of directory names you'd like to override:
#DIRS2	  = -DDEFAULT_DIR=\"../raddb\" -DDEFAULT_DIR2=\"$(RADDB_INSDIR)\"
#DIRS1	  = -DRADIUS_DIR=\"$(RADDB_INSDIR)\" -DRADACCT_DIR=\"$(RADACCT_INSDIR)\"
#DIRS	  = $(DIRS1) $(DIRS2)

# Define CHK_SHELLS to enable /etc/shells checking:
CHK_SHELLS	= -DCHK_SHELLS

# Define ASCEND to enable Ascend support:
#
# -DASCEND - support for Ascend password expiry and changing
# -DBINARY_FILTERS - support for Ascend binary filters
# -DIP_ADDR_POOL - support for Ascend IP address pools
#
ASCEND	  = -DASCEND -DBINARY_FILTERS

# Define USR_CCA to enable USR support:
#USR	  = -DUSR_CCA

# Define RAD_LOG_FMT to change how the logfile name changes:
RAD_LOG_FMT	= -DRADIUS_LOG_FMT=\"logfile.%y%m%d\"

STUFF	  = $(DIRS) $(SRV) $(COMPRESS) $(COMPRESS_ARGS) $(CHK_SHELLS) \
	$(ASCEND) $(USR)

# Define this to point to your AFS Kerberos source directory.
# (used as the root of the AFS source directory for the stringtokey() function)
# Refer to the comments before the sed make target near line 500 in this file.
#AFS	  = ./src

# Leave these Merit specific macros defined unless you've studied the code...

MERIT_GRAND	= -DMERIT_GRANDFATHER
MISSING_STATE	= -DMISSING_STATE

MERIT	  = $(MERIT_GRAND) $(MISSING_STATE)

# What we are trying to build.  There is no need to change this line...
SERVER	  = radiusd

# Select one of the targets below for the RADIUS version you want to build:

#
# radiusd -- the default
#
#--------------------------------------------------------------------------
#Wipro:start
#DEFS	  = -DHAVE_SETVBUF -DNOSHADOW $(MERIT) $(STUFF) 
DEFS	  = -DHAVE_SETVBUF $(MERIT) $(STUFF) 
#Wipro:end
RADLIBS	  = -L../../lib/sir
INCS	  = -I../../include/sir

#
# mkerb
#
#--------------------------------------------------------------------------
#DEFS	  = -DHAVE_SETVBUF -DM_KERB -DNOSHADOW $(MERIT) $(STUFF)
#RADLIBS	  = /usr/kerberos/lib/libkrb.a /usr/kerberos/lib/libdes.a
#INCS	  = -I/usr/kerberos/include

#
# akerb
#
#--------------------------------------------------------------------------
#DEFS	  = -DHAVE_SETVBUF -DA_KERB -DNOSHADOW $(MERIT) $(STUFF)
#RADLIBS	  = /usr/kerberos/lib/libkrb.a /usr/kerberos/lib/libdes.a
#INCS	  = -I/usr/kerberos/include

#
# kchap
#
#--------------------------------------------------------------------------
#DEFS	  = -DHAVE_SETVBUF -DKCHAP -DNOSHADOW $(MERIT) $(STUFF)
#RADLIBS	  = /usr/kerberos/lib/libkrb.a /usr/kerberos/lib/libdes.a
#INCS	  = -I/usr/kerberos/include

#
# tacacs 
#
#--------------------------------------------------------------------------
#DEFS	  = -DHAVE_SETVBUF -DTACACS -DNOSHADOW $(MERIT) $(STUFF)
#RADLIBS	  =
#INCS	  =

#
# optional dbm support -- unsupported and untested in the Merit AAA Server
# (to use: pick one of the two DBM macros below and maybe add -ldbm to LIBS)
#
#--------------------------------------------------------------------------
#DBM	  = -DUSE_DBM
#DBM	  = -DUSE_NDBM
#DEFS	  = -DHAVE_SETVBUF $(DBM) -DNOSHADOW $(MERIT) $(STUFF)
#RADLIBS	  =
#INCS	  =
#EXTRA	  = $(OBJ)/builddbm.o
#DBMUTIL	  = $(BIN)/builddbm

# You must un-comment one, and only one, of the above sections!
# Now, skip down to the Operating System section.

RAD_INCS  = $(INCLUDE)/krb_conf.h $(INCLUDE)/md5.h        \
	$(INCLUDE)/radius.h $(INCLUDE)/includes.h     \
	$(INCLUDE)/tacacs.h $(INCLUDE)/conf.h $(INCLUDE)/cache.h                          \
	$(INCLUDE)/ascend.h $(INCLUDE)/usr.h               \
	$(INCLUDE)/sir_datatypes.h        \
	$(INCLUDE)/sir_prototypes.h $(INCLUDE)/ldap.h

RAD_OBJS  = $(OBJ)/radiusd.o $(OBJ)/authenticate.o $(OBJ)/rad.accounting.o    \
	$(OBJ)/rad.kchap.o $(OBJ)/rad.kerberos.o                              \
	$(OBJ)/rad.tacacs.o $(OBJ)/afs_stringtokey.o $(OBJ)/mit_stringtokey.o \
	$(OBJ)/id_to_key.o $(OBJ)/krb_get_in_tkt.o $(OBJ)/passchange.o        \
	$(OBJ)/fsm.o $(OBJ)/fwd2nas.o $(OBJ)/nas_reb.o $(OBJ)/res_qry.o       \
	$(OBJ)/rf_req.o $(OBJ)/rf_resp.o $(OBJ)/arades.o $(OBJ)/cache.o       \
	$(OBJ)/pooladdr.o $(OBJ)/rad.bsd.o $(OBJ)/LdapClient.o $(OBJ)/java_sir.o

LIB_OBJS  = $(OBJ)/des.o $(OBJ)/dict.o $(OBJ)/filters.o $(OBJ)/funcs.o        \
	$(OBJ)/md5.o $(OBJ)/users.o $(OBJ)/resources.o    \
	$(OBJ)/version.o $(OBJ)/vpn.o

UTIL_OBJS = $(OBJ)/radpass.o              \
	$(OBJ)/dnscheck.o $(EXTRA)

RAD_SRCS  = $(SRC)/radiusd.c $(SRC)/authenticate.c $(SRC)/rad.accounting.c    \
	$(SRC)/rad.kchap.c $(SRC)/rad.kerberos.c                              \
	$(SRC)/rad.tacacs.c $(SRC)/afs_stringtokey.c $(SRC)/mit_stringtokey.c \
	$(SRC)/id_to_key.c $(SRC)/krb_get_in_tkt.c $(SRC)/passchange.c        \
	$(SRC)/version.c $(SRC)/fsm.c $(SRC)/dnscheck.c $(SRC)/dict.c         \
	$(SRC)/funcs.c $(SRC)/md5.c $(SRC)/users.c        \
	$(SRC)/fwd2nas.c $(SRC)/nas_reb.c $(SRC)/res_qry.c $(SRC)/resources.c \
	$(SRC)/rf_req.c $(SRC)/rf_resp.c $(SRC)/vpn.c $(SRC)/arades.c         \
	$(SRC)/des.c $(SRC)/filters.c                                         \
	$(SRC)/cache.c $(SRC)/pooladdr.c $(SRC)/rad.bsd.c $(SRC)/LdapClient.c \
	$(SRC)/java_sir.c


RADPASS   = $(BIN)/radpass
DNSCHECK  = $(BIN)/dnscheck

UTILS	  = $(RADPASS) $(DBMUTIL) $(DNSCHECK) 

CONFIGS	  = $(RADDB)/authfile $(RADDB)/clients $(RADDB)/dictionary            \
	$(RADDB)/engine.config $(RADDB)/users $(RADDB)/vendors $(RADDB)/xas.fsm

RADIUS	  = $(BIN)/radiusd

RAD_LIB	  = $(OBJ)/radlib.a

#
# Operating Systems Section:
#
# Select only one of the Operating Systems sections below for this build:

#
# SunOS 4.1.3 (dbm.h redefines NULL, which will generate warnings if USE_*DBM)
#
#--------------------------------------------------------------------------
#Wipro:start
#CC	  = cc
#CFLAGS	  = -KPIC -c -w -O -D_REENTRANT $(DEFS) -I/usr/ucbinclude $(INCS)
#CFLAGS	  = -KPIC -c -w -xarch=v8plus -D_REENTRANT $(DEFS) $(INCS)
#CLDAPFLAGS = -Kpic -c $(DEFS) $(INCS)
#LDFLAGS	  =
#LIBS	  = -lnsl -lsocket -R /usr/ucblib -L/usr/ucblib -lucb
#LIBS	  = -lldap -lnsl -lsocket
#RANLIB	  = ranlib
#INSTALL	  = /bin/install

#Wipro:end
#
# Solaris 2.x [[NB: if BIND/named not SMCC, try CFLAGS = ... -DBSD=1 ...]]
#
# Uncomment one and only one of the CC, CFLAGS and NETLIBS/LIBS entries.
#
# With ucblib, to run the server do the following or use the -R option in LIBS:
#	setenv LD_LIBRARY_PATH /usr/ucblib
#	./radiusd &
#
# Be sure to uncomment the "ranlib" and "install" macros 17 lines below.
#
#--------------------------------------------------------------------------
#Wipro : start 
# With GNU compiler (recommended)
CC	  = /opt/sfw/bin/gcc -D__STDC__
#CC	  = /opt/sfw/bin/gcc -D__STDC__
#CFLAGS	  = -fpic -c -g -w -O -D_REENTRANT -Dsys5 -traditional $(DEFS) -I/usr/ucbinclude $(INCS)
CFLAGS	  = -fpic -w -Dsys5 -traditional $(DEFS) -I/usr/ucbinclude $(INCS)

#following line : tried to copy the options given for cc in gcc but didn't work
#CFLAGS	  = -KPIC -c -g -w -O -D_REENTRANT -Dsys5 -traditional $(DEFS) -I/usr/ucbinclude $(INCS)
# With Sun compiler (builds but not tested in production use)
#CC	  = /opt/SUNWspro/bin/cc -D__svr4__ -D__sun__
#CFLAGS	  = -Kpic -c -w -O -D_REENTRANT $(DEFS) $(INCS)
#LDFLAGS	  =
# With BIND 4.9.3 resolver libraries and headers
#NETLIBS	  = -lnsl -lsocket /usr/lib/libresolv.a -l44bsd
# With Sun's resolver code
NETLIBS	  = -lnsl -lsocket -lresolv
LIBS	  = $(NETLIBS) -R /usr/ucblib -L/usr/ucblib -lucb
#LIBS	  = -lnsl -lsocket 
RANLIB	  = /bin/true
INSTALL	  = /usr/ucb/install
#Wipro : end 

#
# Linux 1.2.3 through 2.0.30
# (only use -lshadow if you use shadow passwords and have that lib)
#
#--------------------------------------------------------------------------

#CC	  = cc
#CFLAGS	  = -g $(DEFS) $(INCS)
#LDFLAGS	  =
# pick one
#LIBS	  = -lshadow
#LIBS	  =
#RANLIB	  = ranlib
#INSTALL	  = /usr/bin/install

#
# HP-UX 9.05 or 10.x (the "O" macro is for HP version of install, -lsec opt.)
#
#--------------------------------------------------------------------------

#Wipro:start
#CC	  = cc
#CFLAGS	  =-Ae +u4 +z -c -w -O -D__hpux -D_REENTRANT $(DEFS) $(INCS)
#CC	  = gcc
#CFLAGS	  = -g -traditional -D__hpux -D__hpuxtrust $(DEFS) $(INCS)
#LDFLAGS	  =
#LIBS	  = -lsec
#RANLIB	  = /bin/ranlib
#INSTALL	  = /etc/install
#O	  = -u
#Wipro:end
#
# BSDi 1.1 and 2.0 (BSDi does not have dbm(3) see the USE_*DBM macros above)
#
# On 1.0 do not define NOSHADOW and remove #include <machine/inline.h> (conf.h)
#
# The -DBSD_AUTHENTICATION option is only for BSDi 4.0 and above.
#
#--------------------------------------------------------------------------

#CC	  = cc
#CFLAGS	  = -O -DBSDI -DBSD_AUTHENTICATION $(DEFS) $(INCS)
#LDFLAGS	  =
#LIBS	  = -lcompat
#UTILS	  = $(RADCHECK) $(RADPWTST) $(RADPASS) $(DNSCHECK)
#RANLIB	  = ranlib
#INSTALL	  = /usr/bin/install

#
# FreeBSD (NetBSD?) (does not have dbm(3) so can't build builddbm)
#
#--------------------------------------------------------------------------

#CC	  = cc
#CFLAGS	  = -O $(DEFS) $(INCS)
#LDFLAGS	  =
#LIBS	  = -lcrypt -lcompat
#UTILS	  = $(RADCHECK) $(RADPWTST) $(RADPASS) $(DNSCHECK)
#RANLIB	  = ranlib
#INSTALL	  = /usr/bin/install

#
# AIX 3.2.5 (if using xlc(1) add -D_ALL_SOURCE to CFLAGS below)
# May need '-qchars=signed' added to CFLAGS below to fix bug in wait status.
# The $(O), $(G) and $(M) macros below are for the AIX install program.
#
#--------------------------------------------------------------------------

#CC	  = cc
#CC	  = gcc
#CFLAGS	  = -O -Daix -DM_UNIX $(DEFS) $(INCS)
#LDFLAGS	  =
#LIBS	  =
#RANLIB	  = /usr/bin/ranlib
#INSTALL	  = /usr/bin/install
#O		= -O
#G		= -G
#M		= -M

#
# SCO 3.2
#
# get encryption libraries from SCO in the SLS supplement "lng190"
#
#--------------------------------------------------------------------------

#CC	  = cc
#CFLAGS	  = -O $(DEFS) $(INCS)
# or
#CC	  = gcc
#CFLAGS	  = -O -DMAXPATHLEN=255 -DSCO $(DEFS) $(INCS)
#LDFLAGS	  =
#LIBS	  = -lsocket -lsec -lcrypt
# or
#LIBS	  = -lsocket -lsec -lcrypt -lprot -lcurses -lm -lx
#RANLIB	  = ranlib
#INSTALL	  = /usr/ucb/install
#O		= -u

#
# Ultrix 4.3 or Ultrix 4.4
#
#--------------------------------------------------------------------------

# Add -DULTRIX_ENHANCED to CFLAGS and -lauth -lkrb to LIBS if using 
#                       Ultrix Upgrade/Enhanced security.
# 4/3/94 Jeff Marraccini <jeff@oakland.edu>

#CC	  = cc
#CFLAGS	  = -O $(DEFS) $(INCS)
#-DULTRIX_ENHANCED
#CFLAGS	  = -O -DULTRIX_ENHANCED $(DEFS) $(INCS)
#LDFLAGS	  =
#LIBS	  = -lauth -lkrb -lsecurity
#RANLIB	  = ranlib
#INSTALL	  = /usr/bin/install

#
# DEC OSF/1 (Digital Unix) (the "O" macro is for OSF version of install)
#
#--------------------------------------------------------------------------

# Add -DSIA to use the SIA interface for passwd
#           authentication (for DCE or C2 security).
#
# The -taso option to cc(1) tells the Alpha to use 32 bit quantities.
# You probably don't need to use that.  The -DSIA flag and -lsecurity
# library should only be used to include support for enhanced security.
# You probably don't need -DOSF unless you need to call getprpwnam().

#CC	  = cc
#CFLAGS	  = -O -DSIA -taso $(DEFS) $(INCS)
#CFLAGS	  = -O -DOSF -DSIA $(DEFS) $(INCS)
#LDFLAGS	  =
#LIBS	  = -lsecurity
#RANLIB	  = ranlib
#INSTALL	  = /bin/install
#O	  = -u

#
# SGI IRIX 5.4.3
#
#--------------------------------------------------------------------------

#CC	  = cc
#CFLAGS	  = -g -Dsysv $(DEFS) $(INCS)
#LDFLAGS	  =
#LIBS	  =
#RANLIB	  = /bin/true
#INSTALL	  = /bin/install NOTE: Does not work - requires manual install!

#
# UnixWare before 2.0 (as BSD)
#
# Note: UnixWare 2.0 and later replace -lucb with -lcrypt
# (these later versions may not like "-o filename.o" syntax in targets below)
# (if so, move the Makefile to ./src and adjust SRC, OBJ and BIN near line 40)
#-----------------------------------------
#CC	  = /usr/ucb/cc
#CFLAGS	  = -O -Dunixware $(DEFS) -I/usr/ucbinclude $(INCS)
#LDFLAGS	  =
#LIBS	  = -lsocket -lnsl -lcrypt -lgen -L/usr/ucblib -lucb
#RANLIB	  = ranlib
#INSTALL	  = /bin/install

# You must un-comment one, and only one, of the above sections!

# No modifications are necessary below this line except possibly near line 500.

all:	notice libsir

utils:	$(LIB_OBJS) $(RAD_LIB) $(UTILS)

notice:
	@echo ""
	@echo "Merit RADIUS licensed software"
	@echo "Copyright (c) 1992, 1993, 1994, 1995, 1996, 1997, 1998 by The"
	@echo "Regents of the University of Michigan and Merit Network, Inc."
	@echo "All rights reserved."
	@echo ""

$(RAD_LIB): $(LIB_OBJS)
	ar rcv $@ $(LIB_OBJS)
	$(RANLIB) $@

# The ordering of the macros: $(RADLIBS), $(RAD_LIB) and $(LIBS) in the $(CC)
# rule for the $(RADIUS) target below is important and should remain as shown.

#$(RADIUS): $(RAD_OBJS) $(RAD_LIB)
#$(CC) $(CFLAGS) $(LDFLAGS) -o $(RADIUS) $(RAD_OBJS) \
#$(RADLIBS) $(RAD_LIB) $(LIBS)

$(OBJ)/radiusd.o: $(SRC)/radiusd.c $(RAD_INCS) Makefile
	$(CC) $(CFLAGS) -o $(OBJ)/radiusd.o -c $(SRC)/radiusd.c $(LIBS)

$(OBJ)/fsm.o: $(SRC)/fsm.c $(INCLUDE)/radius.h Makefile
	$(CC) $(CFLAGS) -o $(OBJ)/fsm.o -c $(SRC)/fsm.c $(LIBS)

$(OBJ)/authenticate.o: $(SRC)/authenticate.c $(RAD_INCS) Makefile
	$(CC) $(CFLAGS) -o $(OBJ)/authenticate.o \
	-c $(SRC)/authenticate.c $(LIBS)

$(OBJ)/rad.bsd.o: $(SRC)/rad.bsd.c $(RAD_INCS) Makefile
	$(CC) $(CFLAGS) -o $(OBJ)/rad.bsd.o -c $(SRC)/rad.bsd.c $(LIBS)

$(OBJ)/rad.kchap.o: $(SRC)/rad.kchap.c $(RAD_INCS) Makefile
	$(CC) $(CFLAGS) -o $(OBJ)/rad.kchap.o \
	-c $(SRC)/rad.kchap.c $(LIBS)

$(OBJ)/rad.kerberos.o: $(SRC)/rad.kerberos.c $(RAD_INCS) Makefile
	$(CC) $(CFLAGS) -o $(OBJ)/rad.kerberos.o \
	-c $(SRC)/rad.kerberos.c $(LIBS)

$(OBJ)/rad.tacacs.o: $(SRC)/rad.tacacs.c $(RAD_INCS) Makefile
	$(CC) $(CFLAGS) -o $(OBJ)/rad.tacacs.o \
	-c $(SRC)/rad.tacacs.c $(LIBS)

$(OBJ)/rad.accounting.o: $(SRC)/rad.accounting.c $(RAD_INCS) Makefile
	$(CC) $(CFLAGS) -o $(OBJ)/rad.accounting.o \
	-c $(SRC)/rad.accounting.c $(LIBS)

$(OBJ)/funcs.o: $(SRC)/funcs.c $(RAD_INCS) Makefile
	$(CC) $(CFLAGS) -o $(OBJ)/funcs.o -c $(SRC)/funcs.c $(LIBS)

$(OBJ)/users.o: $(SRC)/users.c $(RAD_INCS) Makefile
	$(CC) $(CFLAGS) -o $(OBJ)/users.o -c $(SRC)/users.c $(LIBS)

$(OBJ)/LdapClient.o: $(SRC)/LdapClient.c $(RAD_INCS) Makefile
	$(CC) $(CFLAGS) -o $(OBJ)/LdapClient.o -c $(SRC)/LdapClient.c $(LIBS)

#$(OBJ)/LdapClient.o: $(SRC)/LdapClient.c $(RAD_INCS) Makefile
#$(CC) $(CFLAGS) -o $(OBJ)/LdapClient.o -c $(SRC)/LdapClient.c -lldapssl40 -L../../lib/sir
#$(OBJ)/LdapClient.o: $(SRC)/LdapClient.c $(RAD_INCS) Makefile
#$(CC) $(CFLAGS) -o $(OBJ)/LdapClient.o -c $(SRC)/LdapClient.c -lldapssl30 -L../../lib/sir
#
# The two lines below are only for RADIUS servers being built with AFS
# support enabled.  Be sure to change the value of the AFS macro near
# the beginning of this Makefile, otherwise you may want to comment out
# the two lines below using the pound sign ("#") character in column one.
#

#$(SRC)/afs_stringtokey.c: $(AFS)/stringtokey.c
#	sed s/string_to_key/afs_string_to_key/g < $? > $@

$(OBJ)/afs_stringtokey.o: $(SRC)/afs_stringtokey.c $(RAD_INCS) Makefile
	$(CC) $(CFLAGS) -o $(OBJ)/afs_stringtokey.o \
	-c $(SRC)/afs_stringtokey.c $(LIBS)

$(OBJ)/krb_get_in_tkt.o: $(SRC)/krb_get_in_tkt.c Makefile
	$(CC) $(CFLAGS) -o $(OBJ)/krb_get_in_tkt.o \
	-c $(SRC)/krb_get_in_tkt.c $(LIBS)

$(OBJ)/id_to_key.o: $(SRC)/id_to_key.c $(RAD_INCS) Makefile
	$(CC) $(CFLAGS) -o $(OBJ)/id_to_key.o \
	-c $(SRC)/id_to_key.c $(LIBS)

$(OBJ)/mit_stringtokey.o: $(SRC)/mit_stringtokey.c $(RAD_INCS) Makefile
	$(CC) $(CFLAGS) -o $(OBJ)/mit_stringtokey.o \
	-c $(SRC)/mit_stringtokey.c $(LIBS)

$(OBJ)/dict.o: $(SRC)/dict.c $(INCLUDE)/radius.h Makefile
	$(CC) $(CFLAGS) -o $(OBJ)/dict.o -c $(SRC)/dict.c $(LIBS)

$(OBJ)/version.o: $(SRC)/version.c $(INCLUDE)/radius.h $(INCLUDE)/conf.h Makefile
	$(CC) $(CFLAGS) -o $(OBJ)/version.o -c $(SRC)/version.c $(LIBS)

$(OBJ)/md5.o: $(SRC)/md5.c $(INCLUDE)/md5.h Makefile
	$(CC) $(CFLAGS) -o $(OBJ)/md5.o -c $(SRC)/md5.c $(LIBS)

$(OBJ)/passchange.o: $(SRC)/passchange.c $(INCLUDE)/radius.h Makefile
	$(CC) $(CFLAGS) -o $(OBJ)/passchange.o -c $(SRC)/passchange.c $(LIBS)

#$(BIN)/builddbm: $(OBJ)/builddbm.o
	#$(CC) $(CFLAGS) $(LDFLAGS) -o $(BIN)/builddbm $(OBJ)/builddbm.o \
	#$(LIBS)

#$(OBJ)/builddbm.o: $(SRC)/builddbm.c Makefile
	#$(CC) $(CFLAGS) -o $(OBJ)/builddbm.o -c $(SRC)/builddbm.c

$(OBJ)/fwd2nas.o: $(SRC)/fwd2nas.c $(INCLUDE)/radius.h Makefile
	$(CC) $(CFLAGS) -o $(OBJ)/fwd2nas.o \
	-c $(SRC)/fwd2nas.c $(LIBS)

$(OBJ)/nas_reb.o: $(SRC)/nas_reb.c $(INCLUDE)/radius.h Makefile
	$(CC) $(CFLAGS) -o $(OBJ)/nas_reb.o \
	-c $(SRC)/nas_reb.c $(LIBS)

$(OBJ)/res_qry.o: $(SRC)/res_qry.c $(INCLUDE)/radius.h Makefile
	$(CC) $(CFLAGS) -o $(OBJ)/res_qry.o \
	-c $(SRC)/res_qry.c $(LIBS)

$(OBJ)/resources.o: $(SRC)/resources.c $(INCLUDE)/radius.h Makefile
	$(CC) $(CFLAGS) -o $(OBJ)/resources.o \
	-c $(SRC)/resources.c $(LIBS)

$(OBJ)/rf_req.o: $(SRC)/rf_req.c $(INCLUDE)/radius.h Makefile
	$(CC) $(CFLAGS) -o $(OBJ)/rf_req.o \
	-c $(SRC)/rf_req.c $(LIBS)

$(OBJ)/rf_resp.o: $(SRC)/rf_resp.c $(INCLUDE)/radius.h Makefile
	$(CC) $(CFLAGS) -o $(OBJ)/rf_resp.o \
	-c $(SRC)/rf_resp.c $(LIBS)

$(OBJ)/vpn.o: $(SRC)/vpn.c $(INCLUDE)/radius.h Makefile
	$(CC) $(CFLAGS) -o $(OBJ)/vpn.o \
	-c $(SRC)/vpn.c $(LIBS)

$(OBJ)/arades.o: $(SRC)/arades.c $(INCLUDE)/radius.h Makefile
	$(CC) $(CFLAGS) -o $(OBJ)/arades.o \
	-c $(SRC)/arades.c $(LIBS)

$(OBJ)/des.o: $(SRC)/des.c $(INCLUDE)/radius.h Makefile
	$(CC) $(CFLAGS) -o $(OBJ)/des.o \
	-c $(SRC)/des.c $(LIBS)

$(OBJ)/filters.o: $(SRC)/filters.c $(INCLUDE)/radius.h Makefile
	$(CC) $(CFLAGS) -o $(OBJ)/filters.o \
	-c $(SRC)/filters.c $(LIBS)

$(OBJ)/cache.o: $(SRC)/cache.c $(INCLUDE)/radius.h $(INCLUDE)/cache.h Makefile
	$(CC) $(CFLAGS) -o $(OBJ)/cache.o -c $(SRC)/cache.c $(LIBS)

$(OBJ)/pooladdr.o: $(SRC)/pooladdr.c $(INCLUDE)/radius.h Makefile
	$(CC) $(CFLAGS) -o $(OBJ)/pooladdr.o -c $(SRC)/pooladdr.c $(LIBS)

$(RADPASS): $(OBJ)/radpass.o $(RAD_LIB)
	$(CC) $(CFLAGS) $(LDFLAGS) -o $(RADPASS) \
	$(OBJ)/radpass.o $(RADLIBS) $(RAD_LIB) $(LIBS)

$(OBJ)/radpass.o: $(SRC)/radpass.c $(INCLUDE)/radius.h Makefile
	$(CC) $(CFLAGS) -o $(OBJ)/radpass.o -c $(SRC)/radpass.c $(LIBS)

$(DNSCHECK): $(OBJ)/dnscheck.o
	$(CC) $(CFLAGS) $(LDFLAGS) -o $(DNSCHECK) $(OBJ)/dnscheck.o $(LIBS)

$(OBJ)/dnscheck.o: $(SRC)/dnscheck.c $(INCLUDE)/radius.h Makefile
	$(CC) $(CFLAGS) -o $(OBJ)/dnscheck.o -c $(SRC)/dnscheck.c $(LIBS)

JAVA_ROOT = /usr/java1.2
JNI_CC_FLAGS= -KPIC -c -w -xarch=v8plus -D_REENTRANT -I$(JAVA_ROOT)/include -I$(JAVA_ROOT)/include/solaris -I$(INCLUDE)
#JNI_CC_FLAGS=-Kpic -c -w -I$(JAVA_ROOT)/include -I$(JAVA_ROOT)/include/solaris -I$(INCLUDE) -DNATIVE -DJNI_VERSION_1_2

#java_sir.o was included in RAD_OBJS, so commented the following line and
#removed SIR_JNI from libsir:...
#SIR_JNI = $(OBJ)/java_sir.o

JNI_LD_FLAGS = -G -L$(OBJ)

$(OBJ)/java_sir.o: $(SRC)/java_sir.c $(INCLUDE)/com_nokia_namp_sir_RadiusProxy.h Makefile
	$(CC) $(JNI_CC_FLAGS) -o $(OBJ)/java_sir.o -c $(SRC)/java_sir.c $(LIBS)

libsir: $(RAD_OBJS) $(RAD_LIB) $(RAD_INCS)
		cc $(JNI_LD_FLAGS) -o ../../lib/sir/libsirJNIDLL.so $(RAD_OBJS) $(RAD_LIB) $(LIBS)


[-- Attachment #3: x --]
[-- Type: text/plain, Size: 15989 bytes --]

In file included from /usr/include/sys/select.h:17,
                 from /usr/ucbinclude/sys/types.h:466,
                 from ./radiusd.c:122:
/usr/include/sys/time.h:328: parse error before `char'
In file included from /usr/include/time.h:20,
                 from /usr/include/sys/time.h:406,
                 from /usr/include/sys/select.h:17,
                 from /usr/ucbinclude/sys/types.h:466,
                 from ./radiusd.c:122:
/usr/include/iso/time_iso.h:84: parse error before `struct'
/usr/include/iso/time_iso.h:86: parse error before `time_t'
/usr/include/iso/time_iso.h:88: parse error before `time_t'
/usr/include/iso/time_iso.h:89: parse error before `time_t'
/usr/include/iso/time_iso.h:92: parse error before `const'
In file included from ./radiusd.c:123:
/usr/include/sys/stat.h:473: parse error before `char'
/usr/include/sys/stat.h:474: parse error before `char'
/usr/include/sys/stat.h:475: parse error before `char'
In file included from /usr/include/sys/stat.h:509,
                 from ./radiusd.c:123:
/usr/include/sys/stat_impl.h:27: parse error before `char'
/usr/include/sys/stat_impl.h:31: parse error before `char'
/usr/include/sys/stat_impl.h:32: parse error before `char'
In file included from /usr/ucbinclude/unistd.h:39,
                 from /usr/ucbinclude/sys/param.h:53,
                 from ./radiusd.c:137:
/usr/ucbinclude/sys/fcntl.h:229: parse error before `char'
/usr/ucbinclude/sys/fcntl.h:230: parse error before `char'
In file included from /usr/ucbinclude/sys/param.h:53,
                 from ./radiusd.c:137:
/usr/ucbinclude/unistd.h:144: parse error before `time_t'
/usr/ucbinclude/unistd.h:146: parse error before `char'
/usr/ucbinclude/unistd.h:153: parse error before `const'
In file included from /usr/ucbinclude/sys/param.h:249,
                 from ./radiusd.c:137:
/usr/ucbinclude/sys/signal.h:227: syntax error before `char'
/usr/ucbinclude/sys/signal.h:228: syntax error before `int'
In file included from /usr/include/sys/socket.h:38,
                 from ./radiusd.c:138:
/usr/include/sys/uio.h:112: parse error before `const'
/usr/include/sys/uio.h:113: parse error before `const'
In file included from /usr/include/sys/socket.h:42,
                 from ./radiusd.c:138:
/usr/include/sys/netconfig.h:102: parse error before `char'
In file included from /usr/include/sys/vnode.h:42,
                 from /usr/include/sys/stream.h:22,
                 from /opt/sfw/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2/include/sys/stream.h:5,
                 from /usr/include/netinet/in.h:41,
                 from /usr/include/sys/socket.h:199,
                 from ./radiusd.c:138:
/usr/ucbinclude/sys/resource.h:81: parse error before `const'
In file included from /usr/include/sys/socket.h:199,
                 from ./radiusd.c:138:
/usr/include/netinet/in.h:835: syntax error before `struct'
/usr/include/netinet/in.h:836: syntax error before `struct'
In file included from ./radiusd.c:138:
/usr/include/sys/socket.h:441: parse error before `const'
/usr/include/sys/socket.h:442: parse error before `const'
/usr/include/sys/socket.h:452: parse error before `const'
/usr/include/sys/socket.h:453: parse error before `const'
/usr/include/sys/socket.h:454: parse error before `const'
/usr/include/sys/socket.h:456: parse error before `const'
In file included from ./radiusd.c:142:
/usr/include/net/if.h:624: parse error before `char'
In file included from ./radiusd.c:144:
/usr/include/arpa/inet.h:52: parse error before `char'
/usr/include/arpa/inet.h:53: parse error before `const'
/usr/include/arpa/inet.h:54: parse error before `const'
/usr/include/arpa/inet.h:55: syntax error before `char'
/usr/include/arpa/inet.h:55: parse error before `const'
/usr/include/arpa/inet.h:56: parse error before `char'
/usr/include/arpa/inet.h:60: parse error before `char'
/usr/include/arpa/inet.h:70: parse error before `const'
/usr/include/arpa/inet.h:72: parse error before `void'
/usr/include/arpa/inet.h:73: parse error before `void'
In file included from ./radiusd.c:147:
/usr/ucbinclude/stdio.h:203: parse error before `char'
/usr/ucbinclude/stdio.h:204: parse error before `char'
/usr/ucbinclude/stdio.h:207: parse error before `char'
/usr/ucbinclude/stdio.h:208: parse error before `char'
/usr/ucbinclude/stdio.h:214: parse error before `const'
/usr/ucbinclude/stdio.h:216: parse error before `const'
/usr/ucbinclude/stdio.h:218: parse error before `char'
/usr/ucbinclude/stdio.h:220: parse error before `char'
/usr/ucbinclude/stdio.h:222: parse error before `char'
/usr/ucbinclude/stdio.h:224: parse error before `char'
/usr/ucbinclude/stdio.h:225: parse error before `const'
/usr/ucbinclude/stdio.h:226: parse error before `char'
/usr/ucbinclude/stdio.h:231: parse error before `char'
/usr/ucbinclude/stdio.h:237: parse error before `char'
/usr/ucbinclude/stdio.h:240: parse error before `void'
/usr/ucbinclude/stdio.h:243: parse error before `const'
/usr/ucbinclude/stdio.h:249: parse error before `char'
In file included from /usr/include/stdlib.h:18,
                 from ./radiusd.c:148:
/usr/include/iso/stdlib_iso.h:88: parse error before `char'
/usr/include/iso/stdlib_iso.h:89: parse error before `char'
/usr/include/iso/stdlib_iso.h:90: parse error before `char'
/usr/include/iso/stdlib_iso.h:91: parse error before `void'
/usr/include/iso/stdlib_iso.h:92: parse error before `void'
/usr/include/iso/stdlib_iso.h:97: parse error before `char'
/usr/include/iso/stdlib_iso.h:101: parse error before `char'
/usr/include/iso/stdlib_iso.h:102: parse error before `const'
/usr/include/iso/stdlib_iso.h:103: parse error before `const'
/usr/include/iso/stdlib_iso.h:105: parse error before `const'
/usr/include/iso/stdlib_iso.h:109: parse error before `char'
/usr/include/iso/stdlib_iso.h:110: parse error before `char'
/usr/include/iso/stdlib_iso.h:111: parse error before `char'
/usr/include/iso/stdlib_iso.h:112: parse error before `char'
/usr/include/iso/stdlib_iso.h:114: parse error before `const'
In file included from ./radiusd.c:149:
/usr/include/netdb.h:206: parse error before `char'
/usr/include/netdb.h:208: parse error before `char'
/usr/include/netdb.h:209: parse error before `char'
/usr/include/netdb.h:210: parse error before `void'
/usr/include/netdb.h:215: parse error before `char'
/usr/include/netdb.h:217: parse error before `const'
/usr/include/netdb.h:221: parse error before `char'
/usr/include/netdb.h:226: parse error before `char'
/usr/include/netdb.h:232: parse error before `char'
/usr/include/netdb.h:236: parse error before `char'
/usr/include/netdb.h:243: parse error before `char'
/usr/include/netdb.h:245: parse error before `char'
/usr/include/netdb.h:248: parse error before `char'
/usr/include/netdb.h:249: parse error before `const'
/usr/include/netdb.h:254: parse error before `char'
/usr/include/netdb.h:283: parse error before `char'
/usr/include/netdb.h:286: parse error before `const'
/usr/include/netdb.h:288: parse error before `const'
/usr/include/netdb.h:291: parse error before `const'
/usr/include/netdb.h:293: parse error before `const'
/usr/include/netdb.h:295: parse error before `char'
/usr/include/netdb.h:297: parse error before `char'
/usr/include/netdb.h:298: parse error before `char'
/usr/include/netdb.h:299: syntax error before `char'
/usr/include/netdb.h:303: parse error before `char'
/usr/include/netdb.h:307: parse error before `struct'
In file included from ./radiusd.c:152:
/usr/include/memory.h:20: parse error before `const'
/usr/include/memory.h:35: parse error before `void'
/usr/include/memory.h:37: parse error before `const'
/usr/include/memory.h:39: parse error before `void'
In file included from ./radiusd.c:154:
/usr/include/syslog.h:23: parse error before `char'
/usr/include/syslog.h:24: parse error before `const'
/usr/include/syslog.h:28: parse error before `const'
In file included from /usr/include/string.h:18,
                 from ../../include/sir/conf.h:130,
                 from ../../include/sir/radius.h:100,
                 from ../../include/sir/sir_prototypes.h:18,
                 from ./radiusd.c:159:
/usr/include/iso/string_iso.h:60: parse error before `void'
/usr/include/iso/string_iso.h:61: parse error before `const'
/usr/include/iso/string_iso.h:62: parse error before `const'
/usr/include/iso/string_iso.h:64: parse error before `const'
/usr/include/iso/string_iso.h:65: parse error before `char'
/usr/include/iso/string_iso.h:66: parse error before `const'
/usr/include/iso/string_iso.h:67: parse error before `char'
/usr/include/iso/string_iso.h:68: parse error before `char'
/usr/include/iso/string_iso.h:70: parse error before `char'
/usr/include/iso/string_iso.h:71: parse error before `const'
/usr/include/iso/string_iso.h:72: parse error before `char'
/usr/include/iso/string_iso.h:73: parse error before `const'
/usr/include/iso/string_iso.h:74: parse error before `char'
/usr/include/iso/string_iso.h:75: parse error before `const'
/usr/include/iso/string_iso.h:76: parse error before `const'
/usr/include/iso/string_iso.h:112: parse error before `void'
/usr/include/iso/string_iso.h:113: parse error before `char'
/usr/include/iso/string_iso.h:114: parse error before `char'
/usr/include/iso/string_iso.h:115: parse error before `char'
/usr/include/iso/string_iso.h:116: parse error before `char'
In file included from ../../include/sir/conf.h:145,
                 from ../../include/sir/radius.h:100,
                 from ../../include/sir/sir_prototypes.h:18,
                 from ./radiusd.c:159:
/usr/include/pwd.h:56: parse error before `char'
/usr/include/pwd.h:63: parse error before `struct'
/usr/include/pwd.h:169: parse error before `char'
In file included from ../../include/sir/sir_prototypes.h:18,
                 from ./radiusd.c:159:
../../include/sir/radius.h:1885: parse error before `const'
../../include/sir/radius.h:1887: parse error before `}'
../../include/sir/radius.h:1923: parse error before `filtercompare'
In file included from ../../include/sir/sir_prototypes.h:18,
                 from ./radiusd.c:159:
../../include/sir/radius.h:2191: parse error before `const'
In file included from ../../include/sir/sir_prototypes.h:19,
                 from ./radiusd.c:159:
../../include/sir/lber.h:154: parse error before `const'
../../include/sir/lber.h:199: parse error before `const'
../../include/sir/lber.h:203: parse error before `struct'
../../include/sir/lber.h:206: parse error before `struct'
../../include/sir/lber.h:228: parse error before `const'
In file included from ../../include/sir/sir_prototypes.h:20,
                 from ./radiusd.c:159:
../../include/sir/ldap.h:345: parse error before `char'
../../include/sir/ldap.h:346: parse error before `char'
../../include/sir/ldap.h:348: parse error before `const'
../../include/sir/ldap.h:357: parse error before `const'
../../include/sir/ldap.h:358: parse error before `const'
../../include/sir/ldap.h:359: parse error before `const'
../../include/sir/ldap.h:361: parse error before `const'
../../include/sir/ldap.h:363: parse error before `const'
../../include/sir/ldap.h:364: parse error before `const'
../../include/sir/ldap.h:366: parse error before `const'
../../include/sir/ldap.h:368: parse error before `const'
../../include/sir/ldap.h:370: parse error before `const'
../../include/sir/ldap.h:372: parse error before `const'
../../include/sir/ldap.h:374: parse error before `const'
../../include/sir/ldap.h:376: parse error before `const'
../../include/sir/ldap.h:378: parse error before `const'
../../include/sir/ldap.h:379: parse error before `const'
../../include/sir/ldap.h:380: parse error before `const'
../../include/sir/ldap.h:382: parse error before `const'
../../include/sir/ldap.h:384: parse error before `const'
../../include/sir/ldap.h:400: parse error before `const'
../../include/sir/ldap.h:407: parse error before `char'
../../include/sir/ldap.h:408: parse error before `char'
../../include/sir/ldap.h:410: parse error before `char'
../../include/sir/ldap.h:418: parse error before `const'
../../include/sir/ldap.h:420: parse error before `const'
../../include/sir/ldap.h:438: parse error before `const'
../../include/sir/ldap.h:440: parse error before `const'
../../include/sir/ldap.h:442: parse error before `const'
../../include/sir/ldap.h:445: parse error before `const'
../../include/sir/ldap.h:449: parse error before `const'
../../include/sir/ldap.h:452: parse error before `const'
../../include/sir/ldap.h:454: parse error before `const'
../../include/sir/ldap.h:457: parse error before `const'
../../include/sir/ldap.h:460: parse error before `const'
../../include/sir/ldap.h:463: parse error before `const'
../../include/sir/ldap.h:466: parse error before `const'
../../include/sir/ldap.h:468: parse error before `const'
../../include/sir/ldap.h:470: parse error before `const'
../../include/sir/ldap.h:474: parse error before `const'
../../include/sir/ldap.h:479: parse error before `const'
../../include/sir/ldap.h:482: parse error before `const'
../../include/sir/ldap.h:530: parse error before `const'
../../include/sir/ldap.h:537: parse error before `const'
../../include/sir/ldap.h:591: parse error before `const'
../../include/sir/ldap.h:638: parse error before `char'
../../include/sir/ldap.h:639: parse error before `char'
../../include/sir/ldap.h:641: parse error before `const'
../../include/sir/ldap.h:643: parse error before `const'
../../include/sir/ldap.h:645: parse error before `const'
../../include/sir/ldap.h:672: parse error before `const'
../../include/sir/ldap.h:674: parse error before `const'
../../include/sir/ldap.h:767: syntax error before `struct'
../../include/sir/ldap.h:770: parse error before `const'
../../include/sir/ldap.h:773: parse error before `const'
../../include/sir/ldap.h:775: parse error before `char'
../../include/sir/ldap.h:777: parse error before `char'
../../include/sir/ldap.h:783: parse error before `LDAP_KEYGEN_CALLBACK'
../../include/sir/ldap.h:791: parse error before `char'
../../include/sir/ldap.h:875: parse error before `char'
../../include/sir/ldap.h:878: parse error before `char'
../../include/sir/ldap.h:953: parse error before `const'
../../include/sir/ldap.h:997: parse error before `const'
../../include/sir/ldap.h:999: parse error before `const'
../../include/sir/ldap.h:1005: parse error before `char'
../../include/sir/ldap.h:1006: parse error before `char'
../../include/sir/ldap.h:1041: parse error before `char'
../../include/sir/ldap.h:1047: parse error before `const'
../../include/sir/ldap.h:1049: parse error before `char'
../../include/sir/ldap.h:1051: parse error before `char'
../../include/sir/ldap.h:1053: parse error before `const'
../../include/sir/ldap.h:1122: parse error before `const'
../../include/sir/ldap.h:1126: parse error before `const'
../../include/sir/ldap.h:1129: parse error before `const'
../../include/sir/ldap.h:1131: parse error before `const'
../../include/sir/ldap.h:1133: parse error before `const'
../../include/sir/ldap.h:1135: parse error before `const'
../../include/sir/ldap.h:1137: parse error before `const'
../../include/sir/ldap.h:1141: parse error before `const'
../../include/sir/ldap.h:1157: parse error before `const'
./radiusd.c: In function `radMain':
./radiusd.c:1053: `sigset_t' undeclared (first use in this function)
./radiusd.c:1053: (Each undeclared identifier is reported only once
./radiusd.c:1053: for each function it appears in.)
./radiusd.c:1053: parse error before `signals'
./radiusd.c:1054: storage size of `action' isn't known
./radiusd.c:1974: `signals' undeclared (first use in this function)
./radiusd.c: In function `call_action':
./radiusd.c:3568: `sigset_t' undeclared (first use in this function)
./radiusd.c:3568: parse error before `signals'
./radiusd.c:3569: storage size of `action' isn't known
./radiusd.c:3795: `signals' undeclared (first use in this function)
./radiusd.c: In function `sig_fatal':
./radiusd.c:12303: storage size of `action' isn't known
make: Fatal error: Command failed for target `../../lib/sir/radiusd.o'

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: parse error
  2000-07-07  3:48 parse error Ext-Kannan.Venkatakrishnan
@ 2000-07-07 10:09 ` Martin v. Loewis
  2000-07-07 12:33 ` Alexandre Oliva
  1 sibling, 0 replies; 4+ messages in thread
From: Martin v. Loewis @ 2000-07-07 10:09 UTC (permalink / raw)
  To: Ext-Kannan.Venkatakrishnan; +Cc: help-gcc

> 	I am new to this list and gcc.
>      	I am trying to compile some C code and I am getting 'parse error' in
> standard .h files. I want to make a shared library out of it. Please find
> attached, the Makefile. The file named 'x' shows the errors that occured in
> the compilation process.
>      	The compilation goes fine with cc.

Venkat,

It is hard to tell what the problem is without having full
preprocessor output. It is usually a good idea to take the first
compilation error, and analyse it until you understand it.

Also, it would be easier to follow if you had quoted the command line
of gcc (adding the -v and --save-temps arguments), instead of sending
the Makefile.

In any case, the first error apparently is

> /usr/include/sys/time.h:328: parse error before `char'

If you have the same system as I do, this line would read

int utimes(const char *, const struct timeval *);

Now, it is confusing that there is an error, since there seems nothing
to be wrong here. However, I recommend to look at the preprocessor
output instead. With --save-temps, the preprocessor output will go
into a .i file. Look for utimes in it, and see whether there is
anything strange.

Regards,
Martin

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: parse error
  2000-07-07  3:48 parse error Ext-Kannan.Venkatakrishnan
  2000-07-07 10:09 ` Martin v. Loewis
@ 2000-07-07 12:33 ` Alexandre Oliva
  1 sibling, 0 replies; 4+ messages in thread
From: Alexandre Oliva @ 2000-07-07 12:33 UTC (permalink / raw)
  To: Ext-Kannan.Venkatakrishnan; +Cc: help-gcc

On Jul  7, 2000, Ext-Kannan.Venkatakrishnan@nokia.com wrote:

>      	I am trying to compile some C code and I am getting 'parse error' in
> standard .h files.

This usually indicates an error in the source file that includes
them.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Parse error
@ 2004-08-04 22:32 frostflare
  0 siblings, 0 replies; 4+ messages in thread
From: frostflare @ 2004-08-04 22:32 UTC (permalink / raw)
  To: gcc-help

I am using arm-elf-gcc to com´pile a C program, but it
show this error:

Decl_SON.h:46: error: parse error before "IRQHandler"


And this is the lib Decl_SON.h that hhas the error:



typedef struct {


    void (*TStart)(void);
    void *TStackLimit;
    unsigned long TStackPointer;



    char TName[10];
    unsigned long TStackSize;
    unsigned short TSuspTics;
} tcbstruc;



extern unsigned long TIC;
extern volatile unsigned long MainCounter;

extern unsigned EXECUTIC;
extern volatile unsigned PROTECT;
extern volatile int CurrentTask;
extern unsigned MainTask;

extern tcbstruc TCB[];
extern tcbstruc* CurrentTaskPointer;


void __irq IRQHandler(void);
void SaveAndRestore(tcbstruc* SaveTask,tcbstruc*
RestoreTask);
void InitialiseContext(tcbstruc* tcb);

void InitialiseTasks(void);
void Suspend(unsigned SuspTics, unsigned long
StartTic);
void GPISR(void);


Can somebody help me with this?

Thankyou

Wellington
Brazil
 
__________________________________________________________________________
Acabe com aquelas janelinhas que pulam na sua tela.
AntiPop-up UOL - É grátis!
http://antipopup.uol.com.br/


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-08-04 18:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-07-07  3:48 parse error Ext-Kannan.Venkatakrishnan
2000-07-07 10:09 ` Martin v. Loewis
2000-07-07 12:33 ` Alexandre Oliva
2004-08-04 22:32 Parse error frostflare

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).