Hi,

I have tried to install on Solaris_8 makedepend of cyrus-imapd-2.0.13
and it was to see:


main.c:194: warning: `sa_handler' redefined
/usr/include/sys/signal.h:95: warning: this is the location of the previous definition


wenn I replace "#<signal.h>" with "#</usr/ucbinclude/sys/signal.h>"
now I see one other errors. Where is error?

Thanks in advance



############################################
# gcc -v
Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2/specs
gcc version 2.95.2 19991024 (release)
# make -v
GNU Make version 3.79.1, by Richard Stallman and Roland McGrath.
Built for sparc-sun-solaris2.8
Copyright (C) 1988, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 2000
        Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

Report bugs to <[EMAIL PROTECTED]>.

# uname -a
SunOS eo-sun-e220rb 5.8 Generic_108528-05 sun4u sparc SUNW,Ultra-60
# 
# 
# 
# 
# ./configure
loading cache ./config.cache
checking for gcc... (cached) gcc
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... yes
checking for a BSD compatible install... (cached) ./install-sh -c
checking for ranlib... (cached) ranlib
checking whether make sets ${MAKE}... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking for stdarg.h... (cached) yes
updating cache ./config.cache
creating ./config.status
creating Makefile
# 
# 
# 
# make
gcc -c -I. -I.    -DHAVE_STDARG_H=1  -g -O cppsetup.c
gcc -c -I. -I.    -DHAVE_STDARG_H=1  -g -O ifparser.c
gcc -c -I. -I.    -DHAVE_STDARG_H=1  -g -O include.c
gcc -c -I. -I.    -DHAVE_STDARG_H=1  -g -O main.c
main.c:194: warning: `sa_handler' redefined
/usr/include/sys/signal.h:95: warning: this is the location of the previous definition
main.c: In function `main':
main.c:430: invalid use of undefined type `struct sigvec'
main.c:446: invalid use of undefined type `struct sigvec'
main.c:460: invalid use of undefined type `struct sigvec'
main.c: At top level:
main.c:198: storage size of `sig_act' isn't known
make: *** [main.o] Error 1
# 
# 
# 
Script started on Wed May 23 11:33:18 2001
# 
# 
# find / -name signal.h -print
/usr/include/sys/signal.h
/usr/include/signal.h
/usr/ucbinclude/sys/signal.h
/usr/ucbinclude/signal.h
# 
# grep sigvec /usr/include/sys/signal.h
# grep sigvec /usr/include/signal.h
# grep sigvec /usr/ucbinclude/sys/signal.h
 * 4.3BSD signal vector structure used in sigvec call.
struct  sigvec {
extern int sigvec(int, struct sigvec *, struct sigvec *);
# 
# grep sigvec /usr/ucbinclude/signal.h
# 
# make clean
rm -f *.o Makefile.bak makedepend


##### now in main.c =======> #</usr/ucbinclude/sys/signal.h>
#############!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
# make clean
rm -f *.o Makefile.bak makedepend
# ./configure
loading cache ./config.cache
checking for gcc... (cached) gcc
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for a BSD compatible install... (cached) ./install-sh -c
checking for ranlib... (cached) ranlib
checking whether make sets ${MAKE}... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking for stdarg.h... (cached) yes
creating ./config.status
creating Makefile
# 
# 
# make
gcc -c -I. -I.    -DHAVE_STDARG_H=1  -g -O cppsetup.c
gcc -c -I. -I.    -DHAVE_STDARG_H=1  -g -O ifparser.c
gcc -c -I. -I.    -DHAVE_STDARG_H=1  -g -O include.c
gcc -c -I. -I.    -DHAVE_STDARG_H=1  -g -O main.c
gcc -c -I. -I.    -DHAVE_STDARG_H=1  -g -O parse.c
gcc -c -I. -I.    -DHAVE_STDARG_H=1  -g -O pr.c
gcc  -o makedepend cppsetup.o ifparser.o include.o \
        main.o parse.o pr.o  
main.o: In function `main':
/export/home/rza015/IMAP4/cyrus-imapd-2.0.13/makedepend/main.c:461: undefined 
reference to `sigvec'
/export/home/rza015/IMAP4/cyrus-imapd-2.0.13/makedepend/main.c:462: undefined 
reference to `sigvec'
/export/home/rza015/IMAP4/cyrus-imapd-2.0.13/makedepend/main.c:463: undefined 
reference to `sigvec'
/export/home/rza015/IMAP4/cyrus-imapd-2.0.13/makedepend/main.c:464: undefined 
reference to `sigvec'
/export/home/rza015/IMAP4/cyrus-imapd-2.0.13/makedepend/main.c:466: undefined 
reference to `sigvec'
main.o:/export/home/rza015/IMAP4/cyrus-imapd-2.0.13/makedepend/main.c:468: more 
undefined references to `sigvec' follow
collect2: ld returned 1 exit status
make: *** [makedepend] Error 1
# 

Reply via email to