building sysutils/dd_rescue on FreeBSD 8.x?

Adam Vande More amvandemore at gmail.com
Sun Aug 10 18:25:21 UTC 2014


On Sun, Aug 10, 2014 at 1:13 PM, Torfinn Ingolfsen <tingox at gmail.com> wrote:

> Hello,
> Does anyone know how to build sysutils/dd_rescue on FreeBSD 8.4-stable?
> Specifically this one:
> tingo at kg-core1$ uname -a
> FreeBSD kg-core1.kg4.no 8.4-STABLE FreeBSD 8.4-STABLE #1 r266590: Fri
> May 23 20:23:35 CEST 2014
> root at kg-core1.kg4.no:/usr/obj/usr/src/sys/GENERIC  amd64
>
> Latest ports tree (updated today).
> I added
> MAKE_ARGS+= CFLAGS_OPT="-D__WORDSIZE=64"
> CFLAGS+=    -D__WORDSIZE=64
> to the ports Makefile
> but the port still bombs out:
> ===>  Building for dd_rescue-1.45
> cc -D__WORDSIZE=64 -c frandom.c
> cc -D__WORDSIZE=64 -c fmt_no.c
> cc -D__WORDSIZE=64 -c find_nonzero.c
> cc -D__WORDSIZE=64 -msse2 -c find_nonzero_sse2.c
> cc -O2 -pipe -D__WORDSIZE=64 -fno-strict-aliasing -std=gnu89
> -DNO_SSE42 -DNO_AVX2 -fPIC -o libddr_MD5.po -c libddr_MD5.c
> cc -D__WORDSIZE=64 -fPIC -o md5.po -c md5.c
> libddr_MD5.c:417:1: warning: "feof_unlocked" redefined
> In file included from ddr_plugin.h:14,
>                  from libddr_MD5.c:17:
> /usr/include/stdio.h:502:1: warning: this is the location of the
> previous definition
> cc -D__WORDSIZE=64 -fPIC -o sha256.po -c sha256.c
> cc -D__WORDSIZE=64 -fPIC -o sha512.po -c sha512.c
> cc -D__WORDSIZE=64 -fPIC -o sha1.po -c sha1.c
> cc -O2 -pipe -D__WORDSIZE=64 -fno-strict-aliasing -std=gnu89
> -DNO_SSE42 -DNO_AVX2 -fPIC -o libddr_null.po -c libddr_null.c
> cc -O2 -pipe -D__WORDSIZE=64 -fno-strict-aliasing -std=gnu89
> -DNO_SSE42 -DNO_AVX2 -DVERSION=\"1.45\"  -D__COMPILER__="\"cc (GCC)
> 4.2.1 20070831 patched [FreeBSD]\"" -DHAVE_CONFIG_H  dd_rescue.c -o
> dd_rescue frandom.o fmt_no.o find_nonzero.o  find_nonzero_sse2.o
> dd_rescue.c:165:3: warning: #warning No support for copying extended
> attributes / ACLs
> dd_rescue.c:175:3: warning: #warning We lack stat64, may not handle
> >2GB files correctly
> dd_rescue.c:180:3: warning: #warning We lack lseek64, may not handle
> >2GB files correctly
> cc -shared -o libddr_null.so libddr_null.po
> cc -shared -o libddr_hash.so libddr_MD5.po md5.po sha256.po sha512.po
> sha1.po
> ln -sf libddr_hash.so libddr_MD5.so
> find_nonzero.o(.text+0x210): In function `detect_cpu_cap':
> : undefined reference to `probe_avx2'
> find_nonzero.o(.text+0x271): In function `detect_cpu_cap':
> : undefined reference to `probe_sse42'
> find_nonzero_sse2.o(.text+0x1fe): In function `find_nonzero_sse2o':
> : undefined reference to `myffs_sse42'
> find_nonzero_sse2.o(.text+0x21c): In function `find_nonzero_sse2o':
> : undefined reference to `myffs_c'
> find_nonzero_sse2.o(.text+0x3bc): In function `find_nonzero_sse2':
> : undefined reference to `myffs_sse42'
> find_nonzero_sse2.o(.text+0x3d7): In function `find_nonzero_sse2':
> : undefined reference to `myffs_c'
> gmake: *** [dd_rescue] Error 1
> ===> Compilation failed unexpectedly.
> Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
> the maintainer.
> *** Error code 1
>
> Stop in /usr/ports/sysutils/dd_rescue.
> *** Error code 1
>
> Stop in /usr/ports/sysutils/dd_rescue.
> Any pointers?
> HAND


Why not just use recoverdisk(1)?



-- 
Adam


More information about the freebsd-ports mailing list