# [PATCH] Bug #32333 - Unable to perform command line build with Ingres extension

- Thread: https://externals.io/message/15464
- Original archive: https://news-web.php.net/php.internals/15464
- Started by Croker on 2005-03-16T13:35:56+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

---

## #15464 — Croker — 2005-03-16T13:35:56+00:00

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

Hi,

Attached is a new file, config.w32, needed to build the Ingres extension
with the command line build on Windows. Using this patch you should be
able to use the following combination of flags:

--with-ingres
--with-ingres=somepath
--with-ingres=shared
--with-ingres=shared,somepath

In addition the following change needed to be made to
ext\ingres_ii\php_ii.h, also attached:

Index: ingres_ii/php_ii.h
===================================================================
RCS file: /repository/php-src/ext/ingres_ii/php_ii.h,v
retrieving revision 1.12
diff -u -b -w -B -d -r1.12 php_ii.h
--- ingres_ii/php_ii.h  8 Jan 2004 17:32:14 -0000       1.12
+++ ingres_ii/php_ii.h  16 Mar 2005 13:24:11 -0000
@@ -28,6 +28,7 @@

 extern zend_module_entry ingres_ii_module_entry;
 #define phpext_ingres_ii_ptr &ingres_ii_module_entry
+#define phpext_ingres_ptr &ingres_ii_module_entry

 #ifdef PHP_WIN32
 #define PHP_II_API __declspec(dllexport)



thanks

grant

---

## #15499 — Jani Taskinen — 2005-03-18T23:30:41+00:00

URL: https://externals.io/message/15464#15499 · In reply to: #15464

Modified patch applied. No need to patch php_ii.h.

    --Jani



> Hi,
>
> Attached is a new file, config.w32, needed to build the Ingres extension
> with the command line build on Windows. Using this patch you should be
> able to use the following combination of flags:
>
> --with-ingres
> --with-ingres=somepath
> --with-ingres=shared
> --with-ingres=shared,somepath
>
> In addition the following change needed to be made to
> ext\ingres_ii\php_ii.h, also attached:
>
> Index: ingres_ii/php_ii.h
> ===================================================================
> RCS file: /repository/php-src/ext/ingres_ii/php_ii.h,v
> retrieving revision 1.12
> diff -u -b -w -B -d -r1.12 php_ii.h
> --- ingres_ii/php_ii.h  8 Jan 2004 17:32:14 -0000       1.12
> +++ ingres_ii/php_ii.h  16 Mar 2005 13:24:11 -0000
> @@ -28,6 +28,7 @@
>
> extern zend_module_entry ingres_ii_module_entry;
> #define phpext_ingres_ii_ptr &ingres_ii_module_entry
> +#define phpext_ingres_ptr &ingres_ii_module_entry
>
> #ifdef PHP_WIN32
> #define PHP_II_API __declspec(dllexport)
>
>
>
> thanks
>
> grant
