grub2 with libzfs

Beeblebrox zaphod at berentweb.com
Wed Mar 27 20:04:57 UTC 2013


Your Makefile went pretty well for a while - config ran cleanly without any
problems.

>>You're compiling with gcc and use gcc46 include files? 
I have lang/gcc46 installed, but found that many gnu-related ports gave gcc
errors. Then I found the fix like this (until gcc port is modified to
correct the problem): These need to be created, because gcc looks in
/usr/bin:
# ln -s /usr/local/bin/gcc46 /usr/bin/gcc
# ln -s /usr/local/bin/g++46 /usr/bin/g++ 

Back to your script, it finished config then started build but broke at
geom_gettree:
/gcc46 -o grub-mount util/grub_mount-grub-mount.o
grub-core/kern/emu/grub_mount-hostfs.o grub-core/disk/grub_mount-host.o
grub_mount-grub_fstest_init.o libgrubmods.a libgrubgcry.a libgrubkern.a
grub-core/gnulib/libgnu.a -lintl    -lfuse  
libgrubkern.a(libgrubkern_a-hostdisk.o): In function
`grub_util_follow_gpart_up':
hostdisk.c:(.text+0x78a): undefined reference to `geom_gettree'
collect2: ld returned 1 exit status
gmake[2]: *** [grub-mount] Error 1
gmake[2]: Leaving directory `/asp/obj/asp/git/grub2/work/grub-2.00'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/asp/obj/asp/git/grub2/work/grub-2.00'
gmake: *** [all] Error 2
*** [do-build] Error code 1

Regards.



--
View this message in context: http://freebsd.1045724.n5.nabble.com/grub2-with-libzfs-tp5799405p5799473.html
Sent from the freebsd-ports mailing list archive at Nabble.com.


More information about the freebsd-ports mailing list