Ticket #1151 (closed defect: wontfix)

Opened 6 years ago

Last modified 4 years ago

cc1: error: unrecognized command line option "-mt"

Reported by: guest Owned by: pgavin
Priority: normal Milestone: 0.10.2
Component: general (Gtk+, Glib) Version:
Keywords: Cc:

Description

When compiling gtk2hs-0.10.0-rc-20090119 under x86 solaris I get multiple messages

cc1: error: unrecognized command line option "-mt"

leading to a gmake failure after creating libHSglib.a

See also my message from 2008-12-16 [Gtk2hs-users] gtk2hs under PC-Solaris and ghc-6.10.1 http://sourceforge.net/mailarchive/message.php?msg_name=4947C3ED.8000102%40dfki.de

Change History

Changed 6 years ago by guest

After removing -mt from the Makefile the next failure is an endless loop due to a missing gtk_tree_view_grid_lines_get_type

./tools/c2hs/c2hsLocal +RTS -RTS -iglib::gtk --precomp=gtk/gtk.precomp -o gtk/Graphics/UI/Gtk/ModelView/TreeView.hs gtk/Graphics/UI/Gtk/ModelView/TreeView.chs
c2hsLocal: Errors during expansion of binding hooks:

gtk/Graphics/UI/Gtk/ModelView/TreeView.chs.pp:1587: (column 49) [ERROR]
  >>> Unknown identifier!
  Cannot find a definition for `gtk_tree_view_grid_lines_get_type' in the header file.

./mk/chsDepend -iglib::gtk gtk/Graphics/UI/Gtk/ModelView/TreeView.chs
rm gtk/Graphics/UI/Gtk/ModelView/TreeView.chs
gcc -E -x c -traditional-cpp -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/openwin/include -I/usr/sfw/include -I/usr/sfw/include/freetype2 -I/usr/include/atk-1.0 -DGTK2HS_HS_PREPROC -include gtk2hs-config.h gtk/Graphics/UI/Gtk/ModelView/TreeView.chs.pp -o gtk/Graphics/UI/Gtk/ModelView/TreeView.chs
./tools/c2hs/c2hsLocal +RTS -RTS -iglib::gtk --precomp=gtk/gtk.precomp -o gtk/Graphics/UI/Gtk/ModelView/TreeView.hs gtk/Graphics/UI/Gtk/ModelView/TreeView.chs
c2hsLocal: Errors during expansion of binding hooks:

gtk/Graphics/UI/Gtk/ModelView/TreeView.chs.pp:1587: (column 49) [ERROR]
  >>> Unknown identifier!
  Cannot find a definition for `gtk_tree_view_grid_lines_get_type' in the header file.
...

Changed 5 years ago by pgavin

  • owner changed from somebody to pgavin

The -mt flag comes from the pkgconfig files for the glib/gtk packages that come with solaris. Not sure why they're there, but it's not something we should worry about, they should fix that on their end.

As far as the next error goes, what version of gtk are you using?

Changed 5 years ago by pgavin

  • milestone set to 0.10.2

Changed 4 years ago by axel

  • status changed from new to closed
  • resolution set to wontfix

You're using Gtk+ 2.4.1. With the latest release, the minimum is 2.8 since this is the first version that depends on Cairo. If there is a need to support earlier versions of Gtk+, we could add more configuration infrastructure to address this need.

The -mt flag is a bug in the pkg-config file of Gtk+. It should only include flags that your compiler can understand.

Note: See TracTickets for help on using tickets.