 |
 |
compiling irssi under 10.4 tiger?
|
 |
|
 |
|
Senior User
Join Date: Aug 2002
Status:
Offline
|
|
can anyone here sucessfully compile irssi under tiger? i really don't wanna use fink... if anyone knows how to do it, lemme anyone...
|
|
|
| |
|
|
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Nov 2003
Location: Oslo, Norway
Status:
Offline
|
|
irssi compiled fine on Tiger here.
But I had to use ggc 3.3, since it errors out with gcc 4.0!
1. Download and extract http://www.irssi.org/files/irssi-0.8.9.tar.bz2
2. Download and extract http://www.irssi.org/files/glib-1.2.10.tar.gz into the irssi-0.8.9 directory
3. Run "sudo gcc_select 3.3" to set gcc 3.3 as default compiler ("sudo gcc_select 4.0" to get gcc 4.0 back afterwards)
4. cd into irssi_0.8.9/glib_1.2.10/
5. Run "./configure -host=powerpc-apple-macosx; make" to compile glib
6. cd one level up, "cd .."
7. Run "./configure; make" to compile irssi
Its not that difficult!
|
|
|
| |
|
|
|
 |
|
 |
|
Senior User
Join Date: Aug 2002
Status:
Offline
|
|
hrmmm, ok no wonder why, so perl and everything works for you with irssi? I was using gcc 4.0 to compile, and also i thought you needed to compile gettext, and pkgconfig as well? So only glib is needed?
The version of glib I dl'd and compiled was 2.6.4, which is the latest, will this be okay too?
also since i already compiled and ran sudo make install for: gettext, pkgconfig, glib 2.6.4, how can i delete those entirely off my system and start over fresh again? please help. Thanks
|
|
|
| |
|
|
|
 |
|
 |
