Received: (qmail 69974 invoked by uid 501); 23 May 2001 22:47:08 -0000 Message-Id: <20010523224708.69973.qmail@apache.org> Date: 23 May 2001 22:47:08 -0000 From: Shawn South Reply-To: shawn@ratbert.org To: submit@bugz.apache.org Subject: Cannot build, undeclared identifier in ap_snprintf.o X-Send-Pr-Version: 3.110 >Number: 7775 >Category: build >Synopsis: Cannot build, undeclared identifier in ap_snprintf.o >Confidential: no >Severity: serious >Priority: medium >Responsible: apache >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Wed May 23 15:50:01 PDT 2001 >Closed-Date: >Last-Modified: Sat May 26 12:50:01 PDT 2001 >Originator: shawn@ratbert.org >Release: 1.3.20 >Organization: apache >Environment: SunOS Klaxxon 5.8 Generic_108528-08 sun4u sparc Solaris 8 running on a Netra X1. First tried gcc-2.95.3 as a package downloaded from sunfreeware.com, after reading bug # 3157 I downloaded the 2.95.3 source, built it, removed the SunFreeware package and installed the fresh build. Same error. >Description: gcc -c -I.. -I/usr/local/lib/perl5/5.6.1/sun4-solaris/CORE -I../os/unix -I../include -DSOLARIS2=280 -I/usr/include -DMOD_PERL -DUSE_PERL_SSI -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED `../apaci` ap_snprintf.c ap_snprintf.c: In function `ap_snprintf': ap_snprintf.c:1186: `__builtin_va_alist' undeclared (first use in this function) ap_snprintf.c:1186: (Each undeclared identifier is reported only once ap_snprintf.c:1186: for each function it appears in.) make[3]: *** [ap_snprintf.o] Error 1 >How-To-Repeat: Seems to reference the same bug described in # 3157, however as mentioned above I am not using the "incorrect" gcc which closed that bug. >Fix: >Release-Note: >Audit-Trail: From: "Shawn South" To: , Cc: Subject: build/7775: Cannot build, undeclared identifier in ap_snprintf.o Date: Sat, 26 May 2001 13:44:29 -0500 Upon further investigation it appears to only be a problem with attempting to activate-module mod_auth_ldap.c from Muhammad A Muquit dated Sep-20-1999. Interestingly this module built and ran just fine with apache 1.3.19 on a Solaris 2.7 sparc. From: "Shawn South" To: , Cc: Subject: build/7775 Date: Sat, 26 May 2001 14:44:22 -0500 Ok, the exact problem is that mod_auth_ldap searches for and finds the Sun supplied ldap headers in /usr/include and adds -I/usr/include to the makefile. This gets added in the build line before apache's -I../include statement and so finds Sun's sprintf headers before the apache ones. I simply copied the ldap.h and lber.h files to the src/include dir and removed the logic from mod_auth_ldap.module that added the -I statement and now everything is happy. It seems to me that the solution would be to change the Makefile so that src/include is always listed first but I have no idea what other things that would break. -Shawn. >Unformatted: [In order for any reply to be added to the PR database, you need] [to include in the Cc line and make sure the] [subject line starts with the report component and number, with ] [or without any 'Re:' prefixes (such as "general/1098:" or ] ["Re: general/1098:"). If the subject doesn't match this ] [pattern, your message will be misfiled and ignored. The ] ["apbugs" address is not added to the Cc line of messages from ] [the database automatically because of the potential for mail ] [loops. If you do not include this Cc, your reply may be ig- ] [nored unless you are responding to an explicit request from a ] [developer. Reply only with text; DO NOT SEND ATTACHMENTS! ]