2.0.1 issue: complains about missing gtkhtml.3.0.dll

View: New views
9 Messages — Rating Filter:   Alert me  

2.0.1 issue: complains about missing gtkhtml.3.0.dll

by André Jansen-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,

Just found a bit of time to start testing the 2.0.1 release.

Done with tweaking the ini file and the extensions, when running my first
test php-win.exe complained it could not find gtkhtml.3.0.dll.

I have not found trace of this file in any other php-gtk distribution
thus far, a web search turned up zilch.

Removing php-gtk-html2.dll from the extension list (the dll file exists
in the extension dir) in the ini file stopped php-win.exe from
complaining, but of course this means that GtkHtml will not be available.

Any clues?

Cheers,
--
André
===========================================================
Black Holes were created when God divided by zero.


--
PHP-GTK General Mailing List (http://gtk.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: 2.0.1 issue: complains about missing gtkhtml.3.0.dll

by Elizabeth M Smith :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

André Jansen wrote:

> Hi all,
>
> Just found a bit of time to start testing the 2.0.1 release.
>
> Done with tweaking the ini file and the extensions, when running my first
> test php-win.exe complained it could not find gtkhtml.3.0.dll.
>
> I have not found trace of this file in any other php-gtk distribution
> thus far, a web search turned up zilch.
>
> Removing php-gtk-html2.dll from the extension list (the dll file exists
> in the extension dir) in the ini file stopped php-win.exe from
> complaining, but of course this means that GtkHtml will not be available.
>
> Any clues?
>
> Cheers,

php_gtk_html2.dll is an extension - if you look there is a separate
binary package for people using PHP-GTK extensions on windows.  PLEASE
read the README included in the php-gtk download.

Thanks,
Elizabeth

--
PHP-GTK General Mailing List (http://gtk.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: Re: 2.0.1 issue: complains about missing gtkhtml.3.0.dll

by André Jansen-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 28 May 2008 at 9:04, Elizabeth M Smith wrote:

> André Jansen wrote:
> > Hi all,
> >
> > Just found a bit of time to start testing the 2.0.1 release.
> >
> > Done with tweaking the ini file and the extensions, when running my
> > first test php-win.exe complained it could not find gtkhtml.3.0.dll.
> >
> > I have not found trace of this file in any other php-gtk distribution
> > thus far, a web search turned up zilch.
> >
> > Removing php-gtk-html2.dll from the extension list (the dll file exists
> > in the extension dir) in the ini file stopped php-win.exe from
> > complaining, but of course this means that GtkHtml will not be
> > available.
> >
> > Any clues?
> >
> > Cheers,
>
> php_gtk_html2.dll is an extension - if you look there is a separate
> binary package for people using PHP-GTK extensions on windows.  PLEASE
> read the README included in the php-gtk download.

I *have* read the readme file, and I do have the extension binary package
installed, in fact php_gtk_html2.dll is *right there* in the extension
dir.
My best guess is that the problem originates with the gtk runtime
included in the 2.0.1 binary package, which according to
gtk::get_version() is 2.12.9.
I downloaded the full 2.12.9 binary package (including dependencies) from
gtk.org just to take a look at it, but this package does not appear to
include gtkhtml, so I think I'm stuck here.

> Thanks,
> Elizabeth

--
André
===========================================================
Black Holes were created when God divided by zero.


--
PHP-GTK General Mailing List (http://gtk.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: Re: 2.0.1 issue: complains about missing gtkhtml.3.0.dll

by Elizabeth M Smith :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


> I *have* read the readme file, and I do have the extension binary package
> installed, in fact php_gtk_html2.dll is *right there* in the extension
> dir.
> My best guess is that the problem originates with the gtk runtime
> included in the 2.0.1 binary package, which according to
> gtk::get_version() is 2.12.9.
> I downloaded the full 2.12.9 binary package (including dependencies) from
> gtk.org just to take a look at it, but this package does not appear to
> include gtkhtml, so I think I'm stuck here.

You can try renaming the libgtkhtml-3.1.4.dll or whatever it is to the
expected filename.  It appears that the libraries I used to build
gtkhtml were messed up - you can get it to run after the rename.

For the record you can find the libraries I used at
ftp://ftp.gnome.org/pub/gnome/binaries/win32/ - including any additional
dependencies I might have missed.  GtkHTML is very dependency heavy, and
I might have missed some.

Thanks,
Elizabeth


--
PHP-GTK General Mailing List (http://gtk.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


2.0.1 Dependency Hell, was:2.0.1 issue: complains about missing gtkhtml.3.0.dll

by André Jansen-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 28 May 2008 at 15:04, Elizabeth M Smith wrote:

>
> You can try renaming the libgtkhtml-3.1.4.dll or whatever it is to the
> expected filename.  It appears that the libraries I used to build gtkhtml
> were messed up - you can get it to run after the rename.

The missing DLL that php-win.exe complained about was called gtkhtml-
3.0.dll, so I made a copy of libgtkhtml-3.14-18 and renamed it. No luck,
it loaded successfully BUT then there was a complaint about an entry
point that could not be found :-(.

I used Sysinternals' Process Explorer and Process Monitor to try to
figure out what was happening, and I noticed that php-win.exe was loading
quite some gtk stuff from another, older gtk runtime (gnope, methinks)
that happened to be in my path.
Just to make sure, I removed it from my path and tried again.
There were *lots* of loud complaints about missing DLLs.

So I went to take a look at the php-gtk install that I had actually been
using up till now, which was the 2.0 beta (which is *not* in my path) and
all of the DLLs subject of the complaints were included in this install,
but actually missing from 2.0.1

I then proceeded to simply copy over the missing DLLs from the 2.0 beta
install, and it seems to work, the complaints stopped. But I probably
ended up with an inconsistent gtk runtime.

The "can't find entry point in gtkhtml-3.0.dll" complaint however
persisted. While I was at it, I replaced php_gtk_html2.dll with the older
version from 2.0 beta, and libgtkhtml-3.14-18 with the older 3.8-15
version, also from the 2.0 beta. This appears to have solved the GtkHtml
problem, at least now the GtkHtml class is visible in the inspector,
including its methods and properties. Note, replacing only libgtkhtml
does not work.

I wonder if I was the only one to run into this problem. I do suspect
that many others who have tried 2.0.1 might have an existing, older gtk
runtime in their path (Gnope!) and got fooled like I did initially.

>
> For the record you can find the libraries I used at
> ftp://ftp.gnome.org/pub/gnome/binaries/win32/ - including any additional
> dependencies I might have missed.  GtkHTML is very dependency heavy, and I
> might have missed some.

Hmm... trying to work out any dependencies that might exist between all
that stuff is going to involve some serious tinkering.

Cheers,
--
André
===========================================================
Black Holes were created when God divided by zero.


--
PHP-GTK General Mailing List (http://gtk.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: 2.0.1 Dependency Hell, was:2.0.1 issue: complains about missing gtkhtml.3.0.dll

by Elizabeth M Smith :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

André Jansen wrote:

> On 28 May 2008 at 15:04, Elizabeth M Smith wrote:
>
>> You can try renaming the libgtkhtml-3.1.4.dll or whatever it is to the
>> expected filename.  It appears that the libraries I used to build gtkhtml
>> were messed up - you can get it to run after the rename.
>
> The missing DLL that php-win.exe complained about was called gtkhtml-
> 3.0.dll, so I made a copy of libgtkhtml-3.14-18 and renamed it. No luck,
> it loaded successfully BUT then there was a complaint about an entry
> point that could not be found :-(.
>
> I used Sysinternals' Process Explorer and Process Monitor to try to
> figure out what was happening, and I noticed that php-win.exe was loading
> quite some gtk stuff from another, older gtk runtime (gnope, methinks)
> that happened to be in my path.
> Just to make sure, I removed it from my path and tried again.
> There were *lots* of loud complaints about missing DLLs.
>

Actually, did you restart after removing them from your PATH?  No-one
has had any issues with the stock PHP-GTK2 2.0.1 (no php-gtk extensions)
using the supplied libraries - on a virgin system.  The issue is
changing the Windows PATH without restarting is ...flakey at best.  I
usually tell people to PLEASE make sure they don't have gnope installed
or have any other PHP or GTK in their PATH environment variables.  It
just turns using any version of GTK into dll hell (as you've seen).
Instead if you leave the gtk libraries in the same directory as php.exe
(or php-win.exe) they will be found and loaded.  The problem is that
windows searches PATH first - hence the issues.

As for gtkhtml, I'm not even sure the binaries provided by gnome work ;)
 I just don't have my own builds of those libraries completed yet and
people have been whining for the extension so I just used their builds.

It gets more complicated because gtk has changed the way they build the
windows libraries in the 2.12 series, they're using a different
libiconv, so stuff is even more confusing and prone to error.  At some
point PHP-GTK will have their own build of the required GTK libraries,
built with the Microsoft Compiler, and these issues will be a thing of
the past.  Until then we have to deal with the builds that gtk.org
provides for windows.

Thanks,
Elizabeth

--
PHP-GTK General Mailing List (http://gtk.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: Re: 2.0.1 Dependency Hell, was:2.0.1 issue: complains about missing gtkhtml.3.0.dll

by André Jansen-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 28 May 2008 at 20:40, Elizabeth M Smith wrote:

> André Jansen wrote:
> >
> > I used Sysinternals' Process Explorer and Process Monitor to try to
> > figure out what was happening, and I noticed that php-win.exe was
> > loading quite some gtk stuff from another, older gtk runtime (gnope,
> > methinks) that happened to be in my path. Just to make sure, I removed
> > it from my path and tried again. There were *lots* of loud complaints
> > about missing DLLs.
> >
>
> Actually, did you restart after removing them from your PATH?  No-one has
> had any issues with the stock PHP-GTK2 2.0.1 (no php-gtk extensions) using
> the supplied libraries - on a virgin system.  The issue is changing the
> Windows PATH without restarting is ...flakey at best.  I usually tell
> people to PLEASE make sure they don't have gnope installed or have any
> other PHP or GTK in their PATH environment variables.  It just turns using
> any version of GTK into dll hell (as you've seen). Instead if you leave
> the gtk libraries in the same directory as php.exe (or php-win.exe) they
> will be found and loaded.  The problem is that windows searches PATH first
> - hence the issues.
>
Of course I did restart, since I know that changing just about anything
in Windows without following up with a reboot is likely to produce flaky
results. Experience gained from god knows how many win2k and winxp
desktop machine rebuilds...

I'll be trying 2.0.1 on one of my spare win2k machines... they never had
gnope or GIMP (another possible source of gtk runtime in path), though
both have php-gtk 2.0 beta. I'll just replace the 2.0 beta with the 2.0.1
and see what happens and let you know. Might be a few days before I get
back. I need gd2, mbstring, and mysqli so I might run into some issues.

Cheers,
--
André
===========================================================
Black Holes were created when God divided by zero.


--
PHP-GTK General Mailing List (http://gtk.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: Re: 2.0.1 Dependency Hell, was:2.0.1 issue: complains about missing gtkhtml.3.0.dll

by Elizabeth M Smith :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


> Of course I did restart, since I know that changing just about anything
> in Windows without following up with a reboot is likely to produce flaky
> results. Experience gained from god knows how many win2k and winxp
> desktop machine rebuilds...
>
> I'll be trying 2.0.1 on one of my spare win2k machines... they never had
> gnope or GIMP (another possible source of gtk runtime in path), though
> both have php-gtk 2.0 beta. I'll just replace the 2.0 beta with the 2.0.1
> and see what happens and let you know. Might be a few days before I get
> back. I need gd2, mbstring, and mysqli so I might run into some issues.
>
> Cheers,

Ah, yes, I would say it's GIMP, because it does put a global gtk install
in path.  The other issue is I'm not sure how good the support for
windows 2000 is for GTK anymore, they've made a lot of changes in the
2.12 series - theoretically it should work, but windows is known for
blowing up....

Thanks,
Elizabeth

--
PHP-GTK General Mailing List (http://gtk.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: Re: 2.0.1 Dependency Hell, was:2.0.1 issue: complains about missing gtkhtml.3.0.dll

by André Jansen-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 29 May 2008 at 8:28, Elizabeth M Smith wrote:

>
> Ah, yes, I would say it's GIMP, because it does put a global gtk install
> in path.  The other issue is I'm not sure how good the support for windows
> 2000 is for GTK anymore, they've made a lot of changes in the 2.12 series
> - theoretically it should work, but windows is known for blowing up....

I don't think win2k is the issue, as it's basically winxp without the
frilly dress and the makeup. Anything that works on winxp should work on
win2k. E.g. I often bump into hardware that does not have win2k specific
drivers, so I use the winxp driver. Never had any problems.

However, I have run into instances where bad coding has given me grief. I
recall some software that had the windows dir hardcoded as 'C:\WINDOWS'.
Of course, it would not run on win2k. But I really don't think the gtk
people are *that* stupid ;-)

cheers
--
André
===========================================================
Black Holes were created when God divided by zero.


--
PHP-GTK General Mailing List (http://gtk.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php