[Chicken-users] Mac OS X static library names

2007-05-12 Thread Brandon Van Every
Apple has deliberately depreciated static linking of user executables on Mac OS X. Any time you try to link statically with Apple's ld, if a dynamic library of the same name is available, it grabs that instead. Not sure if the Autoconf build is affected by this, but the CMake build is. We work

[Chicken-users] Mac OS X static library names

2007-05-17 Thread Brandon Van Every
On 5/17/07, Shawn W. <[EMAIL PROTECTED]> wrote: On May 15, 2007, at 7:35 AM, Brandon Van Every wrote: > > At a first go, read INSTALL-CMake.txt and try to build Chicken on > your Mac OS X. Then see the bugtracker ticket I've just added > about universal binaries. http://trac.callcc.org/ticke

Re: [Chicken-users] Mac OS X static library names

2007-05-12 Thread Raffael Cavallaro
On May 12, 2007, at 11:36 PM, Brandon Van Every wrote: Do Mac OS X users think this is worth doing? I personally do not think it worth doing. Ideally any application that used chicken would distribute the necessary .dylib files with the app, either as a framework for user level or system

Re: [Chicken-users] Mac OS X static library names

2007-05-13 Thread Thomas Christian Chust
Brandon Van Every wrote: > Apple has deliberately depreciated static linking of user executables on > Mac OS X. Any time you try to link statically with Apple's ld, if a > dynamic library of the same name is available, it grabs that instead. > Not sure if the Autoconf build is affected by this,

Re: [Chicken-users] Mac OS X static library names

2007-05-13 Thread Brandon Van Every
On 5/13/07, Thomas Christian Chust <[EMAIL PROTECTED]> wrote: I would only change the behaviour of the build if it doesn't mean a lot of work. If the library names were changed, though, I would try to keep them identical across all platforms to reduce confusion of the users ;-) Windows lib

Re: [Chicken-users] Mac OS X static library names

2007-05-14 Thread Brandon Van Every
On 5/13/07, Brandon Van Every <[EMAIL PROTECTED]> wrote: Hey I just had a brilliant idea. We don't have to rename anything. We could just symlink libchicken-s.a to libchicken.a. Then the user can have his cake and eat it too. On the other hand, we could eliminate all support for static

Re: [Chicken-users] Mac OS X static library names

2007-05-14 Thread Thomas Christian Chust
Brandon Van Every wrote: > [...] > On the other hand, we could eliminate all support for static linking, > bowing to the One True Apple Way Of Doing Things [TM]. How do people > feel about that? > [...] Hello, I wouldn't mind if static linking was not supported. But in that case we can just as

Re: [Chicken-users] Mac OS X static library names

2007-05-14 Thread Brandon Van Every
On 5/14/07, Thomas Christian Chust <[EMAIL PROTECTED]> wrote: Brandon Van Every wrote: > [...] > On the other hand, we could eliminate all support for static linking, > bowing to the One True Apple Way Of Doing Things [TM]. How do people > feel about that? I wouldn't mind if static linking wa

Re: [Chicken-users] Mac OS X static library names

2007-05-14 Thread Peter Keller
On Mon, May 14, 2007 at 11:55:31AM -0400, Brandon Van Every wrote: > Any static linking horror stories out there? Sure, I have some that aren't necessarily apple related, but could happen on that platform. Although, it isn't so much of static linking as static/dynamic linking. You need both sides

Re: [Chicken-users] Mac OS X static library names

2007-05-14 Thread Brandon Van Every
On 5/14/07, Peter Keller <[EMAIL PROTECTED]> wrote: On Mon, May 14, 2007 at 11:55:31AM -0400, Brandon Van Every wrote: > Any static linking horror stories out there? Sure, I have some that aren't necessarily apple related, but could happen on that platform. Ok Mac OS X users, what say you?

Re: [Chicken-users] Mac OS X static library names

