Subject: Re: Should '.include "../../devel/gettext-lib/buildlink[23].mk"'...
To: Bernd Ernesti <netbsd@lists.veego.de>
From: Markus W Kilbinger <kilbi@rad.rwth-aachen.de>
List: tech-pkg
Date: 03/14/2004 12:56:26
>>>>> "Bernd" == Bernd Ernesti <netbsd@lists.veego.de> writes:

    Bernd> Hmm, tech-pkg sounds more appropriate to be used.

Ok, switched.. ;-)

    Bernd> On Sun, Mar 14, 2004 at 11:45:25AM +0100, Markus W Kilbinger wrote:
    >> Hi!
    >> 
    >> ... in pkg's Makefiles not ensure that
    >> 
    >> /usr/pkg/lib/libintl.*
    >> 
    >> is used for compiling/linking!?

    Bernd> You shouldn't need to have /usr/pkg/lib/libintl.* if you
    Bernd> are using -current and it will only cause problems if you
    Bernd> still have some old packages which use that.

Ok, that would fit! (I'm using -current everywhere). Every new
installed pkg is linked against /usr/lib/libintl.*

But: What is ../../devel/gettext-lib/buildlink[23].mk for, then!?
(Non -current systems?)

    >> At the moment all compiled pkg's are (always? I only checked
    >> x11/gtk and www/galeon) linked against systems
    >> /usr/lib/libintl.* (which seems to be the reason why
    >> pkgsrc/chat/gabber fails to work, though compiled fine).

    Bernd> What do you mean with that?

    Bernd> Do you mean that pkgsrc/chat/gabber was linked against a
    Bernd> /usr/pkg/lib/libintl and not with the one in /usr/lib ?

No, the other way round: It's now (indirectly) linked against
/usr/lib/libintl.* and not working anymore: During connection to the
jabber server (not before!) it crashes (output within gdb):

  [..]
  20040314T11:49:59>>> <iq type='result' id='j1'/>
  (no debugging symbols found)...(no debugging symbols found)...
  Program received signal SIGSEGV, Segmentation fault.
  0xbcd407cd in strncmp () from /usr/lib/libc.so.12
  (gdb) bt
  #0  0xbcd407cd in strncmp () from /usr/lib/libc.so.12
  #1  0xbcd5053c in __isthreaded () from /usr/lib/libc.so.12
  #2  0xbcd3fc3a in getenv () from /usr/lib/libc.so.12
  #3  0xbd041e48 in dngettext () from /usr/lib/libintl.so.0
  #4  0xbd041f0d in dcngettext () from /usr/lib/libintl.so.0
  #5  0xbd040fff in gettext () from /usr/lib/libintl.so.0
  #6  0x08111033 in Gtk::ProxySignal0<void, Gtk::MenuItem, _GtkMenuItem, 0>::gtk_callback(_tkObject*, void*) ()
  #7  0x08116303 in Gtk::ProxySignal0<void, Gtk::MenuItem, _GtkMenuItem, 0>::gtk_callback(_tkObject*, void*) ()
  #8  0x081bb861 in Gtk::ProxySignal0<void, Gtk::CheckMenuItem, _GtkCheckMenuItem, 0>::gtk_allback(_GtkObject*, void*) ()
  #9  0x081ba6a8 in Gtk::ProxySignal0<void, Gtk::CheckMenuItem, _GtkCheckMenuItem, 0>::gtk_allback(_GtkObject*, void*) ()
  #10 0x081bb023 in Gtk::ProxySignal0<void, Gtk::CheckMenuItem, _GtkCheckMenuItem, 0>::gtk_allback(_GtkObject*, void*) ()
  #11 0x081b76e6 in Gtk::ProxySignal0<void, Gtk::CheckMenuItem, _GtkCheckMenuItem, 0>::gtk_allback(_GtkObject*, void*) ()
  #12 0x081b7006 in Gtk::ProxySignal0<void, Gtk::CheckMenuItem, _GtkCheckMenuItem, 0>::gtk_allback(_GtkObject*, void*) ()
  #13 0x081d466c in judo::ElementStream::onEndElement(void*, char const*) ()
  #14 0x081d65c4 in judo::ElementStream::exception::ParserError::~ParserError()
      ()
  ---Type <return> to continue, or q <return> to quit---
  #15 0x081d5d3d in judo::ElementStream::exception::ParserError::~ParserError()
      ()
  #16 0x081d58bb in judo::ElementStream::exception::ParserError::~ParserError()
      ()
  #17 0x081d4201 in Gtk::ProxySignal0<void, Gtk::CheckMenuItem, _GtkCheckMenuItem, 0>::gtk_allback(_GtkObject*, void*) ()
  #18 0x081b406c in Gtk::ProxySignal0<void, Gtk::CheckMenuItem, _GtkCheckMenuItem, 0>::gtk_allback(_GtkObject*, void*) ()
  #19 0x080e79dc in std::_Rb_tree_rotate_right(std::_Rb_tree_node_base*, std::_Rb_tree_nodebase*&) ()
  #20 0x081a738e in Gtk::ProxySignal0<void, Gtk::CheckMenuItem, _GtkCheckMenuItem, 0>::gtk_allback(_GtkObject*, void*) ()
  #21 0x081a38f4 in Gtk::ProxySignal0<void, Gtk::CheckMenuItem, _GtkCheckMenuItem, 0>::gtk_allback(_GtkObject*, void*) ()
  #22 0xbd054284 in g_io_unix_dispatch () from /usr/pkg/lib/libglib.so.13
  #23 0xbd055abf in g_main_dispatch () from /usr/pkg/lib/libglib.so.13
  #24 0xbd055f96 in g_main_iterate () from /usr/pkg/lib/libglib.so.13
  #25 0xbd056264 in g_main_run () from /usr/pkg/lib/libglib.so.13
  #26 0xbd13b387 in gtk_main () from /usr/X11R6/lib/libgtk.so.12
  #27 0xbdab9a59 in Gtk::Main::run_impl() () from /usr/X11R6/lib/libgtkmm.so.3
  #28 0x080e1d89 in std::_Rb_tree_rotate_right(std::_Rb_tree_node_base*, std::_Rb_tree_nodebase*&) ()
  #29 0x08059e27 in gtk_widget_grab_focus ()

There where some gettext issues with gabber some time ago, so I
thought that might be the reason...

Any hints now?

Markus.