delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/08/13/14:43:52

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <411D0BC9.3030007@earthlink.net>
Date: Fri, 13 Aug 2004 11:43:21 -0700
From: kevin J <kevin DOT j AT earthlink DOT net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: error in compiling berkeleydb-4.2.52 in cygwin

Hi,

I downloaded berkeleydb-4.2.52 and two patches from sleepycat.
When I tried to compile it I got the errors from ../lock/lock_region.c 
as below.
Anybody know what's wrong? 

Thanks,
Kevin
--------------------------------------------------------------------------------------------------
pas-lap-030210:/home/kihoonj/db-4.2.52/build_win32> make
/usr/bin/sh ./libtool --mode=compile cc -c -I. -I../dist/..  
-D_GNU_SOURCE -D_REENTRANT -O2 ../dist/../lock/lock_region.c
 cc -c -I. -I../dist/.. -D_GNU_SOURCE -D_REENTRANT -O2 
../dist/../lock/lock_region.c  -DPIC -o .libs/lock_region.o
../lock/lock_region.c:98:49: macro "__lock_init" passed 2 arguments, but 
takes just 1
../lock/lock_region.c: In function `__lock_open':
../lock/lock_region.c:98: warning: assignment makes integer from pointer 
without a cast
../lock/lock_region.c:159:22: macro "__lock_init" passed 2 arguments, 
but takes just 1
../lock/lock_region.c: At top level:
../lock/lock_region.c:160: error: syntax error before "DB_ENV"
../lock/lock_region.c:162: error: syntax error before '{' token
../lock/lock_region.c:175: error: syntax error before "if"
../lock/lock_region.c:179: error: conflicting types for `region'
../lock/lock_region.c:167: error: previous declaration of `region'
../lock/lock_region.c:179: warning: data definition has no type or 
storage class
../lock/lock_region.c:180: error: syntax error before numeric constant
../lock/lock_region.c:186: warning: initialization makes integer from 
pointer without a cast
../lock/lock_region.c:186: warning: data definition has no type or 
storage class
../lock/lock_region.c:187: error: syntax error before '}' token
../lock/lock_region.c:189: error: redefinition of `lk_conflicts'
../lock/lock_region.c:186: error: `lk_conflicts' previously defined here
../lock/lock_region.c:189: warning: initialization makes integer from 
pointer without a cast
../lock/lock_region.c:189: warning: data definition has no type or 
storage class
../lock/lock_region.c:190: error: syntax error before '}' token
../lock/lock_region.c:193: error: redefinition of `lk_conflicts'
../lock/lock_region.c:189: error: `lk_conflicts' previously defined here
../lock/lock_region.c:193: warning: initialization makes integer from 
pointer without a cast
../lock/lock_region.c:193: error: initializer element is not constant
../lock/lock_region.c:193: warning: data definition has no type or 
storage class
../lock/lock_region.c:194: error: syntax error before '}' token
../lock/lock_region.c:197: error: syntax error before '&' token
../lock/lock_region.c:203: error: syntax error before '&' token
../lock/lock_region.c:215: error: syntax error before '*' token
../lock/lock_region.c:215: warning: data definition has no type or 
storage class
../lock/lock_region.c:216: error: syntax error before '->' token
../lock/lock_region.c:222: error: syntax error before '->' token
../lock/lock_region.c:222: error: conflicting types for `__db_hashinit'
../dbinc_auto/env_ext.h:16: error: previous declaration of `__db_hashinit'
../lock/lock_region.c:222: warning: data definition has no type or 
storage class
../lock/lock_region.c:223: error: syntax error before '->' token
../lock/lock_region.c:229: error: syntax error before '->' token
../lock/lock_region.c:229: warning: data definition has no type or 
storage class
../lock/lock_region.c:230: error: syntax error before '->' token
../lock/lock_region.c:259: error: syntax error before "struct"
../lock/lock_region.c:259: error: syntax error before '->' token
../lock/lock_region.c:259: error: syntax error before '->' token
../lock/lock_region.c:270: error: syntax error before "struct"
../lock/lock_region.c:270: error: syntax error before '->' token
../lock/lock_region.c:270: error: synta


--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019