postgresql with eof cocoa app

Jim McLoughlin <[email protected]> Thu, 27 May 2004 18:20:47 -0700
Newsgroups gmane.comp.web.webobjects.eof
Message-ID <[email protected]>
Hi

I posted this to wo-dev without any responses, so I'm giving this list  
a try

----------------------

I've been able to use the cocoa-eof option with openbase, but am  
running into troubles trying it with postgresql. (I'm using the  
postgresql plugin from hexdreams.com)

When I link the project against the PostgresqlPlugIn framework (which  
works fine with a direct2web or java app), I get the error:


ld:  
/Users/jim/Library/Frameworks/PostgresqlPlugIn.framework/ 
PostgresqlPlugIn extrefsymoff plus nextrefsyms * sizeof(struct  
dylib_reference) in load command 7 extends past the end of the file
ld: warning prebinding disabled because dependent library:  
/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit can't be  
searched
		ld:  
/Users/jim/Library/Frameworks/PostgresqlPlugIn.framework/ 
PostgresqlPlugIn extrefsymoff plus nextrefsyms * sizeof(struct  
dylib_reference) in load command 7 extends past the end of the file
		ld: warning prebinding disabled because dependent library:  
/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit can't be  
searched

I found general cocoa-java advice for this problem:

http://www.omnigroup.com/mailman/archive/webobjects-dev/2003-November/ 
037407.html

so I added a dummy objective-c class (dylibfix.h/dylibfix.m) to the  
PostgresqlPlugIn.framework, and tried to rebuild it.  Unfortunately, I  
get the following error when rebuilding the PostgresqlPlugIn framework:

ld: can't locate framework for: -framework JavaFoundation
/usr/bin/libtool: internal link edit command failed

So the linker can't find the JavaFoundation framework, even though it  
was fine before the addition of the objective-c class.  (And the  
JavaFoundation is a framework is linked in the xcode project, along  
with JavaEOControl, JavaEOAccess, JavaWebObjects, JavaJDBCAdaptor, and  
Cocoa.framework).

I'd greatly appreciate any suggestions as to how I can get around this  
problem and get Cocoa-EOF successfully building with Postgresql.

cheers,

Jim M