Community technical support mailing list was retired 2010 and replaced with a professional technical support team. For assistance please contact: Pre-sales Technical support via email to sales@march-hare.com.
Tony Hoyle wrote: > On Tue, 13 Jan 2004 00:38:52 +1100, Carl Brewer > <carl at bl.echidna.id.au> wrote: > > > >>lib/timegm is causing some problems, do you want a compiler error dump? >> > > OK that'll help. the timegm stuff is pretty standard so should be OK > (provided you're using a Unix standard time_t, which Solaris is > AFAIK). fixed that, Solaris needs time.h included in timegm.h, this works : [rollcage]/opt/store/utils/cvsnt-2.0.20/lib{51} : more timegm.h #ifndef __TIMEGM__H #define __TIMEGM__H #ifndef HAVE_TIMEGM #include "time.h" time_t timegm(struct tm *tm); #endif #endif I assume you'd want to wrap that up though :) diff isn't happy though : gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../src -I../lib -g -O2 -c `test -f 'diff.c' || echo './'`diff.c diff.c:194: error: elements of array `longopts' have incomplete type diff.c:196: warning: excess elements in struct initializer diff.c:196: warning: (near initialization for `longopts[0]') diff.c:196: warning: excess elements in struct initializer diff.c:196: warning: (near initialization for `longopts[0]') diff.c:196: warning: excess elements in struct initializer diff.c:196: warning: (near initialization for `longopts[0]') diff.c:196: warning: excess elements in struct initializer diff.c:196: warning: (near initialization for `longopts[0]') . . . . . . diff.c:246: warning: excess elements in struct initializer diff.c:246: warning: (near initialization for `longopts[50]') diff.c:246: warning: excess elements in struct initializer diff.c:246: warning: (near initialization for `longopts[50]') diff.c:246: warning: excess elements in struct initializer diff.c:246: warning: (near initialization for `longopts[50]') diff.c:246: warning: excess elements in struct initializer diff.c:246: warning: (near initialization for `longopts[50]') make[2]: *** [diff.o] Error 1 make[2]: Leaving directory `/opt/store/utils/cvsnt-2.0.20/diff' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/opt/store/utils/cvsnt-2.0.20' make: *** [all] Error 2 My C is nowhere near good enough to fix that one :)