• 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: Tue, 2 Nov 2010 10:29:56 -0700

Hello -

I'm trying to compile openssl with source level debugging enabled using the 1.0.0a distribution (of OpenSSL) 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 3.2 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

  • Follow-Ups:
    • Re: Source level debug config for OpenSSL 1.0.0a?
      • From: Bradley Giesbrecht <email@hidden>
  • Prev by Date: Re: Over-release caused by Instruments?
  • Next by Date: Re: Source level debug config for OpenSSL 1.0.0a?
  • Previous by thread: Re: Over-release caused by Instruments?
  • Next by thread: Re: Source level debug config for OpenSSL 1.0.0a?
  • Index(es):
    • Date
    • Thread