Bug 53354

Summary: mod_fastcgi doesn't compile with apache2
Product: Ports & Packages Reporter: Ollivier Robert <roberto>
Component: Individual Port(s)Assignee: Oliver Lehmann <oliver>
Status: Closed FIXED    
Severity: Affects Only Me CC: hollywar
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Ollivier Robert freebsd_committer freebsd_triage 2003-06-15 19:30:12 UTC
	The mod_fastcgi port correctly uses apxs from apache to compile but
	either it doesn't use it as it should be to retrieve all parameters
	or apache2's apxs doesn't record the correct parameters so compilation
	fails:

/usr/local/share/apache2/build/libtool --silent --mode=link cc -o
mod_fastcgi.so  -rpath /usr/local/libexec/apache2 -module -avoid-version
mod_fastcgi.lo fcgi_util.lo fcgi_protocol.lo fcgi_pm.lo fcgi_config.lo
fcgi_buf.lo
/usr/lib/crt1.o: In function `_start':
/usr/lib/crt1.o(.text+0x81): undefined reference to `main'
.libs/mod_fastcgi.o: In function `send_to_pm':
.libs/mod_fastcgi.o(.text+0x7a): undefined reference to `ap_log_error'
.libs/mod_fastcgi.o(.text+0x137): undefined reference to `ap_log_assert'
.libs/mod_fastcgi.o(.text+0x1b2): undefined reference to `ap_log_error'
.libs/mod_fastcgi.o: In function `init_module':
.libs/mod_fastcgi.o(.text+0x1e9): undefined reference to
`apr_pool_cleanup_null'
.libs/mod_fastcgi.o(.text+0x207): undefined reference to
`apr_pool_cleanup_register'
.libs/mod_fastcgi.o(.text+0x219): undefined reference to
`ap_add_version_component'
.libs/mod_fastcgi.o(.text+0x255): undefined reference to
`ap_server_root_relative'
.libs/mod_fastcgi.o(.text+0x2af): undefined reference to `ap_log_error'
.libs/mod_fastcgi.o(.text+0x303): undefined reference to `ap_log_error'
.libs/mod_fastcgi.o(.text+0x323): undefined reference to
`apr_pool_userdata_get'
.libs/mod_fastcgi.o(.text+0x33a): undefined reference to
`apr_pool_cleanup_null'
.libs/mod_fastcgi.o(.text+0x34e): undefined reference to
`apr_pool_userdata_set'
.libs/mod_fastcgi.o(.text+0x39f): undefined reference to `ap_log_error'
.libs/mod_fastcgi.o(.text+0x3bc): undefined reference to `apr_palloc'
.libs/mod_fastcgi.o(.text+0x3cd): undefined reference to `apr_proc_fork'
.libs/mod_fastcgi.o(.text+0x409): undefined reference to
`apr_pool_note_subprocess'
[...]
.libs/fcgi_buf.o: In function `fcgi_buf_toss':
.libs/fcgi_buf.o(.text+0x667): undefined reference to `ap_log_assert'
.libs/fcgi_buf.o: In function `fcgi_buf_add_update':
.libs/fcgi_buf.o(.text+0x75b): undefined reference to `ap_log_assert'
.libs/fcgi_buf.o(.text+0x82d): more undefined references to `ap_log_assert'
follow
.libs/fcgi_buf.o: In function `array_grow':
.libs/fcgi_buf.o(.text+0xbdd): undefined reference to `apr_palloc'
.libs/fcgi_buf.o: In function `fcgi_buf_get_to_array':
.libs/fcgi_buf.o(.text+0xd05): undefined reference to `ap_log_assert'
apxs:Error: Command failed with rc=65536
.
*** Error code 1

Fix: 

Unknown

	It should be fixed either in apache2 or in mod_fastcgi. The fast that
	there are undefined symbols (I guess from apr ou apr-util) may means it
	comes from apache2.
How-To-Repeat: 	cd /usr/ports/www/mod_fastcgi
	make
Comment 1 Oliver Lehmann freebsd_committer freebsd_triage 2003-06-15 20:13:32 UTC
Responsible Changed
From-To: freebsd-ports-bugs->oliver

I will handle this
Comment 2 Oliver Lehmann freebsd_committer freebsd_triage 2003-06-15 20:52:30 UTC
State Changed
From-To: open->analyzed

I made a patch to fix that and now I'm waiting for maintainers 
approvement to commit it.
Comment 3 Oliver Lehmann freebsd_committer freebsd_triage 2003-06-19 16:41:47 UTC
State Changed
From-To: analyzed->closed

Patch got committed, thanks for your report!