Angepinnt Spielplatz-Extrem -- oder BusyBox-MIPS in der Vollversion und offiziell ;)

      Spielplatz-Extrem -- oder BusyBox-MIPS in der Vollversion und offiziell ;)

      Moin Leutz!

      Ich bin ja jemand, der sich selbst als 'Intellektuell-Faul' einstuft - ich mach' mir also ungern unnötig Arbeit ;)

      Also hab' ich mal geschaut, ob's da vielleicht für ein paar der Ideen und Probleme beim Basteln schon was gibt - und landete bei der offizielle MIPS-Vollversion von BusyBox...

      Die bekommt ihr hier: busybox.net/downloads/binaries/latest/
      Dort die MIPS-Version wählen. (hab Sie der Einfachheit halber angehängt - aber falls das unerwünscht ist eben auch der Link)

      Warum ist das interessant? - Weil in der Binary eben zB. auch ein HTTP-Server und so ziemlich alle fehlenden Shell-Commands vorhanden sind:

      Quellcode

      1. # ./busybox-mips --help
      2. BusyBox v1.21.1 (2013-07-08 10:56:01 CDT) multi-call binary.
      3. BusyBox is copyrighted by many authors between 1998-2012.
      4. Licensed under GPLv2. See source distribution for detailed
      5. copyright notices.
      6. Usage: busybox [function [arguments]...]
      7. or: busybox --list[-full]
      8. or: busybox --install [-s] [DIR]
      9. or: function [arguments]...
      10. BusyBox is a multi-call binary that combines many common Unix
      11. utilities into a single executable. Most people will create a
      12. link to busybox for each function they wish to use and BusyBox
      13. will act like whatever it was invoked as.
      14. Currently defined functions:
      15. [, [[, acpid, add-shell, addgroup, adduser, adjtimex, arp, arping, ash,
      16. awk, base64, basename, beep, blkid, blockdev, bootchartd, brctl,
      17. bunzip2, bzcat, bzip2, cal, cat, catv, chat, chattr, chgrp, chmod,
      18. chown, chpasswd, chpst, chroot, chrt, chvt, cksum, clear, cmp, comm,
      19. conspy, cp, cpio, crond, crontab, cryptpw, cttyhack, cut, date, dc, dd,
      20. deallocvt, delgroup, deluser, depmod, devmem, df, dhcprelay, diff,
      21. dirname, dmesg, dnsd, dnsdomainname, dos2unix, du, dumpkmap,
      22. dumpleases, echo, ed, egrep, eject, env, envdir, envuidgid, ether-wake,
      23. expand, expr, fakeidentd, false, fbset, fbsplash, fdflush, fdformat,
      24. fdisk, fgconsole, fgrep, find, findfs, flock, fold, free, freeramdisk,
      25. fsck, fsck.minix, fsync, ftpd, ftpget, ftpput, fuser, getopt, getty,
      26. grep, groups, gunzip, gzip, halt, hd, hdparm, head, hexdump, hostid,
      27. hostname, httpd, hush, hwclock, id, ifconfig, ifdown, ifenslave,
      28. ifplugd, ifup, inetd, init, insmod, install, ionice, iostat, ip,
      29. ipaddr, ipcalc, ipcrm, ipcs, iplink, iproute, iprule, iptunnel,
      30. kbd_mode, kill, killall, killall5, klogd, last, less, linux32, linux64,
      31. linuxrc, ln, loadfont, loadkmap, logger, login, logname, logread,
      32. losetup, lpd, lpq, lpr, ls, lsattr, lsmod, lsof, lspci, lsusb, lzcat,
      33. lzma, lzop, lzopcat, makedevs, makemime, man, md5sum, mdev, mesg,
      34. microcom, mkdir, mkdosfs, mke2fs, mkfifo, mkfs.ext2, mkfs.minix,
      35. mkfs.vfat, mknod, mkpasswd, mkswap, mktemp, modinfo, modprobe, more,
      36. mount, mountpoint, mpstat, mt, mv, nameif, nanddump, nandwrite,
      37. nbd-client, nc, netstat, nice, nmeter, nohup, nslookup, ntpd, od,
      38. openvt, passwd, patch, pgrep, pidof, ping, ping6, pipe_progress,
      39. pivot_root, pkill, pmap, popmaildir, poweroff, powertop, printenv,
      40. printf, ps, pscan, pstree, pwd, pwdx, raidautorun, rdate, rdev,
      41. readahead, readlink, readprofile, realpath, reboot, reformime,
      42. remove-shell, renice, reset, resize, rev, rm, rmdir, rmmod, route, rpm,
      43. rpm2cpio, rtcwake, run-parts, runlevel, runsv, runsvdir, rx, script,
      44. scriptreplay, sed, sendmail, seq, setarch, setconsole, setfont,
      45. setkeycodes, setlogcons, setserial, setsid, setuidgid, sh, sha1sum,
      46. sha256sum, sha3sum, sha512sum, showkey, slattach, sleep, smemcap,
      47. softlimit, sort, split, start-stop-daemon, stat, strings, stty, su,
      48. sulogin, sum, sv, svlogd, swapoff, swapon, switch_root, sync, sysctl,
      49. syslogd, tac, tail, tar, tcpsvd, tee, telnet, telnetd, test, tftp,
      50. tftpd, time, timeout, top, touch, tr, traceroute, traceroute6, true,
      51. tty, ttysize, tunctl, udhcpc, udhcpd, udpsvd, umount, uname, unexpand,
      52. uniq, unix2dos, unlzma, unlzop, unxz, unzip, uptime, users, usleep,
      53. uudecode, uuencode, vconfig, vi, vlock, volname, wall, watch, watchdog,
      54. wc, wget, which, who, whoami, whois, xargs, xz, xzcat, yes, zcat, zcip


      Ich würde nicht anstreben, die BusyBox des SPHs damit zu ersetzen - aber man kann sie neben der Originalen einsetzen, was die Shell wohl drastisch aufbohrt.
      Und eventuell brauch ich mir dann auch keinen HTTP-Server selbst zu portieren ;)

      TL;DR: da - habt Ihr'n Taschenmesser... ;)

      mfg, emkay

      EDIT: neuere Version --> busybox-mips v1.28.1
      Dateien
      • busybox-mips.zip

        (685,18 kB, 1.687 mal heruntergeladen, zuletzt: )

      Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von „eMKay77“ ()

      Quellcode

      1. /bin/bash /root/dt/php-5.6.17/libtool --silent --preserve-dup-deps --mode=compile /opt/toolchains/crosstools-mips-gcc-4.6-linux-3.4-uclibc-0.9.32-binutils-2.21/usr/bin/mips-linux-cc -Iext/standard/ -I/root/dt/php-5.6.17/ext/standard/ -DPHP_ATOM_INC -I/root/dt/php-5.6.17/include -I/root/dt/php-5.6.17/main -I/root/dt/php-5.6.17 -I/root/dt/php-5.6.17/ext/date/lib -I/root/dt/php-5.6.17/ext/ereg/regex -I/root/dt/php-5.6.17/TSRM -I/root/dt/php-5.6.17/Zend -g -O2 -fvisibility=hidden -c /root/dt/php-5.6.17/ext/standard/string.c -o ext/standard/string.lo
      2. /root/dt/php-5.6.17/ext/standard/string.c:37:23: fatal error: monetary.h: No such file or directory
      3. compilation terminated.
      4. Makefile:528: recipe for target 'ext/standard/string.lo' failed
      5. make: *** [ext/standard/string.lo] Error 1
      6. root@test:~/dt/php-5.6.17#

      wenn ich wüste wie ich den fehler wegkriege könnt ichs versuchen zu kompilieren
      @Stricted: Ist von hier jetzt schlecht zu sagen... mach mal ne Dateisuche nach 'monetary.h' - wenn sie vorhanden ist, fehlt Dir nur ein Suchpfad für Header, wenn nicht fehlt Dir Quellcode/Abhängigkeiten.
      Eventuell hilft dann auch, die eine oder andere PHP-Funktion in der Config zu deaktivieren.

      Mal über den extremen Weg nachgedacht?
      Wir chrooten einfach in ein MIPS-Debian ;)
      @Stricted: vereinfacht bedeutet chroot, man packt ein zweites rootfs neben das System und starten Anwendungen dort. Im Grunde laufen dann zwei Systeme auf dem selben Kernel. Durch BusyBox haben wir ja chroot - eventuell ginge also wirklich Debian zusätzlich laufen zu lassen, was dann auch bedeuten würde, daß man Debian-Pakete nutzen könnte ;)
      >>> nur so'ne Idee ;)

      Dein PHP vermisst da halt die monetary.h - das Problem müsste gelöst werden.

      eMKay77 schrieb:

      da fehlt 'ne Lib..

      die frage ist welsche

      eMKay77 schrieb:

      da im Namen der Funktion 'assert' vorkommt, eventuell zu umgehen, indem Du von Debug auf Release wechselst

      hat leider nichts gebracht bzw. __assert_fail ist nichtmehr zu sehen dafür ne menge anderer fehler

      Spoiler anzeigen

      Quellcode

      1. ext/standard/.libs/filestat.o: In function `zif_touch':
      2. /root/dt/php-5.6.17/ext/standard/filestat.c:791: warning: the use of OBSOLESCENT `utime' is discouraged, use `utimes'
      3. ext/standard/.libs/dns.o: In function `php_gethostbyaddr':
      4. /root/dt/php-5.6.17/ext/standard/dns.c:191: warning: gethostbyaddr is obsolescent, use getaddrinfo() instead.
      5. ext/standard/.libs/dns.o: In function `php_gethostbyname':
      6. /root/dt/php-5.6.17/ext/standard/dns.c:276: warning: gethostbyname is obsolescent, use getnameinfo() instead.
      7. ext/date/lib/.libs/parse_date.o: In function `add_pbf_error':
      8. /root/dt/php-5.6.17/ext/date/lib/parse_date.c:379: undefined reference to `__strdup'
      9. ext/date/lib/.libs/parse_date.o: In function `add_pbf_warning':
      10. /root/dt/php-5.6.17/ext/date/lib/parse_date.c:370: undefined reference to `__strdup'
      11. ext/date/lib/.libs/parse_date.o: In function `add_error':
      12. /root/dt/php-5.6.17/ext/date/lib/parse_date.c:361: undefined reference to `__strdup'
      13. ext/date/lib/.libs/parse_date.o: In function `add_warning':
      14. /root/dt/php-5.6.17/ext/date/lib/parse_date.c:352: undefined reference to `__strdup'
      15. ext/date/lib/.libs/parse_date.o: In function `timelib_parse_from_format':
      16. /root/dt/php-5.6.17/ext/date/lib/parse_date.c:24904: undefined reference to `pow'
      17. ext/date/lib/.libs/parse_date.o: In function `timelib_fill_holes':
      18. /root/dt/php-5.6.17/ext/date/lib/parse_date.c:25088: undefined reference to `__strdup'
      19. ext/date/lib/.libs/parse_date.o: In function `add_pbf_error':
      20. /root/dt/php-5.6.17/ext/date/lib/parse_date.c:379: undefined reference to `__strdup'
      21. ext/date/lib/.libs/parse_date.o: In function `add_pbf_warning':
      22. /root/dt/php-5.6.17/ext/date/lib/parse_date.c:370: undefined reference to `__strdup'
      23. ext/date/lib/.libs/parse_date.o: In function `add_error':
      24. /root/dt/php-5.6.17/ext/date/lib/parse_date.c:361: undefined reference to `__strdup'
      25. ext/date/lib/.libs/parse_date.o: In function `add_warning':
      26. /root/dt/php-5.6.17/ext/date/lib/parse_date.c:352: undefined reference to `__strdup'
      27. ext/date/lib/.libs/parse_date.o: In function `timelib_parse_from_format':
      28. /root/dt/php-5.6.17/ext/date/lib/parse_date.c:24904: undefined reference to `pow'
      29. ext/date/lib/.libs/parse_date.o: In function `timelib_fill_holes':
      30. /root/dt/php-5.6.17/ext/date/lib/parse_date.c:25088: undefined reference to `__strdup'
      31. ext/standard/.libs/filters.o: In function `php_convert_filter_ctor':
      32. /root/dt/php-5.6.17/ext/standard/filters.c:1506: undefined reference to `__strdup'
      33. ext/standard/.libs/filters.o: In function `php_conv_qprint_decode_ctor':
      34. /root/dt/php-5.6.17/ext/standard/filters.c:1196: undefined reference to `__strdup'
      35. ext/standard/.libs/filters.o: In function `php_conv_base64_encode_ctor':
      36. /root/dt/php-5.6.17/ext/standard/filters.c:375: undefined reference to `__strdup'
      37. ext/standard/.libs/filters.o: In function `php_conv_qprint_encode_ctor':
      38. /root/dt/php-5.6.17/ext/standard/filters.c:983: undefined reference to `__strdup'
      39. ext/standard/.libs/filters.o:/root/dt/php-5.6.17/ext/standard/filters.c:1506: more undefined references to `__strdup' follow
      40. main/.libs/php_ini.o: In function `php_init_config':
      41. /root/dt/php-5.6.17/main/php_ini.c:552: undefined reference to `__xstat'
      42. main/.libs/php_ini.o: In function `stat':
      43. /usr/mips-linux-gnu/include/sys/stat.h:457: undefined reference to `__xstat'
      44. /usr/mips-linux-gnu/include/sys/stat.h:457: undefined reference to `__xstat'
      45. /usr/mips-linux-gnu/include/sys/stat.h:457: undefined reference to `__xstat'
      46. /usr/mips-linux-gnu/include/sys/stat.h:457: undefined reference to `__xstat'
      47. main/.libs/php_ini.o:/usr/mips-linux-gnu/include/sys/stat.h:457: more undefined references to `__xstat' follow
      48. main/streams/.libs/streams.o: In function `_php_stream_open_wrapper_ex':
      49. /root/dt/php-5.6.17/main/streams/streams.c:2091: undefined reference to `__strdup'
      50. /root/dt/php-5.6.17/main/streams/streams.c:2114: undefined reference to `__strdup'
      51. /root/dt/php-5.6.17/main/streams/streams.c:2114: undefined reference to `__strdup'
      52. /root/dt/php-5.6.17/main/streams/streams.c:2091: undefined reference to `__strdup'
      53. /root/dt/php-5.6.17/main/streams/streams.c:2114: undefined reference to `__strdup'
      54. Zend/.libs/zend_compile.o: In function `zend_dval_to_lval':
      55. /root/dt/php-5.6.17/Zend/zend_operators.h:101: undefined reference to `fmod'
      56. /root/dt/php-5.6.17/Zend/zend_operators.h:101: undefined reference to `fmod'
      57. Zend/.libs/zend_operators.o: In function `zend_string_to_double':
      58. /root/dt/php-5.6.17/Zend/zend_operators.c:173: undefined reference to `pow'
      59. Zend/.libs/zend_operators.o: In function `zend_dval_to_lval':
      60. /root/dt/php-5.6.17/Zend/zend_operators.h:101: undefined reference to `fmod'
      61. Zend/.libs/zend_operators.o: In function `pow_function':
      62. /root/dt/php-5.6.17/Zend/zend_operators.c:993: undefined reference to `pow'
      63. /root/dt/php-5.6.17/Zend/zend_operators.c:1021: undefined reference to `pow'
      64. /root/dt/php-5.6.17/Zend/zend_operators.c:1013: undefined reference to `pow'
      65. /root/dt/php-5.6.17/Zend/zend_operators.c:1017: undefined reference to `pow'
      66. /root/dt/php-5.6.17/Zend/zend_operators.c:1000: undefined reference to `pow'
      67. Zend/.libs/zend_operators.o: In function `zend_dval_to_lval':
      68. /root/dt/php-5.6.17/Zend/zend_operators.h:101: undefined reference to `fmod'
      69. /root/dt/php-5.6.17/Zend/zend_operators.h:101: undefined reference to `fmod'
      70. /root/dt/php-5.6.17/Zend/zend_operators.h:101: undefined reference to `fmod'
      71. /root/dt/php-5.6.17/Zend/zend_operators.h:101: undefined reference to `fmod'
      72. /root/dt/php-5.6.17/Zend/zend_operators.h:101: undefined reference to `fmod'
      73. Zend/.libs/zend_operators.o:/root/dt/php-5.6.17/Zend/zend_operators.h:101: more undefined references to `fmod' follow
      74. Zend/.libs/zend_operators.o: In function `zend_string_to_double':
      75. /root/dt/php-5.6.17/Zend/zend_operators.c:173: undefined reference to `pow'
      76. Zend/.libs/zend_operators.o: In function `zend_dval_to_lval':
      77. /root/dt/php-5.6.17/Zend/zend_operators.h:101: undefined reference to `fmod'
      78. Zend/.libs/zend_operators.o: In function `pow_function':
      79. /root/dt/php-5.6.17/Zend/zend_operators.c:993: undefined reference to `pow'
      80. /root/dt/php-5.6.17/Zend/zend_operators.c:1021: undefined reference to `pow'
      81. /root/dt/php-5.6.17/Zend/zend_operators.c:1000: undefined reference to `pow'
      82. Zend/.libs/zend_operators.o: In function `zend_dval_to_lval':
      83. /root/dt/php-5.6.17/Zend/zend_operators.h:101: undefined reference to `fmod'
      84. /root/dt/php-5.6.17/Zend/zend_operators.h:101: undefined reference to `fmod'
      85. /root/dt/php-5.6.17/Zend/zend_operators.h:101: undefined reference to `fmod'
      86. /root/dt/php-5.6.17/Zend/zend_operators.h:101: undefined reference to `fmod'
      87. /root/dt/php-5.6.17/Zend/zend_operators.h:101: undefined reference to `fmod'
      88. Zend/.libs/zend_operators.o:/root/dt/php-5.6.17/Zend/zend_operators.h:101: more undefined references to `fmod' follow
      89. sapi/cli/.libs/php_cli.o: In function `do_cli':
      90. /root/dt/php-5.6.17/sapi/cli/php_cli.c:939: undefined reference to `__strdup'
      91. /root/dt/php-5.6.17/sapi/cli/php_cli.c:939: undefined reference to `__strdup'
      92. sapi/cli/.libs/php_cli.o: In function `main':
      93. /root/dt/php-5.6.17/sapi/cli/php_cli.c:1276: undefined reference to `__strdup'
      94. /root/dt/php-5.6.17/sapi/cli/php_cli.c:1276: undefined reference to `__strdup'
      95. sapi/cli/.libs/php_cli_server.o: In function `get_last_error':
      96. /root/dt/php-5.6.17/sapi/cli/php_cli_server.c:381: undefined reference to `__strdup'
      97. sapi/cli/.libs/php_cli_server.o: In function `stat':
      98. /usr/mips-linux-gnu/include/sys/stat.h:457: undefined reference to `__xstat'
      99. /usr/mips-linux-gnu/include/sys/stat.h:457: undefined reference to `__xstat'
      100. sapi/cli/.libs/php_cli_server.o: In function `do_cli_server':
      101. /root/dt/php-5.6.17/sapi/cli/php_cli_server.c:2559: undefined reference to `__xstat'
      102. sapi/cli/.libs/php_cli_server.o: In function `php_cli_server_ctor':
      103. /root/dt/php-5.6.17/sapi/cli/php_cli_server.c:2272: undefined reference to `__strdup'
      104. /root/dt/php-5.6.17/sapi/cli/php_cli_server.c:2272: undefined reference to `__strdup'
      105. sapi/cli/.libs/php_cli_server.o: In function `get_last_error':
      106. /root/dt/php-5.6.17/sapi/cli/php_cli_server.c:381: undefined reference to `__strdup'
      107. sapi/cli/.libs/php_cli_server.o: In function `stat':
      108. /usr/mips-linux-gnu/include/sys/stat.h:457: undefined reference to `__xstat'
      109. /usr/mips-linux-gnu/include/sys/stat.h:457: undefined reference to `__xstat'
      110. /usr/mips-linux-gnu/include/sys/stat.h:457: undefined reference to `__xstat'
      111. sapi/cli/.libs/php_cli_server.o: In function `php_cli_server_ctor':
      112. /root/dt/php-5.6.17/sapi/cli/php_cli_server.c:2290: undefined reference to `__strdup'
      113. /root/dt/php-5.6.17/sapi/cli/php_cli_server.c:2273: undefined reference to `__strdup'
      114. ext/date/.libs/php_date.o: In function `zim_DatePeriod___construct':
      115. /root/dt/php-5.6.17/ext/date/php_date.c:4465: undefined reference to `__strdup'
      116. ext/date/.libs/php_date.o: In function `set_timezone_from_timelib_time':
      117. /root/dt/php-5.6.17/ext/date/php_date.c:3311: undefined reference to `__strdup'
      118. ext/date/.libs/php_date.o: In function `date_object_clone_timezone':
      119. /root/dt/php-5.6.17/ext/date/php_date.c:2318: undefined reference to `__strdup'
      120. ext/date/.libs/php_date.o:/root/dt/php-5.6.17/ext/date/php_date.c:2160: more undefined references to `__strdup' follow
      121. ext/date/.libs/php_date.o: In function `php_do_date_sunrise_sunset':
      122. /root/dt/php-5.6.17/ext/date/php_date.c:4782: undefined reference to `floor'
      123. ext/date/.libs/php_date.o: In function `date_format':
      124. /root/dt/php-5.6.17/ext/date/php_date.c:1154: undefined reference to `floor'
      125. /root/dt/php-5.6.17/ext/date/php_date.c:1087: undefined reference to `__strdup'
      126. ext/date/.libs/php_date.o: In function `php_idate':
      127. /root/dt/php-5.6.17/ext/date/php_date.c:1298: undefined reference to `__strdup'
      128. ext/date/.libs/php_date.o: In function `date_period_it_current_data':
      129. /root/dt/php-5.6.17/ext/date/php_date.c:1931: undefined reference to `__strdup'
      130. ext/date/.libs/php_date.o: In function `zim_DatePeriod_getEndDate':
      131. /root/dt/php-5.6.17/ext/date/php_date.c:4542: undefined reference to `__strdup'
      132. ext/date/.libs/php_date.o: In function `zim_DatePeriod_getStartDate':
      133. /root/dt/php-5.6.17/ext/date/php_date.c:4515: undefined reference to `__strdup'
      134. ext/date/.libs/php_date.o:/root/dt/php-5.6.17/ext/date/php_date.c:2798: more undefined references to `__strdup' follow
      135. ext/date/.libs/php_date.o: In function `php_do_date_sunrise_sunset':
      136. /root/dt/php-5.6.17/ext/date/php_date.c:4782: undefined reference to `floor'
      137. ext/date/.libs/php_date.o: In function `date_format':
      138. /root/dt/php-5.6.17/ext/date/php_date.c:1154: undefined reference to `floor'
      139. /root/dt/php-5.6.17/ext/date/php_date.c:1087: undefined reference to `__strdup'
      140. ext/date/.libs/php_date.o: In function `php_idate':
      141. /root/dt/php-5.6.17/ext/date/php_date.c:1298: undefined reference to `__strdup'
      142. ext/date/.libs/php_date.o: In function `date_period_it_current_data':
      143. /root/dt/php-5.6.17/ext/date/php_date.c:1932: undefined reference to `__strdup'
      144. ext/date/.libs/php_date.o: In function `zim_DatePeriod_getEndDate':
      145. /root/dt/php-5.6.17/ext/date/php_date.c:4543: undefined reference to `__strdup'
      146. ext/date/.libs/php_date.o: In function `zim_DatePeriod_getStartDate':
      147. /root/dt/php-5.6.17/ext/date/php_date.c:4516: undefined reference to `__strdup'
      148. ext/date/.libs/php_date.o:/root/dt/php-5.6.17/ext/date/php_date.c:2799: more undefined references to `__strdup' follow
      149. ext/date/lib/.libs/astro.o: In function `astro_revolution':
      150. /root/dt/php-5.6.17/ext/date/lib/astro.c:76: undefined reference to `floor'
      151. /root/dt/php-5.6.17/ext/date/lib/astro.c:76: undefined reference to `floor'
      152. /root/dt/php-5.6.17/ext/date/lib/astro.c:76: undefined reference to `floor'
      153. ext/date/lib/.libs/astro.o: In function `astro_sunpos':
      154. /root/dt/php-5.6.17/ext/date/lib/astro.c:149: undefined reference to `sin'
      155. /root/dt/php-5.6.17/ext/date/lib/astro.c:149: undefined reference to `cos'
      156. /root/dt/php-5.6.17/ext/date/lib/astro.c:150: undefined reference to `cos'
      157. /root/dt/php-5.6.17/ext/date/lib/astro.c:151: undefined reference to `sqrt'
      158. /root/dt/php-5.6.17/ext/date/lib/astro.c:151: undefined reference to `sin'
      159. /root/dt/php-5.6.17/ext/date/lib/astro.c:152: undefined reference to `sqrt'
      160. /root/dt/php-5.6.17/ext/date/lib/astro.c:153: undefined reference to `atan2'
      161. ext/date/lib/.libs/astro.o: In function `astro_sun_RA_dec':
      162. /root/dt/php-5.6.17/ext/date/lib/astro.c:168: undefined reference to `cos'
      163. /root/dt/php-5.6.17/ext/date/lib/astro.c:169: undefined reference to `sin'
      164. /root/dt/php-5.6.17/ext/date/lib/astro.c:175: undefined reference to `sin'
      165. /root/dt/php-5.6.17/ext/date/lib/astro.c:176: undefined reference to `cos'
      166. /root/dt/php-5.6.17/ext/date/lib/astro.c:179: undefined reference to `atan2'
      167. /root/dt/php-5.6.17/ext/date/lib/astro.c:180: undefined reference to `sqrt'
      168. /root/dt/php-5.6.17/ext/date/lib/astro.c:180: undefined reference to `atan2'
      169. ext/date/lib/.libs/astro.o: In function `astro_rev180':
      170. /root/dt/php-5.6.17/ext/date/lib/astro.c:84: undefined reference to `floor'
      171. ext/date/lib/.libs/astro.o: In function `timelib_astro_rise_set_altitude':
      172. /root/dt/php-5.6.17/ext/date/lib/astro.c:266: undefined reference to `sin'
      173. /root/dt/php-5.6.17/ext/date/lib/astro.c:266: undefined reference to `sin'
      174. /root/dt/php-5.6.17/ext/date/lib/astro.c:266: undefined reference to `sin'
      175. /root/dt/php-5.6.17/ext/date/lib/astro.c:266: undefined reference to `cos'
      176. /root/dt/php-5.6.17/ext/date/lib/astro.c:266: undefined reference to `cos'
      177. /root/dt/php-5.6.17/ext/date/lib/astro.c:280: undefined reference to `acos'
      178. ext/date/lib/.libs/astro.o: In function `astro_revolution':
      179. /root/dt/php-5.6.17/ext/date/lib/astro.c:76: undefined reference to `floor'
      180. /root/dt/php-5.6.17/ext/date/lib/astro.c:76: undefined reference to `floor'
      181. /root/dt/php-5.6.17/ext/date/lib/astro.c:76: undefined reference to `floor'
      182. ext/date/lib/.libs/astro.o: In function `astro_sunpos':
      183. /root/dt/php-5.6.17/ext/date/lib/astro.c:149: undefined reference to `sin'
      184. /root/dt/php-5.6.17/ext/date/lib/astro.c:149: undefined reference to `cos'
      185. /root/dt/php-5.6.17/ext/date/lib/astro.c:150: undefined reference to `cos'
      186. /root/dt/php-5.6.17/ext/date/lib/astro.c:151: undefined reference to `sqrt'
      187. /root/dt/php-5.6.17/ext/date/lib/astro.c:151: undefined reference to `sin'
      188. /root/dt/php-5.6.17/ext/date/lib/astro.c:152: undefined reference to `sqrt'
      189. /root/dt/php-5.6.17/ext/date/lib/astro.c:153: undefined reference to `atan2'
      190. ext/date/lib/.libs/astro.o: In function `astro_sun_RA_dec':
      191. /root/dt/php-5.6.17/ext/date/lib/astro.c:168: undefined reference to `cos'
      192. /root/dt/php-5.6.17/ext/date/lib/astro.c:169: undefined reference to `sin'
      193. /root/dt/php-5.6.17/ext/date/lib/astro.c:175: undefined reference to `sin'
      194. /root/dt/php-5.6.17/ext/date/lib/astro.c:176: undefined reference to `cos'
      195. /root/dt/php-5.6.17/ext/date/lib/astro.c:179: undefined reference to `atan2'
      196. /root/dt/php-5.6.17/ext/date/lib/astro.c:180: undefined reference to `sqrt'
      197. /root/dt/php-5.6.17/ext/date/lib/astro.c:180: undefined reference to `atan2'
      198. ext/date/lib/.libs/astro.o: In function `astro_rev180':
      199. /root/dt/php-5.6.17/ext/date/lib/astro.c:84: undefined reference to `floor'
      200. ext/date/lib/.libs/astro.o: In function `timelib_astro_rise_set_altitude':
      201. /root/dt/php-5.6.17/ext/date/lib/astro.c:266: undefined reference to `sin'
      202. /root/dt/php-5.6.17/ext/date/lib/astro.c:266: undefined reference to `sin'
      203. /root/dt/php-5.6.17/ext/date/lib/astro.c:266: undefined reference to `sin'
      204. /root/dt/php-5.6.17/ext/date/lib/astro.c:266: undefined reference to `cos'
      205. /root/dt/php-5.6.17/ext/date/lib/astro.c:266: undefined reference to `cos'
      206. /root/dt/php-5.6.17/ext/date/lib/astro.c:280: undefined reference to `acos'
      207. ext/date/lib/.libs/parse_tz.o: In function `seek_to_tz_position':
      208. /root/dt/php-5.6.17/ext/date/lib/parse_tz.c:313: undefined reference to `__strdup'
      209. ext/date/lib/.libs/parse_tz.o: In function `timelib_get_time_zone_info':
      210. /root/dt/php-5.6.17/ext/date/lib/parse_tz.c:506: undefined reference to `__strdup'
      211. ext/date/lib/.libs/parse_tz.o: In function `seek_to_tz_position':
      212. /root/dt/php-5.6.17/ext/date/lib/parse_tz.c:313: undefined reference to `__strdup'
      213. ext/date/lib/.libs/parse_tz.o: In function `timelib_get_time_zone_info':
      214. /root/dt/php-5.6.17/ext/date/lib/parse_tz.c:506: undefined reference to `__strdup'
      215. ext/date/lib/.libs/timelib.o: In function `timelib_time_clone':
      216. /root/dt/php-5.6.17/ext/date/lib/timelib.c:59: undefined reference to `__strdup'
      217. ext/date/lib/.libs/timelib.o:/root/dt/php-5.6.17/ext/date/lib/timelib.c:81: more undefined references to `__strdup' follow
      218. ext/date/lib/.libs/timelib.o: In function `timelib_decimal_hour_to_hms':
      219. /root/dt/php-5.6.17/ext/date/lib/timelib.c:204: undefined reference to `floor'
      220. /root/dt/php-5.6.17/ext/date/lib/timelib.c:205: undefined reference to `floor'
      221. ext/date/lib/.libs/timelib.o: In function `timelib_time_clone':
      222. /root/dt/php-5.6.17/ext/date/lib/timelib.c:60: undefined reference to `__strdup'
      223. ext/date/lib/.libs/timelib.o: In function `timelib_time_tz_abbr_update':
      224. /root/dt/php-5.6.17/ext/date/lib/timelib.c:81: undefined reference to `__strdup'
      225. ext/date/lib/.libs/timelib.o: In function `timelib_tzinfo_ctor':
      226. /root/dt/php-5.6.17/ext/date/lib/timelib.c:116: undefined reference to `__strdup'
      227. ext/date/lib/.libs/timelib.o: In function `timelib_decimal_hour_to_hms':
      228. /root/dt/php-5.6.17/ext/date/lib/timelib.c:204: undefined reference to `floor'
      229. /root/dt/php-5.6.17/ext/date/lib/timelib.c:205: undefined reference to `floor'
      230. ext/date/lib/.libs/tm2unixtime.o: In function `do_adjust_timezone':
      231. /root/dt/php-5.6.17/ext/date/lib/tm2unixtime.c:432: undefined reference to `__strdup'
      232. /root/dt/php-5.6.17/ext/date/lib/tm2unixtime.c:432: undefined reference to `__strdup'
      233. ext/date/lib/.libs/unixtime2tm.o: In function `timelib_set_timezone_from_abbr':
      234. /root/dt/php-5.6.17/ext/date/lib/unixtime2tm.c:240: undefined reference to `__strdup'
      235. ext/date/lib/.libs/unixtime2tm.o: In function `timelib_set_timezone':
      236. /root/dt/php-5.6.17/ext/date/lib/unixtime2tm.c:266: undefined reference to `__strdup'
      237. ext/date/lib/.libs/unixtime2tm.o: In function `timelib_set_timezone_from_abbr':
      238. /root/dt/php-5.6.17/ext/date/lib/unixtime2tm.c:240: undefined reference to `__strdup'
      239. ext/date/lib/.libs/unixtime2tm.o:/root/dt/php-5.6.17/ext/date/lib/unixtime2tm.c:266: more undefined references to `__strdup' follow
      240. ext/date/lib/.libs/interval.o: In function `timelib_diff':
      241. /root/dt/php-5.6.17/ext/date/lib/interval.c:73: undefined reference to `floor'
      242. /root/dt/php-5.6.17/ext/date/lib/interval.c:73: undefined reference to `floor'
      243. ext/pcre/.libs/php_pcre.o: In function `pcre_get_compiled_regex_cache':
      244. /root/dt/php-5.6.17/ext/pcre/php_pcre.c:471: undefined reference to `__strdup'
      245. /root/dt/php-5.6.17/ext/pcre/php_pcre.c:471: undefined reference to `__strdup'
      246. ext/standard/.libs/basic_functions.o: In function `zif_sys_getloadavg':
      247. /root/dt/php-5.6.17/ext/standard/basic_functions.c:6051: undefined reference to `getloadavg'
      248. /root/dt/php-5.6.17/ext/standard/basic_functions.c:6051: undefined reference to `getloadavg'
      249. ext/standard/.libs/dir.o: In function `stat':
      250. /usr/mips-linux-gnu/include/sys/stat.h:457: undefined reference to `__xstat'
      251. /usr/mips-linux-gnu/include/sys/stat.h:457: undefined reference to `__xstat'
      252. ext/standard/.libs/dns.o: In function `zif_dns_check_record':
      253. /root/dt/php-5.6.17/ext/standard/dns.c:(.text+0x1744): undefined reference to `__res_nsearch'
      254. ext/standard/.libs/dns.o: In function `zif_dns_get_record':
      255. /root/dt/php-5.6.17/ext/standard/dns.c:(.text+0x1a60): undefined reference to `__res_nsearch'
      256. ext/standard/.libs/dns.o: In function `zif_dns_get_mx':
      257. /root/dt/php-5.6.17/ext/standard/dns.c:(.text+0x236c): undefined reference to `__res_nsearch'
      258. ext/standard/.libs/dns.o: In function `zif_dns_check_record':
      259. /root/dt/php-5.6.17/ext/standard/dns.c:(.text+0x176c): undefined reference to `__res_nsearch'
      260. ext/standard/.libs/dns.o: In function `zif_dns_get_record':
      261. /root/dt/php-5.6.17/ext/standard/dns.c:(.text+0x1a80): undefined reference to `__res_nsearch'
      262. ext/standard/.libs/dns.o:/root/dt/php-5.6.17/ext/standard/dns.c:(.text+0x238c): more undefined references to `__res_nsearch' follow
      263. ext/standard/.libs/formatted_print.o: In function `php_sprintf_appenddouble':
      264. /root/dt/php-5.6.17/ext/standard/formatted_print.c:238: undefined reference to `__isnan'
      265. /root/dt/php-5.6.17/ext/standard/formatted_print.c:245: undefined reference to `__isinf'
      266. /root/dt/php-5.6.17/ext/standard/formatted_print.c:238: undefined reference to `__isnan'
      267. /root/dt/php-5.6.17/ext/standard/formatted_print.c:238: undefined reference to `__isnan'
      268. /root/dt/php-5.6.17/ext/standard/formatted_print.c:245: undefined reference to `__isinf'
      269. /root/dt/php-5.6.17/ext/standard/formatted_print.c:238: undefined reference to `__isnan'
      270. ext/standard/.libs/iptc.o: In function `php_iptc_get1':
      271. /root/dt/php-5.6.17/ext/standard/iptc.c:96: undefined reference to `_IO_getc'
      272. ext/standard/.libs/iptc.o: In function `fstat':
      273. /usr/mips-linux-gnu/include/sys/stat.h:471: undefined reference to `__fxstat'
      274. ext/standard/.libs/iptc.o: In function `php_iptc_get1':
      275. /root/dt/php-5.6.17/ext/standard/iptc.c:96: undefined reference to `_IO_getc'
      276. ext/standard/.libs/iptc.o: In function `fstat':
      277. /usr/mips-linux-gnu/include/sys/stat.h:471: undefined reference to `__fxstat'
      278. ext/standard/.libs/link.o: In function `lstat':
      279. /usr/mips-linux-gnu/include/sys/stat.h:464: undefined reference to `__lxstat'
      280. /usr/mips-linux-gnu/include/sys/stat.h:464: undefined reference to `__lxstat'
      281. ext/standard/.libs/math.o: In function `php_math_is_finite':
      282. /root/dt/php-5.6.17/ext/standard/math.c:100: undefined reference to `__finite'
      283. ext/standard/.libs/math.o: In function `php_intpow10':
      284. /root/dt/php-5.6.17/ext/standard/math.c:89: undefined reference to `pow'
      285. ext/standard/.libs/math.o: In function `php_intlog10abs':
      286. /root/dt/php-5.6.17/ext/standard/math.c:41: undefined reference to `log10'
      287. /root/dt/php-5.6.17/ext/standard/math.c:41: undefined reference to `floor'
      288. ext/standard/.libs/math.o: In function `php_round_helper':
      289. /root/dt/php-5.6.17/ext/standard/math.c:113: undefined reference to `floor'
      290. /root/dt/php-5.6.17/ext/standard/math.c:121: undefined reference to `ceil'
      291. /root/dt/php-5.6.17/ext/standard/math.c:124: undefined reference to `ceil'
      292. /root/dt/php-5.6.17/ext/standard/math.c:116: undefined reference to `floor'
      293. ext/standard/.libs/math.o: In function `_php_math_round':
      294. /root/dt/php-5.6.17/ext/standard/math.c:206: undefined reference to `__isnan'
      295. ext/standard/.libs/math.o: In function `php_round_helper':
      296. /root/dt/php-5.6.17/ext/standard/math.c:121: undefined reference to `ceil'
      297. /root/dt/php-5.6.17/ext/standard/math.c:124: undefined reference to `ceil'
      298. /root/dt/php-5.6.17/ext/standard/math.c:115: undefined reference to `floor'
      299. /root/dt/php-5.6.17/ext/standard/math.c:113: undefined reference to `floor'
      300. /root/dt/php-5.6.17/ext/standard/math.c:116: undefined reference to `floor'
      301. /root/dt/php-5.6.17/ext/standard/math.c:123: undefined reference to `ceil'
      302. ext/standard/.libs/math.o: In function `php_intpow10':
      303. /root/dt/php-5.6.17/ext/standard/math.c:89: undefined reference to `pow'
      304. /root/dt/php-5.6.17/ext/standard/math.c:89: undefined reference to `pow'
      305. ext/standard/.libs/math.o: In function `php_round_helper':
      306. /root/dt/php-5.6.17/ext/standard/math.c:115: undefined reference to `floor'
      307. /root/dt/php-5.6.17/ext/standard/math.c:123: undefined reference to `ceil'
      308. ext/standard/.libs/math.o: In function `zif_ceil':
      309. /root/dt/php-5.6.17/ext/standard/math.c:311: undefined reference to `ceil'
      310. ext/standard/.libs/math.o: In function `zif_floor':
      311. /root/dt/php-5.6.17/ext/standard/math.c:332: undefined reference to `floor'
      312. ext/standard/.libs/math.o: In function `zif_sin':
      313. /root/dt/php-5.6.17/ext/standard/math.c:390: undefined reference to `sin'
      314. ext/standard/.libs/math.o: In function `zif_cos':
      315. /root/dt/php-5.6.17/ext/standard/math.c:403: undefined reference to `cos'
      316. ext/standard/.libs/math.o: In function `zif_tan':
      317. /root/dt/php-5.6.17/ext/standard/math.c:416: undefined reference to `tan'
      318. ext/standard/.libs/math.o: In function `zif_asin':
      319. /root/dt/php-5.6.17/ext/standard/math.c:429: undefined reference to `asin'
      320. ext/standard/.libs/math.o: In function `zif_acos':
      321. /root/dt/php-5.6.17/ext/standard/math.c:442: undefined reference to `acos'
      322. ext/standard/.libs/math.o: In function `zif_atan':
      323. /root/dt/php-5.6.17/ext/standard/math.c:455: undefined reference to `atan'
      324. ext/standard/.libs/math.o: In function `zif_atan2':
      325. /root/dt/php-5.6.17/ext/standard/math.c:468: undefined reference to `atan2'
      326. ext/standard/.libs/math.o: In function `zif_sinh':
      327. /root/dt/php-5.6.17/ext/standard/math.c:481: undefined reference to `sinh'
      328. ext/standard/.libs/math.o: In function `zif_cosh':
      329. /root/dt/php-5.6.17/ext/standard/math.c:494: undefined reference to `cosh'
      330. ext/standard/.libs/math.o: In function `zif_tanh':
      331. /root/dt/php-5.6.17/ext/standard/math.c:507: undefined reference to `tanh'
      332. ext/standard/.libs/math.o: In function `php_asinh':
      333. /root/dt/php-5.6.17/ext/standard/math.c:220: undefined reference to `asinh'
      334. ext/standard/.libs/math.o: In function `php_acosh':
      335. /root/dt/php-5.6.17/ext/standard/math.c:232: undefined reference to `acosh'
      336. ext/standard/.libs/math.o: In function `php_atanh':
      337. /root/dt/php-5.6.17/ext/standard/math.c:244: undefined reference to `atanh'
      338. ext/standard/.libs/math.o: In function `zif_is_infinite':
      339. /root/dt/php-5.6.17/ext/standard/math.c:580: undefined reference to `__isinf'
      340. ext/standard/.libs/math.o: In function `zif_is_nan':
      341. /root/dt/php-5.6.17/ext/standard/math.c:593: undefined reference to `__isnan'
      342. ext/standard/.libs/math.o: In function `zif_exp':
      343. /root/dt/php-5.6.17/ext/standard/math.c:621: undefined reference to `exp'
      344. ext/standard/.libs/math.o: In function `php_expm1':
      345. /root/dt/php-5.6.17/ext/standard/math.c:268: undefined reference to `expm1'
      346. ext/standard/.libs/math.o: In function `php_log1p':
      347. /root/dt/php-5.6.17/ext/standard/math.c:256: undefined reference to `log1p'
      348. ext/standard/.libs/math.o: In function `zif_log':
      349. /root/dt/php-5.6.17/ext/standard/math.c:678: undefined reference to `log'
      350. /root/dt/php-5.6.17/ext/standard/math.c:678: undefined reference to `log'
      351. /root/dt/php-5.6.17/ext/standard/math.c:669: undefined reference to `log'
      352. ext/standard/.libs/math.o: In function `zif_log10':
      353. /root/dt/php-5.6.17/ext/standard/math.c:692: undefined reference to `log10'
      354. ext/standard/.libs/math.o: In function `zif_sqrt':
      355. /root/dt/php-5.6.17/ext/standard/math.c:705: undefined reference to `sqrt'
      356. ext/standard/.libs/math.o: In function `zif_hypot':
      357. /root/dt/php-5.6.17/ext/standard/math.c:719: undefined reference to `hypot'
      358. ext/standard/.libs/math.o: In function `_php_math_zvaltobase':
      359. /root/dt/php-5.6.17/ext/standard/math.c:906: undefined reference to `floor'
      360. /root/dt/php-5.6.17/ext/standard/math.c:920: undefined reference to `fmod'
      361. /root/dt/php-5.6.17/ext/standard/math.c:922: undefined reference to `fmod'
      362. ext/standard/.libs/math.o: In function `zif_fmod':
      363. /root/dt/php-5.6.17/ext/standard/math.c:1246: undefined reference to `fmod'
      364. ext/standard/.libs/math.o: In function `php_math_is_finite':
      365. /root/dt/php-5.6.17/ext/standard/math.c:100: undefined reference to `__finite'
      366. ext/standard/.libs/math.o: In function `php_intpow10':
      367. /root/dt/php-5.6.17/ext/standard/math.c:89: undefined reference to `pow'
      368. ext/standard/.libs/math.o: In function `php_intlog10abs':
      369. /root/dt/php-5.6.17/ext/standard/math.c:41: undefined reference to `log10'
      370. /root/dt/php-5.6.17/ext/standard/math.c:41: undefined reference to `floor'
      371. ext/standard/.libs/math.o: In function `php_round_helper':
      372. /root/dt/php-5.6.17/ext/standard/math.c:113: undefined reference to `floor'
      373. /root/dt/php-5.6.17/ext/standard/math.c:121: undefined reference to `ceil'
      374. /root/dt/php-5.6.17/ext/standard/math.c:124: undefined reference to `ceil'
      375. /root/dt/php-5.6.17/ext/standard/math.c:116: undefined reference to `floor'
      376. ext/standard/.libs/math.o: In function `_php_math_round':
      377. /root/dt/php-5.6.17/ext/standard/math.c:206: undefined reference to `__isnan'
      378. ext/standard/.libs/math.o: In function `php_round_helper':
      379. /root/dt/php-5.6.17/ext/standard/math.c:121: undefined reference to `ceil'
      380. /root/dt/php-5.6.17/ext/standard/math.c:124: undefined reference to `ceil'
      381. /root/dt/php-5.6.17/ext/standard/math.c:115: undefined reference to `floor'
      382. /root/dt/php-5.6.17/ext/standard/math.c:113: undefined reference to `floor'
      383. /root/dt/php-5.6.17/ext/standard/math.c:116: undefined reference to `floor'
      384. /root/dt/php-5.6.17/ext/standard/math.c:123: undefined reference to `ceil'
      385. ext/standard/.libs/math.o: In function `php_intpow10':
      386. /root/dt/php-5.6.17/ext/standard/math.c:89: undefined reference to `pow'
      387. /root/dt/php-5.6.17/ext/standard/math.c:89: undefined reference to `pow'
      388. ext/standard/.libs/math.o: In function `php_round_helper':
      389. /root/dt/php-5.6.17/ext/standard/math.c:115: undefined reference to `floor'
      390. /root/dt/php-5.6.17/ext/standard/math.c:123: undefined reference to `ceil'
      391. ext/standard/.libs/math.o: In function `zif_ceil':
      392. /root/dt/php-5.6.17/ext/standard/math.c:311: undefined reference to `ceil'
      393. ext/standard/.libs/math.o: In function `zif_floor':
      394. /root/dt/php-5.6.17/ext/standard/math.c:332: undefined reference to `floor'
      395. ext/standard/.libs/math.o: In function `zif_sin':
      396. /root/dt/php-5.6.17/ext/standard/math.c:390: undefined reference to `sin'
      397. ext/standard/.libs/math.o: In function `zif_cos':
      398. /root/dt/php-5.6.17/ext/standard/math.c:403: undefined reference to `cos'
      399. ext/standard/.libs/math.o: In function `zif_tan':
      400. /root/dt/php-5.6.17/ext/standard/math.c:416: undefined reference to `tan'
      401. ext/standard/.libs/math.o: In function `zif_asin':
      402. /root/dt/php-5.6.17/ext/standard/math.c:429: undefined reference to `asin'
      403. ext/standard/.libs/math.o: In function `zif_acos':
      404. /root/dt/php-5.6.17/ext/standard/math.c:442: undefined reference to `acos'
      405. ext/standard/.libs/math.o: In function `zif_atan':
      406. /root/dt/php-5.6.17/ext/standard/math.c:455: undefined reference to `atan'
      407. ext/standard/.libs/math.o: In function `zif_atan2':
      408. /root/dt/php-5.6.17/ext/standard/math.c:468: undefined reference to `atan2'
      409. ext/standard/.libs/math.o: In function `zif_sinh':
      410. /root/dt/php-5.6.17/ext/standard/math.c:481: undefined reference to `sinh'
      411. ext/standard/.libs/math.o: In function `zif_cosh':
      412. /root/dt/php-5.6.17/ext/standard/math.c:494: undefined reference to `cosh'
      413. ext/standard/.libs/math.o: In function `zif_tanh':
      414. /root/dt/php-5.6.17/ext/standard/math.c:507: undefined reference to `tanh'
      415. ext/standard/.libs/math.o: In function `php_asinh':
      416. /root/dt/php-5.6.17/ext/standard/math.c:220: undefined reference to `asinh'
      417. ext/standard/.libs/math.o: In function `php_acosh':
      418. /root/dt/php-5.6.17/ext/standard/math.c:232: undefined reference to `acosh'
      419. ext/standard/.libs/math.o: In function `php_atanh':
      420. /root/dt/php-5.6.17/ext/standard/math.c:244: undefined reference to `atanh'
      421. ext/standard/.libs/math.o: In function `zif_is_infinite':
      422. /root/dt/php-5.6.17/ext/standard/math.c:580: undefined reference to `__isinf'
      423. ext/standard/.libs/math.o: In function `zif_is_nan':
      424. /root/dt/php-5.6.17/ext/standard/math.c:593: undefined reference to `__isnan'
      425. ext/standard/.libs/math.o: In function `zif_exp':
      426. /root/dt/php-5.6.17/ext/standard/math.c:621: undefined reference to `exp'
      427. ext/standard/.libs/math.o: In function `php_expm1':
      428. /root/dt/php-5.6.17/ext/standard/math.c:268: undefined reference to `expm1'
      429. ext/standard/.libs/math.o: In function `php_log1p':
      430. /root/dt/php-5.6.17/ext/standard/math.c:256: undefined reference to `log1p'
      431. ext/standard/.libs/math.o: In function `zif_log':
      432. /root/dt/php-5.6.17/ext/standard/math.c:678: undefined reference to `log'
      433. /root/dt/php-5.6.17/ext/standard/math.c:678: undefined reference to `log'
      434. /root/dt/php-5.6.17/ext/standard/math.c:669: undefined reference to `log'
      435. ext/standard/.libs/math.o: In function `zif_log10':
      436. /root/dt/php-5.6.17/ext/standard/math.c:692: undefined reference to `log10'
      437. ext/standard/.libs/math.o: In function `zif_sqrt':
      438. /root/dt/php-5.6.17/ext/standard/math.c:705: undefined reference to `sqrt'
      439. ext/standard/.libs/math.o: In function `zif_hypot':
      440. /root/dt/php-5.6.17/ext/standard/math.c:719: undefined reference to `hypot'
      441. ext/standard/.libs/math.o: In function `_php_math_zvaltobase':
      442. /root/dt/php-5.6.17/ext/standard/math.c:906: undefined reference to `floor'
      443. /root/dt/php-5.6.17/ext/standard/math.c:920: undefined reference to `fmod'
      444. /root/dt/php-5.6.17/ext/standard/math.c:920: undefined reference to `fmod'
      445. ext/standard/.libs/math.o: In function `zif_fmod':
      446. /root/dt/php-5.6.17/ext/standard/math.c:1246: undefined reference to `fmod'
      447. ext/standard/.libs/string.o: In function `zif_money_format':
      448. /root/dt/php-5.6.17/ext/standard/string.c:5521: undefined reference to `strfmon'
      449. /root/dt/php-5.6.17/ext/standard/string.c:5521: undefined reference to `strfmon'
      450. ext/standard/.libs/php_fopen_wrapper.o: In function `fstat':
      451. /usr/mips-linux-gnu/include/sys/stat.h:471: undefined reference to `__fxstat'
      452. /usr/mips-linux-gnu/include/sys/stat.h:471: undefined reference to `__fxstat'
      453. ext/standard/.libs/uuencode.o: In function `php_uuencode':
      454. /root/dt/php-5.6.17/ext/standard/uuencode.c:74: undefined reference to `ceil'
      455. /root/dt/php-5.6.17/ext/standard/uuencode.c:84: undefined reference to `floor'
      456. ext/standard/.libs/uuencode.o: In function `php_uudecode':
      457. /root/dt/php-5.6.17/ext/standard/uuencode.c:132: undefined reference to `ceil'
      458. /root/dt/php-5.6.17/ext/standard/uuencode.c:147: undefined reference to `floor'
      459. ext/standard/.libs/uuencode.o: In function `php_uuencode':
      460. /root/dt/php-5.6.17/ext/standard/uuencode.c:74: undefined reference to `ceil'
      461. /root/dt/php-5.6.17/ext/standard/uuencode.c:84: undefined reference to `floor'
      462. ext/standard/.libs/uuencode.o: In function `php_uudecode':
      463. /root/dt/php-5.6.17/ext/standard/uuencode.c:132: undefined reference to `ceil'
      464. /root/dt/php-5.6.17/ext/standard/uuencode.c:147: undefined reference to `floor'
      465. ext/standard/.libs/password.o: In function `zif_password_get_info':
      466. /root/dt/php-5.6.17/ext/standard/password.c:201: undefined reference to `__isoc99_sscanf'
      467. ext/standard/.libs/password.o: In function `zif_password_needs_rehash':
      468. /root/dt/php-5.6.17/ext/standard/password.c:258: undefined reference to `__isoc99_sscanf'
      469. ext/standard/.libs/password.o: In function `zif_password_get_info':
      470. /root/dt/php-5.6.17/ext/standard/password.c:201: undefined reference to `__isoc99_sscanf'
      471. ext/standard/.libs/password.o: In function `zif_password_needs_rehash':
      472. /root/dt/php-5.6.17/ext/standard/password.c:258: undefined reference to `__isoc99_sscanf'
      473. main/.libs/main.o: In function `php_error_cb':
      474. /root/dt/php-5.6.17/main/main.c:1060: undefined reference to `__strdup'
      475. /root/dt/php-5.6.17/main/main.c:1061: undefined reference to `__strdup'
      476. main/.libs/main.o: In function `php_disable_classes':
      477. /root/dt/php-5.6.17/main/main.c:235: undefined reference to `__strdup'
      478. main/.libs/main.o: In function `php_disable_functions':
      479. /root/dt/php-5.6.17/main/main.c:197: undefined reference to `__strdup'
      480. main/.libs/main.o: In function `stat':
      481. /usr/mips-linux-gnu/include/sys/stat.h:457: undefined reference to `__xstat'
      482. main/.libs/main.o: In function `php_error_cb':
      483. /root/dt/php-5.6.17/main/main.c:1060: undefined reference to `__strdup'
      484. /root/dt/php-5.6.17/main/main.c:1061: undefined reference to `__strdup'
      485. main/.libs/main.o: In function `php_disable_classes':
      486. /root/dt/php-5.6.17/main/main.c:235: undefined reference to `__strdup'
      487. main/.libs/main.o: In function `php_disable_functions':
      488. /root/dt/php-5.6.17/main/main.c:197: undefined reference to `__strdup'
      489. main/.libs/main.o: In function `stat':
      490. /usr/mips-linux-gnu/include/sys/stat.h:457: undefined reference to `__xstat'
      491. main/.libs/snprintf.o: In function `__cvt':
      492. /root/dt/php-5.6.17/main/snprintf.c:102: undefined reference to `__strdup'
      493. main/.libs/snprintf.o: In function `format_converter':
      494. /root/dt/php-5.6.17/main/snprintf.c:1047: undefined reference to `__isnan'
      495. /root/dt/php-5.6.17/main/snprintf.c:1051: undefined reference to `__isinf'
      496. /root/dt/php-5.6.17/main/snprintf.c:1002: undefined reference to `__isnan'
      497. /root/dt/php-5.6.17/main/snprintf.c:1005: undefined reference to `__isinf'
      498. main/.libs/snprintf.o: In function `__cvt':
      499. /root/dt/php-5.6.17/main/snprintf.c:102: undefined reference to `__strdup'
      500. main/.libs/snprintf.o: In function `format_converter':
      501. /root/dt/php-5.6.17/main/snprintf.c:1047: undefined reference to `__isnan'
      502. /root/dt/php-5.6.17/main/snprintf.c:1051: undefined reference to `__isinf'
      503. /root/dt/php-5.6.17/main/snprintf.c:1002: undefined reference to `__isnan'
      504. /root/dt/php-5.6.17/main/snprintf.c:1005: undefined reference to `__isinf'
      505. main/.libs/spprintf.o: In function `xbuf_format_converter':
      506. /root/dt/php-5.6.17/main/spprintf.c:657: undefined reference to `__isnan'
      507. /root/dt/php-5.6.17/main/spprintf.c:612: undefined reference to `__isnan'
      508. /root/dt/php-5.6.17/main/spprintf.c:615: undefined reference to `__isinf'
      509. /root/dt/php-5.6.17/main/spprintf.c:661: undefined reference to `__isinf'
      510. /root/dt/php-5.6.17/main/spprintf.c:657: undefined reference to `__isnan'
      511. /root/dt/php-5.6.17/main/spprintf.c:612: undefined reference to `__isnan'
      512. /root/dt/php-5.6.17/main/spprintf.c:615: undefined reference to `__isinf'
      513. /root/dt/php-5.6.17/main/spprintf.c:661: undefined reference to `__isinf'
      514. main/.libs/SAPI.o: In function `sapi_get_stat':
      515. /root/dt/php-5.6.17/main/SAPI.c:1014: undefined reference to `__xstat'
      516. main/.libs/SAPI.o: In function `stat':
      517. /usr/mips-linux-gnu/include/sys/stat.h:457: undefined reference to `__xstat'
      518. main/.libs/php_variables.o: In function `zend_dval_to_lval':
      519. /root/dt/php-5.6.17/Zend/zend_operators.h:101: undefined reference to `fmod'
      520. main/.libs/php_variables.o: In function `php_default_treat_data':
      521. /root/dt/php-5.6.17/main/php_variables.c:444: undefined reference to `__strtok_r'
      522. /root/dt/php-5.6.17/main/php_variables.c:489: undefined reference to `__strtok_r'
      523. /root/dt/php-5.6.17/main/php_variables.c:454: undefined reference to `__strtok_r'
      524. main/.libs/php_variables.o: In function `zend_dval_to_lval':
      525. /root/dt/php-5.6.17/Zend/zend_operators.h:101: undefined reference to `fmod'
      526. main/.libs/php_variables.o: In function `php_default_treat_data':
      527. /root/dt/php-5.6.17/main/php_variables.c:444: undefined reference to `__strtok_r'
      528. /root/dt/php-5.6.17/main/php_variables.c:489: undefined reference to `__strtok_r'
      529. /root/dt/php-5.6.17/main/php_variables.c:489: undefined reference to `__strtok_r'
      530. main/streams/.libs/plain_wrapper.o: In function `php_plain_files_mkdir':
      531. /root/dt/php-5.6.17/main/streams/plain_wrapper.c:1202: undefined reference to `__xstat'
      532. main/streams/.libs/plain_wrapper.o: In function `stat':
      533. /usr/mips-linux-gnu/include/sys/stat.h:457: undefined reference to `__xstat'
      534. /usr/mips-linux-gnu/include/sys/stat.h:457: undefined reference to `__xstat'
      535. /usr/mips-linux-gnu/include/sys/stat.h:457: undefined reference to `__xstat'
      536. main/streams/.libs/plain_wrapper.o: In function `php_plain_files_url_stater':
      537. /root/dt/php-5.6.17/main/streams/plain_wrapper.c:1045: undefined reference to `__xstat'
      538. main/streams/.libs/plain_wrapper.o: In function `lstat':
      539. /usr/mips-linux-gnu/include/sys/stat.h:464: undefined reference to `__lxstat'
      540. main/streams/.libs/plain_wrapper.o: In function `fstat':
      541. /usr/mips-linux-gnu/include/sys/stat.h:471: undefined reference to `__fxstat'
      542. main/streams/.libs/plain_wrapper.o: In function `stat':
      543. /usr/mips-linux-gnu/include/sys/stat.h:457: undefined reference to `__xstat'
      544. /usr/mips-linux-gnu/include/sys/stat.h:457: undefined reference to `__xstat'
      545. /usr/mips-linux-gnu/include/sys/stat.h:457: undefined reference to `__xstat'
      546. /usr/mips-linux-gnu/include/sys/stat.h:457: undefined reference to `__xstat'
      547. /usr/mips-linux-gnu/include/sys/stat.h:457: undefined reference to `__lxstat'
      548. main/streams/.libs/plain_wrapper.o: In function `fstat':
      549. /usr/mips-linux-gnu/include/sys/stat.h:471: undefined reference to `__fxstat'
      550. main/streams/.libs/xp_socket.o: In function `fstat':
      551. /usr/mips-linux-gnu/include/sys/stat.h:471: undefined reference to `__fxstat'
      552. /usr/mips-linux-gnu/include/sys/stat.h:471: undefined reference to `__fxstat'
      553. Zend/.libs/zend_ini_parser.o: In function `zend_ini_get_var':
      554. /root/dt/php-5.6.17/Zend/zend_ini_parser.c:245: undefined reference to `__strdup'
      555. /root/dt/php-5.6.17/Zend/zend_ini_parser.c:245: undefined reference to `__strdup'
      556. Zend/.libs/zend_stream.o: In function `fstat':
      557. /usr/mips-linux-gnu/include/sys/stat.h:471: undefined reference to `__fxstat'
      558. /usr/mips-linux-gnu/include/sys/stat.h:471: undefined reference to `__fxstat'
      559. /usr/mips-linux-gnu/include/sys/stat.h:471: undefined reference to `__fxstat'
      560. /usr/mips-linux-gnu/include/sys/stat.h:471: undefined reference to `__fxstat'
      561. Zend/.libs/zend_virtual_cwd.o: In function `stat':
      562. /usr/mips-linux-gnu/include/sys/stat.h:457: undefined reference to `__xstat'
      563. /usr/mips-linux-gnu/include/sys/stat.h:457: undefined reference to `__xstat'
      564. Zend/.libs/zend_virtual_cwd.o: In function `tsrm_realpath_r':
      565. /root/dt/php-5.6.17/Zend/zend_virtual_cwd.c:1077: undefined reference to `__lxstat'
      566. /root/dt/php-5.6.17/Zend/zend_virtual_cwd.c:858: undefined reference to `__lxstat'
      567. Zend/.libs/zend_virtual_cwd.o: In function `realpath_cache_find':
      568. /root/dt/php-5.6.17/Zend/zend_virtual_cwd.c:730: undefined reference to `__lxstat'
      569. Zend/.libs/zend_virtual_cwd.o: In function `lstat':
      570. /usr/mips-linux-gnu/include/sys/stat.h:464: undefined reference to `__lxstat'
      571. Zend/.libs/zend_virtual_cwd.o: In function `virtual_cwd_startup':
      572. /root/dt/php-5.6.17/Zend/zend_virtual_cwd.c:475: undefined reference to `__strdup'
      573. Zend/.libs/zend_virtual_cwd.o: In function `stat':
      574. /usr/mips-linux-gnu/include/sys/stat.h:457: undefined reference to `__xstat'
      575. Zend/.libs/zend_virtual_cwd.o: In function `lstat':
      576. /usr/mips-linux-gnu/include/sys/stat.h:464: undefined reference to `__lxstat'
      577. Zend/.libs/zend_virtual_cwd.o: In function `stat':
      578. /usr/mips-linux-gnu/include/sys/stat.h:457: undefined reference to `__xstat'
      579. /usr/mips-linux-gnu/include/sys/stat.h:457: undefined reference to `__xstat'
      580. Zend/.libs/zend_virtual_cwd.o: In function `lstat':
      581. /usr/mips-linux-gnu/include/sys/stat.h:464: undefined reference to `__lxstat'
      582. Zend/.libs/zend_virtual_cwd.o: In function `virtual_cwd_startup':
      583. /root/dt/php-5.6.17/Zend/zend_virtual_cwd.c:475: undefined reference to `__strdup'
      584. Zend/.libs/zend_virtual_cwd.o: In function `stat':
      585. /usr/mips-linux-gnu/include/sys/stat.h:457: undefined reference to `__xstat'
      586. Zend/.libs/zend_virtual_cwd.o: In function `lstat':
      587. /usr/mips-linux-gnu/include/sys/stat.h:464: undefined reference to `__lxstat'
      588. sapi/cli/.libs/ps_title.o: In function `save_ps_args':
      589. /root/dt/php-5.6.17/sapi/cli/ps_title.c:191: undefined reference to `__strdup'
      590. /root/dt/php-5.6.17/sapi/cli/ps_title.c:222: undefined reference to `__strdup'
      591. /root/dt/php-5.6.17/sapi/cli/ps_title.c:191: undefined reference to `__strdup'
      592. /root/dt/php-5.6.17/sapi/cli/ps_title.c:222: undefined reference to `__strdup'
      593. collect2: ld returned 1 exit status
      594. Makefile:234: recipe for target 'sapi/cli/php' failed
      595. make: *** [sapi/cli/php] Error 1
      596. root@test:~/dt/php-5.6.17#

      @Stricted:

      der harte Weg, wenn 'ne Lib fehlt: grep -rnia 'funktionsname' .
      aus geführt im Baseverzeichnis, notfalls '/' ;) --> gibt alle Dateien in denen der Begriff vorkommt. (so hab' ich die Libs der API zusammen gesucht...)

      der leichtere: Funktionsname googlen ;)

      Sieht aber danach aus, als würde die LibC fehlen... der Router nimmt uClibC :(
      Also mußt du entweder die LibC statisch einbinden, oder PHP auf uClibC umkonfigurieren...

      mfg, emkay
      ooooooh
      hab jetzt die configure file angepasst

      Quellcode

      1. Build complete.
      2. Don't forget to run 'make test'.

      yay

      edit:

      Quellcode

      1. # ./php -v
      2. PHP 5.6.17 (cli) (built: Jan 28 2016 22:42:26)
      3. Copyright (c) 1997-2015 The PHP Group
      4. Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies
      5. #

      kann es aufm router ausführen <3

      Brainfuck-Quellcode

      1. # ./php -r "echo shell_exec('/tmp/sphfreq');"
      2. *** sphfreq v1.0 (c)2016 @speedUpLoop / emkay ***
      3. Usage: sphfreq [show/watch/all/800/1800/2600/low/high]
      4. Setting LTE-Band / Frequency of Telekom-Speedport-Hybrid
      5. Options:
      6. show show current lte-config
      7. watch similar to 'show' - with auto-update
      8. ------------------------------------------------------------------
      9. all allow 800MHz, 1800MHz, 2600MHz --> hex-mask 80044
      10. 800 allow 800MHz --> hex-mask 80000
      11. 1800 allow 1800MHz --> hex-mask 4
      12. 2600 allow 2600MHz --> hex-mask 40
      13. low allow 800MHz, 1800MHz --> hex-mask 80004
      14. high allow 1800MHz, 2600MHz --> hex-mask 44
      15. #