From owner-freebsd-questions@freebsd.org Thu Apr 13 09:19:37 2017 Return-Path: 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 ; 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 ; 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 ) 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 ; 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 To: freebsd-questions@freebsd.org Subject: Re: wifimgr (was: Re: Networkmgr) Message-ID: <20170413091929.GA3612@c720-r314251> Reply-To: Matthias Apitz Mail-Followup-To: Matthias Apitz , freebsd-questions@freebsd.org References: <20170412073851.0ab81213.freebsd@edvax.de> <20170412173019.GA3842@c720-r314251> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-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!"