Compiling emacs
Trying to compile emacs. I copied gdkx.h from a linux machine and got as far as the linking stage with the following undefines:
Undefined symbols:
"_gdk_x11_lookup_xdisplay", referenced from:
_xg_set_screen in gtkutil.o
_xg_display_close in gtkutil.o
_xg_display_close in gtkutil.o
_xg_create_default_cursor in gtkutil.o
_xg_get_image_for_pixmap in gtkutil.o
_xg_win_to_widget in gtkutil.o
_xg_set_frame_icon in gtkutil.o
"_gdk_x11_drawable_get_xid", referenced from:
_x_report_frame_params in frame.o
_x_set_frame_alpha in xterm.o
_x_set_offset in xterm.o
_x_set_offset in xterm.o
_x_raise_frame in xterm.o
_x_lower_frame in xterm.o
_xembed_set_info in xterm.o
_x_make_frame_invisible in xterm.o
_x_wm_set_icon_pixmap in xterm.o
_x_text_icon in xterm.o
_x_make_frame_visible in xterm.o
_x_make_frame_visible in xterm.o
_x_wm_set_icon_position in xterm.o
_x_real_positions in xfns.o
_x_real_positions in xfns.o
_x_real_positions in xfns.o
_x_set_name_internal in xfns.o
_Fx_create_frame in xfns.o
_Fx_change_window_property in xfns.o
_show_hourglass in xfns.o
_Fx_send_client_event in xselect.o
_Fx_send_client_event in xselect.o
_xg_create_frame_widgets in gtkutil.o
"_gdk_x11_display_get_xdisplay", referenced from:
_xg_display_open in gtkutil.o
"_gdk_display", referenced from:
_gdk_display$non_lazy_ptr in xterm.o
_gdk_display$non_lazy_ptr in gtkutil.o
"_gdk_xid_table_lookup_for_display", referenced from:
_xg_win_to_widget in gtkutil.o
Do I need to implement these functions or are there equivalent functions for macs os.
Thanks
Martin

gdkx.h is for the X11
gdkx.h is for the X11 backend, it only works with X11. The GTK+ port of emacs depends on X11 so it can't be built with the other GTK+ backends like quartz or win32.