title: PHP undefined reference to `ts_resource_ex'
body: <p>I'm trying to recompile PHP to include pgsql and to enable ZTS, but I keep getting a recurring error code:</p>
  
  <pre><code>sudo ./configure --prefix=/home/me/php --with-config-file-path=/etc --with-pgsql=shared --enable-maintainer-zts
  sudo make
  </code></pre>
  
  <p>and the error: </p>
  
  <blockquote>
    <p>ext/standard/.libs/info.o: In function <code>php_info_printf':
    /home/me/workspace/php5-5.5.9+dfsg/ext/standard/info.c:83:
    undefined reference to</code>ts_resource_ex' ext/standard/.libs/info.o: In
    function <code>php_info_print':
    /home/me/workspace/php5-5.5.9+dfsg/ext/standard/info.c:97:
    undefined reference to</code>ts_resource_ex' ext/standard/.libs/info.o: In
    function <code>php_info_print_html_esc':
    /home/me/workspace/php5-5.5.9+dfsg/ext/standard/info.c:69:
    undefined reference to</code>ts_resource_ex' ext/standard/.libs/info.o: In
    function <code>php_print_gpcse_array':
    /home/me/workspace/php5-5.5.9+dfsg/ext/standard/info.c:204:
    undefined reference to</code>executor_globals_id'
    ext/standard/.libs/info.o: In function <code>php_print_info':
    /home/me/workspace/php5-5.5.9+dfsg/ext/standard/info.c:869:
    undefined reference to</code>executor_globals_id' collect2: error: ld
    returned 1 exit status</p>
  </blockquote>