|
Senior User
Join Date: Aug 2002
Status:
Offline
|
|
ok, i cd into my irssi-0.8.9 folder
and did what you say, and selected gcc 3.3 as the default compiler and then did a ./configure;make
it starts compiling and i get an error at around here:
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src -I../../src/core/ -I../../src/fe-common/core/ -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -DLOCALEDIR=\""/usr/local/share/locale"\" -g -O2 -Wall -c module-formats.c
/bin/sh ../../libtool --mode=link gcc -g -O2 -Wall -o irssi -export-dynamic gui-entry.o gui-expandos.o gui-printtext.o gui-readline.o gui-windows.o lastlog.o mainwindows.o mainwindow-activity.o mainwindows-layout.o statusbar.o statusbar-config.o statusbar-items.o term.o term-dummy.o term-terminfo.o terminfo-core.o textbuffer.o textbuffer-commands.o textbuffer-reformat.o textbuffer-view.o utf8.o irssi.o module-formats.o ../fe-common/irc/libfe_common_irc.a ../fe-common/irc/dcc/libfe_irc_dcc.a ../fe-common/irc/notifylist/libfe_irc_notifylist.a ../fe-common/core/libfe_common_core.a ../irc/libirc.a ../irc/core/libirc_core.a ../irc/dcc/libirc_dcc.a ../irc/flood/libirc_flood.a ../irc/notifylist/libirc_notifylist.a ../core/libcore.a ../lib-config/libirssi_config.a ../lib-popt/libpopt.a ../perl/libperl_core_static.la ../perl/libfe_perl_static.la -L/usr/local/lib /System/Library/Perl/5.8.6/darwin-thread-multi-2level/auto/DynaLoader/DynaLoader.a -L/System/Library/Perl/5.8.6/darwin-thread-multi-2level/CORE -lperl -ldl -lm -L/usr/local/lib -lglib-2.0 -lintl -liconv -lgmodule-2.0 -lssl -lcrypto -lncurses
mkdir .libs
gcc -g -O2 -Wall -o irssi gui-entry.o gui-expandos.o gui-printtext.o gui-readline.o gui-windows.o lastlog.o mainwindows.o mainwindow-activity.o mainwindows-layout.o statusbar.o statusbar-config.o statusbar-items.o term.o term-dummy.o term-terminfo.o terminfo-core.o textbuffer.o textbuffer-commands.o textbuffer-reformat.o textbuffer-view.o utf8.o irssi.o module-formats.o ../fe-common/irc/libfe_common_irc.a ../fe-common/irc/dcc/libfe_irc_dcc.a ../fe-common/irc/notifylist/libfe_irc_notifylist.a ../fe-common/core/libfe_common_core.a ../irc/libirc.a ../irc/core/libirc_core.a ../irc/dcc/libirc_dcc.a ../irc/flood/libirc_flood.a ../irc/notifylist/libirc_notifylist.a ../core/libcore.a ../lib-config/libirssi_config.a ../lib-popt/libpopt.a ../perl/.libs/libperl_core_static.a ../perl/.libs/libfe_perl_static.a -L/usr/local/lib /System/Library/Perl/5.8.6/darwin-thread-multi-2level/auto/DynaLoader/DynaLoader.a -L/System/Library/Perl/5.8.6/darwin-thread-multi-2level/CORE -lperl -ldl -lm /usr/local/lib/libgmodule-2.0.dylib /usr/local/lib/libglib-2.0.dylib /usr/local/lib/libintl.dylib /usr/lib/libiconv.dylib -lc -lssl -lcrypto -lncurses
ld: Undefined symbols:
_sscanf$LDBLStub
_printf$LDBLStub
_fprintf$LDBLStub
_sprintf$LDBLStub
make[3]: *** [irssi] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive-am] Error 2
not sure why? Do i have to have my glib 2.6.4 folder withing the irssi-0.8.9 folder? Also I should let you know that when I compiled glib earlier, i used gcc 4.0 for gettext, pkgconfig and glib. and I just did a ./configure on all of em, nothing more, is it absolutely necessary i do a ./configure -host=powerpc-apple-macosx; make for glib? (by the way, i get this when i typed in what you told me:
nigznagz:~/irssi/glib-2.6.4 kwonz$ ./configure -host=powerpc-apple-macosx
configure: WARNING: If you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used.
Also aren't you missing the last step which should be "sudo make install" after it finishes compiling everything?
|
|
|
| |
|
|
|
 |
|
 |
|
Senior User
Join Date: Aug 2002
Status:
Offline
|
|
ok, i got rid of pkgconfig, gettext by doing sudo make uninstall, and dl'd the glib 1.2.10 like you said, did everything like you said...
irssi compiles fine, so i did a sudo make install
and then ran irssi, it seems to be working, but it won't connect to ANY server for some reason, any ideas?
|
|
|
| |
|
|
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Nov 2003
Location: Oslo, Norway
Status:
Offline
|
|
First of all I dont know if it works with glib 2.6.4, since I used 1.2.10 (from the irssi download page).
-host=powerpc-apple-macosx is needed because configure dont detect the host system automatic. That might have changed in 2.6.4.
The main reason to place the glib directory inside the irssi source directory are that you can build with glib without installing it. So its easily deletable when you're done.
So I suggest you delete your glib installation and follow the steps I posted above...
I did not miss the "sudo make install" step. I simply did not mention it, because it is not a part of the compile process.
Edit: I answered to late, as you've already been able to compile it!
Dont know how to use it, so you need someone else to help you with that part...
|
|
|
| |
|
|
|
 |
|
 |
|
Senior User
Join Date: Aug 2002
Status:
Offline
|
|
i see, okay, irssi runs fine, but it wont connect to any servers now, what gives? and everytime i type irssi in terminal it gives me an error:
matrix:~/irssi/irssi-0.8.9 danny$ irssi
GLib-WARNING **: getpwuid_r(): failed due to: Result too large.
but it still runs though, just doesn't connect, any ideas?
also i heard that glib requires gettext and pkgconfig to be compiled to as well?
(Last edited by nycdunz; Apr 24, 2005 at 01:34 PM.
)
|
|
|
| |
|
|
|
 |
|
 |
|
Forum Regular
Join Date: May 2001
Location: where the polarbears are? =) Finland
Status:
Offline
|
|
nogo, whatsoever I do, it either fails or does not work.
Ok, got it around glib, it needed to be patched... but now perl fails.
Update: I got it a working...
I did a complete reinstall, only migrating network settings and such (developer installed, of course)
Then I proceeded to compile these - not sure in wich order though - glib needs pkgconfig and gettetxt in order to succeed.
pkgconfig-0.17.2
gettext-0.14.4
glib-2.6.4
Irssi I tried to compile at first without changing the compiler (above were compiled with gcc4) but it failed, then with gcc3.3 a success!
irssi-0.8.9
(no switches were used for ./configure, none that I can recall at least...)
(Last edited by Crimson; May 8, 2005 at 05:20 AM.
(Reason:It's alive!))
|
|
|
| |
|
|
|
 |
|
 |
|
Forum Regular
Join Date: May 2001
Location: where the polarbears are? =) Finland
Status:
Offline
|
|
ok: forgot to add: glib needs to be patched, http://bugzilla.gnome.org/show_bug.cgi?id=302672
---------------SNIP------------------------------------------
--- glib/gmain.c.orig 2005-05-01 18:24:23.000000000 -0400
+++ glib/gmain.c 2005-05-01 18:24:40.000000000 -0400
@@ -52,7 +52,7 @@
/* The poll() emulation on OS/X doesn't handle fds=NULL, nfds=0,
* so we prefer our own poll emulation.
*/
-#ifdef _POLL_EMUL_H_
+#ifdef __APPLE__
#undef HAVE_POLL
#endif
-------------------------------------------------------------
For those who want to go straight... above is the patch.
|
|
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Jan 2000
Location: Flagstaff, AZ USA
Status:
Offline
|
|
Couple of quick notes to add to this thread, since I've been working on getting this to work recently. I talked with the guy who wrote the MacIrssi front end, and he gave me a few leads since he just released a Tiger-compatible version yesterday. His configure line looks like:
./configure --with-modules --enable-ipv6 --enable-ssl --without-textui --with-perl=no
The current configure line I'm using is:
./configure --with-perl --with-proxy --with-curses --without-terminfo --enable-ssl
It builds straight through with no errors with gcc3.3. Disabling perl will get it to build straight through with no issues on gcc4.0. Using curses instead of terminfo gets it so the UI actually starts correctly (you don't have to press a key to get output from it). The next problem I'm seeing is that it's not actually creating the sockets to do anything. 'lsof | grep irssi' lists no network connections whatsoever, so I'm not even sure it's doing the DNS lookups. It currently hangs right after printing that it's doing those. It does however load all of the modules and scripts I have so the code isn't a complete loss.
I'm going to try enabling ipv6 next, since I haven't tried that yet.
|
|
|
| |
|
|
|
 |
|
 |
|
Forum Regular
Join Date: May 2001
Location: where the polarbears are? =) Finland
Status:
Offline
|
|
tlmad: what glib you're using? as I mentioned above, glib 2.6.4 is hosed and needs a patch.
|
|
|
| |
|
|
|
 |
|
 |
|
Forum Regular
Join Date: May 2001
Location: where the polarbears are? =) Finland
Status:
Offline
|
|
current line used to configure irssi 0.8.10a with above patched glib and pkg-config 0.21, gettext 0.16.1:
./configure --disable-dependency-tracking --with-glib-prefix=/usr/local/lib/ --with-perl=module
perl needs to be loaded after startup with "load perl"
Any ideas to get latest glib working properly?
|
|
|
| |
|
|
|
 |
