Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Mar 2002 12:12:38 -0800 (PST)
From:      Matt Rohrer <matt@prognostikos.com>
To:        ports@freebsd.org
Cc:        kalowsky@php.net
Subject:   lang/php4 & www/mod_php4 --with-iconv
Message-ID:  <Pine.GSO.4.44.0203131117350.15922-300000@svalin.oit.pdx.edu>

next in thread | raw e-mail | index | archive | help
  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.
  Send mail to mime@docserver.cac.washington.edu for more info.

---559023410-824023566-1016050358=:15922
Content-Type: TEXT/PLAIN; charset=US-ASCII

I've been playing with fixing the problem building the php4 ports with
iconv noted in
<http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/33541>; and in
<http://bugs.php.net/bug.php?id=14423>;

The php bug report is marked as fixed in cvs and I've been attempting
to fix it for our port, which uses php-4.1.2.

Attached are two patches -- one noted in the php bug report
(patch.iconv) and one to scripts/configure.php as
(patch.configure.php).

I've been testing it as follows (after applying the
scripts/configure.php patch):

cd /usr/ports/lang/php4
make -DBATCH PHP4_OPTIONS=\\\"XSLT\\\" extract
cd work/php-4.1.2/ext/iconv/
patch </home/rohrer/patch.iconv
cd /usr/ports/lang/php4
make -DBATCH PHP4_OPTIONS=\\\"XSLT\\\"

(I'm sure there's probably a saner way, but I'm a bit new to the
internals of ports makefiles.)

The good news is that it doesn't die with the same `` Undefined symbol
"iconv_module_entry" '', the bad news is that it's dying with another
error:

