arla 0.40 on OS X 10.3.9
Måns Nilsson
mansaxel at sunet.se
Wed Sep 14 10:13:29 CEST 2005
Three things.
Invocation:
CFLAGS='-I/usr/heimdal/include' ./configure \
--with-krb5=yes \ # You must use "yes", path to Heimdal
# does not work.
--without-krb4 \
--with-openssl=/usr/local && make
1. To use the kafs.h from Heimdal, I had to use CFLAGS, in spite of
"krb5-config --cflags" reporting that /usr/heimdal/include should
be used. Harald and I think that this little row in the generated
configure is to blame, partially:
rasmus:~/src/orig/arla-0.40 mansaxel$ diff configure
../../arla-0.40/configure
47838c47838
< ac_cv_krb4_where_inc=$with_krb5_include
---
> ac_cv_krb5_where_inc=$with_krb5_include
(the "4" version is the original, and my limited knowledge of
Autoconf did not tell me where to find the origin of that data.)
However, even with that hack, we find ourselves needing to put
rasmus:~/src/arla-0.40/appl/mac/Arla_Configuration mansaxel$ diff -c
Makefile.in Makefile.in.orig
*** Makefile.in Tue Sep 13 19:08:54 2005
--- Makefile.in.orig Tue Sep 13 19:03:45 2005
***************
*** 47,53 ****
REALCFLAGS = $(INCLUDES) @KAFS_CPPFLAGS@ $(DEFINES) $(CFLAGS)
KERNEL_INCLUDE = @KERNEL_INCLUDE@
KAFS_LIBS = @AIX_EXTRA_KAFS@ @KAFS_LIBS@
- KRB5_INC_DIR = @KRB5_INC_DIR@
LIBS = ../../../lib/ko/libko.la ../../../util/libarlautil.la \
-framework Cocoa -framework Security \
@LIB_roken@ \
--- 47,52 ----
***************
*** 70,76 ****
.PHONY: all install uninstall depend tags clean
.m.o:
! $(CC) -c $(CPPFLAGS) $(KRB5_INC_DIR) $(DEFS) -I$(srcdir)
-I. $(REALCFLAGS) $<
install: all
$(MKINSTALLDIRS) $(DESTDIR)$(progdir)
--- 69,75 ----
.PHONY: all install uninstall depend tags clean
.m.o:
! $(CC) -c $(CPPFLAGS) $(DEFS) -I$(srcdir) -I. $(REALCFLAGS)
$<
install: all
$(MKINSTALLDIRS) $(DESTDIR)$(progdir)
(from Makefile.in in appl/mac/Arla_Configuration) into a lot of
places.
2. The mac-specific programs refuse to link:
(this is with CFLAGS hack as described above; it is btw needed here
too, or things don't even come past compilation.)
Making all in mac
Making all in Arla_Configuration
gcc -c -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../include
-I../../../appl/lib -I../../../rxdef -I../../../include -I.
-I../../../include -DINET6 -g -I/usr/heimdal/include -Wall
-Wmissing-prototypes -Wpointer-arith -Wmissing-declarations
-Wnested-externs Controller.m
gcc -c -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../include
-I../../../appl/lib -I../../../rxdef -I../../../include -I.
-I../../../include -DINET6 -g -I/usr/heimdal/include -Wall
-Wmissing-prototypes -Wpointer-arith -Wmissing-declarations
-Wnested-externs DataSource.m
gcc -c -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../include
-I../../../appl/lib -I../../../rxdef -I../../../include -I.
-I../../../include -DINET6 -g -I/usr/heimdal/include -Wall
-Wmissing-prototypes -Wpointer-arith -Wmissing-declarations
-Wnested-externs ReadCells.m
gcc -c -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../include
-I../../../appl/lib -I../../../rxdef -I../../../include -I.
-I../../../include -DINET6 -g -I/usr/heimdal/include -Wall
-Wmissing-prototypes -Wpointer-arith -Wmissing-declarations
-Wnested-externs main.m
../../../libtool gcc -o arlaconf Controller.o DataSource.o ReadCells.o
main.o ../../../lib/ko/libko.la ../../../util/libarlautil.la -framework
Cocoa -framework Security ../../../lib/roken/libroken.la
-L/usr/heimdal/lib -L/usr/local//lib -lkafs -lkrb5 -lasn1 -lcom_err
-lcrypto -lroken -lresolv
*** Warning: inferring the mode of operation is deprecated.
*** Future versions of Libtool will require --mode=MODE be specified.
mkdir .libs
gcc -o arlaconf Controller.o DataSource.o ReadCells.o main.o
../../../lib/ko/.libs/libko.a ../../../util/.libs/libarlautil.a
../../../lib/roken/.libs/libroken.a -L/usr/heimdal/lib -L/usr/local//lib
/usr/heimdal/lib/libkafs.dylib /usr/heimdal/lib/libkrb5.dylib
/usr/heimdal/lib/libasn1.dylib /usr/heimdal/lib/libcom_err.dylib -lcrypto
/usr/heimdal/lib/libroken.dylib -lresolv
ld: Undefined symbols:
.objc_class_name_NSBundle
.objc_class_name_NSConstantString
.objc_class_name_NSImage
.objc_class_name_NSNumber
.objc_class_name_NSObject
.objc_class_name_NSString
_AuthorizationCopyRights
_AuthorizationCreate
_AuthorizationFree
_NSApp
_NSBeginAlertSheet
__NSConstantStringClassReference
_objc_msgSend
.objc_class_name_NSButtonCell
.objc_class_name_NSDictionary
.objc_class_name_NSMutableArray
.objc_class_name_NSMutableCharacterSet
.objc_class_name_NSMutableDictionary
.objc_class_name_NSMutableString
_AuthorizationExecuteWithPrivileges
_objc_msgSend_stret
_NSApplicationMain
make[3]: *** [arlaconf] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1
If I remove the SUBDIRS from the appl/mac/Makefile the rest of arla
compiles nicely, but:
3. The kext has problems:
rasmus:/usr/arla root# kextload -t /usr/arla/bin/nnpfs.kext
kernel extension /usr/arla/bin/nnpfs.kext has problems:
Authentication failures
{
"File owner/permissions are incorrect" = (
"/usr/arla/bin/nnpfs.kext/Contents/Info.plist"
"/usr/arla/bin/nnpfs.kext/Contents"
"/usr/arla/bin/nnpfs.kext/Contents/MacOS/nnpfs"
"/usr/arla/bin/nnpfs.kext/Contents/MacOS"
)
}
QuickFix:
rasmus:/usr/arla/bin root# chgrp -R wheel nnpfs.kext/
rasmus:/usr/arla/bin root# kextload -t /usr/arla/bin/nnpfs.kext
kextload: extension /usr/arla/bin/nnpfs.kext appears to be valid
kextload: /usr/arla/bin/nnpfs.kext loaded successfully
Finder still stalls on operations under /afs, but, hey, Film at 11.
--
MÃ¥ns Nilsson Systems Specialist
+46 70 681 7204 cell KTHNOC
+46 8 790 6518 office MN1334-RIPE
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pgp00001.pgp
Type: application/octet-stream
Size: 185 bytes
Desc: "PGP signature"
Url : http://lists.stacken.kth.se/pipermail/arla-drinkers/attachments/00000000/5deaf556/pgp00001.obj
More information about the Arla-drinkers
mailing list