-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Thanks a lot...it was even easier than that. here's the diff:

- - --- gift-0.10.0-20020408.orig/src/protocol.c    Thu Apr 11 00:01:49 
2002
+++ gift-0.10.0-20020408/src/protocol.c Thu Apr 11 00:02:31 2002
@@ -108,7 +108,8 @@
                 *init_func = 0;

         init_func = malloc (strlen (proto) + 6); /* _init\0 */
- - -       sprintf (init_func, "%s_init", proto);
+/*Added _ for OS X */
+       sprintf (init_func, "_%s_init", proto);

         /* retrieve the symbol */

Should I ask upstream to maybe have an #ifdef DARWIN? or is it our 
problem?

cool. now a little more testing...and it'll be ready to go.

On Wednesday, April 10, 2002, at 11:52  PM, Peter O'Gorman wrote:

> In protocol.c
> #ifndef WIN32
> static char realsym[257]="_";
> strncpy(&realsym[1],symbol,255);
> return dlsym(handle,&realsym);
> #else
> ...
>
> Note that the above probably won't compile,it is off the top of my 
> head, but you get the idea.
>
> Peter
>
> On Thursday, April 11, 2002, at 12:47  PM, Chris Zubrzycki wrote:
>
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> which part? in the libtool/config stuff, or the actual code. i did a 
>> grep -r and here is what was in the src...
>>
>> protocol.c
>> void *platform_dlsym (void *handle, char *symbol)
>> {
>> #ifndef WIN32
>>         return dlsym (handle, symbol);
>> #else /* WIN32 */
>>         return (void *) GetProcAddress (handle, symbol);
>> #endif /* !WIN32 */
>>
>>
>> but I think this is what I want...
>>
>> in protocol.c
>>         /* retrieve the symbol */
>> #ifdef USE_DLOPEN
>>         init = platform_dlsym (handle, init_func);
>> #else /* !USE_DLOPEN */
>>         if (!strcmp (proto, "OpenFT"))
>>                 init = OpenFT_init;
>> #endif /* USE_DLOPEN */
>>
>> but how would I change this to prepend an _ ?
>>
>> On Wednesday, April 10, 2002, at 11:41  PM, Peter O'Gorman wrote:
>>
>>> One way is to grep the sources for dlsym and add an underscore.
>>>
>>> Another way, is for me to add a function to dlcompat - 
>>> dlsym_prepend_underscore, and then you can add 
>>> -Ddlsym=dlsym_prepend_underscore to the CFLAGS...
>>>
>>> Method 2 won't work until I get around to updating dlcompat, so I 
>>> would go with number 1 :)
>>>
>>>
>>> Peter
>>>
>>>
>> - -chris zubrzycki
>> - - --
>> PGP public key: http://homepage.mac.com/beren/publickey.txt
>> ID: 0xA2ABC070
>> Fingerprint: 26B0 BA6B A409 FA83 42B3  1688 FBF9 8232 A2AB C070
>> ========================================================
>> Security Is A Series Of Well-Defined Steps...
>>
>> chmod -R 0 / ; and smile :)
>>
>> -----BEGIN PGP SIGNATURE-----
>> Version: GnuPG v1.0.6 (Darwin)
>> Comment: For info see http://www.gnupg.org
>>
>> iD8DBQE8tQdU+/mCMqKrwHARAphPAKDes/SjlWqJKYHdjD3c9Z6eit10MQCePIHS
>> 7ITNP7hzbiELXczKjthyd3Q=
>> =CTfO
>> -----END PGP SIGNATURE-----
>>
>
>
- - -chris zubrzycki
- - - --
PGP public key: http://homepage.mac.com/beren/publickey.txt
ID: 0xA2ABC070
Fingerprint: 26B0 BA6B A409 FA83 42B3  1688 FBF9 8232 A2AB C070
========================================================

Isaac Newton understood the impact of the Apple.


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (Darwin)
Comment: For info see http://www.gnupg.org

iD8DBQE8tQ2/+/mCMqKrwHARAqlkAJ0cH/UtID92/9g/8yS2KR69urqs/gCeJvyy
vBjag4Lf7eDpuJhxByGBheA=
=Ej1j
-----END PGP SIGNATURE-----


_______________________________________________
Fink-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to