Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Sun, 24 Nov 2002 14:30:12 +0100 From: Uwe Mayer Reply-To: Uwe Mayer X-Priority: 3 (Normal) Message-ID: <1831191893.20021124143012@planet-interkom.de> To: cygwin AT cygwin DOT com Subject: compiling for cygwin in generall; compiling anacron; MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi, I got two questions by my heart: First, if I successfully compiled a linux program for cygwin and it is running as expected, should I try to publish it so that it is available via the cygwin setup tool? I don't have much experience with this though (see 2nd question) but I'd like to help those who suffer from the same problems as I do. Second: Cygwin probably runs on many non-server windows boxes. For those the cron daemon poses the problem that regular sheduled tasks ain't run. Thus I searched for anacron, didn't find it and now I'm trying to compile it. I posted a question on problem with compiling clicq (see msg: <1901490873 DOT 20021118091913 AT hadiko DOT de>). Since then I read a paper on GNU make, so this should not be a problem any more. The problem occurs during make anyways: -- gcc -c -DSPOOLDIR=\"/var/spool/anacron\" -DRELEASE=\"2.3\" -DANACRONTAB=\"/etc/anacrontab\" -Wall -pedantic -O2 readtab.c -o readtab.o readtab.c:32:21: obstack.h: No such file or directory readtab.c:33:1: warning: C++ style comments are not allowed in ISO C89 readtab.c:33:1: warning: (this will be reported only once per input file) In file included from readtab.c:38: global.h:35:1: warning: C++ style comments are not allowed in ISO C89 global.h:35:1: warning: (this will be reported only once per input file) readtab.c: In function `read_tab_line': readtab.c:91: warning: implicit declaration of function `obstack_1grow' readtab.c:94: warning: implicit declaration of function `obstack_finish' readtab.c:94: warning: return makes pointer from integer without a cast readtab.c: In function `register_env': readtab.c:123: warning: implicit declaration of function `obstack_alloc' readtab.c:123: warning: assignment makes pointer from integer without a cast readtab.c:124: warning: assignment makes pointer from integer without a cast readtab.c: In function `register_job': readtab.c:155: warning: assignment makes pointer from integer without a cast readtab.c:159: warning: assignment makes pointer from integer without a cast readtab.c:162: warning: assignment makes pointer from integer without a cast readtab.c: In function `read_tab': readtab.c:236: warning: implicit declaration of function `obstack_init' readtab.c:242: warning: implicit declaration of function `obstack_free' readtab.c: In function `arrange_jobs': readtab.c:278: warning: implicit declaration of function `obstack_grow' readtab.c:282: warning: assignment makes pointer from integer without a cast /usr/include/stdio.h: At top level: readtab.c:41: storage size of `input_o' isn't known readtab.c:42: storage size of `tab_o' isn't known readtab.c:58: warning: `xmalloc' defined but not used make: *** [readtab.o] Error 1 -- I guess obstack.h is missing again. A packet search for obstack.h on the cygwin homepage listed only source files for obstack.h. Now, I didn't know how to deal with that. I installed the binutils sources, changed the #include directive to match the location of the missing header file, /usr/src/binutils-20021107-2/include/obstack.h (*) /usr/src/binutils-20021107-2/libiberty/obstack.c /usr/src/binutils-20021107-2/libiberty/obstacks.texi and tried make again: -- gcc gregor.o lock.o log.o main.o matchrx.o readtab.o runjob.o -o anacron readtab.o(.text+0x150):readtab.c: undefined reference to `__obstack_newchunk' readtab.o(.text+0x1f8):readtab.c: undefined reference to `__obstack_newchunk' readtab.o(.text+0x43c):readtab.c: undefined reference to `__obstack_newchunk' readtab.o(.text+0x480):readtab.c: undefined reference to `__obstack_newchunk' readtab.o(.text+0x70c):readtab.c: undefined reference to `__obstack_newchunk' readtab.o(.text+0x74c):readtab.c: more undefined references to `__obstack_newchunk' follow readtab.o(.text+0xa7b):readtab.c: undefined reference to `__obstack_begin' readtab.o(.text+0xaa7):readtab.c: undefined reference to `__obstack_begin' readtab.o(.text+0xae5):readtab.c: undefined reference to `_obstack_free' readtab.o(.text+0xc90):readtab.c: undefined reference to `__obstack_newchunk' collect2: ld returned 1 exit status make: *** [anacron] Error 1 -- Can somebody tell me where the problem here is? Wrong version of obstack? Thanks for any help. Ciao Uwe -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/