This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: cygwin-1.7.28 getpwent header declaration changes ?
- From: Jan Nijtmans <jan dot nijtmans at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Thu, 6 Feb 2014 14:00:10 +0100
- Subject: Re: cygwin-1.7.28 getpwent header declaration changes ?
- Authentication-results: sourceware.org; auth=none
- References: <52F339CA dot 5070305 at gmail dot com> <20140206090117 dot GD2821 at calimero dot vinschen dot de> <52F361C5 dot 3000807 at gmail dot com>
On Feb 6 08:29, Marco Atzeri wrote:
> Is something slightly changed in the relative system headers ?
After upgrading to Cygwin 1.7.28, Sqlite doesn't compile any
more. See log below. When reverting to 1.7.27-2,
everything is back to normal.
The LOCK_EX macro's and friends are supposed to
be defined when including <sys/file.h>:
<http://man7.org/linux/man-pages/man2/flock.2.html>
but they aren't any more.
I added a:
#define __BSD_VISIBLE 1
to sqliteInt.h (before all headers are included), then
everything works again.
Regards,
Jan Nijtmans
==============================================
sqlite3.c: In function 'flockCheckReservedLock':
sqlite3.c:25869:38: error: 'LOCK_EX' undeclared (first use in this function)
int lrc = robust_flock(pFile->h, LOCK_EX | LOCK_NB);
^
sqlite3.c:25869:38: note: each undeclared identifier is reported only
once for e ach function it appears in
sqlite3.c:25869:48: error: 'LOCK_NB' undeclared (first use in this function)
int lrc = robust_flock(pFile->h, LOCK_EX | LOCK_NB);
^
sqlite3.c:25872:36: error: 'LOCK_UN' undeclared (first use in this function)
lrc = robust_flock(pFile->h, LOCK_UN);
^
sqlite3.c: In function 'flockLock':
sqlite3.c:25949:30: error: 'LOCK_EX' undeclared (first use in this function)
if (robust_flock(pFile->h, LOCK_EX | LOCK_NB)) {
^
sqlite3.c:25949:40: error: 'LOCK_NB' undeclared (first use in this function)
if (robust_flock(pFile->h, LOCK_EX | LOCK_NB)) {
^
sqlite3.c: In function 'flockUnlock':
sqlite3.c:25998:30: error: 'LOCK_UN' undeclared (first use in this function)
if( robust_flock(pFile->h, LOCK_UN) ){
^
Makefile:563: recipe for target 'sqlite3.lo' failed
make: *** [sqlite3.lo] Error 1
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple