# newbie: my extension not getting compiled/included in Php-5.3.1 (RH linux)

- Thread: https://externals.io/message/46912
- Original archive: https://news-web.php.net/php.internals/46912
- Started by Sanjeev Kumar on 2010-01-31T06:50:24+00:00
- Messages: 3
- 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

---

## #46912 — Sanjeev Kumar — 2010-01-31T06:50:24+00:00

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

I am new to Php-dev and trying to add an extension to Php

I downloaded php-5.3.1 src on RedHatLinux4 . After adding my extension, the
configure/make doesn't build my extension and include in Php.

commands that I ran after unzipping the php5.3.1 src:

cd ext
./ext_skel  --extname=pdo-mydbext
<enabled in  pdo-mydbext/config.m4>

cd ..
./buildconf  --force
./configure --enable-pdo-mydbext
make

My issue:
No objects are compiled for my  pdo-mydbext.
In fact, seeing the output of  ./configure on screen, I can see that my ext
didn't called in extensions list.
< .". whether to enable  pdo-myext ...">   didn't get displayed by
./configure & make didn't build myext.

What do I need to add my extension(to be compiled, and so on..)


thanks,
-sanjeev

---

## #46913 — Jess Portnoy — 2010-01-31T06:57:28+00:00

URL: https://externals.io/message/46912#46913 · In reply to: #46912

Hello,

Please attach your config.m4 file which will help understand what's wrong.
You should also try to compare yours with an existing one, maybe the 
problem will become apparent simply by comparison.

May the source be with you,
Best regards,
Jess Portnoy



Sanjeev Kumar wrote:
> I am new to Php-dev and trying to add an extension to Php
>
> I downloaded php-5.3.1 src on RedHatLinux4 . After adding my extension, the
> configure/make doesn't build my extension and include in Php.
>
> commands that I ran after unzipping the php5.3.1 src:
>
> cd ext
> ./ext_skel  --extname=pdo-mydbext
> <enabled in  pdo-mydbext/config.m4>
>
> cd ..
> ./buildconf  --force
> ./configure --enable-pdo-mydbext
> make
>
> My issue:
> No objects are compiled for my  pdo-mydbext.
> In fact, seeing the output of  ./configure on screen, I can see that my ext
> didn't called in extensions list.
> < .". whether to enable  pdo-myext ...">   didn't get displayed by
> ./configure & make didn't build myext.
>
> What do I need to add my extension(to be compiled, and so on..)
>
>
> thanks,
> -sanjeev

---

## #46916 — Sanjeev Kumar — 2010-01-31T17:32:12+00:00

URL: https://externals.io/message/46912#46916 · In reply to: #46913

Hi,

Attaching my config.m4 for the new extension.
(I have renamed  the file to  config_m4.txt for mailing).

As I mentioned, my issue is that:  even the standard extension generated by
 ./ext_skel
doesn't get included in config/build list  by  buildconf + configure
 commands.

please let me know some pointers which I should look.

thanks,
-sanjeev kumar



> Hello,
>
> Please attach your config.m4 file which will help understand what's wrong.
> You should also try to compare yours with an existing one, maybe the
> problem will become apparent simply by comparison.
>
> May the source be with you,
> Best regards,
> Jess Portnoy
>
>
>
>
> Sanjeev Kumar wrote:
>
> > […]
