From owner-freebsd-questions@freebsd.org  Thu Apr 13 09:19:37 2017
Return-Path: <owner-freebsd-questions@freebsd.org>
Delivered-To: freebsd-questions@mailman.ysv.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org
 [IPv6:2001:1900:2254:206a::19:1])
 by mailman.ysv.freebsd.org (Postfix) with ESMTP id C7CAFD3B4FD
 for <freebsd-questions@mailman.ysv.freebsd.org>;
 Thu, 13 Apr 2017 09:19:37 +0000 (UTC)
 (envelope-from guru@unixarea.de)
Received: from ms-10.1blu.de (ms-10.1blu.de [178.254.4.101])
 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
 (Client did not present a certificate)
 by mx1.freebsd.org (Postfix) with ESMTPS id 8BC4F3DF
 for <freebsd-questions@freebsd.org>; Thu, 13 Apr 2017 09:19:37 +0000 (UTC)
 (envelope-from guru@unixarea.de)
Received: from [2.247.252.117] (helo=localhost.unixarea.de)
 by ms-10.1blu.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.86_2) (envelope-from <guru@unixarea.de>) id 1cyaub-00082n-U1
 for freebsd-questions@freebsd.org; Thu, 13 Apr 2017 11:19:34 +0200
Received: from localhost.my.domain (c720-r314251 [127.0.0.1])
 by localhost.unixarea.de (8.15.2/8.14.9) with ESMTPS id v3D9JUkQ003681
 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO)
 for <freebsd-questions@freebsd.org>; Thu, 13 Apr 2017 11:19:30 +0200 (CEST)
 (envelope-from guru@unixarea.de)
Received: (from guru@localhost)
 by localhost.my.domain (8.15.2/8.14.9/Submit) id v3D9JTkm003680
 for freebsd-questions@freebsd.org; Thu, 13 Apr 2017 11:19:29 +0200 (CEST)
 (envelope-from guru@unixarea.de)
X-Authentication-Warning: localhost.my.domain: guru set sender to
 guru@unixarea.de using -f
Date: Thu, 13 Apr 2017 11:19:29 +0200
From: Matthias Apitz <guru@unixarea.de>
To: freebsd-questions@freebsd.org
Subject: Re: wifimgr (was: Re: Networkmgr)
Message-ID: <20170413091929.GA3612@c720-r314251>
Reply-To: Matthias Apitz <guru@unixarea.de>
Mail-Followup-To: Matthias Apitz <guru@unixarea.de>,
 freebsd-questions@freebsd.org
References: <af9c26ae-d233-d2bd-1fd7-903323e2e153@gmail.com>
 <20170412073851.0ab81213.freebsd@edvax.de>
 <CA+yoEx9KONHzZfjOgMMcK92=uZh2hrQHLmkmoQGxMY8EbGwNNA@mail.gmail.com>
 <20170412173019.GA3842@c720-r314251>
 <e81baa0f-a5d7-f01d-186b-b1155c4f5251@passap.ru>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <e81baa0f-a5d7-f01d-186b-b1155c4f5251@passap.ru>
X-Operating-System: FreeBSD 12.0-CURRENT r314251 (amd64)
User-Agent: Mutt/1.8.0 (2017-02-23)
X-Con-Id: 51246
X-Con-U: 0-guru
X-Originating-IP: 2.247.252.117
X-BeenThere: freebsd-questions@freebsd.org
X-Mailman-Version: 2.1.23
Precedence: list
List-Id: User questions <freebsd-questions.freebsd.org>
List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-questions>, 
 <mailto:freebsd-questions-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-questions/>
List-Post: <mailto:freebsd-questions@freebsd.org>
List-Help: <mailto:freebsd-questions-request@freebsd.org?subject=help>
List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-questions>, 
 <mailto:freebsd-questions-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Thu, 13 Apr 2017 09:19:37 -0000

El día jueves, abril 13, 2017 a las 11:16:51a. m. +0300, Boris Samorodov escribió:

> 12.04.2017 20:30, Matthias Apitz пишет:
> 
> > It compiles on 12.0-CURRENT r314251 (amd64) with ports head. It starts
> > but does not bring any GUI.
> 
> Seems to be a property of your OS/ports status/configuration.
> 
> I've just installed wifimgr as a package from official FreeBSD
> repository. The system is fresh HEAD-amd64.
> 
> ....

Thanks for the report. At the same time I have instructed mine with some
DEBUG ...

I have inserted a few DEBUG fprintfs because the source does not do
Any logging or debug infos, and it seems to be a Gtk problem because the
Application can not bring up any dialog, not even for asking for the password:

root@r314251-amd64:/usr/ports/net-mgmt/wifimgr/work/wifimgr-1.11/src # vim wifimgr-gtk.c

/*
** display GUI message dialog with OK button
*/
int
gui_message(const char * s, int msg_type) {
        GtkWidget *             dialog;
        GtkWidget *             w;
        int                     resp;

        fprintf(stderr, "DEBUG: message [%s] \n", s);
        switch(msg_type) {

        ...

        gtk_window_set_title(GTK_WINDOW(dialog), gettext("WiFi Networks Manager"));

        fprintf(stderr, "DEBUG: running gtk_dialog_run()\n");
        resp = gtk_dialog_run(GTK_DIALOG(dialog));
        fprintf(stderr, "DEBUG: gtk_dialog_run() returned resp [%d]\n", resp);
        gtk_widget_destroy(dialog);


root@r314251-amd64:/usr/ports/net-mgmt/wifimgr/work/wifimgr-1.11/src # ./wifimgr
DEBUG: after gui_init()
DEBUG: doing wifimgrsu_init()
DEBUG: doing gui_message() for admin pw
DEBUG: message [Enter Administrator password:] 
DEBUG: running gtk_dialog_run()

(hangs here for ever)

i.e. must be some fundamental problem with Gtk. 

If you say:

> Seems to be a property of your OS/ports status/configuration.

Do you have an idea what could be so wrong that 1800 ports are running
(built with poudriere), incl. KDE4, FF 52, ... and just this small Gtk
app not. I have no idea at all (and to be honestly I do not need this
app, I edit /etc/wpa_supplicant.conf with vim :-))

If someone wants to nail it down, I'm happy to help and provide any
information from my *wrong* system.

	matthias
-- 
Matthias Apitz, ✉ guru@unixarea.de, ⌂ http://www.unixarea.de/  ☎ +49-176-38902045
Aus "Nie wieder Krieg!" wurde "Nie wieder Krieg ohne Deutschlands Truppen"
The "No wars anymore!" changed now to "No wars anymore without German battle groups!"
El "¡Nunca jamás guerra!" ha cambiado a "¡Nunca jamás guerra sin tropas alemanas!"