Like glib-1.2.10-r5 (see bug #60580), gtk+-1.2.10-r11 doesn't create shared libraries on macos because its included ltmain.sh and ltconfig are too old. The same solution that I appied to bug #60580 (using the files from http://fink.sourceforge.net/files/ltconfig and http://fink.sourceforge.net/files/ltmain.sh) also appears to work here. Reproducible: Always Steps to Reproduce: 1. Add macos keyword to x11-libs/gtk+-1.2.10-r11 2. emerge -av '<x11-libs/gtk+-2' 3. Actual Results: Only static libraries were created. Expected Results: Both static and shared libraries should have been created. Portage 20040726 (default-macos-10.3, gcc-3.3, unavailable, 7.5.0 Power Macintosh powerpc) ================================================================= System uname: 7.5.0 Power Macintosh powerpc macos-20040726 distcc 2.0.1-zeroconf powerpc-apple-darwin7.0 (protocol 1) (default port 3632) [disabled] Autoconf: Automake: Binutils: ACCEPT_KEYWORDS="macos" AUTOCLEAN="yes" CFLAGS="-O2 -pipe" CHOST="powerpc-apple-darwin" COMPILER="" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="collision-protect cvs keepwork" GENTOO_MIRRORS="http://gentoo.osuosl.org/" 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="macos gdbm ncurses python slang ssl"
Fixed the issue and added to ~ppc-macos. Thanks for the bug report.
gtk+ shouldn't be keyworded until Perl issue is resolved (gtk+ depends on shared-mime-info, which pulls in XML-parser if USE="nls"). I added gtk and gtk2 to use.mask in system profiles for the moment.
I did a try on installing the missing perl-module XML::Parser using cpan. Now I could install intltool which worked fine. So the try on gtk+ (manually keyworded ~ppc-macos) gave me the following result: LINGUAS="de" emerge -av =x11-libs/gtk+-1.2.10-r11: checking for msgfmt... /usr/bin/msgfmt checking for dcgettext... yes checking for gmsgfmt... /usr/bin/gmsgfmt checking for xgettext... /usr/bin/xgettext checking for catalogs to be installed... de checking for extra flags to get ANSI library prototypes... none needed checking for extra flags for POSIX compliance... none needed checking for glib-config... /usr/bin/glib-config checking for GLIB - version >= 1.2.8... yes checking for X... no configure: error: *** X libraries or include files not found. Check 'config.log' for *** more details. Here the config.log: configure:4404: gcc -o conftest -O3 -pipe -mcpu=G5 -mtune=G5 -mpowerpc64 -funro ll-loops -Wall -I/usr/include/glib-1.2 -I/usr/lib/glib/include -D_REENTRANT co nftest.c -L/usr/lib -lgmodule -lgthread -lglib -lpthread -lintl 1>&5 configure:4544: checking for X configure:4611: gcc -E conftest.c >/dev/null 2>conftest.out configure:4607:27: X11/Intrinsic.h: No such file or directory configure: failed program was: #line 4606 "configure" #include "confdefs.h" #include <X11/Intrinsic.h> So it seems that some Header-File is missing in Apple's X-Server. Today or tomorrow I will install XCodeTools 1.5. Eventually this will solve the problem or do you know which package brings that header-file?
Be sure to select x11-sdk during the XCode 1.5 install, for some reason apple doesn't include all headers with x11.app
This solved the problem. So I can continue debugging gtk. At this time I run into the following ar-error: ar cru .libs/libgdk.a gdk.o gdkcc.o gdkcolor.o gdkcursor.o gdkdnd.o gdkdraw.o gdkevents.o gdkfont.o gdkgc.o gdkglobals.o gdkim.o gdkimage.o gdkinput.o gdkpixmap.o gdkproperty.o gdkrgb.o gdkrectangle.o gdkregion.o gdkselection.o gdkvisual.o gdkwindow.o gdkxid.o gxid_lib.o~ranlib .libs/libgdk.a ar: gxid_lib.o~ranlib: No such file or directory make[2]: *** [libgdk.la] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all-recursive-am] Error 2 It seems that the ~ is wrong.
Here is my emerge info but I think that this is a source-problem. Portage 2.0.51 (default-macos/ppc/10.3, gcc-3.3, libsystem-7.1-r0, 7.5.0 Power Macintosh) ================================================================= System uname: 7.5.0 Power Macintosh powerpc macos-20040726 distcc 2.0.1-zeroconf powerpc-apple-darwin7.0 (protocol 1) (default port 3632) [disabled] Autoconf: sys-devel/autoconf-2.57,sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.6.3,sys-devel/automake-1.8.5-r1 Binutils: Headers: Libtools: sys-devel/libtool-1.5.2-r5,sys-devel/libtool-2.4.4 ACCEPT_KEYWORDS="ppc-macos ~ppc-macos" AUTOCLEAN="yes" CFLAGS="-O3 -pipe -mcpu=G5 -mtune=G5 -mpowerpc64 -funroll-loops" CHOST="powerpc-apple-darwin" COMPILER="" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-O3 -pipe -mcpu=G5 -mtune=G5 -mpowerpc64 -funroll-loops" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache collision-protect cvs distlocks keepwork moo nostrip" GENTOO_MIRRORS="http://gentoo.osuosl.org/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="ppc X debug hbci jpeg justify multilib nls ofx quotes ssl tiff uclibc unicode"
After upgrading to XCodeTools 1.5 and after upgrading portage we get here. This seems to be the problem with the shared libraries... ld: warning multiple definitions of symbol _locale_charset /usr/lib/libintl.dylib(localcharset.o) definition of _locale_charset /usr/lib/libiconv.dylib(localcharset.o) definition of _locale_charset ld: Undefined symbols: _gdk_draw_pixmap _gdk_draw_rectangle _gdk_input_list_devices _gdk_input_motion_events _gdk_input_window_get_pointer _gdk_pixmap_new _gdk_pixmap_unref _gdk_window_raise _gdk_window_clear_area _gdk_window_move_resize _gdk_window_new _gdk_window_set_back_pixmap _gdk_window_set_user_data _gdk_threads_mutex _gdk_colormap_get_system _gdk_event_copy _gdk_event_free _gdk_event_get _gdk_event_handler_set _gdk_event_peek _gdk_exit _gdk_flush _gdk_get_display _gdk_init_check _gdk_input_add_full _gdk_set_locale _gdk_visual_get_system _gdk_window_get_user_data _gdk_input_set_axes _gdk_input_set_key _gdk_input_set_mode _gdk_window_set_background _gdk_colormap_ref _gdk_colormap_unref _gdk_input_set_extension_events _gdk_rectangle_intersect _gdk_window_destroy _gdk_window_get_colormap _gdk_window_get_events _gdk_window_get_parent _gdk_window_get_pointer _gdk_window_get_position _gdk_window_get_size _gdk_window_get_toplevel _gdk_window_get_visual _gdk_window_hide _gdk_window_is_viewable _gdk_window_move _gdk_window_ref _gdk_window_reparent _gdk_window_set_events _gdk_window_shape_combine_mask _gdk_window_show _gdk_window_unref _gdk_atom_intern _gdk_event_put _gdk_event_send_client_message _gdk_progclass _gdk_property_delete _gdk_root_parent _gdk_screen_height _gdk_screen_width _gdk_window_add_filter _gdk_window_resize _gdk_window_set_geometry_hints _gdk_window_set_title _gdk_window_set_transient_for _gdk_window_withdraw _gdk_gc_set_clip_mask _gdk_gc_set_clip_rectangle _gdk_keyval_to_lower _gdk_mbstowcs _gdk_string_width _gdk_text_extents_wc _gdk_text_width_wc _gdk_wcstombs _gdk_color_alloc _gdk_color_black _gdk_color_white _gdk_colormap_free_colors _gdk_draw_line _gdk_draw_point _gdk_draw_polygon _gdk_draw_string _gdk_font_load _gdk_font_ref _gdk_font_unref _gdk_gc_set_dashes _gdk_gc_set_fill _gdk_gc_set_line_attributes _gdk_gc_set_tile _gdk_window_get_type _gdk_bitmap_create_from_data _gdk_colormap_get_visual _gdk_cursor_new_from_pixmap _gdk_drag_abort _gdk_drag_begin _gdk_drag_context_ref _gdk_drag_context_unref _gdk_drag_drop _gdk_drag_find_window _gdk_drag_get_selection _gdk_drag_motion _gdk_drag_status _gdk_drop_finish _gdk_drop_reply _gdk_event_get_time _gdk_keyboard_grab _gdk_keyboard_ungrab _gdk_pixmap_colormap_create_from_xpm_d _gdk_pixmap_ref _gdk_pointer_grab _gdk_pointer_ungrab _gdk_selection_owner_get _gdk_window_get_origin _gdk_window_register_dnd _gdk_draw_gray_image _gdk_draw_rgb_image _gdk_rgb_get_cmap _gdk_rgb_get_visual _gdk_rgb_init _gdk_window_clear _gdk_fontset_load _gdk_pixmap_colormap_create_from_xpm _gdk_error_trap_pop _gdk_error_trap_push _gdk_property_change _gdk_property_get _gdk_selection_convert _gdk_selection_owner_set _gdk_selection_property _gdk_selection_property_get _gdk_selection_send_notify _gdk_window_foreign_new _gdk_xid_table_lookup _gdk_char_width _gdk_char_width_wc _gdk_cursor_destroy _gdk_cursor_new _gdk_draw_text _gdk_draw_text_wc _gdk_font_equal _gdk_ic_attr_destroy _gdk_ic_attr_new _gdk_ic_destroy _gdk_ic_get_attr _gdk_ic_get_events _gdk_ic_get_style _gdk_ic_new _gdk_ic_set_attr _gdk_im_begin _gdk_im_decide_style _gdk_im_end _gdk_im_ready _gdk_gc_new_with_values _gdk_gc_unref _gdk_region_destroy _gdk_region_point_in _gdk_region_polygon _gdk_window_set_decorations _gdk_gc_destroy _gdk_gc_new _gdk_gc_set_foreground _gdk_window_get_geometry _gdk_window_is_visible _gdk_keyval_from_name _gdk_keyval_name _gdk_font_id _gdk_free_compound_text _gdk_free_text_list _gdk_string_to_compound_text _gdk_text_property_to_text_list make[2]: *** [testinput] Error 1 make[2]: *** Waiting for unfinished jobs.... make[1]: *** [all-recursive] Error 1 make: *** [all-recursive-am] Error 2
Update: with the last ebuild, gtk+ compiled with only some warning about the static libraries libgmodule and libglib and installed.
It does install if you turn off nls USE flag, but we cannot keyword gtk+-1.2 because nls USE flag pulls intltool in and intltool depends on dev-perl/XML-Parser.
Yes I know, but did you read my old post with the workaround using cpan? So I could use intltool an nls.
gtk+-2.10.9 is in prefix. I don't feel the need for an older version of GTK (yet).