• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Source level debug config for OpenSSL 1.0.0a?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Source level debug config for OpenSSL 1.0.0a?


  • Subject: Source level debug config for OpenSSL 1.0.0a?
  • From: Scott Cherf <email@hidden>
  • Date: Fri, 15 Oct 2010 20:31:05 -0700

Hello -

I'm going to copy the Xcode alias on this message, which has also been sent to the OpenSSL development alias, just in case there's something obvious about the Xcode environment that is causing this and that I'm missing. TIA - Scott.

---

I'm trying to compile with source level debugging enabled using the 1.0.0a OpenSSL distribution and I'm not having any luck at all.  I would appreciate a clue if there is one.
Note that I'm attempting to build a fat binary for the i386 and x86_64 architectures under Xcode control using the following commands:

x86_64 build:

	./Configure debug-darwin-x86_64-cc --prefix=/opt/local
	make clean
	make build_libs
	mv *.a build-x86_64

i386 build:

	./Configure debug-darwin-i386-cc --prefix=/opt/local
	make clean
	make build_libs
	mv *.a build-i386

Link fat binaries:

#!/usr/bin/perl

use Cwd;

{

@parts = split ('/', $ENV{'SRCROOT'});
pop (@parts);

$srcDir = join ('/', @parts);

chdir ($srcDir);

# merge the architecture libraries and create a fat binary.

foreach my $lib ('libssl.a', 'libcrypto.a') {
  `lipo -create -output \"$srcDir/$lib\" \"$srcDir/build-x86_64/$lib\" \"$srcDir/build-i386/$lib\"`;
  `ranlib \"$srcDir/$lib\"`;
}
}

I have modified the debug-darwin-x86_64-cc target as follows:

"debug-darwin-x86_64-cc","cc:-arch x86_64 -O0 -g3 -DL_ENDIAN -DMD32_REG_T=int -Wall::-D_REENTRANT:MACOSX:-Wl,-search_paths_first%:SIXTY_FOUR_BIT_LONG RC4_CHAR RC4_CHUNK DES_INT DES_UNROLL:${x86_64_asm}:macosx:dlfcn:darwin-shared:-fPIC -fno-common:-arch x86_64 -dynamiclib:.\$(SHLIB_MAJOR).\$(SHLIB_MINOR).dylib",

The debug-darwin-i386-cc target is (as I recall) unchanged and looks like this:

"debug-darwin-i386-cc","cc:-arch i386 -O0 -g3 -DL_ENDIAN::-D_REENTRANT:MACOSX:-Wl,-search_paths_first%:BN_LLONG RC4_INT RC4_CHUNK DES_UNROLL BF_PTR:${x86_asm}:macosx:dlfcn:darwin-shared:-fPIC -fno-common:-arch i386 -dynamiclib:.\$(SHLIB_MAJOR).\$(SHLIB_MINOR).dylib",

Using the above, I'm unable to build a version that gives me source level debug using gdb and I can't figure out why. Anyone?

Thanks,
Scott.

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: Any suggestions for localizing a linker crash?
  • Next by Date: How to get definition
  • Previous by thread: Re: Any suggestions for localizing a linker crash?
  • Next by thread: How to get definition
  • Index(es):
    • Date
    • Thread