SHARE
TWEET

Untitled

a guest Nov 8th, 2019 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [root@us-01 custombuild]# wget https://pecl.php.net/get/timezonedb-2019.3.tgz
  2. --2019-11-08 16:43:20--  https://pecl.php.net/get/timezonedb-2019.3.tgz
  3. Resolving pecl.php.net (pecl.php.net)... 104.236.228.160
  4. Connecting to pecl.php.net (pecl.php.net)|104.236.228.160|:443... connected.
  5. HTTP request sent, awaiting response... 200 OK
  6. Length: 413166 (403K) [application/octet-stream]
  7. Saving to: 'timezonedb-2019.3.tgz'
  8.  
  9. 100%[================================================================================================================================================================>] 413,166     2.00MB/s   in 0.2s
  10.  
  11. 2019-11-08 16:43:21 (2.00 MB/s) - 'timezonedb-2019.3.tgz' saved [413166/413166]
  12.  
  13. [root@us-01 custombuild]# tar xvzf timezonedb-2019.3.tgz
  14. package.xml
  15. timezonedb-2019.3/config.m4
  16. timezonedb-2019.3/config.w32
  17. timezonedb-2019.3/CREDITS
  18. timezonedb-2019.3/LICENSE
  19. timezonedb-2019.3/php_timezonedb.h
  20. timezonedb-2019.3/timezonedb.c
  21. timezonedb-2019.3/timezonedb.h
  22. [root@us-01 custombuild]# cd timezonedb-2019.3
  23. [root@us-01 timezonedb-2019.3]# /usr/local/php72/bin/phpize
  24. Configuring for:
  25. PHP Api Version:         20170718
  26. Zend Module Api No:      20170718
  27. Zend Extension Api No:   320170718
  28. [root@us-01 timezonedb-2019.3]# ./configure --with-php-config=/usr/local/php72/bin/php-config
  29. checking for grep that handles long lines and -e... /usr/bin/grep
  30. checking for egrep... /usr/bin/grep -E
  31. checking for a sed that does not truncate output... /usr/bin/sed
  32. checking for cc... cc
  33. checking whether the C compiler works... yes
  34. checking for C compiler default output file name... a.out
  35. checking for suffix of executables...
  36. checking whether we are cross compiling... no
  37. checking for suffix of object files... o
  38. checking whether we are using the GNU C compiler... yes
  39. checking whether cc accepts -g... yes
  40. checking for cc option to accept ISO C89... none needed
  41. checking how to run the C preprocessor... cc -E
  42. checking for icc... no
  43. checking for suncc... no
  44. checking whether cc understands -c and -o together... yes
  45. checking for system library directory... lib
  46. checking if compiler supports -R... no
  47. checking if compiler supports -Wl,-rpath,... yes
  48. checking build system type... x86_64-unknown-linux-gnu
  49. checking host system type... x86_64-unknown-linux-gnu
  50. checking target system type... x86_64-unknown-linux-gnu
  51. checking for PHP prefix... /usr/local/php72
  52. checking for PHP includes... -I/usr/local/php72/include/php -I/usr/local/php72/include/php/main -I/usr/local/php72/include/php/TSRM -I/usr/local/php72/include/php/Zend -I/usr/local/php72/include/php/ext -I/usr/local/php72/include/php/ext/date/lib
  53. checking for PHP extension directory... /usr/local/php72/lib/php/extensions/no-debug-non-zts-20170718
  54. checking for PHP installed headers prefix... /usr/local/php72/include/php
  55. checking if debug is enabled... no
  56. checking if zts is enabled... no
  57. checking for re2c... no
  58. configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
  59. checking for gawk... gawk
  60. checking whether to enable timezonedb support... yes, shared
  61. checking for ld used by cc... /usr/bin/ld
  62. checking if the linker (/usr/bin/ld) is GNU ld... yes
  63. checking for /usr/bin/ld option to reload object files... -r
  64. checking for BSD-compatible nm... /usr/bin/nm -B
  65. checking whether ln -s works... yes
  66. checking how to recognize dependent libraries... pass_all
  67. checking for ANSI C header files... yes
  68. checking for sys/types.h... yes
  69. checking for sys/stat.h... yes
  70. checking for stdlib.h... yes
  71. checking for string.h... yes
  72. checking for memory.h... yes
  73. checking for strings.h... yes
  74. checking for inttypes.h... yes
  75. checking for stdint.h... yes
  76. checking for unistd.h... yes
  77. checking dlfcn.h usability... yes
  78. checking dlfcn.h presence... yes
  79. checking for dlfcn.h... yes
  80. checking the maximum length of command line arguments... 1966080
  81. checking command to parse /usr/bin/nm -B output from cc object... ok
  82. checking for objdir... .libs
  83. checking for ar... ar
  84. checking for ranlib... ranlib
  85. checking for strip... strip
  86. checking if cc supports -fno-rtti -fno-exceptions... no
  87. checking for cc option to produce PIC... -fPIC
  88. checking if cc PIC flag -fPIC works... yes
  89. checking if cc static flag -static works... no
  90. checking if cc supports -c -o file.o... yes
  91. checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
  92. checking whether -lc should be explicitly linked in... no
  93. checking dynamic linker characteristics... GNU/Linux ld.so
  94. checking how to hardcode library paths into programs... immediate
  95. checking whether stripping libraries is possible... yes
  96. checking if libtool supports shared libraries... yes
  97. checking whether to build shared libraries... yes
  98. checking whether to build static libraries... no
  99.  
  100. creating libtool
  101. appending configuration tag "CXX" to libtool
  102. configure: creating ./config.status
  103. config.status: creating config.h
  104. [root@us-01 timezonedb-2019.3]# make
  105. /bin/sh /usr/local/directadmin/custombuild/timezonedb-2019.3/libtool --mode=compile cc  -I. -I/usr/local/directadmin/custombuild/timezonedb-2019.3 -DPHP_ATOM_INC -I/usr/local/directadmin/custombuild/timezonedb-2019.3/include -I/usr/local/directadmin/custombuild/timezonedb-2019.3/main -I/usr/local/directadmin/custombuild/timezonedb-2019.3 -I/usr/local/php72/include/php -I/usr/local/php72/include/php/main -I/usr/local/php72/include/php/TSRM -I/usr/local/php72/include/php/Zend -I/usr/local/php72/include/php/ext -I/usr/local/php72/include/php/ext/date/lib -I/usr/local/php72/include/php/ext/date/lib  -Wall -DHAVE_CONFIG_H  -g -O2   -c /usr/local/directadmin/custombuild/timezonedb-2019.3/timezonedb.c -o timezonedb.lo
  106. mkdir .libs
  107.  cc -I. -I/usr/local/directadmin/custombuild/timezonedb-2019.3 -DPHP_ATOM_INC -I/usr/local/directadmin/custombuild/timezonedb-2019.3/include -I/usr/local/directadmin/custombuild/timezonedb-2019.3/main -I/usr/local/directadmin/custombuild/timezonedb-2019.3 -I/usr/local/php72/include/php -I/usr/local/php72/include/php/main -I/usr/local/php72/include/php/TSRM -I/usr/local/php72/include/php/Zend -I/usr/local/php72/include/php/ext -I/usr/local/php72/include/php/ext/date/lib -I/usr/local/php72/include/php/ext/date/lib -Wall -DHAVE_CONFIG_H -g -O2 -c /usr/local/directadmin/custombuild/timezonedb-2019.3/timezonedb.c  -fPIC -DPIC -o .libs/timezonedb.o
  108. /usr/local/directadmin/custombuild/timezonedb-2019.3/timezonedb.c: In function 'zm_startup_timezonedb':
  109. /usr/local/directadmin/custombuild/timezonedb-2019.3/timezonedb.c:96:2: warning: passing argument 1 of 'php_date_set_tzdb' discards 'const' qualifier from pointer target type [enabled by default]
  110.   php_date_set_tzdb(&timezonedb_external);
  111.   ^
  112. In file included from /usr/local/directadmin/custombuild/timezonedb-2019.3/timezonedb.c:30:0:
  113. /usr/local/php72/include/php/ext/date/php_date.h:221:13: note: expected 'struct timelib_tzdb *' but argument is of type 'const struct timelib_tzdb *'
  114.  PHPAPI void php_date_set_tzdb(timelib_tzdb *tzdb);
  115.              ^
  116. /usr/local/directadmin/custombuild/timezonedb-2019.3/timezonedb.c: In function 'zm_info_timezonedb':
  117. /usr/local/directadmin/custombuild/timezonedb-2019.3/timezonedb.c:113:23: warning: initialization discards 'const' qualifier from pointer target type [enabled by default]
  118.   timelib_tzdb *tzdb = &timezonedb_external;
  119.                        ^
  120. /bin/sh /usr/local/directadmin/custombuild/timezonedb-2019.3/libtool --mode=link cc -DPHP_ATOM_INC -I/usr/local/directadmin/custombuild/timezonedb-2019.3/include -I/usr/local/directadmin/custombuild/timezonedb-2019.3/main -I/usr/local/directadmin/custombuild/timezonedb-2019.3 -I/usr/local/php72/include/php -I/usr/local/php72/include/php/main -I/usr/local/php72/include/php/TSRM -I/usr/local/php72/include/php/Zend -I/usr/local/php72/include/php/ext -I/usr/local/php72/include/php/ext/date/lib -I/usr/local/php72/include/php/ext/date/lib  -Wall -DHAVE_CONFIG_H  -g -O2    -o timezonedb.la -export-dynamic -avoid-version -prefer-pic -module -rpath /usr/local/directadmin/custombuild/timezonedb-2019.3/modules  timezonedb.lo
  121. cc -shared  .libs/timezonedb.o   -Wl,-soname -Wl,timezonedb.so -o .libs/timezonedb.so
  122. creating timezonedb.la
  123. (cd .libs && rm -f timezonedb.la && ln -s ../timezonedb.la timezonedb.la)
  124. /bin/sh /usr/local/directadmin/custombuild/timezonedb-2019.3/libtool --mode=install cp ./timezonedb.la /usr/local/directadmin/custombuild/timezonedb-2019.3/modules
  125. cp ./.libs/timezonedb.so /usr/local/directadmin/custombuild/timezonedb-2019.3/modules/timezonedb.so
  126. cp ./.libs/timezonedb.lai /usr/local/directadmin/custombuild/timezonedb-2019.3/modules/timezonedb.la
  127. PATH="$PATH:/sbin" ldconfig -n /usr/local/directadmin/custombuild/timezonedb-2019.3/modules
  128. ----------------------------------------------------------------------
  129. Libraries have been installed in:
  130.    /usr/local/directadmin/custombuild/timezonedb-2019.3/modules
  131.  
  132. If you ever happen to want to link against installed libraries
  133. in a given directory, LIBDIR, you must either use libtool, and
  134. specify the full pathname of the library, or use the `-LLIBDIR'
  135. flag during linking and do at least one of the following:
  136.   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
  137.      during execution
  138.    - add LIBDIR to the `LD_RUN_PATH' environment variable
  139.     during linking
  140.   - use the `-Wl,--rpath -Wl,LIBDIR' linker flag
  141.    - have your system administrator add LIBDIR to `/etc/ld.so.conf'
  142.  
  143. See any operating system documentation about shared libraries for
  144. more information, such as the ld(1) and ld.so(8) manual pages.
  145. ----------------------------------------------------------------------
  146.  
  147. Build complete.
  148. Don't forget to run 'make test'.
  149.  
  150. [root@us-01 timezonedb-2019.3]# make install
  151. Installing shared extensions:     /usr/local/php72/lib/php/extensions/no-debug-non-zts-20170718/
  152. [root@us-01 timezonedb-2019.3]# echo "extension=timezonedb.so" >> /usr/local/php72/lib/php.conf.d/99-custom.ini
  153. [root@us-01 timezonedb-2019.3]# service httpd restart
  154. Redirecting to /bin/systemctl restart httpd.service
  155. [root@us-01 timezonedb-2019.3]# cat /usr/local/php72/lib/php.conf.d/99-custom.ini
  156. extension=timezonedb.so
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top