macosforge / darwinbuild

Darwinbuild is a collection of tools that assist compilation of the many projects contained in Darwin, the open source base of Apple's macOS operating system.
https://macosforge.github.io/darwinbuild/
Other
128 stars 54 forks source link

pam_modules depends on AppleSystemInfo (headers and framework) #78

Open macosforgebot opened 15 years ago

macosforgebot commented 15 years ago

aladin@… originally submitted this as ticket:79


the pam_modules project cannot be built because of its build and run-time dependency on AppleSystemInfo (which does not seem to be present on my Leopard (10.5.7) too).

First error is:

/private/var/tmp/pam_modules/pam_modules-36.2.obj/pam_serialnumber/pam_serialnumber.c:40:46: error: AppleSystemInfo/ASI_SerialNumber.h: No such file or directory/private/var/tmp/pam_modules/pam_modules-36.2.obj/pam_serialnumber/pam_serialnumber.c:40:46:
 error: AppleSystemInfo/ASI_SerialNumber.h: No such file or directory

Pseudo-satisfying the header dependencies with:

mkdir -p BuildRoot/usr/include/pam/AppleSystemInfo
touch BuildRoot/usr/include/pam/AppleSystemInfo/ASI_SerialNumber.h

leads to

/usr/bin/cc   -lpam -pipe -no-cpp-precomp -arch ppc -arch i386          -L/usr/local/lib -lAppleSystemInfo -framework CoreFoundation -framework IOKit  -g -Os -pipe -Ddarwin -no-cpp-precomp -Wall -I/usr/include/pam -pipe -no-cpp-precomp -arch ppc -arch i386 -bundle -o /private/var/tmp/pam_modules/pam_modules-36.2.obj/pam_serialnumber/pam_serialnumber.so /private/var/tmp/pam_modules/pam_modules-36.2.obj/pam_serialnumber/pam_serialnumber.o
ld: library not found for -lAppleSystemInfo