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 X-AuthUser: gerrit:koeln.convey.de Date: Fri, 3 Oct 2003 09:50:51 +0200 From: "Gerrit P. Haase" Organization: Esse keine toten Tiere X-Priority: 3 (Normal) Message-ID: <187-1585383621.20031003095051@familiehaase.de> To: Lapo Luchini CC: cygwin AT cygwin DOT com Subject: Re: db3.1? In-Reply-To: <3F7C2623.3020403@lapo.it> References: <3F7BDC8E DOT 3040706 AT lapo DOT it> <9284569554 DOT 20031002114143 AT familiehaase DOT de> <3F7C2623 DOT 3020403 AT lapo DOT it> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hello Lapo, >>>Is there any particuloar reason that a db3 program compiled like this: >>> -I/usr/include/db3.1/ -ldb-3.1 >>>can compile ok and, at runtime, exit with the following error code? >>Which db3 program? > onak, a GPG keyserver: http://www.earth.li/projectpurple/progs/onak.html Hmmm, I'm getting a lot of warnings: gcc -Wall -pedantic -g -I/usr/include/db3 -c -o hash.o hash.c hash.c: In function `destroyhash': hash.c:60: warning: passing arg 2 of `llfree' from incompatible pointer type gcc -Wall -pedantic -g -I/usr/include/db3 -c -o keydb_db3.o keydb_db3.c keydb_db3.c: In function `makewordlist': keydb_db3.c:94: warning: passing arg 3 of `llfind' from incompatible pointer type keydb_db3.c: In function `fetch_key_text': keydb_db3.c:382: warning: passing arg 3 of `llfind' from incompatible pointer type In file included from keydb_db3.c:785: keydb.c:141:21: warning: use of C99 long long integer constant gcc -Wall -pedantic -g -I/usr/include/db3 -c -o keyid.o keyid.c gcc -Wall -pedantic -g -I/usr/include/db3 -c -o keyindex.o keyindex.c keyindex.c: In function `list_sigs': keyindex.c:44: warning: ISO C90 does not support the `ll' printf length modifier keyindex.c:44: warning: ISO C90 does not support the `ll' printf length modifier keyindex.c:44: warning: ISO C90 does not support the `ll' printf length modifier keyindex.c:48: warning: ISO C90 does not support the `ll' printf length modifier keyindex.c:54: warning: ISO C90 does not support the `ll' printf length modifier keyindex.c: In function `list_subkeys': keyindex.c:133: warning: unsigned int format, long unsigned int arg (arg 4) keyindex.c: In function `key_index': keyindex.c:223: warning: unsigned int format, long unsigned int arg (arg 4) keyindex.c: In function `mrkey_index': keyindex.c:291: warning: ISO C90 does not support the `ll' printf length modifier And linking fails no _flockfile() && no _funlockfile(): gcc -o add add.o merge.o sendsync.o armor.o charfuncs.o decodekey.o getcgi.o hash.o keydb_db3.o keyid.o keyindex.o ll.o mem.o onak-conf.o parsekey.o sha.o md5.o log.o -L/usr/lib -ldb-3.1 log.o(.text+0x232): In function `logthing': /tmp/onak/onak-0.2.0/log.c:176: undefined reference to `_flockfile' log.o(.text+0x2a1):/tmp/onak/onak-0.2.0/log.c:191: undefined reference to `_funlockfile' collect2: ld returned 1 exit status make: *** [add] Error 1 Do you have a patch? Gerrit -- =^..^= -- 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/