nmh-workers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Nmh-workers] dtimep.c problem when compiling nmh-1.0.4 on CYGWIN_NT-5.1


From: Axel Jantsch
Subject: [Nmh-workers] dtimep.c problem when compiling nmh-1.0.4 on CYGWIN_NT-5.1 1.5.9
Date: Tue, 18 May 2004 15:16:49 +0200

--------

Hi,

I'm trying to compile nmh-1.0.4 on CYGWIN_NT-5.1 1.5.9(0.112/4/2) on
Windows XP Professional SP1, and have encountered the problem

 gcc -c -DHAVE_CONFIG_H -I../.. -I. -I../.. -O2 dtimep.c
 dtimep.c:17: error: `timezone' redeclared as different kind of symbol
 /usr/include/time.h:117: error: previous declaration of `timezone'

I have seen that this problem has been reported before on the mailing list,
but I could not find a bug fix.

Below I give the trace of sh configure and make, if that helps.

Thanks and best regards
Axel



address@hidden: sh configure
creating cache ./config.cache
checking host system type... i386-pc-cygwin32
checking target system type... i386-pc-cygwin32
checking build system type... i386-pc-cygwin32
configuring for nmh-1.0.4
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for working const... yes
checking whether make sets ${MAKE}... yes
checking for a BSD compatible install... /usr/bin/install -c
checking for ranlib... ranlib
checking for mawk... no
checking for gawk... gawk
checking for flex... flex
checking for yywrap in -lfl... yes
checking for cut... /usr/bin/cut
checking for libtool... libtool
checking for lorder... no
checking for tsort... tsort
checking for ls... /usr/bin/ls
checking how to get ls to show us the group ownership of a file... -l
checking for more... /usr/bin/more
checking for sendmail... no
checking for vi... /usr/bin/vi
checking for broken vi... no
checking where mail spool is located... /dev/null
checking whether the mail spool is world-writable... yes
checking what group owns the mail spool... None
checking for dirent.h that defines DIR... yes
checking for opendir in -ldir... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking whether time.h and sys/time.h may both be included... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking whether stat file-mode macros are broken... no
checking for string.h... yes
checking for memory.h... yes
checking for stdlib.h... yes
checking for unistd.h... yes
checking for errno.h... yes
checking for fcntl.h... yes
checking for limits.h... yes
checking for crypt.h... yes
checking for termcap.h... yes
checking for termio.h... yes
checking for termios.h... yes
checking for locale.h... yes
checking for netdb.h... yes
checking for sys/param.h... yes
checking for sys/time.h... yes
checking for sys/utsname.h... yes
checking for arpa/inet.h... yes
checking for arpa/ftp.h... yes
checking POSIX termios... yes
checking TIOCGWINSZ in termios.h... yes
checking for libio.h... no
checking for sys/ptem.h... no
checking for pid_t... yes
checking for vfork.h... no
checking for working vfork... yes
checking for mkstemp in -lmkstemp... no
checking for waitpid... yes
checking for wait3... yes
checking for sigaction... yes
checking for sigprocmask... yes
checking for sigblock... no
checking for sigsetmask... no
checking for sighold... yes
checking for sigrelse... no
checking for writev... yes
checking for lstat... yes
checking for uname... yes
checking for tzset... yes
checking for killpg... yes
checking for mkstemp... yes
checking for sethostent... yes
checking for gethostbyname... yes
checking for sigsetjmp... no
checking for snprintf... yes
checking for strerror... yes
checking for strdup... yes
checking for modf... yes
checking for gethostbyname... (cached) yes
checking for socket... yes
checking for ruserpass... no
checking for _ruserpass... no
checking for _ruserpass in -lsocket... no
checking for tgetent in -ltermcap... yes
checking for dbm_open... no
checking for dbm_open in -lndbm... no
checking for dbm_open in -ldbm... no
checking for db1/ndbm.h... no
checking if an include file defines ospeed... yes
checking return type of signal handlers... void
checking for pid_t... (cached) yes
checking for off_t... yes
checking for uid_t in sys/types.h... yes
checking for mode_t... yes
checking for size_t... yes
checking for sigset_t... yes
checking for st_blksize in struct stat... yes
checking for tm_gmtoff in struct tm... no
checking what style of signals to use... POSIX_SIGNALS
checking where signal.h is located... /usr/include/sys/signal.h
updating cache ./config.cache
creating ./config.status
creating Makefile
creating config/Makefile
creating h/Makefile
creating sbr/Makefile
creating uip/Makefile
creating zotnet/Makefile
creating zotnet/mts/Makefile
creating zotnet/tws/Makefile
creating zotnet/mf/Makefile
creating zotnet/bboards/Makefile
creating mts/Makefile
creating mts/smtp/Makefile
creating mts/sendmail/Makefile
creating mts/mmdf/Makefile
creating etc/Makefile
creating man/Makefile
creating config.h

