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 To: cygwin AT cygwin DOT com From: Rolf Campbell Subject: Re: Compile dclock fails Date: Mon, 19 Jan 2004 17:24:52 -0500 Lines: 66 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet AT sea DOT gmane DOT org User-Agent: Mozilla Thunderbird 0.5a (20040105) In-Reply-To: Yup, it does fail. This is because it's written in improper C. Mark DOT Schubert AT sita DOT aero wrote: > mark AT Duke ~ > $ gzip -dc dclock_2.1.2.orig.tar.gz |tar xvf - > dclock/ > dclock/Dclock.c > dclock/Dclock.h > dclock/DclockP.h > dclock/Imakefile > dclock/README > dclock/TODO > dclock/dclock.c > dclock/Dclock.ad > dclock/sounds/ > dclock/sounds/bell.wav > dclock/sounds/digital.wav > dclock/dclock.1 > dclock/Makefile.orig > > mark AT Duke ~ > $ cd dclock > > mark AT Duke ~/dclock > $ xmkmf > imake -DUseInstalled -I/usr/X11R6/lib/X11/config > > mark AT Duke ~/dclock > $ make depend > makedepend -- -I/usr/X11R6/include -D__i386__ -DWIN32_LEAN_AND_MEAN > -DX_LOCALE -D_X86_ -D__CYGWIN__ -D_XOPEN_SOURCE > -D_POSIX_C_SOURCE=199309L -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE > -DFUNCPROTO=15 -DNARROWPROTO -DUSE_MAKEDEPEND -- Dclock.c dclock.c > > mark AT Duke ~/dclock > $ make > gcc -O2 -fno-strength-reduce -Wall -Wpointer-arith -I/usr/X11R6/include > -D__i386__ -DWIN32_LEAN_AND_MEAN -DX_LOCALE -D_X86_ -D__CYGWIN__ > -D_XOPEN_SOURCE -D_POSIX_C_SOURCE=199309L -D_BSD_SOURCE > -D_SVID_SOURCE -D_GNU_SOURCE -DFUNCPROTO=15 > -DNARROWPROTO -c -o dclock.o dclock.c > dclock.c: In function `Usage': > dclock.c:91: warning: implicit declaration of function `exit' > dclock.c: At top level: > dclock.c:105: warning: return type defaults to `int' > dclock.c: In function `main': > dclock.c:110: warning: suggest parentheses around assignment used as truth > value > dclock.c:127: warning: control reaches end of non-void function > rm -f dclock.exe > gcc -o dclock.exe -O2 -fno-strength-reduce -Wall -Wpointer-arith > -L/usr/X11R6/lib Dclock.o dclock.o -lXt -lSM -lICE -lXext -lX11 -lm > -Wl,--enable-auto-import > dclock.o(.text+0xb40):dclock.c: multiple definition of `_main' > Dclock.o(.text+0xb40):dclock.c: first defined here > Dclock.o(.text+0xbd3):dclock.c: undefined reference to > `_dclockWidgetClass' > dclock.o(.text+0xbd3):dclock.c: undefined reference to > `_dclockWidgetClass' > collect2: ld returned 1 exit status > make: *** [dclock.exe] Error 1 > > mark AT Duke ~/dclock > $ > -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/