[Pythonmac-SIG] Another build question: ssl?

Ronald Oussoren oussoren@cistron.nl
Fri, 22 Nov 2002 15:15:55 +0100


On Friday, Nov 22, 2002, at 08:09 Europe/Amsterdam, Dan Wolfe wrote:

> On the other hand, if you can prove that it's compatible with 
> everything out there, I'll gladly change my position.

How about this:

- I have a libpng.3.1.2.5.dylib in /opt/local/lib (libpng 1.2.5 
installed using darwinports)

$ cat t.c says:
#include "png.h"

int main(void)
{
      png_uint_32 v = png_access_version_number();

      printf("Ping version %x\n", (int)v);
}
$ cp /opt/local/lib/libpng.3.1.2.5.dylib libpng.so
$ cc -I /opt/local/include -L. -o t t.c -lpng -lz
ld: can't locate file for: -lpng
$ mv libpng.so libpng.dylib
$ cc -I /opt/local/include -L. -o t t.c -lpng -lz
$ ./t
Ping version 27dd
$

This is on a MacOS 10.2.2 system with the most recent developer tools. 
The example strongly suggests that the normal compiler and linker do 
not recognize '.so' as the extension of shared libraries and therefore 
just changing the shared library extension to '.dylib' should cause no 
problems.

Greetings,
	Ronald