Re: Current HEAD will never build on Mac OS X

2002-02-05 Thread Max Horn

At 11:06 Uhr -0600 03.02.2002, Bill Gribble wrote:
>On Sun, 2002-02-03 at 08:55, Peter O'Gorman wrote:
>>  Please use -module only for things which need to be loaded at
>>  runtime, anything that needs to be linked against doesn't need
>>  this.
>
>Please don't "fix" this.  The use of -module is intentional and removing
>it will break gnucash.  At the moment, gnucash depends on being able to
>both link against and dynamically load its modules.  That's unfortunate,
>but fixing the problem will require much more than just removing
>-module.

May I ask why this is necessary? I.e. what are the reasons for this 
decision? (I tried to find information on this in your mailing list 
archive, but can't fine a way to search 'em :/)

I guess you had good reasons, but from an exterior point of view at 
the first glance it seems like a rather poor move. First off, there 
are other systems on which this will break, not just Darwin. Also, it 
seems pretty weird that anything should ever be required to be both a 
library and a loadable module, since both are inherently different 
things. A shared lib is something that is used by code written after 
the lib was created; while the code loading a module is writteb 
before the module is.

Can you point me to a page/old email that explains this, or explain 
it directly?



>It's unfortunate that this breaks compilation on Mac OS X.  Is there any
>way to make it possible to both link against and runtime load libraries
>on that OS?

Not that I am aware of, so I can't fully exclude the possibility. But 
I stronlgy doubt it... Anyway, I am going to query some sources 
(darwin-devel mailing list etc. on this).


Max
-- 
---
Max Horn
Software Developer

email: 
phone: (+49) 6151-494890
___
gnucash-devel mailing list
[EMAIL PROTECTED]
http://www.gnumatic.com/cgi-bin/mailman/listinfo/gnucash-devel



Re: Current HEAD will never build on Mac OS X

2002-02-03 Thread Peter O'Gorman

No, at the moment, the binaries are different. Apple does not 
provide a way to load dylibs at runtime. Any solution would 
involve hacking the OS. The only solution to building gnucash on 
my Mac is to install linux on it :-(.

This completely sucks, there must be another way.

Anyway, I should have asked earlier before I spent most of my 
Sunday starting "fixing" the (insert all swear words known to 
man) thing.

What will fixing it require? Surely It just involves linking the 
libs twice with different names (eg libxyz libmodxyz libgw-xyz) 
and being careful about the interdependencies? Yes, I know that 
there are a lot of modules...

Unhappy,
Peter


On Monday, February 4, 2002, at 02:06  AM, Bill Gribble wrote:

> On Sun, 2002-02-03 at 08:55, Peter O'Gorman wrote:
>> Please use -module only for things which need to be loaded at
>> runtime, anything that needs to be linked against doesn't need
>> this.
>
> Please don't "fix" this.  The use of -module is intentional and 
> removing
> it will break gnucash.  At the moment, gnucash depends on being able to
> both link against and dynamically load its modules.  That's 
> unfortunate,
> but fixing the problem will require much more than just removing
> -module.
>
> It's unfortunate that this breaks compilation on Mac OS X.  Is 
> there any
> way to make it possible to both link against and runtime load libraries
> on that OS?
>
> Thanks,
> Bill Gribble
>

___
gnucash-devel mailing list
[EMAIL PROTECTED]
http://www.gnumatic.com/cgi-bin/mailman/listinfo/gnucash-devel



Re: Current HEAD will never build on Mac OS X

2002-02-03 Thread Bill Gribble

On Sun, 2002-02-03 at 08:55, Peter O'Gorman wrote:
> Please use -module only for things which need to be loaded at 
> runtime, anything that needs to be linked against doesn't need 
> this.

Please don't "fix" this.  The use of -module is intentional and removing
it will break gnucash.  At the moment, gnucash depends on being able to
both link against and dynamically load its modules.  That's unfortunate,
but fixing the problem will require much more than just removing
-module. 

It's unfortunate that this breaks compilation on Mac OS X.  Is there any
way to make it possible to both link against and runtime load libraries
on that OS?

Thanks,
Bill Gribble
 

___
gnucash-devel mailing list
[EMAIL PROTECTED]
http://www.gnumatic.com/cgi-bin/mailman/listinfo/gnucash-devel