* Compilation under MacOSX
@ 2009-12-29 15:29 Yves Blusseau
2009-12-30 2:15 ` Grégoire Sutre
2010-01-01 12:34 ` Robert Millan
0 siblings, 2 replies; 3+ messages in thread
From: Yves Blusseau @ 2009-12-29 15:29 UTC (permalink / raw)
To: The development of GRUB 2
Hi all,
here the news:
the main trunk (mainline) can be compile on Mac OSX (snow leopard) but i need to add a LDFLAGS="-lintl" so utils like grub-mkimage can link.
I think the _( gettext macro is not expand on linux when grub-mkimage is compile under linux because they are no reference of the gettext library in the executable.
But in MacOSX i have this error:
gcc-4.2 -o grub-mkimage grub_mkimage-gnulib_progname.o grub_mkimage-util_i386_pc_grub_mkimage.o grub_mkimage-util_misc.o grub_mkimage-util_resolve.o grub_mkimage-lib_LzmaEnc.o grub_mkimage-lib_LzFind.o
Undefined symbols:
"_libintl_gettext", referenced from:
_compress_kernel in grub_mkimage-util_i386_pc_grub_mkimage.o
_compress_kernel in grub_mkimage-util_i386_pc_grub_mkimage.o
_generate_image in grub_mkimage-util_i386_pc_grub_mkimage.o
_generate_image in grub_mkimage-util_i386_pc_grub_mkimage.o
_generate_image in grub_mkimage-util_i386_pc_grub_mkimage.o
_generate_image in grub_mkimage-util_i386_pc_grub_mkimage.o
_usage in grub_mkimage-util_i386_pc_grub_mkimage.o
_usage in grub_mkimage-util_i386_pc_grub_mkimage.o
_main in grub_mkimage-util_i386_pc_grub_mkimage.o
"_libintl_textdomain", referenced from:
_main in grub_mkimage-util_i386_pc_grub_mkimage.o
"_libintl_bindtextdomain", referenced from:
_main in grub_mkimage-util_i386_pc_grub_mkimage.o
ld: symbol(s) not found
adding the LDFLAGS="-lintl" fix the problem
For the experimental trunk, i have an undefined symbol:
util/grub-mkpasswd-pbkdf2.c:218: warning: implicit declaration of function ‘getline’
gcc-4.2 -o grub-mkpasswd-pbkdf2 grub_mkpasswd_pbkdf2-gnulib_progname.o grub_mkpasswd_pbkdf2-util_grub_mkpasswd_pbkdf2.o grub_mkpasswd_pbkdf2-lib_crypto.o grub_mkpasswd_pbkdf2-lib_libgcrypt_grub_cipher_sha512.o grub_mkpasswd_pbkdf2-lib_pbkdf2.o grub_mkpasswd_pbkdf2-util_misc.o grub_mkpasswd_pbkdf2-kern_err.o -L/opt/local/lib -lintl
Undefined symbols:
"_getline", referenced from:
_main in grub_mkpasswd_pbkdf2-util_grub_mkpasswd_pbkdf2.o
_main in grub_mkpasswd_pbkdf2-util_grub_mkpasswd_pbkdf2.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [grub-mkpasswd-pbkdf2] Error 1
seems that the getline function is not defined anywhere.
Best regards,
Yves Blusseau
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Compilation under MacOSX
2009-12-29 15:29 Compilation under MacOSX Yves Blusseau
@ 2009-12-30 2:15 ` Grégoire Sutre
2010-01-01 12:34 ` Robert Millan
1 sibling, 0 replies; 3+ messages in thread
From: Grégoire Sutre @ 2009-12-30 2:15 UTC (permalink / raw)
To: The development of GNU GRUB
Hi Yves,
>
> the main trunk (mainline) can be compile on Mac OSX (snow leopard) but i need to add a LDFLAGS="-lintl" so utils like grub-mkimage can link.
I experienced a similar problem when compiling trunk on NetBSD:
http://savannah.gnu.org/bugs/?28356
Adding LDFLAGS="-lintl" also solved the problem, but a better (?) option
might be to use the variable LIBINTL that is set by the macro
AM_GNU_GETTEXT (see the above bug report for some details and for a
possible patch).
Best,
Grégoire
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Compilation under MacOSX
2009-12-29 15:29 Compilation under MacOSX Yves Blusseau
2009-12-30 2:15 ` Grégoire Sutre
@ 2010-01-01 12:34 ` Robert Millan
1 sibling, 0 replies; 3+ messages in thread
From: Robert Millan @ 2010-01-01 12:34 UTC (permalink / raw)
To: The development of GNU GRUB
On Tue, Dec 29, 2009 at 04:29:48PM +0100, Yves Blusseau wrote:
> gcc-4.2 -o grub-mkpasswd-pbkdf2 grub_mkpasswd_pbkdf2-gnulib_progname.o grub_mkpasswd_pbkdf2-util_grub_mkpasswd_pbkdf2.o grub_mkpasswd_pbkdf2-lib_crypto.o grub_mkpasswd_pbkdf2-lib_libgcrypt_grub_cipher_sha512.o grub_mkpasswd_pbkdf2-lib_pbkdf2.o grub_mkpasswd_pbkdf2-util_misc.o grub_mkpasswd_pbkdf2-kern_err.o -L/opt/local/lib -lintl
> Undefined symbols:
> "_getline", referenced from:
> _main in grub_mkpasswd_pbkdf2-util_grub_mkpasswd_pbkdf2.o
> _main in grub_mkpasswd_pbkdf2-util_grub_mkpasswd_pbkdf2.o
> ld: symbol(s) not found
> collect2: ld returned 1 exit status
> make: *** [grub-mkpasswd-pbkdf2] Error 1
>
> seems that the getline function is not defined anywhere.
I just imported getline() from Gnulib.
--
Robert Millan
"Be the change you want to see in the world" -- Gandhi
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-01-01 12:34 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-29 15:29 Compilation under MacOSX Yves Blusseau
2009-12-30 2:15 ` Grégoire Sutre
2010-01-01 12:34 ` Robert Millan
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.