[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [tor-relays] This is what you get....compile problem OSX10.4



On 1/23/2012 2:56 PM, Geoff Down wrote:

On Mon, Jan 23, 2012, at 02:33 PM, Nick Mathewson wrote:
On Mon, Jan 23, 2012 at 2:27 PM, Geoff Down<geoffdown@xxxxxxxxxxxx>
wrote:
Can anyone help with this please?

% sudo ./configure --with-libevent-dir=/opt/local/lib/&&  make&&  make
install
->  checking for libevent directory... configure: WARNING: We found the
libraries for libevent, but we could not find the C header files.  You
may need to install a devel package.

"/opt/local/" seems like a better bet than "/opt/local/lib" .
_______________________________________________
  Thanks, that got me further, and moving the source to an admin user's
  home and chowning it got me a bit further still.
The last few lines of the output are

/usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: Undefined symbols:
_EVP_sha256
_RSA_generate_key_ex
_SHA256
_SHA256_Final
_SHA256_Init
_SHA256_Update
_CRYPTO_ctr128_encrypt
collect2: ld returned 1 exit status
make[4]: *** [tor-gencert] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

- I assume this is a failure? Does it matter that there is a symlink
already at /usr/bin/tor?
GD


Do you have the 10.4u sdk installed? You might try something like the following (with changes to the directories as necessary): CFLAGS="-O -g -mmacosx-version-min=10.4 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc" \
LDFLAGS="-Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk" \
./configure --with-libevent-dir=/opt/local/lib/ --disable-dependency-tracking CC="gcc-4.0"

Of course, that sets you back to using the sdk-packaged version of OpenSSL, but if it builds at least that's progress. Also, if you haven't built libevent yourself, I'd try doing that, with the following flags (again, with directory changes as necessary): CFLAGS="-O -g -mmacosx-version-min=10.4 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc" \
LDFLAGS="-Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk" \
./configure --enable-static --disable-shared --disable-dependency-tracking CC="gcc-4.0"

and seeing if that makes any difference.

Personally, on my OSX 10.4.11 ppc node (Japnonymous) I don't use the sdk, but then, I build static versions of libevent, openssl, and libz myself and do a "mostly-static" build of tor. Everything's been building fine for me so far.

~Japlin

_______________________________________________
tor-relays mailing list
tor-relays@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays