Bug 56918 - error: 'ap_copy_scoreboard_worker' undeclared here
Summary: error: 'ap_copy_scoreboard_worker' undeclared here
Status: RESOLVED WORKSFORME
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: Core (show other bugs)
Version: 2.2.29
Hardware: PC Linux
: P2 blocker (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-06 11:26 UTC by stephane
Modified: 2019-06-21 09:09 UTC (History)
2 users (show)



Attachments
config.log (76.37 KB, text/plain)
2014-09-06 11:26 UTC, stephane
Details

Note You need to log in before you can comment on or make changes to this bug.
Description stephane 2014-09-06 11:26:12 UTC
Created attachment 31967 [details]
config.log

using last 2.2.29 (not 2.2.27) compiling on big Endian error

error: 'ap_copy_scoreboard_worker' undeclared here

gawk -f /raid/SRC/httpd-2.2.29/build/make_exports.awk `cat export_files` > exports.c
/raid/data/module/apache/sys/share/build-1/libtool --silent --mode=compile gcc -pthread  -O2 -I/raid/data/module/apache/sys/include -DBIG_SECURITY_HOLE  -DLINUX -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE  -O2 -I/raid/data/module/apache/sys/include -lldap  -I. -I/raid/SRC/httpd-2.2.29/os/unix -I/raid/SRC/httpd-2.2.29/server/mpm/prefork -I/raid/SRC/httpd-2.2.29/modules/http -I/raid/SRC/httpd-2.2.29/modules/filters -I/raid/SRC/httpd-2.2.29/modules/proxy -I/raid/SRC/httpd-2.2.29/include -I/raid/SRC/httpd-2.2.29/modules/generators -I/raid/SRC/httpd-2.2.29/modules/mappers -I/raid/SRC/httpd-2.2.29/modules/database -I/raid/data/module/apache/sys/include -I/raid/SRC/httpd-2.2.29/server -I/raid/SRC/httpd-2.2.29/modules/proxy/../generators -I/raid/SRC/httpd-2.2.29/modules/ssl -I/raid/SRC/httpd-2.2.29/modules/dav/main  -prefer-non-pic -static -c exports.c && touch exports.lo
exports.c:1682:63: error: 'ap_copy_scoreboard_worker' undeclared here (not in a function)
make[2]: *** [exports.lo] Error 1
make[2]: Leaving directory `/raid/SRC/httpd-2.2.29/server'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/raid/SRC/httpd-2.2.29/server'
make: *** [all-recursive] Error 1
Comment 1 Rainer Jung 2014-09-06 13:15:44 UTC
I suspect you have an older scoreboard.h in your include path that shadows the one that came with 2.2.29 and contains 'ap_copy_scoreboard_worker' (which is new).

Especially suspect is -I/raid/data/module/apache/sys/include which comes before any -I/raid/SRC/httpd-2.2.29/... in your provided libtool snippet. The .../SRC/... seems to be the build path of your new 2.2.29 and /.../data/... might be from some older instalation.
Comment 2 stephane 2014-09-06 15:46:05 UTC
indeed you are right...

it goes pick up the old header from the Apache 2.2.27 still present in my prefix
I tried to rename scoreboard.h and error is gone..

but a new old header make another breack in compilation 

i think i have reinstall apache 2.2.27 and a make uninstall to clean old headers

thanks a lot for your help,
Comment 3 stephane 2014-09-06 16:00:39 UTC
EDIT : no make uninstall

:(((

i have remove header manually i think
Comment 4 Jeff Trawick 2014-09-16 14:53:57 UTC
httpd needs to look in its source tree for its includes before looking elsewhere in order to avoid build failures when an incompatible (usually older) level of httpd is in the search path for some library.
Comment 5 Joe Orton 2019-06-21 09:09:28 UTC
Likely some 2.2-specific build issue.