Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#15211 closed defect (fixed)

mod_ssi_func 1.0 patch failure

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 1.7.0
Keywords: Cc: yvon.thoraval@…
Port:

Description

Yvon Thoraval reports (and I can confirm) that mod_ssi_func 1.0 doesn't get past the patch phase:

--->  Applying patches to mod_ssi_func
Error: Target org.macports.patch returned: shell command " cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_mod_ssi_func/work/distribution_1.0"
&& patch -p0 < '/opt/local/var/macports/sources/
rsync.macports.org/release/ports/www/mod_ssi_func/files/patch-ssi_func-Makefile'"
returned error 1
Command output: patching file ssi_func/Makefile
Hunk #1 FAILED at 10.
1 out of 1 hunk FAILED -- saving rejects to file ssi_func/Makefile.rej

Error: Status 1 encountered during processing.

Change History (5)

comment:1 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from macports-tickets@… to ryandesign@…
Status: newassigned

I think the problem is that the patchfiles use UNIX linefeeds but the files they're trying to patch use DOS linefeeds. I would guess that r21504 broke this.

comment:2 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)

Fixed the patch failure in r36546, but now it still won't compile:

Error: Target org.macports.build returned: shell command "cd /opt/local/var/macports/build/_Users_rschmidt_macports_dports_www_mod_ssi_func/work/distribution_1.0/ssi_func &&  make APXS=/opt/local/apache2/bin/apxs" returned error 2
Command output: /opt/local/apache2/bin/apxs -c mod_ssi_func.c
/opt/local/share/apr-1/build/libtool --silent --mode=compile /usr/bin/gcc-4.0 -prefer-pic -O2  -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp -I/opt/local/include -I/opt/local/apache2/include  -I/opt/local/include/apr-1   -I/opt/local/include/apr-1 -I/opt/local/include  -c -o mod_ssi_func.lo mod_ssi_func.c && touch mod_ssi_func.slo
mod_ssi_func.c: In function 'handle_func':
mod_ssi_func.c:85: error: 'FLAG_PRINTING' undeclared (first use in this function)
mod_ssi_func.c:85: error: (Each undeclared identifier is reported only once
mod_ssi_func.c:85: error: for each function it appears in.)
mod_ssi_func.c:94: warning: passing argument 1 of 'ssi_func_pfn_ps' from incompatible pointer type
mod_ssi_func.c:94: warning: passing argument 2 of 'ssi_func_pfn_ps' from incompatible pointer type
mod_ssi_func.c:94: warning: passing argument 4 of 'ssi_func_pfn_ps' makes integer from pointer without a cast
mod_ssi_func.c:94: error: too many arguments to function 'ssi_func_pfn_ps'
mod_ssi_func.c:106: warning: passing argument 1 of 'ssi_func_pfn_ps' from incompatible pointer type
mod_ssi_func.c:106: warning: passing argument 2 of 'ssi_func_pfn_ps' from incompatible pointer type
mod_ssi_func.c:106: warning: passing argument 4 of 'ssi_func_pfn_ps' makes integer from pointer without a cast
mod_ssi_func.c:106: error: too many arguments to function 'ssi_func_pfn_ps'
mod_ssi_func.c: In function 'ssi_func_post_config':
mod_ssi_func.c:157: warning: passing argument 2 of 'ssi_func_pfn_rih' from incompatible pointer type
apxs:Error: Command failed with rc=65536
.
make: *** [mod_ssi_func.o] Error 1

I'm guessing this module is for Apache 2.0.x and is incompatible with Apache 2.2.x. I'll test with the apache20 port and if that works I'll change the dependency to apache20.

comment:3 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)

Made the port depend on apache20 in r36580, and now it still complains, this time about not being able to find its own header file:

/opt/local/share/apr-0/build/libtool --silent --mode=compile /usr/bin/gcc-4.0 -prefer-pic -O2 -DAP_HAVE_DESIGNATED_INITIALIZER -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp  -I/opt/local/apache20/include  -I/opt/local/include/apr-0   -I/opt/local/include/apr-0 -I/opt/local/include  -c -o mod_ssi_func_math.lo mod_ssi_func_math.c && touch mod_ssi_func_math.slo
mod_ssi_func_math.c:38:26: error: mod_ssi_func.h: No such file or directory
mod_ssi_func_math.c:42: error: parse error before '*' token
mod_ssi_func_math.c:42: warning: data definition has no type or storage class
mod_ssi_func_math.c: In function 'ssi_func_math_post_config':
mod_ssi_func_math.c:296: error: 'apr_OFN_ssi_func_register_t' undeclared (first use in this function)
mod_ssi_func_math.c:296: error: (Each undeclared identifier is reported only once
mod_ssi_func_math.c:296: error: for each function it appears in.)
mod_ssi_func_math.c:296: error: parse error before ')' token
mod_ssi_func_math.c:300: error: called object 'ssi_func_math_pfn_fr' is not a function
mod_ssi_func_math.c:301: error: called object 'ssi_func_math_pfn_fr' is not a function
mod_ssi_func_math.c:302: error: called object 'ssi_func_math_pfn_fr' is not a function
mod_ssi_func_math.c:303: error: called object 'ssi_func_math_pfn_fr' is not a function
mod_ssi_func_math.c:304: error: called object 'ssi_func_math_pfn_fr' is not a function
mod_ssi_func_math.c:305: error: called object 'ssi_func_math_pfn_fr' is not a function
apxs:Error: Command failed with rc=65536
.
make: *** [mod_ssi_func_math.o] Error 1

comment:4 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: assignedclosed

Fixed the missing mod_ssi_func.h problem in r36581 and now it finally compiles properly.

comment:5 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.