Hide Forgot
Description of problem: rebuild with latest gcc fails: second/fs_reiserfs.c:621:54: warning: operation on 'depth' may be undefined [-Wsequence-point] ld -Ttext 0x200000 -Bstatic second/crt0.o second/yaboot.o second/cache.o second/prom.o second/file.o second/partition.o second/fs.o second/cfg.o second/setjmp.o second/cmdline.o second/fs_of.o second/fs_ext2.o second/fs_iso.o second/iso_util.o second/sha256crypt.o second/sha512crypt.o lib/nosys.o lib/string.o lib/strtol.o lib/vsprintf.o lib/ctype.o lib/malloc.o lib/stpncpy.o lib/strstr.o second/md5.o second/fs_xfs.o second/fs_reiserfs.o -lext2fs `gcc -m32 -print-libgcc-file-name` -o second/yaboot /usr/lib/libext2fs.a(inode.o): In function `ext2fs_open_inode_scan': (.text+0x3b8): undefined reference to `posix_memalign' /usr/lib/libext2fs.a(openfs.o): In function `ext2fs_open2': (.text+0x2e8): undefined reference to `posix_memalign' /usr/lib/libext2fs.a(rw_bitmaps.o): In function `write_bitmaps': (.text+0xec): undefined reference to `posix_memalign' /usr/lib/libext2fs.a(rw_bitmaps.o): In function `write_bitmaps': (.text+0x280): undefined reference to `posix_memalign' /usr/lib/libext2fs.a(rw_bitmaps.o): In function `read_bitmaps': (.text+0x548): undefined reference to `posix_memalign' Complete logs are available at https://ppc.koji.fedoraproject.org/koji/taskinfo?taskID=145379
If it's any help, I tried building ver. 1.3.15, 1.3.16, and the latest version of yaboot in the git repo. They all compiled successfully (on Debian Squeeze.) The version of e2fslibs-dev on my 32-bit PPC machine is: 1.41.12-2.
Please try the build at: http://ppc.koji.fedoraproject.org/koji/taskinfo?taskID=189646
I was able to build yaboot-1.3.16-4.fc15 with Tony's patch. Thanks !