Re: [PHP-GTK-DEV] Re: Compilation error

[email protected] ("Joop Boonen") Fri, 4 Dec 2009 14:05:39 +0100
Newsgroups php.gtk.dev
Message-ID <[email protected]>
Hi Michael,

The problem is solved.

A make with multiple jobs don't work for this makefile. i.e. make -j{n}

Regards,

Joop.



On Fri, December 4, 2009 10:58 am, Joop Boonen wrote:
> Hi Michael,
>
> On Mon, November 23, 2009 11:29 pm, Michael Maclean wrote:
>> Joop Boonen wrote:
>>> Dear People @ dev list,
>>>
>>> When I compile the code I get an error about a missing file "cc:
>>> ext/gtk+/gen_gtk-1.c: No such file or directory"
>>>
>>> <quote>
>>
>> <snip>
>>
>> Hi,
>> You should end up with 2 generated files called gen_gtk.c and
>> gen_gtk-1.c. Is there any sign of anything looking like gen_gtk-1.c? Can
>> you post a listing of what is in ext/gtk+ after the build attempt?
>
> I cant check this yet, as it's build on the buildserver of openSuSE.
>
> When i build on the buildserver I see:
>
> <qoute>
>  cc -Iext/gtk+/
> -I/usr/src/packages/BUILD/php-gtk-2.0.1+svn291693/ext/gtk+/
> -DPHP_ATOM_INC -I/usr/src/packages/BUILD/php-gtk-2.0.1+svn291693/include
> -I/usr/src/packages/BUILD/php-gtk-2.0.1+svn291693/main
> -I/usr/src/packages/BUILD/php-gtk-2.0.1+svn291693 -I/usr/include/php5
> -I/usr/include/php5/main -I/usr/include/ph
> p5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext
> -I/usr/include/php5/ext/dat
> e/lib -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include
> -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0
> -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/pixman-1
> -I/usr/include/freetype2 -I/usr/include/libpng12
> -I/usr/include/php5/ext/cairo -I/usr/include/libglade-2.0
> -I/usr/include/libxml2 -DHAVE_CONFIG_H -fmessage-length=0 -O2 -Wall
> -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables
> -fasynchronous-unwind-tables -g -fno-strict-aliasing -DHAVE_CAIRO -c
> ext/gtk+/gen_gtk-1.c  -fPIC -DPIC -o ext/gtk+/.libs/gen_gtk-1.o
> cc: ext/gtk+/gen_gtk-1.c: No such file or directory
> cc: no input files
> make: *** [ext/gtk+/gen_gtk-1.lo] Error 1
> make: *** Waiting for unfinished jobs....
>  cc -Iext/gtk+/
> -I/usr/src/packages/BUILD/php-gtk-2.0.1+svn291693/ext/gtk+/
> -DPHP_ATOM_INC -I/usr/src/packages/BUILD/php-gtk-2.0.1+svn291693/include
> -I/usr/src/packages/BUILD/php-gtk-2.0.1+svn291693/main
> -I/usr/src/packages/BUILD/php-gtk-2.0.1+svn291693 -I/usr/include/php5
> -I/usr/include/php5/main -I/usr/include/php5/TSRM
> -I/usr/include/php5/Zend -I/usr/include/php5/ext
> -I/usr/include/php5/ext/date/lib -I/usr/include/glib-2.0
> -I/usr/lib64/glib-2.0/include -I/usr/include/gtk-2.0
> -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo
> -I/usr/include/pango-1.0 -I/usr/include/pixman-1 -I/usr/include/freetype2
> -I/usr/include/libpng12 -I/usr/include/php5/ext/cairo
> -I/usr/include/libglade-2.0 -I/usr/include/libxml2 -DHAVE_CONFIG_H
> -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector
> -funwind-tables -fasynchronous-unwind-tables -g -fno-strict-aliasing
> -DHAVE_CAIRO -c ext/gtk+/php_gdk.c  -fPIC -DPIC -o
> ext/gtk+/.libs/php_gdk.o
> </quote>
>
> When i build localy I see:
>
> <quote>
>  cc -Iext/gtk+/
> -I/usr/src/packages/BUILD/php-gtk-2.0.1+svn291693/ext/gtk+/
> -DPHP_ATOM_INC -I/usr/src/packages/BUILD/php-gtk-2.0.1+svn291693/include
> -I/usr/src/packages/BUILD/php-gtk-2.0.1+svn291693/main
> -I/usr/src/packages/BUILD/php-gtk-2.0.1+svn291693 -I/usr/include/php5
> -I/usr/include/php5/main -I/usr/include/php5/TSRM
> -I/usr/include/php5/Zend -I/usr/include/php5/ext
> -I/usr/include/php5/ext/date/lib -I/usr/include/glib-2.0
> -I/usr/lib64/glib-2.0/include -I/usr/include/gtk-2.0
> -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo
> -I/usr/include/pango-1.0 -I/usr/include/pixman-1 -I/usr/include/freetype2
> -I/usr/include/libpng12 -I/usr/include/php5/ext/cairo
> -I/usr/include/libglade-2.0 -I/usr/include/libxml2 -DHAVE_CONFIG_H
> -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector
> -funwind-tables -fasynchronous-unwind-tables -g -fno-strict-aliasing
> -DHAVE_CAIRO -c ext/gtk+/gen_gtk-1.c  -fPIC -DPIC -o
> ext/gtk+/.libs/gen_gtk-1.o
> ext/gtk+/gen_gtk-1.c:24: warning: type defaults to 'int' in declaration of
> 'phpg_region_get_type'
> ext/gtk+/gtk-2.10.overrides: In function
> 'zim_GtkRecentInfo_get_application_info':
> ext/gtk+/gtk-2.10.overrides:277: warning: passing argument 3 of
> 'gtk_recent_info_get_application_info' from incompatible pointer type
> /usr/include/gtk-2.0/gtk/gtkrecentmanager.h:187: note: expected 'const
> gchar **' but argument is of type 'gchar **'
> ext/gtk+/gen_gtk.c: In function 'phpg_GtkSelectionData_read_data':
> ext/gtk+/gen_gtk.c:2303: warning: pointer targets in assignment differ in
> signedness
> ext/gtk+/gen_gtk.c: In function 'zim_GtkSelectionData_get_text':
> ext/gtk+/gen_gtk.c:2371: warning: pointer targets in assignment differ in
> signedness
> ext/gtk+/gen_gtk.c: In function 'zim_GtkSelectionData_set':
> ext/gtk+/gen_gtk.c:2443: warning: pointer targets in passing argument 4 of
> 'gtk_selection_data_set' differ in signedness
> /usr/include/gtk-2.0/gtk/gtkselection.h:159: note: expected 'const guchar
> *' but argument is of type 'char *'
> ext/gtk+/gen_gtk.c: In function 'zim_GtkSelectionData_get_data':
> ext/gtk+/gen_gtk.c:2654: warning: pointer targets in assignment differ in
> signedness
> ext/gtk+/gtktextview.overrides: In function 'zim_GtkTextIter_get_char':
> ext/gtk+/gtktextview.overrides:306: warning: cast to pointer from integer
> of different size
> ext/gtk+/gen_gtk.c: At top level:
> ext/gtk+/gen_gtk-1.c:8: warning:
> 'phpg_about_dialog_activate_link_func_marshal' declared 'static' but never
> defined
> ext/gtk+/gen_gtk-1.c:9: warning:
> 'phpg_entry_completion_match_func_marshal' declared 'static' but never
> defined
> ext/gtk+/gen_gtk-1.c:10: warning:
> 'phpg_file_filter_add_custom_marshal_add_file' declared 'static' but never
> defined
> ext/gtk+/gen_gtk-1.c:11: warning: 'phpg_file_filter_add_custom_marshal'
> declared 'static' but never defined
> ext/gtk+/gen_gtk-1.c:44: warning:
> 'phpg_tree_view_row_separator_func_marshal' declared 'static' but never
> defined
> ext/gtk+/gen_gtk-1.c:13: warning: 'phpg_icon_view_foreach_func_marshal'
> declared 'static' but never defined
> ext/gtk+/gen_gtk-1.c:14: warning: 'phpg_toolbar_signal_func_marshal'
> declared 'static' but never defined
> ext/gtk+/gen_gtk-1.c:15: warning:
> 'phpg_color_selection_change_palette_with_screen_func_marshal' declared
> 'static' but never defined
> ext/gtk+/gen_gtk-1.c:18: warning: 'zim_GtkImage_get_image' declared
> 'static' but never defined
> ext/gtk+/gen_gtk-1.c:28: warning: 'zim_GtkContainer_get_children' declared
> 'static' but never defined
> ext/gtk+/gen_gtk-1.c:31: warning: 'phpg_parse_target_entries' declared
> 'static' but never defined
> ext/gtk+/gen_gtk-1.c:34: warning:
> 'phpg_text_tag_table_foreach_func_marshal' declared 'static' but never
> defined
> ext/gtk+/gen_gtk-1.c:40: warning: 'phpg_cell_data_func_marshal' declared
> 'static' but never defined
> ext/gtk+/gen_gtk-1.c:41: warning: 'phpg_store_set_impl' declared 'static'
> but never defined
> ext/gtk+/gen_gtk-1.c:42: warning: 'phpg_tree_iter_compare_func_marshal'
> declared 'static' but never defined
> ext/gtk+/gen_gtk-1.c:43: warning:
> 'phpg_tree_model_filter_visible_func_marshal' declared 'static' but never
> defined
> ext/gtk+/gen_gtk-1.c:45: warning:
> 'phpg_tree_view_column_drop_func_marshal' declared 'static' but never
> defined
> ext/gtk+/gen_gtk-1.c:46: warning:
> 'phpg_tree_view_search_equal_func_marshal' declared 'static' but never
> defined
> ext/gtk+/gen_gtk-1.c:47: warning:
> 'phpg_tree_selection_foreach_func_marshal' declared 'static' but never
> defined
> ext/gtk+/gen_gtk-1.c:48: warning: 'phpg_tree_selection_func_marshal'
> declared 'static' but never defined
> ext/gtk+/gen_gtk-1.c:50: warning:
> 'phpg_link_button_set_uri_hook_func_marshal' declared 'static' but never
> defined
> ext/gtk+/gen_gtk-1.c:61: warning: 'phpg_scale_button_set_icons_assist'
> declared 'static' but never defined
> ext/gtk+/gtktextview.overrides: In function
> 'zim_GtkTextIter_backward_find_char':
> ext/gtk+/gtktextview.overrides:485: warning: 'cb_data' may be used
> uninitialized in this function
> ext/gtk+/gtktextview.overrides: In function
> 'zim_GtkTextIter_forward_find_char':
> ext/gtk+/gtktextview.overrides:445: warning: 'cb_data' may be used
> uninitialized in this function
> /bin/sh /usr/src/packages/BUILD/php-gtk-2.0.1+svn291693/libtool
> --mode=compile cc  -Iext/gtk+/
> -I/usr/src/packages/BUILD/php-gtk-2.0.1+svn291693/ext/gtk+/ -DPHP_ATOM_INC
> -I/usr/src/packages/BUILD/php-gtk-2.0.1+svn291693/include
> -I/usr/src/packages/BUILD/php-gtk-2.0.1+svn291693/main
> -I/usr/src/packages/BUILD/php-gtk-2.0.1+svn291693 -I/usr/include/php5
> -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend
> -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib
> -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include
> -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0
> -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/pixman-1
> -I/usr/include/freetype2 -I/usr/include/libpng12
> -I/usr/include/php5/ext/cairo -I/usr/include/libglade-2.0
> -I/usr/include/libxml2  -DHAVE_CONFIG_H  -fmessage-length=0 -O2 -Wall
> -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables
> -fasynchronous-unwind-tables -g -fno-strict-aliasing -DHAVE_CAIRO   -c
> ext/gtk+/php_gdk.c -o ext/gtk+/php_gdk.lo
> </quote>
>
> The buildserver is very strict towards errors. So this issue might be
> related to the warnings, that i presume shouldn't be there?
>
>>
>> Michael
>>
>> --
>> PHP-GTK Development Mailing List (http://gtk.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>
> Regards,
>
> Joop.
>