Re: gen_gtk.h missing!
| From: | Alan Knowles | Date: | Mon, 02 Dec 2002 07:02:46 +0000 |
| Subject: | Re: gen_gtk.h missing! | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-2769@lists.php.net to get a copy of this message | ||
have a look at your Makefile in the php-gtk root directory:
there should be a few lines a bit like this.
./ext/gtk+/php_gtk+.lo: /usr/src/php/php-gtk/./ext/gtk+/php_gtk+.c
$(LIBTOOL) --mode=compile $(CC) -I./ext/gtk+/ -I/usr/src/php/php-gtk/./ext/gtk+/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -prefer-pic -c /usr/src/php/php-gtk/./ext/gtk+/php_gtk+.c -o ./ext/gtk+/php_gtk+.lo<- at this point there should be a line break (looking at the stuff below - it appears to have lost that linebreak. = can you confirm this?) ./ext/gtk+/php_gdk.lo: /usr/src/php/php-gtk/./ext/gtk+/php_gdk.c
$(LIBTOOL) --mode=compile $(CC) -I./ext/gtk+/ -I/usr/src/php/php-gtk/./ext/gtk+/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -prefer-pic -c /usr/src/php/php-gtk/./ext/gtk+/php_gdk.c -o ./ext/gtk+/php_gdk.loRegards Alan Thijs Lensselink wrote:
This is what it prints to the screen. /bin/sh /usr/src/php-gtk/libtool --mode=compile gcc -I/usr/src/php-gtk/ext/gtk+/ -I/usr/src/php-gtk/ext/gtk+/ -DPHP_ATOM_INC -I/usr/src/php-gtk/include -I/usr/src/php-gtk/main -I/usr/src/php-gtk -I/home/shadow/sandbox/include/php -I/home/shadow/sandbox/include/php/main -I/home/shadow/sandbox/include/php/Zend -I/home/shadow/sandbox/include/php/TSRM -I/usr/local/include/gtk-1.2 -I/usr/local/lib/glib/include -I/usr/local/include -I/usr/X11R6/include -I/usr/local/include/gnome-xml -I/usr/local/include/libglade-1.0 -I/usr/local/include/glib-1.2 -DHAVE_CONFIG_H -g -O2 -prefer-pic -c /usr/src/php-gtk/ext/gtk+/php_gtk+.c -o /usr/src/php-gtk/ext/gtk+/php_gtk+.lo /usr/src/php-gtk/ext/gtk+/php_gdk.lo: /usr/src/php-gtk/ext/gtk+/php_gdk.c gcc -I/usr/src/php-gtk/ext/gtk+/ -I/usr/src/php-gtk/ext/gtk+/ -DPHP_ATOM_INC -I/usr/src/php-gtk/include -I/usr/src/php-gtk/main -I/usr/src/php-gtk -I/home/shadow/sandbox/include/php -I/home/shadow/sandbox/include/php/main -I/home/shadow/sandbox/include/php/Zend -I/home/shadow/sandbox/include/php/TSRM -I/usr/local/include/gtk-1.2 -I/usr/local/lib/glib/include -I/usr/local/include -I/usr/X11R6/include -I/usr/local/include/gnome-xml -I/usr/local/include/libglade-1.0 -I/usr/local/include/glib-1.2 -DHAVE_CONFIG_H -g -O2 -c /usr/src/php-gtk/ext/gtk+/php_gtk+.c /usr/src/php-gtk/ext/gtk+/php_gdk.lo: /usr/src/php-gtk/ext/gtk+/php_gdk.c -fPIC -DPIC -o /usr/src/php-gtk/ext/gtk+/php_gtk+.lo gcc: cannot specify -o with -c or -S and multiple compilations *** Error code 1 Stop in /usr/src/php-gtk (line 184 of Makefile). -----Oorspronkelijk bericht----- Van: Alan Knowles [mailto:alan@akbkhome.com] Verzonden: maandag 2 december 2002 2:43 Aan: Thijs Lensselink CC: php-gtk-general@lists.php.net; sfox@php.net Onderwerp: Re: [PHP-GTK] gen_gtk.h missing! can you print out the gcc line that was in (it should display when you type make) Regards Alan Thijs Lensselink wrote:anI changed all the paths and looks ok for a while when i run make. But gcc doesn't like it very much. gcc: cannot specify -o with -c of -S and multiple compilations ***error code 1 gcc version is 2.95.3. Is there a problem with that? -----Oorspronkelijk bericht----- Van: Alan Knowles [mailto:alan@akbkhome.com] Verzonden: zondag 1 december 2002 14:39 Aan: Thijs Lensselink Onderwerp: Re: [PHP-GTK] gen_gtk.h missing! Thijs Lensselink wrote:namesthe file gen_gtk.c is nowhere on the system.you may have alot of trouble building php-gtk without this file :) This is the makefile line that generates the gen_gtk.c $(PHP) -q $(top_srcdir)/generator/generator.php -o ext/gtk%2b/gtk.overrides -p Gtk -r $(top_srcdir)/ext/gtk%2b/gdk.defs ext/gtk%2b/gtk.defs > gen_gtk.c It may be worth running it manually - replacing the $**** 's with real paths. and see what it pumps out. Regards AlanIt should be created when i run configure i think. But it doesn't. When i take out the line include gen_gth.hfrom php_gtk+.h it ceates the gen_gtk.c file but i get alot oferrors when i run make. -----Oorspronkelijk bericht----- Van: Alan Knowles [mailto:alan@akbkhome.com] Verzonden: zondag 1 december 2002 2:00 Aan: Thijs Lensselink CC: Steph; php-gtk-general@lists.php.net Onderwerp: Re: [PHP-GTK] gen_gtk.h missing! gen_gtk.h is built by grepping for the php object resorces (*_ce)in gen_gtk.c - gen_gtk.h contains alot of lines that look like this. extern PHP_GTK_EXPORT_CE(gtk_allocation_ce); you should have a look at gen_gtk.c and see if they are in that file.. first If they exist it could be an 'awk' oddity on bsd. Regards Alan Thijs Lensselink wrote:i wasn't shure about that one. So i changed all of them manually but no luck -----Oorspronkelijk bericht----- Van: Steph [mailto:sfox@php.net] Verzonden: zaterdag 30 november 2002 21:16 Aan: Thijs Lensselink; php-gtk-general@lists.php.net Onderwerp: Re: [PHP-GTK] gen_gtk.h missing! /usr/src/php-gtk/./ext/gtk+/php_gtk+.c:23: is that a valid path? (is anyone else out there awake?! :) ----- Original Message ----- From: "Thijs Lensselink" <admin@ensifex.nl> To: "Steph" <sfox@php.net>; <php-gtk-general@lists.php.net> Sent: Saturday, November 30, 2002 8:17 PM Subject: RE: [PHP-GTK] gen_gtk.h missing! reinstalled php from cvs and reinstalled autoconf automake Now ./buildconf and ./configure go great but i run into the same error again when running make: In file included from /usr/src/php-gtk/main/php_gtk.h:90 from /usr/src/php-gtk/./ext/gtk+/php_gtk+.c:23: /usr/src/php-gtk/ext/gtk+/php_gtk+.h:94 gen_gtk.h: No such file or directory The path to generator.php is ok so i'm running out of options here. I was wondering if anyone has been succesful in building php-gtk on
/beopenbsd system. Maybe that's the problem! -----Oorspronkelijk bericht----- Van: Steph [mailto:sfox@php.net] Verzonden: zaterdag 30 november 2002 18:35 Aan: Thijs Lensselink Onderwerp: Re: [PHP-GTK] gen_gtk.h missing! I don't think you have to do anything with gawk. Loading nawk mighta good idea tho' .. ----- Original Message ----- From: "Thijs Lensselink" <admin@ensifex.nl> To: "Steph" <sfox@php.net> Sent: Saturday, November 30, 2002 5:30 PM Subject: RE: [PHP-GTK] gen_gtk.h missing! thnx for the trouble. Well i tried removing gawk and see what happens. Still hangs! It's the part in configure where it checks for awk gawk etc etc But when i remove gawk it hangs on awk and visa versa. Pretty strange. -----Oorspronkelijk bericht----- Van: Steph [mailto:sfox@php.net] Verzonden: zaterdag 30 november 2002 18:18 Aan: Thijs Lensselink CC: PHP-GTK gen Onderwerp: Fw: [PHP-GTK] gen_gtk.h missing! aha .. google's not responding @ present, but I found this anyway .. http://www.sunsite.ualberta.ca/Documentation/Gnu/gawk-3.0.4/html_mono
nonegcygwin'sawk.html#SEC11 I don't have nawk on board, I use msvc for building php-gtk andgawk for manual stuff. You should, tho' .. (allegedly) ----- Original Message ----- From: "Steph" <sfox@php.net> To: "Thijs Lensselink" <admin@ensifex.nl> Sent: Saturday, November 30, 2002 4:42 PM Subject: Re: [PHP-GTK] gen_gtk.h missing!nawk's a nix thing I presume? (wake up nix people ..) (wtf is nawk? heard of awk ..) Sorry, I realised after I sent it that could be taken as an insult,
intended. I just wondered if you knew how to check thru and make
sure
-- PHP-GTK General Mailing List (http://gtk.php.net/) To unsubscribe, visit: http://www.php.net/unsub.phpeverything was where the makefile expects to find it. ----- Original Message ----- From: "Thijs Lensselink" <admin@ensifex.nl> To: "Steph" <sfox@php.net>; <php-gtk-general@lists.php.net> Sent: Saturday, November 30, 2002 4:43 PM Subject: RE: [PHP-GTK] gen_gtk.h missing! I think understand how the gen_* files are created. But what do you mean with can you read makefiles? I pretty much understand the makefiles! When i looked at the makefile some more i found that it was using the wrong php excutable. (sorry for this) So i changed it. But now it hangs on checking for nawk.....nawk Any idea? -----Oorspronkelijk bericht----- Van: Steph [mailto:sfox@php.net] Verzonden: zaterdag 30 november 2002 17:02 Aan: Thijs Lensselink; php-gtk-general@lists.php.net Onderwerp: Re: [PHP-GTK] gen_gtk.h missing! the gen_* files are produced by the generator script. They containthedefs + overrides (merged), and the build system uses them from that point. Can you read makefiles? ----- Original Message ----- From: "Thijs Lensselink" <admin@ensifex.nl> To: "Steph" <sfox@php.net>; <php-gtk-general@lists.php.net> Sent: Saturday, November 30, 2002 3:54 PM Subject: RE: [PHP-GTK] gen_gtk.h missing! I did check the path to generator.php and it's set correct. What am i missing here. -----Oorspronkelijk bericht----- Van: Steph [mailto:sfox@php.net] Verzonden: zaterdag 30 november 2002 13:24 Aan: Thijs Lensselink; php-gtk-general@lists.php.net Onderwerp: Re: [PHP-GTK] gen_gtk.h missing! check the path to generator.php (it's not finding it) ----- Original Message ----- From: "admin" <admin@ensifex.nl> To: <php-gtk-general@lists.php.net> Sent: Friday, November 29, 2002 7:03 PM Subject: [PHP-GTK] gen_gtk.h missing! I'm trying to build php-gtk because i read a litle article about it. The system i'm trying to build it on is openbsd 3.2. libtool, automake and autoconf are installed ..../builconf goes fine ..../configure goes fine 2 but when i try make i get this error: In file included from /usr/src/php-gtk/main/php_gtk.h:90 from /usr/src/php-gtk/./ext/gtk+/php_gtk+.c:23: /usr/src/php-gtk/ext/gtk+/php_gtk+.h:94 gen_gtk.h: No such file or directory *** Error code 1 Stop in /usr/src/php-gtk (line 184 of Makefile). The gen_gtk.h file doesn't seem to exsist. Searched google and the mailing list but couldn't find any clues. Can somebody please help me out here.. Digitally yours, Thijs Lensselink admin@ensifex.nl www.ensifex.nl Linux is like? a wigwam - no windows, no gates, apache inside -- PHP-GTK General Mailing List (http://gtk.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP-GTK General Mailing List (http://gtk.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php