Bug 62827 - undefined reference to `pcre_free'
Summary: undefined reference to `pcre_free'
Status: NEEDINFO
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: Build (show other bugs)
Version: 2.5-HEAD
Hardware: PC Linux
: P2 normal (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-10-15 12:42 UTC by haochen he
Modified: 2018-10-15 13:06 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description haochen he 2018-10-15 12:42:34 UTC
Target version:   2.3.11-beta
OS:               ubuntu 16.04
Pcre version:     8.11 / 8.42
Command I use: ./configure
                   --with-included-apr 
                   --with-included-apr-util 
                   --with-pcre=/usr/local/bin/pcre-config 
                   --with-pcre-dir=/tmp/httpd-2.3.11-beta/pcre-8.11
               ('--with-included-apr-util' and '--with-pcre-dir' maybe invalid)
               make
Error I get:
***********************************************************************
server/.libs/libmain.a(util_pcre.o): In function `ap_regfree':
/tmp/httpd-2.3.11-beta/server/util_pcre.c:103: undefined reference to `pcre_free'
server/.libs/libmain.a(util_pcre.o): In function `ap_regcomp':
/tmp/httpd-2.3.11-beta/server/util_pcre.c:133: undefined reference to `pcre_compile'
/tmp/httpd-2.3.11-beta/server/util_pcre.c:138: undefined reference to `pcre_info'
server/.libs/libmain.a(util_pcre.o): In function `ap_regexec':
/tmp/httpd-2.3.11-beta/server/util_pcre.c:185: undefined reference to `pcre_exec'
collect2: error: ld returned 1 exit status
/tmp/httpd-2.3.11-beta/build/program.mk:22: recipe for target 'httpd' failed
make[1]: *** [httpd] Error 1
make[1]: Leaving directory '/tmp/httpd-2.3.11-beta'
/tmp/httpd-2.3.11-beta/build/rules.mk:72: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
***********************************************************************
All is right when compiling 2.4.xx

So should I include those function manually or what have I missed?

Please help, thank you!
Comment 1 Eric Covener 2018-10-15 13:06:17 UTC
What is 2.3.11-beta?