sjmurdoch / mtftar

Port of mtftar to Mac OS X. Original at http://freecode.com/projects/mtftar and http://gpl.internetconnection.net/
GNU General Public License v2.0
43 stars 7 forks source link

couldn't understand kern.osversion `15.2.0' #4

Open RobWu opened 8 years ago

RobWu commented 8 years ago

Get following error when running 'make'

/usr/local/Cellar/apple-gcc42/4.2.1-5666.3/bin/gcc-4.2 -Wall -D_GNU_SOURCE -fno-strict-aliasing -arch i386   -c -o mtftar.o mtftar.c
couldn't understand kern.osversion `15.2.0'

/usr/local/Cellar/apple-gcc42/4.2.1-5666.3/bin/gcc-4.2 -Wall -D_GNU_SOURCE -fno-strict-aliasing -arch i386   -c -o mtfscan.o mtfscan.c
couldn't understand kern.osversion `15.2.0'

/usr/local/Cellar/apple-gcc42/4.2.1-5666.3/bin/gcc-4.2 -Wall -D_GNU_SOURCE -fno-strict-aliasing -arch i386   -c -o mtfheader.o mtfheader.c
couldn't understand kern.osversion `15.2.0'

/usr/local/Cellar/apple-gcc42/4.2.1-5666.3/bin/gcc-4.2 -Wall -D_GNU_SOURCE -fno-strict-aliasing -arch i386   -c -o mtfstream.o mtfstream.c
couldn't understand kern.osversion `15.2.0'

/usr/local/Cellar/apple-gcc42/4.2.1-5666.3/bin/gcc-4.2 -Wall -D_GNU_SOURCE -fno-strict-aliasing -arch i386   -c -o tarout.o tarout.c
couldn't understand kern.osversion `15.2.0'

/usr/local/Cellar/apple-gcc42/4.2.1-5666.3/bin/gcc-4.2 -Wall -D_GNU_SOURCE -fno-strict-aliasing -arch i386   -c -o util.o util.c
couldn't understand kern.osversion `15.2.0'

/usr/local/Cellar/apple-gcc42/4.2.1-5666.3/bin/gcc-4.2 -Wall -D_GNU_SOURCE -fno-strict-aliasing -arch i386  mtftar.o mtfscan.o mtfheader.o mtfstream.o tarout.o util.o   -o mtftar
couldn't understand kern.osversion `15.2.0'

ld: warning: ld: warning: object file (mtftar.o) was built for newer OSX version (10.11) than being linked (10.4)object file (mtfscan.o) was built for newer OSX version (10.11) than being linked (10.4)

ld: warning: object file (mtfheader.o) was built for newer OSX version (10.11) than being linked (10.4)
ld: warning: object file (mtfstream.o) was built for newer OSX version (10.11) than being linked (10.4)
ld: warning: object file (tarout.o) was built for newer OSX version (10.11) than being linked (10.4)
ld: warning: object file (util.o) was built for newer OSX version (10.11) than being linked (10.4)
strip mtftar
RobWu commented 8 years ago

Use OS X El Capitan Version 10.11.2 (15C50)

sjmurdoch commented 8 years ago

I've tried to build this for x86 to maximise compatibility, but I might need a new flag. Could you pull the latest version, run "make clean" and then build again?

RobWu commented 8 years ago
/usr/local/Cellar/apple-gcc42/4.2.1-5666.3/bin/gcc-4.2 -Wall -D_GNU_SOURCE -fno-strict-aliasing -arch i386 -mmacosx-version-min=10.4   -c -o mtftar.o mtftar.c
/usr/local/Cellar/apple-gcc42/4.2.1-5666.3/bin/gcc-4.2 -Wall -D_GNU_SOURCE -fno-strict-aliasing -arch i386 -mmacosx-version-min=10.4   -c -o mtfscan.o mtfscan.c
/usr/local/Cellar/apple-gcc42/4.2.1-5666.3/bin/gcc-4.2 -Wall -D_GNU_SOURCE -fno-strict-aliasing -arch i386 -mmacosx-version-min=10.4   -c -o mtfheader.o mtfheader.c
/usr/local/Cellar/apple-gcc42/4.2.1-5666.3/bin/gcc-4.2 -Wall -D_GNU_SOURCE -fno-strict-aliasing -arch i386 -mmacosx-version-min=10.4   -c -o mtfstream.o mtfstream.c
/usr/local/Cellar/apple-gcc42/4.2.1-5666.3/bin/gcc-4.2 -Wall -D_GNU_SOURCE -fno-strict-aliasing -arch i386 -mmacosx-version-min=10.4   -c -o tarout.o tarout.c
/usr/local/Cellar/apple-gcc42/4.2.1-5666.3/bin/gcc-4.2 -Wall -D_GNU_SOURCE -fno-strict-aliasing -arch i386 -mmacosx-version-min=10.4   -c -o util.o util.c
/usr/local/Cellar/apple-gcc42/4.2.1-5666.3/bin/gcc-4.2 -Wall -D_GNU_SOURCE -fno-strict-aliasing -arch i386 -mmacosx-version-min=10.4  mtftar.o mtfscan.o mtfheader.o mtfstream.o tarout.o util.o   -o mtftar

ld: warning: object file (mtftar.o) was built for newer OSX version (10.11) than being linked (10.4)
ld: warning: ld: warning: object file (mtfscan.o) was built for newer OSX version (10.11) than being linked (10.4)object file (mtfheader.o) was built for newer OSX version (10.11) than being linked (10.4)

ld: warning: object file (mtfstream.o) was built for newer OSX version (10.11) than being linked (10.4)
ld: warning: object file (tarout.o) was built for newer OSX version (10.11) than being linked (10.4)
ld: warning: object file (util.o) was built for newer OSX version (10.11) than being linked (10.4)
strip mtftar
RobWu commented 8 years ago
>  ./mtftar
[1]    53122 segmentation fault  ./mtftar
sjmurdoch commented 8 years ago

How about now? I don't have easy access to OS X 10.11 but it's possible they have now disabled 32-bit compatibility.