From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Qmail-Scanner-Mail-From: kosha@Kp.ru via smtpserv X-Qmail-Scanner: 1.10 (Clear:0. Processed in 0.241772 secs) From: Korshunov Ilya Organization: KP To: sisyphus@altlinux.ru Date: Thu, 6 Feb 2003 16:00:59 +0300 User-Agent: KMail/1.5 MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_LylQ+oZ997ONIgE" Message-Id: <200302061600.59049.kosha@Kp.ru> Subject: [sisyphus] =?koi8-r?b?5dPU2CDU1dQg09DFw9kg0M8gR1RLKw==?= ? Sender: sisyphus-admin@altlinux.ru Errors-To: sisyphus-admin@altlinux.ru X-BeenThere: sisyphus@altlinux.ru X-Mailman-Version: 2.0.9 Precedence: bulk Reply-To: sisyphus@altlinux.ru List-Unsubscribe: , List-Id: List-Post: List-Help: List-Subscribe: , List-Archive: Archived-At: List-Archive: --Boundary-00=_LylQ+oZ997ONIgE Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 8bit Content-Disposition: inline Не собирается софтинка. Сама софтинка есть в сизифе (gtknw2), сорцы взяты оттуда. Внес небольшие изменения , ошибки которые кажет компайлер моих изменений не касаются. Может кто подскажет в чем затык - gcc -DHAVE_CONFIG_H -I. -I. -I.. -DPACKAGE_DATA_DIR=\""/usr/share"\" -DPACKAGE_LOCALE_DIR=\""/usr/share/locale"\" -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/Xft2 -I/usr/include/freetype2 -I/usr/X11R6/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -pipe -Wall -O2 -fexpensive-optimizations -march=i686 -c `test -f 'callbacks.c' || echo './'`callbacks.c callbacks.c: In function `on_entry_username_focus_out_event': callbacks.c:31: warning: implicit declaration of function `strcpy' callbacks.c: In function `on_login_button_clicked': callbacks.c:91: warning: implicit declaration of function `strlen' callbacks.c:119: too many arguments to function `create_quick_dialog' callbacks.c:123: warning: implicit declaration of function `write_config' make[2]: *** [callbacks.o] Error 1 make[2]: Leaving directory `/usr/src/RPM/BUILD/gtknw2-0.2/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/src/RPM/BUILD/gtknw2-0.2' make: *** [all] Error 2 ошибка: Неверный код возврата из /var/tmp/rpm-tmp.61258 (%build) callback.c и .h прилагается. --Boundary-00=_LylQ+oZ997ONIgE Content-Type: text/x-csrc; charset="us-ascii"; name="callbacks.c" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="callbacks.c" #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include #include "callbacks.h" #include "interface.h" #include "support.h" extern char iusername[1024], iserver[1024], icontext[1024], imountpoint[1024]; char ipassword[1024]; void on_main_window_destroy (GtkObject *object, gpointer user_data) { exit (0); } gboolean on_entry_username_focus_out_event (GtkWidget *widget, GdkEventFocus *event, gpointer user_data) { bzero( iusername, 1024 ); strcpy( iusername, (char *)gtk_entry_get_text( (GtkEntry*)widget ) ); return FALSE; } gboolean on_entry_password_focus_out_event (GtkWidget *widget, GdkEventFocus *event, gpointer user_data) { bzero (ipassword, 1024); strcpy (ipassword, (char *) gtk_entry_get_text ((GtkEntry*)widget)); return FALSE; } gboolean on_entry_context_focus_out_event (GtkWidget *widget, GdkEventFocus *event, gpointer user_data) { bzero (icontext, 1024); strcpy (icontext, (char *) gtk_entry_get_text ((GtkEntry*)widget)); return FALSE; } gboolean on_entry_mountpoint_focus_out_event (GtkWidget *widget, GdkEventFocus *event, gpointer user_data) { bzero (imountpoint, 1024); strcpy (imountpoint, (char *) gtk_entry_get_text ((GtkEntry*)widget)); return FALSE; } gboolean on_combo_entry_server_focus_out_event (GtkWidget *widget, GdkEventFocus *event, gpointer user_data) { bzero (iserver, 1024); strcpy (iserver, (char *) gtk_entry_get_text((GtkEntry*)widget)); return FALSE; } void on_login_button_clicked (GtkButton *button, gpointer user_data) { GtkWidget *dialog_warning; gchar command[1024], *buffout, *bufferr; gint exitstatus; GError *error; bzero (command, 1024); strcpy (command, "ncpmount "); if (strlen(iserver) > 0) sprintf(command + strlen(command), "-S %s ", iserver); if (strlen(iusername) > 0) sprintf(command + strlen(command), "-U %s", iusername); if (strlen(icontext) > 0) sprintf(command + strlen(command), ".%s ", icontext); else *(command + strlen(command)) = ' '; if (strlen(ipassword) > 0) sprintf(command + strlen(command), "-P %s ", ipassword); else strcpy(command + strlen(command), "-n "); if (strlen(imountpoint) > 0) strcpy(command + strlen(command), imountpoint); g_spawn_command_line_sync(command,&buffout,&bufferr,&exitstatus,&error); if (exitstatus) { strcpy (command, _("Ncpmount reports following error:\n\n")); if (strlen(bufferr) > 0) { strcpy(command + strlen(command), bufferr); strcpy (command + strlen(command), "\n"); } if (strlen(buffout) > 0) strcpy(command + strlen(command), buffout); dialog_warning = create_quick_dialog(_("Warning!"), command); gtk_widget_show(dialog_warning); } else { write_config(); exit(0); } } void on_cancel_button_clicked (GtkButton *button, gpointer user_data) { exit(0); } void on_about_button_clicked (GtkButton *button, gpointer user_data) { /* Temporatly removed by KOSHA - errors mothefucker GtkWidget *dialog_about; dialog_about = create_quick_dialog(_("About gtknw2"), _("gtk+2 Netware Client 0.2\n\n" "written by\n" "Chris Ross \n" "Grigory Batalov \n" "http://www.lrn.ru/~bga/gtknw2/\n\n" "Distributed under the GPL") ); gtk_widget_show(dialog_about); */ } --Boundary-00=_LylQ+oZ997ONIgE Content-Type: text/x-chdr; charset="us-ascii"; name="callbacks.h" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="callbacks.h" #include void on_main_window_destroy (GtkObject *object, gpointer user_data); gboolean on_entry_username_focus_out_event (GtkWidget *widget, GdkEventFocus *event, gpointer user_data); gboolean on_entry_password_focus_out_event (GtkWidget *widget, GdkEventFocus *event, gpointer user_data); gboolean on_entry_context_focus_out_event (GtkWidget *widget, GdkEventFocus *event, gpointer user_data); gboolean on_entry_mountpoint_focus_out_event (GtkWidget *widget, GdkEventFocus *event, gpointer user_data); gboolean on_combo_entry_server_focus_out_event (GtkWidget *widget, GdkEventFocus *event, gpointer user_data); void on_login_button_clicked (GtkButton *button, gpointer user_data); void on_cancel_button_clicked (GtkButton *button, gpointer user_data); void on_about_button_clicked (GtkButton *button, gpointer user_data); --Boundary-00=_LylQ+oZ997ONIgE--