grub-devel
[Top][All Lists]
Advanced

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

Compilation under MacOSX


From: Yves Blusseau
Subject: Compilation under MacOSX
Date: Tue, 29 Dec 2009 16:29:48 +0100

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]