# Problem compiling sapi/cgi stuff in HEAD

- Thread: https://externals.io/message/21351
- Original archive: https://news-web.php.net/php.internals/21351
- Started by Pierangelo Masarati on 2005-12-29T13:59:35+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #21351 — Pierangelo Masarati — 2005-12-29T13:59:35+00:00

URL: https://externals.io/message/21351#21351

Recently, I had problems compiling stuff in sapi/cgi because of the
change between 1.18 and 1.19 of sapi/cgi/config9.m4 which results in
expanding a libtool command line into something like "gcc ''", where gcc
(correctly) complains about the impossibility to compile a file named
''.

I've worked things around with the attached patch, reported below since
it's a one-liner.

p.

    --- o --- o --- o ---

Index: sapi/cgi/config9.m4
===================================================================
RCS file: /repository/php-src/sapi/cgi/config9.m4,v
retrieving revision 1.19
diff -u -r1.19 config9.m4
--- sapi/cgi/config9.m4 25 Dec 2005 12:45:01 -0000      1.19
+++ sapi/cgi/config9.m4 29 Dec 2005 13:47:12 -0000
@@ -85,7 +85,7 @@
     PHP_TEST_WRITE_STDOUT

     INSTALL_IT="@echo \"Installing PHP CGI into: \$(INSTALL_ROOT)\$(bindir)/\"; \$(INSTALL) -m 0755 \$(SAPI_CGI_PATH) \$(INSTALL_ROOT)\$(bindir)/\$(program_prefix)php\$(program_suffix)\$(EXEEXT)"
-    PHP_SELECT_SAPI(cgi, program, fastcgi.c cgi_main.c getopt.c, '', '$(SAPI_CGI_PATH)')
+    PHP_SELECT_SAPI(cgi, program, fastcgi.c cgi_main.c getopt.c, , '$(SAPI_CGI_PATH)')

     case $host_alias in
       *aix*)




Ing. Pierangelo Masarati
Responsabile Open Solution
OpenLDAP Core Team

SysNet s.n.c.
Via Dossi, 8 - 27100 Pavia - ITALIA
http://www.sys-net.it
------------------------------------------
Office:   +39.02.23998309          
Mobile:   +39.333.4963172
Email:    pierangelo.masarati@sys-net.it

---

## #21352 — Antony Dovgal — 2005-12-29T14:12:54+00:00

URL: https://externals.io/message/21351#21352 · In reply to: #21351

> Recently, I had problems compiling stuff in sapi/cgi because of the
> change between 1.18 and 1.19 of sapi/cgi/config9.m4 which results in
> expanding a libtool command line into something like "gcc ''", where gcc
> (correctly) complains about the impossibility to compile a file named
> ''.
> 
> I've worked things around with the attached patch, reported below since
> it's a one-liner.

Committed, thanks.

-- 
Wbr, 
Antony Dovgal
