OpenWrt Forum Archive

Topic: Any chance for php5-mod-simplexml package?

The content of this topic has been archived on 8 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I'am trying to run ADOS software (http://wl500g.info/showthread.php?t=13227) on WL-500gP router equipped with Kamikaze 8.09.1
It almost woked. Almost. I need php5 simplexml.so module wich is not present in repositories.

There is a topic about compiling extra php5 modules https://forum.openwrt.org/viewtopic.php?id=10724 but is quite old and I don't know what to do with this files attached there to compile it by myself.

Can anybody point me to compiled php5 modules that will work on OpenWrt? Or explain how to compile extra php5 modules (especially simplexml) for Kamikaze.

Thanks for help smile

I see some discussion on adding a php-mod-simpelxml package.  This topic has been kicking around for at least a couple of years.

It's not anywhere to be found, in spite of several requests for it.

I am working on a Roku streamer - YESSS!  Stream movies from your AP to your Roku!  Use your OpenWRT AP as a Roku Server!  Have your own OpenWRT Roku Channel!!!!

OK, enough self promotion.

The one thing between me and a Roku channel server is the php simplexml module.  I'm trying to build it using trunk and it fails with:

rm -rf /data10/home/yan/openwrt/backfire/backfire.buff/build_dir/target-mips_r2_uClibc-0.9.30.1/php-5.3.4/ipkg-ar71xx/php5-mod-simplexml
mkdir -p /data10/home/yan/openwrt/backfire/backfire.buff/build_dir/target-mips_r2_uClibc-0.9.30.1/php-5.3.4/ipkg-ar71xx/php5-mod-simplexml/CONTROL
echo "Package: php5-mod-simplexml" > /data10/home/yan/openwrt/backfire/backfire.buff/build_dir/target-mips_r2_uClibc-0.9.30.1/php-5.3.4/ipkg-ar71xx/php5-mod-simplexml/CONTROL/control
echo "Version: 5.3.4-1" >> /data10/home/yan/openwrt/backfire/backfire.buff/build_dir/target-mips_r2_uClibc-0.9.30.1/php-5.3.4/ipkg-ar71xx/php5-mod-simplexml/CONTROL/control
( DEPENDS=''; for depend in php5 libxml2; do DEPENDS=${DEPENDS:+$DEPENDS, }${depend##+}; done; echo "Depends: $DEPENDS"; echo "Provides: "; echo "Source: feeds/packages/lang/php5"; echo "Section: lang"; echo "Status: unknown ok not-installed"; echo "Essential: no"; echo "Priority: optional"; echo "Maintainer: OpenWrt Developers Team <openwrt-devel@openwrt.org>"; echo "Architecture: ar71xx"; echo "Installed-Size: 0"; echo -n "Description: "; getvar V_Package_php5_mod_simplexml_description | sed -e 's,^[[:space:]]*, ,g'; ) >> /data10/home/yan/openwrt/backfire/backfire.buff/build_dir/target-mips_r2_uClibc-0.9.30.1/php-5.3.4/ipkg-ar71xx/php5-mod-simplexml/CONTROL/control
chmod 644 /data10/home/yan/openwrt/backfire/backfire.buff/build_dir/target-mips_r2_uClibc-0.9.30.1/php-5.3.4/ipkg-ar71xx/php5-mod-simplexml/CONTROL/control
(cd /data10/home/yan/openwrt/backfire/backfire.buff/build_dir/target-mips_r2_uClibc-0.9.30.1/php-5.3.4/ipkg-ar71xx/php5-mod-simplexml/CONTROL;  )
install -d -m0755 /data10/home/yan/openwrt/backfire/backfire.buff/build_dir/target-mips_r2_uClibc-0.9.30.1/php-5.3.4/ipkg-ar71xx/php5-mod-simplexml/usr/lib/php
install -m0755 /data10/home/yan/openwrt/backfire/backfire.buff/build_dir/target-mips_r2_uClibc-0.9.30.1/php-5.3.4/modules/simplexml.so /data10/home/yan/openwrt/backfire/backfire.buff/build_dir/target-mips_r2_uClibc-0.9.30.1/php-5.3.4/ipkg-ar71xx/php5-mod-simplexml/usr/lib/php/
install: cannot stat `/data10/home/yan/openwrt/backfire/backfire.buff/build_dir/target-mips_r2_uClibc-0.9.30.1/php-5.3.4/modules/simplexml.so': No such file or directory

Anyone clue me in on what could be happening?

(Last edited by cptdondo on 17 Apr 2011, 00:03)

OK, this is approaching really frustrating.  I hand-edited the Makefile, and now the simplexml module gets built.  However, php does not load any of the extensions. Not the simplexml that I built, but neither does it load xml or xmlreader.  No errors in the log file; no log file actually...

Does anyone have xml working with php?  If so, can you share?

The discussion might have continued from here.