2007-05-14 Thread Shawn W.
On May 14, 2007, at 10:24 AM, Brandon Van Every wrote: On 5/14/07, Peter Keller <[EMAIL PROTECTED]> wrote: On Mon, May 14, 2007 at 11:55:31AM -0400, Brandon Van Every wrote: > Any static linking horror stories out there? I CAN'T make statically linked C programs on OS X using the compiler

Re: [Chicken-users] Mac OS X static library names

2007-05-14 Thread Kon Lovett
On May 14, 2007, at 10:56 AM, Shawn W. wrote: On May 14, 2007, at 10:24 AM, Brandon Van Every wrote: On 5/14/07, Peter Keller <[EMAIL PROTECTED]> wrote: On Mon, May 14, 2007 at 11:55:31AM -0400, Brandon Van Every wrote: > Any static linking horror stories out there? I CAN'T make statical

Re: [Chicken-users] Mac OS X static library names

2007-05-14 Thread Brandon Van Every
On 5/14/07, Shawn W. <[EMAIL PROTECTED]> wrote: On May 14, 2007, at 10:24 AM, Brandon Van Every wrote: > > Ok Mac OS X users, what say you? Should we tie your hands for your > own good, or give you the freedom to cut off your own fingers? > I don't care about static linking. I've yet to h

Re: [Chicken-users] Mac OS X static library names

2007-05-14 Thread Peter Keller
On Mon, May 14, 2007 at 04:39:15PM -0400, Brandon Van Every wrote: > But, I've never observed dynamic linking complications in > all the time that CMake has been tested. Peter Keller's post also seems to > indicate that static linking is the case more likely to cause problems. In general, an easy

Re: [Chicken-users] Mac OS X static library names

2007-05-14 Thread Brandon Van Every
On 5/14/07, Peter Keller <[EMAIL PROTECTED]> wrote: Dynamic libraries were created to solve upgradability and text size in the VM problems. However, they do have some nasty edge cases. Truth be told, you probably won't hit any of them unless you A) want multiple revisions of a tool coeexisting

Re: [Chicken-users] Mac OS X static library names

2007-05-14 Thread Brandon Van Every
On 5/14/07, Peter Keller <[EMAIL PROTECTED]> wrote: Example 1 - 1. You statically link the openssl libraries into your application because you can't guarantee that the target platform will have one. So, you move your executable to a machine, start it up, and here is what could happen

Re: [Chicken-users] Mac OS X static library names

2007-05-14 Thread felix winkelmann
On 5/14/07, Peter Keller <[EMAIL PROTECTED]> wrote: So, the summary of my argument is that out of all linking problems, both static and dynamic, 80% of them would be related to static linking, 20% of them would be related to dynamic linking. This is purely anecdotal from my previous experiences

Re: [Chicken-users] Mac OS X static library names

2007-05-14 Thread Peter Keller
On Tue, May 15, 2007 at 01:51:20AM -0400, Brandon Van Every wrote: > This resembles the case of PCRE. We have our own code for this library. To > create a dynamic libchicken, first we create a static libpcre. The static > libpcre is compiled with shared flags, so that the .obj files are correct

Re: [Chicken-users] Mac OS X static library names

2007-05-14 Thread Peter Keller
On Tue, May 15, 2007 at 08:36:20AM +0200, felix winkelmann wrote: > Indeed. My experience has been quite the opoosite. There are situations > where > static linking may give problems, but there are vastly more with dynamic > linking. I suspect if in the future I run into those problems that you h

Re: [Chicken-users] Mac OS X static library names

2007-05-14 Thread felix winkelmann
On 5/15/07, Peter Keller <[EMAIL PROTECTED]> wrote: Doesn't chicken already have a tool someon can run when linking with chicken applications? Like csc -libs? Why can't you just add -lpcre there if applicable? Then it'll just grab whatever the user wanted. Wouldn't that cause versioning probl