|
 |
|
Forum Regular
Join Date: May 2001
Location: where the polarbears are? =) Finland
Status:
Offline
|
|
latest glib (2.12.9) has the patch rolled in, and it works... although when quitting, there's an error:
irssi(9269) malloc: *** Deallocation of a pointer not malloced: 0x2f85b8; This could be a double free(), or free() called with the middle of an allocated block; Try setting environment variable MallocHelp to see tools to help debug
irssi(9269) malloc: *** Deallocation of a pointer not malloced: 0x2f8458; This could be a double free(), or free() called with the middle of an allocated block; Try setting environment variable MallocHelp to see tools to help debug
irssi(9269) malloc: *** Deallocation of a pointer not malloced: 0x2f84d8; This could be a double free(), or free() called with the middle of an allocated block; Try setting environment variable MallocHelp to see tools to help debug
irssi(9269) malloc: *** Deallocation of a pointer not malloced: 0x2f8538; This could be a double free(), or free() called with the middle of an allocated block; Try setting environment variable MallocHelp to see tools to help debug
[dmcrimson][~]$
|
|
|
| |
|
|
|
 |
|
 |
|
Forum Regular
Join Date: May 2001
Location: where the polarbears are? =) Finland
Status:
Offline
|
|
On plain vanilla system, latest glib (2.12.10) and latest irssi (0.8.11-rc1) - above error is not there  Had to reinstall, I had phooked my perl...
(Last edited by Crimson; Apr 3, 2007 at 12:19 AM.
)
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|