Re: compile error with balsa-2.1.0



> > I tried to make balsa-2.1.0, but got the following error:
> [ snip ]
> > libbalsa.c: In function `libbalsa_assure_balsa_dir':
> > libbalsa.c:346: `S_IRUSR' undeclared (first use in this =20
> > function)
> Could you try adding
> #include <sys/stat.h>
> That's where those symbols are defined (on my RH9 box).
> Peter

I added this line in

libbalsa.c
mailbox_imap.c
mailbox_mbox.c

and it worked. But then I got the following error:

gcc -g -O2 -Wsign-compare -Wpointer-arith -Wnested-externs -Wchar- 
subscripts -Wuninitialized -Wmissing-prototypes -Wreturn-type -o balsa  
address-book-config.o ab-window.o balsa-app.o balsa-icons.o balsa- 
index.o balsa-mblist.o balsa-message.o expand-alias.o filter-edit- 
callbacks.o filter-edit-dialog.o filter-export-callbacks.o filter- 
export-dialog.o filter-run-callbacks.o filter-run-dialog.o folder-conf. 
o information-dialog.o mailbox-conf.o mailbox-node.o main-window.o  
main.o message-window.o pref-manager.o print.o quote-color.o save- 
restore.o sendmsg-window.o spell-check.o store-address.o toolbar- 
factory.o toolbar-prefs.o Balsa-common.o Balsa-skels.o Balsa-stubs.o  
balsa-bonobo.o  ../libinit_balsa/libinit_balsa.a ../libbalsa/libbalsa.a ../ 
libbalsa/imap/libimap.a -L/usr/local/lib -L/opt/gnome2/lib -L/usr/ 
X11R6/lib /opt/gnome2/lib/libgnomeui-2.so -L/usr/lib -lSM -lICE /opt/ 
gnome2/lib/libbonoboui-2.so /opt/gnome2/lib/libgnome-2.so /usr/lib/ 
libesd.so /usr/lib/libaudiofile.so /opt/gnome2/lib/libgnomevfs-2.so / 
opt/gnome2/lib/libgconf-2.so -lrt /usr/local/lib/libgmime-2.0.so - 
lnsl /opt/gnome2/lib/libgnomeprintui-2.so /opt/gnome2/lib/ 
libgnomeprint-2.so /usr/lib/libfreetype.so /opt/gnome2/lib/libbonobo-2. 
so /usr/lib/libORBitCosNaming-2.so /opt/gnome2/lib/libbonobo- 
activation.so /usr/lib/libORBit-2.so /usr/lib/libpopt.so /usr/lib/ 
liblinc.so /usr/lib/libgthread-2.0.so /opt/gnome2/lib/libgtkhtml-2.so / 
usr/lib/libgailutil.so -lgnomecanvas-2 /usr/lib/libart_lgpl_2.so /usr/ 
lib/libpangoft2-1.0.so /usr/lib/libgtk-x11-2.0.so /usr/lib/libxml2.so - 
lz /usr/lib/libgdk-x11-2.0.so /usr/lib/libatk-1.0.so /usr/lib/ 
libgdk_pixbuf-2.0.so /usr/lib/libpangoxft-1.0.so /usr/lib/libpangox- 
1.0.so /usr/lib/libpango-1.0.so /usr/lib/libgobject-2.0.so /usr/lib/ 
libgmodule-2.0.so /usr/lib/libglib-2.0.so /usr/lib/libpcreposix.so / 
usr/lib/libpcre.so /usr/lib/libpspell.so /usr/lib/libstdc++.so -lm - 
lgcc_s /usr/lib/libltdl.so /usr/lib/libpspell-modules.so -lpthread / 
usr/lib/libesmtp.so -lssl -lcrypto -ldl -Wl,--rpath -Wl,/opt/gnome2/lib  
-Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath -Wl,/opt/gnome2/lib -Wl,-- 
rpath -Wl,/usr/local/lib
balsa-index.o: In function `bndx_view_source':
/home/tf/download/internet/balsa/2.1/balsa-2.1.0/src/balsa-index. 
c:1211: undefined reference to `gtk_tree_selection_get_selected_rows'
../libbalsa/libbalsa.a(mailbox_mh.o): In function  
`lbm_mh_handle_seq_line':
/home/tf/download/internet/balsa/2.1/balsa-2.1.0/libbalsa/mailbox_mh. 
c:365: undefined reference to `g_str_has_prefix'
/home/tf/download/internet/balsa/2.1/balsa-2.1.0/libbalsa/mailbox_mh. 
c:367: undefined reference to `g_str_has_prefix'
/home/tf/download/internet/balsa/2.1/balsa-2.1.0/libbalsa/mailbox_mh. 
c:369: undefined reference to `g_str_has_prefix'
../libbalsa/libbalsa.a(mailbox_mh.o): In function  
`libbalsa_mailbox_mh_sync':
/home/tf/download/internet/balsa/2.1/balsa-2.1.0/libbalsa/mailbox_mh. 
c:795: undefined reference to `g_str_has_prefix'
/home/tf/download/internet/balsa/2.1/balsa-2.1.0/libbalsa/mailbox_mh. 
c:795: undefined reference to `g_str_has_prefix'
../libbalsa/libbalsa.a(mailbox_mh.o):/home/tf/download/internet/ 
balsa/2.1/balsa-2.1.0/libbalsa/mailbox_mh.c:795: more undefined  
references to `g_str_has_prefix' follow
collect2: ld returned 1 exit status

Tobias



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]