-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi all,
I am new to this list, and have been using fink for a while now (And have been using Debian for years, so it is all pretty familiar to me). I had a go at building emacs21 with the closest match I could see in etc/MACHINES being NeXT, and I needed to make a number of changes to the source. But I am having problems in the last stages of compiling. LC_ALL=C ./temacs -batch -l loadup dump Consumes all memory and brings darwin to a grinding halt. The changes I made were to dispnew.c and unexnext.c dispnew.c : The FILE struct is different from GNU libs and the other alternative as used in the PENDING_OUTPUT_COUNT macro, but I think I defined a correct one using the OSX headers as a reference. #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base) unexnext.c : The undocumented vm_region function (Except in the headers) effects the get_data_region function. I added these vars: vm_region_info_t vm_region_info; vm_region_flavor_t vm_region_flavor; mach_msg_type_number_t mach_msg_type_number; .. and the call to vm_region was changed to: ret = vm_region(current_task(), ®ion.address, ®ion.size, &vm_region_flavor, &vm_region_info, &mach_msg_type_number, ®ion.object_name); if (ret != KERN_SUCCESS || region.address >= VM_HIGHDATA) { break; } //Darwin(Mach's) vm_region differs //TODO! Fix this to detect darwin in the build. region.protection = vm_region_info[0]; region.max_protection = vm_region_info[1]; region.inheritance = vm_region_info[2]; region.shared = vm_region_info[3]; region.offset = vm_region_info[5]; I also needed to use current_task() in place of an undefined function. I had some problems with libraries too, so I messed with LIBES in src/Makefile adding -lSystem.B -ltcl (Whats the equiv of ldd in Darwin? I have had some success with nm, but not the nice clean output of ldd) I wonder if anyone else has had better luck. I can provide patches for what I have done, but its a bit crude at the moment and doesn't work. PS: I have tried a couple of Carbon emacs ports and none have been very stable. I am currently using emacs20 in X11 which is perfect.. but I like using emacs21 better and have been on Debian with alpha releases for a while. ============================== David Stanaway Personal: [EMAIL PROTECTED] Work: [EMAIL PROTECTED] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (Darwin) Comment: For info see http://www.gnupg.org iQEXAwUBPFlPGL6yIDFGeSAyFAJPOwQAji/H2W8R3WuTr0paYJaBIF/TKwwlATLN ISBuuxzX4DviWs7cbF+viKYsJj0JhDsYcrBQ8udOrmVQhi00XB9oT4ZIOLtEwLUI ogOvhgEE5XeCfDKaIE5aaGMSfDpgosz/8PcUzDo2SFPqDFcxSxThaDUz3ipcy5ZM Mz2ZHBkd5doEALDT/wgXBtkY19SjVVMMllN2N8+wz4TWRxiLtfC42doVc89iF2DI IaqcMvzczIfLm/tg6mWDSOy762RjB7GefUXqBx2LTrVunJvLZo3hZBgFSzJ3wbZQ q9qxEGuVI6eaVy0wV+GFxlj9he99s4zLL1virgaz7hyaLnrLFACDIhdg =zwK1 -----END PGP SIGNATURE----- _______________________________________________ Fink-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/fink-devel