Bug 47038 - USE_FLOCK_LK redefined compiler warning when using --enable-flock
Summary: USE_FLOCK_LK redefined compiler warning when using --enable-flock
Status: RESOLVED FIXED
Alias: None
Product: Tomcat Connectors
Classification: Unclassified
Component: Common (show other bugs)
Version: 1.2.28
Hardware: All All
: P2 enhancement (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-15 15:11 UTC by abiacco
Modified: 2011-10-25 19:02 UTC (History)
0 users



Attachments
This patch removes the original definition and uses more conditionals to create the definition once. (362 bytes, patch)
2009-04-15 15:11 UTC, abiacco
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description abiacco 2009-04-15 15:11:27 UTC
Created attachment 23496 [details]
This patch removes the original definition and uses more conditionals to create the definition once.

When configuring with --enable-flock, compiler produces warning stating a redefine of USE_FLOCK_LK in common/jk_mt.h

This patch removes the original definition and uses more conditionals to create the definition once.

Example warning:
/opt/apps/apr/build-1/libtool --silent --mode=compile gcc -I/opt/apps/apache/include -g -O2 -DJK_USE_FLOCK -g -O2 -pthread -DHAVE_APR  -I/opt/apps/apr/include/apr-1 -I/opt/apps/apr/include/apr-1 -g -O2 -DJK_USE_FLOCK -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -I /include -I /include/ -c jk_url.c -o jk_url.lo
In file included from jk_uri_worker_map.h:36,
                 from jk_service.h:35,
                 from jk_util.h:32,
                 from jk_url.h:27,
                 from jk_url.c:24:
jk_mt.h:95:1: warning: "USE_FLOCK_LK" redefined
jk_mt.h:92:1: warning: this is the location of the previous definition
Comment 1 Rainer Jung 2011-10-25 19:02:41 UTC
Fixed in r1188856.
Will be part of version 1.2.33.