Subject: pkg/30584: gtk-send-pr-0.4.5 - Solaris10 don't compile
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Gilles Dauphin <dauphin@enst.fr>
List: pkgsrc-bugs
Date: 06/23/2005 13:33:00
>Number: 30584
>Category: pkg
>Synopsis: gtk-send-pr-0.4.5 - Solaris10 don't compile
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Jun 23 13:33:00 +0000 2005
>Originator: Gilles Dauphin
>Release: SunOS 5.10 i86pc
>Organization:
ENST
>Environment:
System: SunOS bi.enst.fr 5.10 Generic i86pc
>Description:
gtk-send-pr dont' compile on Solaris10
>How-To-Repeat:
gcc -O -Wall -g -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/openwin/include -I/usr/sfw/include -I/usr/sfw/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/pkg/include -D_REENTRANT -D_REENTRANT -c gtk_ui.c
gtk_ui.c: In function `fill_pr':
gtk_ui.c:1044: warning: implicit declaration of function `strsep'
gtk_ui.c:1044: warning: assignment makes pointer from integer without a cast
gtk_ui.c:1063: warning: implicit declaration of function `gtk_combo_box_get_active_text'
gtk_ui.c:1063: warning: assignment makes pointer from integer without a cast
gtk_ui.c: In function `update_profile':
gtk_ui.c:1256: warning: assignment makes pointer from integer without a cast
gcc -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lmlib -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -lesmtp -lssl -lcrypto -lsocket -lpthread -lrt -lpthread -lrt -o gtk-send-pr main.o gtk_ui.o user_settings.o smtp.o file.o uname_gather.o
Undefined first referenced
symbol in file
strsep gtk_ui.o
gtk_combo_box_get_active_text gtk_ui.o
ld: fatal: Symbol referencing errors. No output written to gtk-send-pr
collect2: ld returned 1 exit status
*** Error code 1
Stop.
bmake: stopped in /cal/nfs5/siav/dauphin/pub/tools/gtk-send-pr-0.4.5
>Fix:
For Solaris10 add the following line to gtk_ui.c
#define strsep strpbrk
#if !GTK_CHECK_VERSION(2,6,0)
gchar *
gtk_combo_box_get_active_text (GtkComboBox *combo_box)
{
GtkTreeIter iter;
gchar *text = NULL;
GtkTreeModel* model = gtk_combo_box_get_model(combo_box);
if (gtk_combo_box_get_active_iter (combo_box, &iter))
gtk_tree_model_get (model, &iter, 0, &text, -1);
return text;
}
#endif