Re: silc-client-1.1pre5 compile fix
Sami Farin <[email protected]>
| Newsgroups | gmane.network.silc.devel |
|---|---|
| Message-ID | <[email protected]> |
On Thu, Jan 18, 2007 at 20:44:10 +0100, Pekka Riikonen wrote: > On Thu, 18 Jan 2007, Sami Farin wrote: > > : Date: Thu, 18 Jan 2007 15:37:39 +0200 > : From: Sami Farin <[email protected]> > : To: SILC-devel Mailing List <silc-devel-cR8azDVoa3JZ/hxrHI3Fm9i2O/[email protected]> > : Subject: silc-client-1.1pre5 compile fix > : > : gcc -g -O2 -Wall -o silc gui-entry.o gui-expandos.o gui-printtext.o ... > : ../core/libcore.a(network.o): In function `net_connect_ip': > : /usr/local/src/silc-client-1.1pre5/apps/irssi/src/core/network.c:203: > : undefined reference to `sin_set_ip' ... > : > And, when does this happen on what system and with what compiler? Haven't > had any similar problems here. gcc-4.1.1-52 on IA-32 Redhat Fedora, using -O0. I looked at definition of G_INLINE_FUNC , glib defines it to "extern inline". Wouldn't static be more proper? "static inline" works, too. With "extern inline" you'd have to have addressable versions of the functions somewhere. "static inline" can be used in included headers (used in e.g. Linux). But inlining is not required IMHO (these functions are not performance- critical, or do you have evidence of the contrary?). http://tree.celinuxforum.org/CelfPubWiki/ExternVsStaticInline In 2001, Linus said: - "static inline" means "we have to have this function, if you use it but don't inline it, then make a static version of it in this compilation unit" - "extern inline" means "I actually _have_ an extern for this function, but if you want to inline it, here's the inline-version" ... we should just convert all current users of "extern inline" to "static inline". -- _______________________________________________________________________ Info: https://lists.silcnet.org/mailman/listinfo/silc-announce Archive: https://lists.silcnet.org/pipermail/silc-announce FAQ: http://silcnet.org/support/faq/
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFFr9LyMCYCLUwuV18RAl1oAKCX4DwitfbSnn65bCcdAqiCSp4CywCg6rEy Cr7FnODhSvHub0oDLA1SD7c= =dfnH -----END PGP SIGNATURE-----