Subject: pkg/20306: php4-session package has unresolved symbols
To: None <>
From: Mark Davies <>
List: netbsd-bugs
Date: 02/12/2003 14:12:17
>Number:         20306
>Category:       pkg
>Synopsis:       php4-session package has unresolved symbols
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Feb 11 17:13:00 PST 2003
>Originator:     Mark Davies
>Release:        NetBSD 1.6L
Dept. of Comp. Sci., Victoria Uni. of Wellington, New Zealand.
System: NetBSD 1.6L NetBSD 1.6L (MCS_WORKSTATION) #0: Fri Jan 17 15:03:28 NZDT 2003 i386
Architecture: i386
Machine: i386

The php4-session package fails (to run) for me with unresolved symbols
when loaded into php

Those symbols are:
from ext/standard/url_scanner.c and they are not in the php binary, presumably 
because when php is linked nothing references these to cause url_scanner.o to
be pulled out of libphp.a.

	Add "" to a php.ini file and run

	php test.php

	where test.php looks something like:

=  <?php
=  session_start();
=  if (isset($HTTP_SESSION_VARS['count'])) {
=     $HTTP_SESSION_VARS['count']++;
=  }
=  else {
=     $HTTP_SESSION_VARS['count'] = 0;
=  }
=  ?>
=  Hello visitor, you have seen this page
=   <?php echo $HTTP_SESSION_VARS['count']; ?> times.<p>;

Note the following error:

/usr/pkg/lib/php/20020429/ Undefined PLT symbol "php_url_scanner_activate" (reloc type = 7, symnum = 62)

	Certainly explicitly adding url_scanner.o to the php link fixes the
	problem but there should be a better way and there may be other files
	that suffer the same problem for other php dynamically loaded modules.