Re: [Chicken-users] Mac OS X static library names

2007-05-15 Thread Peter Keller
On Tue, May 15, 2007 at 08:43:07AM +0200, felix winkelmann wrote: > On 5/15/07, Peter Keller <[EMAIL PROTECTED]> wrote: > >Doesn't chicken already have a tool someon can run when linking with > >chicken applications? Like csc -libs? Why can't you just add -lpcre there > >if applicable? Then it'll j

Re: [Chicken-users] Mac OS X static library names

2007-05-15 Thread Shawn W.
On May 14, 2007, at 1:39 PM, Brandon Van Every wrote: On 5/14/07, Shawn W. <[EMAIL PROTECTED]> wrote: ... CMake doesn't have framework support. See http://www.cmake.org/Wiki/CMake:MacOSX_Frameworks The issue is known but isn't getting attention. Bill Hoffman is interested in moving for

Re: [Chicken-users] Mac OS X static library names

2007-05-15 Thread Brandon Van Every
On 5/15/07, Shawn W. <[EMAIL PROTECTED]> wrote: On May 14, 2007, at 1:39 PM, Brandon Van Every wrote: > On 5/14/07, Shawn W. <[EMAIL PROTECTED]> wrote: > ... > > CMake doesn't have framework support. See > http://www.cmake.org/Wiki/CMake:MacOSX_Frameworks > The issue is known but isn't getti

Re: [Chicken-users] Mac OS X static library names

2007-05-15 Thread Brandon Van Every
On 5/15/07, Peter Keller <[EMAIL PROTECTED]> wrote: Given what I've seen above, I think the fake is unstable. Doesn't chicken already have a tool someon can run when linking with chicken applications? Like csc -libs? Why can't you just add -lpcre there if applicable? Then it'll just grab what

Re: [Chicken-users] Mac OS X static library names

2007-05-15 Thread Raffael Cavallaro
On May 15, 2007, at 3:06 AM, Peter Keller wrote: Unfortunately, the real world for UNIX basically works on linux and solaris. Solaris gets this right far more than you could imagine, linux couldn't care less if they got it right. Since the title of this thread is "Mac OS X static library

Re: [Chicken-users] Mac OS X static library names

2007-05-15 Thread Peter Keller
On Tue, May 15, 2007 at 03:10:13PM -0400, Raffael Cavallaro wrote: > Since the title of this thread is "Mac OS X static library names" > it's worth noting that Mac OS X is UNIX, and Mac OS X really does > care about getting this right, and, in my experience, does. This is > one of the reasons

Re: [Chicken-users] Mac OS X static library names

2007-05-15 Thread Brandon Van Every
On 5/15/07, Peter Keller <[EMAIL PROTECTED]> wrote: I don't think there is ANYTHING that anyone can do which is the right answer since you basically have to bail at *runtime* if the linker loader notices two APIs of the same kind clashing in the program. I thought C# had a strong notion of

Re: [Chicken-users] Mac OS X static library names

2007-05-15 Thread Peter Keller
On Tue, May 15, 2007 at 03:30:35PM -0400, Brandon Van Every wrote: > I thought C# had a strong notion of versioning. I haven't really gone up > the C# learning curve enough to recall whether an Assembly is a C# or a .NET > concept though. Nor whether it provides an ultimate solution. > > Don't k

Re: [Chicken-users] Mac OS X static library names

2007-05-15 Thread Kon Lovett
On May 15, 2007, at 12:30 PM, Brandon Van Every wrote: On 5/15/07, Peter Keller <[EMAIL PROTECTED]> wrote: I don't think there is ANYTHING that anyone can do which is the right answer since you basically have to bail at *runtime* if the linker loader notices two APIs of the same kind cla

Re: [Chicken-users] Mac OS X static library names

