Thread View: comp.sys.next.programmer
3 messages
3 total messages
Started by peter
Sun, 15 Nov 1992 21:09
strip DB - Application doesn't work
Author: peter
Date: Sun, 15 Nov 1992 21:09
Date: Sun, 15 Nov 1992 21:09
37 lines
1552 bytes
1552 bytes
Hey that's a really funny bug ! I have tested the AddressBook MiniExample Sept 92 (available on sonata.cc.purdue.edu /pub/next/docs/MiniExamples) and it works fine. But then I wanted to install it (make install). The make install command strips the application. This seems to be a very good idea, because it saves disk space ( >1 Mb to 40 K) ! But this example works with dynamically loaded adaptors. In the installed version the method AddressBook/Controller.m - appDidInit:sender [database connectUsingAdaptor:"SybaseAdaptor" andString:"sa@SYBASE/pubs"]; can't find the sybase adaptor ! Is this a real bug or a wonderful feature ? Good luck Peter ```` ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ''''''' Peter Rossbach # # Domaenenstr. 2 # o o # D- 4600 Dortmund 50 # ! # Germany # ~~~ # Phone : +049 0231/715623 # # e-mail : peter@aki.en.open.de (NeXTmail) ### -- ```` ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ''''''' Peter Rossbach # # Domaenenstr. 2 # o o # D- 4600 Dortmund 50
Re: strip DB - Application doesn't work
Author: Sam Streeper
Date: Tue, 17 Nov 1992 01:33
Date: Tue, 17 Nov 1992 01:33
22 lines
1103 bytes
1103 bytes
peter@aki.en.open.de writes: > I have tested the AddressBook MiniExample Sept 92 ... > and it works fine. But then I > wanted to install it (make install). The make install command strips the > application. This seems to be a very good idea, because it saves disk space > ( >1 Mb to 40 K) ! > > But this example works with dynamically loaded adaptors. I haven't seen this example, but apps that will dynamically load code need some symbols left behind to allow linking. You can only strip them so far: strip -x or strip -x -A (I think... this is off the top of my head) -sam -- Opinions expressed herein are not those of my employer. They're not even mine. They're probably wrong besides. How did they get in here, anyway?
Re: strip DB - Application doesn't work
Author: Paul F. Kunz
Date: Fri, 20 Nov 1992 04:53
Date: Fri, 20 Nov 1992 04:53
43 lines
2267 bytes
2267 bytes
>>>>> On 17 Nov 92 01:33:05 GMT, sam_s@NeXT.com (Sam Streeper) said:
> peter@aki.en.open.de writes:
>> I have tested the AddressBook MiniExample Sept 92 ...
>> and it works fine. But then I
>> wanted to install it (make install). The make install command strips the
>> application. This seems to be a very good idea, because it saves disk space
>> ( >1 Mb to 40 K) !
>>
>> But this example works with dynamically loaded adaptors.
> I haven't seen this example, but apps that will dynamically load code need
> some symbols left behind to allow linking. You can only strip them so far:
> strip -x or
> strip -x -A
> (I think... this is off the top of my head)
According to /NextDeveloper/Makefile/app/app.make one wants to
put in one's Makefile.postamble the following line...
APP_STRIP_OPTS = $(DYLD_APP_STRIP_OPTS)
It does "strip -A -n". I put this into an application that
dynamically loads a bundle and also uses rld() directly, and it seems
to work fine. I have not tried it on a DBKit based application.
For my one and only DBKit app, I've put the following in my
Makefile.preamble...
LDFLAGS = -u libdbkit_s -u libNeXT_s -u libsys_s
That magic was in the PreRelease notes on the DBKit. I don't know
where it is in the final release.
But watch out! The makefiles are considerably changed between
the PreRelease and the final. I don't know if the above magic is
still valid since I've not re-compiled my DBKit app since PreRelease days.
--
Paul F. Kunz pfkeb@slac.stanford.edu (NeXT mail ok)
Stanford Linear Accelerator Center, Stanford University
Voice: (415) 926-2884 (NeXT) Fax: (415) 926-3587
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads