Problems building libc on OSX 10.3
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com I'm after either: - tips on how to get it to compile, or - a pre-build ppc libc.a that I can link against. Thanks Gideon King novasoft@mac.com _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... Hi, I have an application that needs to run on 10.2, and has a library included which uses wchar, which is not in the 10.2 system dylib (it was added in 10.3). It appears that the simplest way around this would be to grab the latest darwin libc and build a static library and link against that with my application (please correct me if there is a simpler/better way). So I grabbed Libc-320.1.3 which appears to be the latest version, and tried a simple make (on 10.3). This failed - the last few lines are included below. Are there some dependencies that mean that I need to build/install something else first? In file included from /Users/gideon/Desktop/Libc-320.1.3/pthreads/pthread_internals.h:71, from /Users/gideon/Desktop/Libc-320.1.3/gen/malloc.c:24: /Users/gideon/Desktop/Libc-320.1.3/pthreads/pthread_spinlock.h:57:38: machine/cpu_capabilities.h: No such file or directory In file included from /Users/gideon/Desktop/Libc-320.1.3/gen/stack_logging.h:24, from /Users/gideon/Desktop/Libc-320.1.3/gen/malloc.c:36: /Users/gideon/Desktop/Libc-320.1.3/include/objc/malloc.h:24:2: warning: #warning "Use <malloc/malloc.h> instead of <objc/malloc.h>" cc -static -arch ppc -faltivec -DALTIVEC -DNOID -I/Users/gideon/Desktop/Libc-320.1.3/include -I/Users/gideon/Desktop/Libc-320.1.3/include/objc -I/System/Library/Frameworks/System.framework/PrivateHeaders -DLIBC_MAJOR=1 -no-cpp-precomp -force_cpusubtype_ALL -arch ppc -fno-common -pipe -Wmost -g -finline-limit=5000 -D__FBSDID=__RCSID -Wno-long-double -D__APPLE_PR3275149_HACK__ -D__DBINTERFACE_PRIVATE -I/Users/gideon/Desktop/Libc-320.1.3/db/btree -I/Users/gideon/Desktop/Libc-320.1.3/gdtoa -I/Users/gideon/Desktop/Libc-320.1.3/pthreads -D__APPLE_PR_3333969_HACK__ -DINET6 -I/Users/gideon/Desktop/Libc-320.1.3/./obj.ppc -DPOSIX_MISTAKE -DHEXFLOAT -DNOTIFY_TZ -I/Users/gideon/Desktop/Libc-320.1.3/locale -D__APPLE_PR3375657_HACK__ -DYP -DHESIOD -Os -c /Users/gideon/Desktop/Libc-320.1.3/gen/nlist.c -o nlist.o /Users/gideon/Desktop/Libc-320.1.3/gen/nlist.c:216:2: warning: #warning Use the cpusubtype functions!!! cc -static -arch ppc -faltivec -DALTIVEC -DNOID -I/Users/gideon/Desktop/Libc-320.1.3/include -I/Users/gideon/Desktop/Libc-320.1.3/include/objc -I/System/Library/Frameworks/System.framework/PrivateHeaders -DLIBC_MAJOR=1 -no-cpp-precomp -force_cpusubtype_ALL -arch ppc -fno-common -pipe -Wmost -g -finline-limit=5000 -D__FBSDID=__RCSID -Wno-long-double -D__APPLE_PR3275149_HACK__ -D__DBINTERFACE_PRIVATE -I/Users/gideon/Desktop/Libc-320.1.3/db/btree -I/Users/gideon/Desktop/Libc-320.1.3/gdtoa -I/Users/gideon/Desktop/Libc-320.1.3/pthreads -D__APPLE_PR_3333969_HACK__ -DINET6 -I/Users/gideon/Desktop/Libc-320.1.3/./obj.ppc -DPOSIX_MISTAKE -DHEXFLOAT -DNOTIFY_TZ -I/Users/gideon/Desktop/Libc-320.1.3/locale -D__APPLE_PR3375657_HACK__ -DYP -DHESIOD -Os -c /Users/gideon/Desktop/Libc-320.1.3/gen/scalable_malloc.c -o scalable_malloc.o In file included from /Users/gideon/Desktop/Libc-320.1.3/pthreads/pthread_internals.h:71, from /Users/gideon/Desktop/Libc-320.1.3/gen/scalable_malloc.c:28: /Users/gideon/Desktop/Libc-320.1.3/pthreads/pthread_spinlock.h:57:38: machine/cpu_capabilities.h: No such file or directory /Users/gideon/Desktop/Libc-320.1.3/gen/malloc.c:794:2: warning: #warning PHASE OUT THE FOLLOWING FUNCTIONS *** Error code 1 *** Error code 1 2 errors make: *** [build-ppc-static] Error 2 This email sent to site_archiver@lists.apple.com
participants (1)
-
Gideon King