2007-05-15 Thread John Cowan
Brandon Van Every scripsit: > We've had a feature complete, field tested, all but bug free CMake > build for awhile now. It took 1 man year to produce. It is the only > way to produce the MSVC versions of Chicken, and it is preferred for > MinGW also. And for Cygwin, thanks to the libffi suppor

Re: [Chicken-users] Mac OS X static library names

2007-05-16 Thread Brandon Van Every
On 5/15/07, John Cowan <[EMAIL PROTECTED]> wrote: Brandon Van Every scripsit: > We've had a feature complete, field tested, all but bug free CMake > build for awhile now. It took 1 man year to produce. It is the only > way to produce the MSVC versions of Chicken, and it is preferred for > Min

Re: [Chicken-users] Mac OS X static library names

2007-05-16 Thread John Cowan
Brandon Van Every scripsit: > Having the 2nd invocation of "make install" repeat the build from > scratch is not that important a bug, and all evidence says it's a > Linux specific bug. I'd like to see if it happens on a Solaris or BSD system. I've been wondering if it might not be a general bug

Re: [Chicken-users] Mac OS X static library names

2007-05-16 Thread Brandon Van Every
On 5/16/07, John Cowan <[EMAIL PROTECTED]> wrote: Brandon Van Every scripsit: > Having the 2nd invocation of "make install" repeat the build from > scratch is not that important a bug, and all evidence says it's a > Linux specific bug. I'd like to see if it happens on a Solaris or BSD system.

Re: [Chicken-users] Mac OS X static library names

2007-05-17 Thread Graham Fawcett
On 5/16/07, John Cowan <[EMAIL PROTECTED]> wrote: Brandon Van Every scripsit: > Having the 2nd invocation of "make install" repeat the build from > scratch is not that important a bug, and all evidence says it's a > Linux specific bug. I'd like to see if it happens on a Solaris or BSD system.

Re: [Chicken-users] Mac OS X static library names

2007-05-17 Thread Brandon Van Every
On 5/17/07, Graham Fawcett <[EMAIL PROTECTED]> wrote: On 5/16/07, John Cowan <[EMAIL PROTECTED]> wrote: > Brandon Van Every scripsit: > > > Having the 2nd invocation of "make install" repeat the build from > > scratch is not that important a bug, and all evidence says it's a > > Linux specific b

Re: [Chicken-users] Mac OS X static library names

2007-05-17 Thread Shawn W.
On May 15, 2007, at 7:35 AM, Brandon Van Every wrote: On 5/15/07, Shawn W. <[EMAIL PROTECTED]> wrote: > Universal binary support to go along with that would be nice > too. The latter is easy to do. (Add '-arch i386 -arch ppc' to the > cflags used by the chicken compiler, and I /think/ everything

Re: [Chicken-users] Mac OS X static library names

2007-05-17 Thread Brandon Van Every
On 5/17/07, Brandon Van Every <[EMAIL PROTECTED]> wrote: On 5/17/07, Shawn W. <[EMAIL PROTECTED] > wrote: > > > On May 15, 2007, at 7:35 AM, Brandon Van Every wrote: > > > > At a first go, read INSTALL-CMake.txt and try to build Chicken on > > your Mac OS X. Then see the bugtracker ticket I've

Re: [Chicken-users] Mac OS X static library names

2007-05-17 Thread Kon Lovett
On May 17, 2007, at 2:02 PM, Brandon Van Every wrote: I wouldn't expect the Automake build to perform any better either, as once upon a time I lifted the CStackGrowsDownward.c code from Automake's output. It probably uses the same try-run mechanism to determine the results. And if

Re: [Chicken-users] Mac OS X static library names

2007-05-17 Thread Brandon Van Every
On 5/17/07, Kon Lovett <[EMAIL PROTECTED]> wrote: Compiling a universal binary is an exercise in x-compiling. Chicken cannot discover anything about the foreign platform, it must "know." All cpu specific configuration must be done via command-line options or a separate set of configuration head