Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 90570 - php-gtk load error: "undefined symbol: gtk_shpaned_new"
Summary: php-gtk load error: "undefined symbol: gtk_shpaned_new"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: PHP Bugs
URL: http://bugs.php.net/bug.php?id=36100
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-26 20:24 UTC by Joshua Pettett
Modified: 2006-01-20 10:09 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
php-gtk-1.0.2-undefined-symbol.diff (gtk_shpaned_new-undefined-symbol.diff,931 bytes, patch)
2006-01-20 07:00 UTC, Jakub Moc (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Joshua Pettett 2005-04-26 20:24:12 UTC
php-gtk (tested both 1.0.0 portage ebuild and 1.0.1 ebuild from #61559) compiled fine (presumably), but when I tried to use it I got the following fatal error:

"Warning: dl(): Unable to load dynamic library '/usr/lib/php/extensions/no-debug-non-zts-20020429/php_gtk.so' - /usr/lib/php/extensions/no-debug-non-zts-20020429/php_gtk.so: undefined symbol: gtk_shpaned_new in..."

Thanks to a comment by 'lagb02@cox.net' on 'http://gtk.php.net/manual/en/', I was able to correct this problem by adding the line

#include "ext/spaned/gtkshpaned.c"

to main/php_gtk_ext.c.in after the source had been unpacked.

Reproducible: Always
Steps to Reproduce:
1. emerge php-gtk
2. run php
3. load php-gtk.so (either by setting php.ini, or using dl())

Actual Results:  
php-gtk extension fails to load.  

Expected Results:  
php-gtk loading without error. 

# php -v 
PHP 4.3.11 (cli) (built: Apr 11 2005 20:23:37) 
Copyright (c) 1997-2004 The PHP Group 
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies 
 
# emerge info 
Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130, 
glibc-2.3.4.20041102-r1, 2.6.11-hardened-r1genkernel.custom i686) 
================================================================= 
System uname: 2.6.11-hardened-r1genkernel.custom i686 AMD Athlon(tm) XP 1800+ 
Gentoo Base System version 1.4.16 
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 10 2005, 
20:48:45)] 
ccache version 2.3 [enabled] 
dev-lang/python:     2.3.4-r1 
sys-devel/autoconf:  2.59-r6, 2.13 
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4 
sys-devel/binutils:  2.15.92.0.2-r7 
sys-devel/libtool:   1.5.14 
virtual/os-headers:  2.6.8.1-r2 
ACCEPT_KEYWORDS="x86" 
AUTOCLEAN="yes" 
CFLAGS="-O3 -march=athlon-xp -fomit-frame-pointer -pipe" 
CHOST="i686-pc-linux-gnu" 
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown/usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/afs/C /etc/afs/afsws /etc/gconf /etc/terminfo /etc/env.d" 
CXXFLAGS="-O3 -march=athlon-xp -fomit-frame-pointer -pipe" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict" 
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo 
http://open-systems.ufl.edu/mirrors/gentoo 
http://mirrors.acm.cs.rpi.edu/gentoo/ http://mirror.datapipe.net/gentoo 
http://gentoo.chem.wisc.edu/gentoo/" 
MAKEOPTS="-j2" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/usr/local/portage" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
USE="x86 3dnow X acl adns afs aim alsa apm arts avi bash-completion berkdb 
bitmap-fonts caps cdr cpdflib crypt cscope cups curl dbx dga dio directfb doc 
emboss encode esd fam fbcon flac flash flatfile foomaticdb fortranftp gd gdbm 
gif gmp gnome gpm gstreamer gtk gtk2 hardened hardenedphp imagemagick imap 
imlib innodb ipv6 jabber java joystick jpeg kde kerberos krb4 ldap libg++ 
libwww mad mhash mikmod mime ming mmx motif mozilla mp3 mpeg mysql mysqli nas 
ncurses nis nls nptl ogg oggvorbis opengl oscar pam pcntl pcre pda pdflib perl 
php pic piepng posix prelude python qt quicktime readline samba sapdb sasl sdl 
session shared sharedmem simplexml slang soap sockets spell spl sqlite sse ssl 
svga sysvipc tcltk tcpd tetex threads tidy tiff tokenizer truetype 
truetype-fonts type1-fonts vhosts videos vorbis wmf xml xml2 xmlrpc xmms xosd 
xv yahoo zlib" 
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Sebastian Bergmann (RETIRED) gentoo-dev 2005-05-06 01:42:10 UTC
dev-php/php-gtk-1.0.1 is in portage now, please reopen if the problem persists.
Comment 2 Joshua Pettett 2005-05-07 10:20:32 UTC
I just recompiled using the latest portage ebuild and got the same result in both the error and the fix.
Comment 3 Joshua Pettett 2005-07-16 07:46:19 UTC
Same results observed with php-gtk 1.0.2 
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2006-01-20 03:57:36 UTC
Reported upstream - http://bugs.php.net/bug.php?id=36100
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2006-01-20 07:00:55 UTC
Created attachment 77646 [details, diff]
php-gtk-1.0.2-undefined-symbol.diff

Please, test this upstream patch.
Comment 6 Luca Longinotti (RETIRED) gentoo-dev 2006-01-20 10:09:11 UTC
Patch applied to dev-php4/php-gtk-1.0.2, please emerge sync again in a few hours and emerge dev-php4/php-gtk again to (hopefully) fix this, thanks!
Best regards, CHTEKK.