Making all in main cc -I. -I/usr/ports/lang/php4/work/php-4.1.2/main
-I/usr/ports/lang/php4/work/php-4.1.2/main
-I/usr/ports/lang/php4/work/php-4.1.2
-I/usr/ports/lang/php4/work/php-4.1.2/Zend -I/usr/local/include
-I/usr/ports/lang/php4/work/php-4.1.2/TSRM -O -pipe
-I/usr/local/include -c internal_functions.c && touch
internal_functions.lo internal_functions.c:51: initializer element is
not constant internal_functions.c:51: (near initialization for
`php_builtin_extensions[7]') *** Error code 1

Stop in /usr/ports/lang/php4/work/php-4.1.2/main.
*** Error code 1

Perhaps someone who knows more C than I can take a look from here? Am
I going about this in a completely insane way? I'd be happy to run
more tests if given a little guidance. TIA,

- Matt


---559023410-824023566-1016050358=:15922
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="patch.iconv"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.GSO.4.44.0203131212380.15922@svalin.oit.pdx.edu>
Content-Description: patch from bugs.php.net
Content-Disposition: attachment; filename="patch.iconv"

SW5kZXg6IGNvbmZpZy5tNA0KPT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQ0KUkNT
IGZpbGU6IC9yZXBvc2l0b3J5L3BocDQvZXh0L2ljb252L2NvbmZpZy5tNCx2
DQpyZXRyaWV2aW5nIHJldmlzaW9uIDEuNw0KZGlmZiAtdSAtcjEuNyBjb25m
aWcubTQNCi0tLSBjb25maWcubTQgICAzMCBOb3YgMjAwMSAxODo1OTozOCAt
MDAwMCAgICAgIDEuNw0KKysrIGNvbmZpZy5tNCAgIDMgTWFyIDIwMDIgMDY6
MjQ6NDQgLTAwMDANCkBAIC03LDE1ICs3LDI3IEBADQogDQogaWYgdGVzdCAi
JFBIUF9JQ09OViIgIT0gIm5vIjsgdGhlbg0KIA0KK2RubCBUaGlzIGlzIGEg
Zml4IGZvciB3aHkgRnJlZUJTRCBkb2VzIG5vdCB3b3JrIHdpdGggSUNPTlYN
CitkbmwgSXQgc2VlbXMgbGlidG9vbCBjaGVja3MgZm9yIGxpYmljb252X29w
ZW4gd2hpY2ggb25seSBleGlzdHMgaW4NCitkbmwgdGhlIGdpY29udiBzZXJp
ZXMgb2YgZmlsZXMgdW5kZXIgRnJlZUJTRA0KKw0KKyAgYWNfb3NfdW5hbWUg
PSBgdW5hbWUgLXMgMj4vZGV2L251bGxgDQorDQorICBpZiB0ZXN0ICIkYWNf
b3NfdW5hbWUiID0gIkZyZWVCU0QiOyB0aGVuDQorICAgICAgIGxpYl9u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cgcmV2aXNpb24gMS45DQpkaWZmIC11IC1yMS45IHBocF9p
Y29udi5oDQotLS0gcGhwX2ljb252LmggMTMgRGVjIDIwMDEgMTQ6MzE6MTYg
LTAwMDAgICAgICAxLjkNCisrKyBwaHBfaWNvbnYuaCAzIE1hciAyMDAyIDA2
OjI0OjQ0IC0wMDAwDQpAQCAtMjYsOCArMjYsOSBAQA0KICNkZWZpbmUgUEhQ
X0lDT05WX0FQSQ0KICNlbmRpZg0KIA0KKyNpZiBIQVZFX0lDT05WDQogZXh0
ZXJuIHplbmRfbW9kdWxlX2VudHJ5IGljb252X21vZHVsZV9lbnRyeTsNCi0j
ZGVmaW5lIHBocGV4dF9pY29udl9wdHIgJmljb252X21vZHVsZV9lbnRyeQ0K
KyNkZWZpbmUgaWNvbnZfbW9kdWxlX3B0ciAmaWNvbnZfbW9kdWxlX2VudHJ5
Ow0KIA0KIFBIUF9NSU5JVF9GVU5DVElPTihtaWNvbnYpOw0KIFBIUF9NU0hV
VERPV05fRlVOQ1RJT04obWljb252KTsNCkBAIC01Myw2ICs1NCwxNCBAQA0K
ICNkZWZpbmUgSUNPTlZfSU5QVVRfRU5DT0RJTkcgIklTTy04ODU5LTEiIA0K
ICNkZWZpbmUgSUNPTlZfT1VUUFVUX0VOQ09ESU5HICJJU08tODg1OS0xIg0K
ICNkZWZpbmUgSUNPTlZfSU5URVJOQUxfRU5DT0RJTkcgIklTTy04ODU5LTEi
IA0KKw0KKyNlbHNlDQorDQorI2RlZmluZSBpY29udl9tb2R1bGVfcHRyIE5V
TEwNCisNCisjZW5kaWYgLyogSEFWRV9JQ09OViAqLw0KKw0KKyNkZWZpbmUg
cGhwZXh0X2ljb252X3B0ciBpY29udl9tb2R1bGVfZW50cnkNCiANCiAjZW5k
aWYgLyogUEhQX0lDT05WX0ggKi8NCg==
---559023410-824023566-1016050358=:15922
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="patch.configure.php"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.GSO.4.44.0203131212381.15922@svalin.oit.pdx.edu>
Content-Description: patch to scripts/configure.php
Content-Disposition: attachment; filename="patch.configure.php"

LS0tIGNvbmZpZ3VyZS5waHAub3JpZwlXZWQgTWFyIDEzIDEwOjUxOjU2IDIw
MDINCisrKyBjb25maWd1cmUucGhwCVdlZCBNYXIgMTMgMTE6MDU6MzIgMjAw
Mg0KQEAgLTI0MSw4ICsyNDEsOSBAQA0KIAkJCWVjaG8gIkNPTkZJR1VSRV9B
UkdTKz0tLXdpdGgtZ2V0dGV4dD1cJHtMT0NBTEJBU0V9Ig0KIAkJCTs7DQog
CQlcImljb252XCIpDQotCQkJZWNobyAiTElCX0RFUEVORFMrPQlpY29udi4y
Olwke1BPUlRTRElSfS9jb252ZXJ0ZXJzL2ljb252Ig0KKwkJCWVjaG8gIkxJ
Ql9ERVBFTkRTKz0JZ2ljb252LjI6XCR7UE9SVFNESVJ9L2NvbnZlcnRlcnMv
aWNvbnYiDQogCQkJZWNobyAiQ09ORklHVVJFX0FSR1MrPS0td2l0aC1pY29u
dj1cJHtMT0NBTEJBU0V9Ig0KKwkJCUxJQlM9IiR7TElCU30gLUxcJHtMT0NB
TEJBU0V9L2xpYiAtbGdpY29udiINCiAJCQlJQ09OVj0xDQogCQkJOzsNCiAJ
CVwicHNwZWxsXCIpDQo=
---559023410-824023566-1016050358=:15922--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.44.0203131117350.15922-300000>