nmh configuration
-----------------
nmh version                : 1.0.4
target os                  : i386-pc-cygwin32
compiler                   : gcc
compiler flags             : -O2
linker flags               : -s
source code location       : .
binary install path        : /usr/local/nmh/bin
libary install path        : /usr/local/nmh/lib
config files install path  : /usr/local/nmh/etc
man page install path      : /usr/local/nmh/man
transport system           : smtp
default smtp servers       : localhost
default editor             : /usr/bin/vi
default pager              : /usr/bin/more
email address masquerading : 
pop is enabled             : no

[/home/axeladm/ftp/nmh-1.0.4
 address@hidden: make
for subdir in h config sbr zotnet mts uip etc man; do \
  (cd $subdir && make CC='gcc' CPPFLAGS='' DEFS='-DHAVE_CONFIG_H' CFLAGS='-O2' L
DFLAGS='-s' LIBS='' prefix='/usr/local/nmh' exec_prefix='/usr/local/nmh' bindir=
'/usr/local/nmh/bin' etcdir='/usr/local/nmh/etc' libdir='/usr/local/nmh/lib' man
dir='/usr/local/nmh/man' mailspool='/dev/null' sendmailpath='no' default_editor=
'/usr/bin/vi' default_pager='/usr/bin/more' all) || exit 1; \
done
make[1]: Entering directory `/home/axeladm/ftp/nmh-1.0.4/h'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/axeladm/ftp/nmh-1.0.4/h'
make[1]: Entering directory `/home/axeladm/ftp/nmh-1.0.4/config'
gcc -c -DHAVE_CONFIG_H -DNMHBINDIR='"/usr/local/nmh/bin"' -DNMHETCDIR='"/usr/loc
al/nmh/etc"' -DNMHLIBDIR='"/usr/local/nmh/lib"' -DDEFAULT_EDITOR='"/usr/bin/vi"'
 -DDEFAULT_PAGER='"/usr/bin/more"' -I.. -I.. -O2 config.c
./version.sh 1.0.4 > version.c
gcc -c -DHAVE_CONFIG_H -I.. -I.. -O2 version.c
make[1]: Leaving directory `/home/axeladm/ftp/nmh-1.0.4/config'
make[1]: Entering directory `/home/axeladm/ftp/nmh-1.0.4/sbr'
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 add.c
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 addrsbr.c
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 ambigsw.c
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 atooi.c
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 brkstring.c
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 check_charset.c
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 closefds.c
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 concat.c
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 context_del.c
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 context_find.c
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 context_foil.c
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 context_read.c
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 context_replace.c
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 context_save.c
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 copy.c
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 copyip.c
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 cpydata.c
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 cpydgst.c
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 discard.c
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 done.c
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 error.c
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 fdcompare.c
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 folder_addmsg.c
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 folder_delmsgs.c
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 folder_free.c
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 folder_pack.c
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 folder_read.c
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 folder_realloc.c
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 gans.c
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 getans.c
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 getanswer.c
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 getarguments.c
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 getcpy.c
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 getfolder.c
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 fmt_addr.c
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 fmt_compile.c
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 fmt_new.c
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 fmt_rfc2047.c
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 fmt_scan.c
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 lock_file.c
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 m_atoi.c
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 m_backup.c
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 m_convert.c
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 m_draft.c
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 m_getfld.c
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 m_gmprot.c
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 m_maildir.c
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 m_name.c
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 m_scratch.c
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 m_tmpfil.c
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 makedir.c
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 path.c
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 peekc.c
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 pidwait.c
gawk -f ./sigmsg.awk /usr/include/sys/signal.h > sigmsg.h
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 pidstatus.c
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 print_help.c
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 print_sw.c
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 print_version.c
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 push.c
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 putenv.c
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 pwd.c
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 refile.c
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 remdir.c
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 r1bindex.c
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 readconfig.c
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 seq_add.c
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 seq_bits.c
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 seq_del.c
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 seq_getnum.c
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 seq_list.c
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 seq_nameok.c
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 seq_print.c
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 seq_read.c
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 seq_save.c
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 seq_setcur.c
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 seq_setprev.c
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 seq_setunseen.c
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 showfile.c
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 signals.c
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 smatch.c
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 snprintb.c
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 ssequal.c
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 strcasecmp.c
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 strindex.c
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 trimcpy.c
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 uprf.c
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 vfgets.c
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 fmt_def.c
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 m_msgdef.c
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 ruserpass.c
rm -f libmh.a
if test xlibtool != x -a x1 = x ; then \
  libtool -static -c -o libmh.a add.o addrsbr.o ambigsw.o atooi.o brkstring.o ch
eck_charset.o closefds.o concat.o context_del.o context_find.o context_foil.o co
ntext_read.o context_replace.o context_save.o copy.o copyip.o cpydata.o cpydgst.
o discard.o done.o error.o fdcompare.o folder_addmsg.o folder_delmsgs.o folder_f
ree.o folder_pack.o folder_read.o folder_realloc.o gans.o getans.o getanswer.o g
etarguments.o getcpy.o getfolder.o fmt_addr.o fmt_compile.o fmt_new.o fmt_rfc204
7.o fmt_scan.o lock_file.o m_atoi.o m_backup.o m_convert.o m_draft.o m_getfld.o 
m_gmprot.o m_maildir.o m_name.o m_scratch.o m_tmpfil.o makedir.o path.o peekc.o 
pidwait.o pidstatus.o print_help.o print_sw.o print_version.o push.o putenv.o pw
d.o refile.o remdir.o r1bindex.o readconfig.o seq_add.o seq_bits.o seq_del.o seq
_getnum.o seq_list.o seq_nameok.o seq_print.o seq_read.o seq_save.o seq_setcur.o
 seq_setprev.o seq_setunseen.o showfile.o signals.o smatch.o snprintb.o ssequal.
o strcasecmp.o strindex.o trimcpy.o uprf.o vfgets.o fmt_def.o m_msgdef.o ruserpa
ss.o ; \
else \
  ar cr libmh.a `echo add.o addrsbr.o ambigsw.o atooi.o brkstring.o check_charse
t.o closefds.o concat.o context_del.o context_find.o context_foil.o context_read
.o context_replace.o context_save.o copy.o copyip.o cpydata.o cpydgst.o discard.
o done.o error.o fdcompare.o folder_addmsg.o folder_delmsgs.o folder_free.o fold
er_pack.o folder_read.o folder_realloc.o gans.o getans.o getanswer.o getargument
s.o getcpy.o getfolder.o fmt_addr.o fmt_compile.o fmt_new.o fmt_rfc2047.o fmt_sc
an.o lock_file.o m_atoi.o m_backup.o m_convert.o m_draft.o m_getfld.o m_gmprot.o
 m_maildir.o m_name.o m_scratch.o m_tmpfil.o makedir.o path.o peekc.o pidwait.o 
pidstatus.o print_help.o print_sw.o print_version.o push.o putenv.o pwd.o refile
.o remdir.o r1bindex.o readconfig.o seq_add.o seq_bits.o seq_del.o seq_getnum.o 
seq_list.o seq_nameok.o seq_print.o seq_read.o seq_save.o seq_setcur.o seq_setpr
ev.o seq_setunseen.o showfile.o signals.o smatch.o snprintb.o ssequal.o strcasec
mp.o strindex.o trimcpy.o uprf.o vfgets.o fmt_def.o m_msgdef.o ruserpass.o | cat
`  ; \
  ranlib libmh.a  ; \
        fi 
make[1]: Leaving directory `/home/axeladm/ftp/nmh-1.0.4/sbr'
make[1]: Entering directory `/home/axeladm/ftp/nmh-1.0.4/zotnet'
for subdir in mts tws mf bboards; do \
  (cd $subdir && make CC='gcc' CPPFLAGS='' DEFS='-DHAVE_CONFIG_H' CFLAGS='-O2' L
DFLAGS='-s' LIBS='' prefix='/usr/local/nmh' exec_prefix='/usr/local/nmh' bindir=
'/usr/local/nmh/bin' etcdir='/usr/local/nmh/etc' libdir='/usr/local/nmh/lib' man
dir='/usr/local/nmh/man' mailspool='/dev/null' sendmailpath='no' default_editor=
'/usr/bin/vi' default_pager='/usr/bin/more' all) || exit 1; \
done
make[2]: Entering directory `/home/axeladm/ftp/nmh-1.0.4/zotnet/mts'
gcc -c -DHAVE_CONFIG_H -DNMHETCDIR='"/usr/local/nmh/etc"' -DMAILSPOOL='"/dev/nul
l"' -DSENDMAILPATH='"no"' -I../.. -I. -I../..   -O2 mts.c
gcc -c -DHAVE_CONFIG_H -I../.. -I. -I../..   -O2 client.c
make[2]: Leaving directory `/home/axeladm/ftp/nmh-1.0.4/zotnet/mts'
make[2]: Entering directory `/home/axeladm/ftp/nmh-1.0.4/zotnet/tws'
lex -nt ./dtimep.lex | sed -f ./lexedit.sed > dtimep.c
lex: not found
LEX FAILED: using pre-lexed dtimep.c
gcc -c -DHAVE_CONFIG_H -I../.. -I. -I../.. -O2 dtimep.c
dtimep.c:17: error: `timezone' redeclared as different kind of symbol
/usr/include/time.h:117: error: previous declaration of `timezone'
make[2]: *** [dtimep.o] Error 1
make[2]: Leaving directory `/home/axeladm/ftp/nmh-1.0.4/zotnet/tws'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/axeladm/ftp/nmh-1.0.4/zotnet'
make: *** [all-recursive] Error 1

---
Phone: +46 8 790 4124, Email: address@hidden, Web: www.ele.kth.se/~axel




reply via email to

[Prev in Thread] Current Thread [Next in Thread]