Linker says wrong ELFCLASS32, but building 32 bit .so

Hi,
I'm having a problem building a 32 bit version of openssl 0.9.8k with SS 12.1 (SPARC). Everything compiles w/o a problem, but when it begins to link libcrypto.so, it fails with the following message:
ld: fatal: file /opt/ws/tools/sunstudio12.1/prod/lib/crti.o: wrong ELF class: ELFCLASS32
ld: fatal: File processing errors. No output written to /dev/null
/opt/ws/tools/sunstudio12.1/prod/bin/ipo: Error inside /usr/ccs/bin/ld
cc: ipo failed for libcrypto.so.0.9.8
Here's the options during the compile:
cc -I../crypto -I.. -I../include -DZLIB_SHARED -DZLIB -DOPENSSL_THREADS -DDSO_DLFCN -DHAVE_DLFCN_H -DPK11_LIB_LOCATION=\"/usr/lib/libpkcs11.so\" -g -xs -fast -fsimple=1 -fns=no -xtarget=ultraT1 -xarch=sparcvis2 -m32 -mt -xipo -xcode=pic32 -xpagesize=default -xregs=no%appl -xbuiltin=none -U__MATHERR_ERRNO_DONTCARE -xnolibmopt -xnolibmil -DB_ENDIAN -DBN_DIV2W -c -o kssl.o kssl.c
No problem creating static libraries:
ar r ../libssl.a s2_meth.o s2_srvr.o s2_clnt.o s2_lib.o s2_enc.o s2_pkt.o s3_meth.o s3_srvr.o s3_clnt.o s3_lib.o s3_enc.o s3_pkt.o s3_both.o s23_meth.o s23_srvr.o s23_clnt.o s23_lib.o s23_pkt.o t1_meth.o t1_srvr.o t1_clnt.o t1_lib.o t1_enc.o d1_meth.o d1_srvr.o d1_clnt.o d1_lib.o d1_pkt.o d1_both.o d1_enc.o ssl_lib.o ssl_err2.o ssl_cert.o ssl_sess.o ssl_ciph.o ssl_stat.o ssl_rsa.o ssl_asn1.o ssl_txt.o ssl_algs.o bio_ssl.o ssl_err.o kssl.o
ar: creating ../libssl.a
No output from ld beyond the errors mentioned above. Any help would be greatly appreciated.
Thanks.
-John

Hi Raj,
It took me a while to track down where the link options were being set. Here's the output:
### cc: Note: TMPDIR = /opt/ws/tmp/dists
### cc: Note: NLSPATH = /opt/ws/tools/sunstudio12.1/prod/bin/../lib/locale/%L/LC_MESSAGES/%N.cat:/opt/ws/tools/sunstudio12.1/prod/bin/../../lib/locale/%L/LC_MESSAGES/%N.cat
### cc: Note: TMPDIR = /opt/ws/tmp/dists
### command line files and options (expanded):
### -# -DZLIB_SHARED -DZLIB -DOPENSSL_THREADS -DDSO_DLFCN -DHAVE_DLFCN_H -DPK11_LIB_LOCATION="/usr/lib/libpkcs11.so" -g -xs -xO5 -xdepend=yes -xmemalign=8s -ftrap=%none -D__MATHERR_ERRNO_DONTCARE -fsingle -xalias_level=basic -fsimple=1 -fns=no -xchip=ultraT1 -xcache=8/16/4/4:3072/64/12/32 -xarch=sparcvis2 -mt -xipo=1 -xcode=pic32 -xpagesize=default -xregs=%none -xbuiltin=%none -U__MATHERR_ERRNO_DONTCARE -xnolibmopt -xnolibmil -DB_ENDIAN -DBN_DIV2W -Dfiles -L/usr/sfw/lib -R/usr/sfw/lib -L/opt/local/lib -R/opt/local/lib -L/opt/gnu/lib -R/opt/gnu/lib -G -hlibcrypto.so.0.9.8 -Bsymbolic -olibcrypto.so.0.9.8 -zallextract libcrypto.a -zdefaultextract -L. -L/usr/sfw/lib -R/usr/sfw/lib -L/opt/local/lib -R/opt/local/lib -L/opt/gnu/lib -R/opt/gnu/lib -lumem -lpthread -lmopt -lsocket -lnsl -ldl -lc
/opt/ws/tools/sunstudio12.1/prod/bin/ipo -phase2 -# -level=1 -cgpath /opt/ws/tools/sunstudio12.1/prod/bin/cg -iroptpath /opt/ws/tools/sunstudio12.1/prod/bin/iropt -ipo_ldarg_start /usr/ccs/bin/ld /opt/ws/tools/sunstudio12.1/prod/lib/crti.o /opt/ws/tools/sunstudio12.1/prod/lib/values-xa.o -L/usr/sfw/lib -L/opt/local/lib -L/opt/gnu/lib -hlibcrypto.so.0.9.8 -Bsymbolic -zallextract libcrypto.a -zdefaultextract -L. -L/usr/sfw/lib -L/opt/local/lib -L/opt/gnu/lib -lumem -lpthread -lmopt -lsocket -lnsl -ldl -lc -G -o libcrypto.so.0.9.8 -Y "P,/opt/ws/tools/sunstudio12.1/prod/lib/sparcvis2:/opt/ws/tools/sunstudio12.1/prod/lib:/usr/ccs/lib:/lib:/usr/lib" -Qy -R/usr/sfw/lib -R/opt/local/lib -R/opt/gnu/lib -R/usr/sfw/lib -R/opt/local/lib -R/opt/gnu/lib -lc /opt/ws/tools/sunstudio12.1/prod/lib/crtn.o -ipo_ldarg_end
/usr/ccs/bin/ld /opt/ws/tools/sunstudio12.1/prod/lib/crti.o /opt/ws/tools/sunstudio12.1/prod/lib/values-xa.o -L/usr/sfw/lib -L/opt/local/lib -L/opt/gnu/lib -hlibcrypto.so.0.9.8 -Bsymbolic -zallextract libcrypto.a -zdefaultextract -L. -L/usr/sfw/lib -L/opt/local/lib -L/opt/gnu/lib -lumem -lpthread -lmopt -lsocket -lnsl \
-ldl -lc -G -Y "P,/opt/ws/tools/sunstudio12.1/prod/lib/sparcvis2:/opt/ws/tools/sunstudio12.1/prod/lib:/usr/ccs/lib:/lib:/usr/lib" -Qy -R/usr/sfw/lib -R/opt/local/lib -R/opt/gnu/lib -R/usr/sfw/lib -R/opt/local/lib -R/opt/gnu/lib -lc /opt/ws/tools/sunstudio12.1/prod/lib/crtn.o -o /dev/null -znodefs -zmuldefs
### Note: __IPO_LD_FILE_=/opt/ws/tmp/dists/ipo_fAAALGaq3s
### Note: SGS_SUPPORT_32=/opt/ws/tools/sunstudio12.1/prod/bin/../lib/ipo/ipo_ld_support.so
### Note: SGS_SUPPORT_64=/opt/ws/tools/sunstudio12.1/prod/bin/../lib/ipo/v9/ipo_ld_support.so
ld: fatal: file /opt/ws/tools/sunstudio12.1/prod/lib/crti.o: wrong ELF class: ELFCLASS32
ld: fatal: File processing errors. No output written to /dev/null
/opt/ws/tools/sunstudio12.1/prod/bin/ipo: Error inside /usr/ccs/bin/ld
rm /opt/ws/tmp/dists/ipo_fAAALGaq3s
cc: ipo failed for libcrypto.so.0.9.8
HTH
-John

Similar Messages

  • Unable to login to IMessage in my new ipod touch 5th gen, saying wrong password. but the same password is working fine for my applestore.

    saying wrong password. but the same password is working fine for my applestore.

    Im Getting The Same Problem With My Ipod 4th Generation
    Seems Like This is a Software Issue
    Help Please

  • HT201320 All of a sudden my IPad won't let me read my emails, says wrong password, but I haven't changed anything! I've switched Ipad off and on againmbut it doesn't help. Can anyone please tell me what I should do??

    All of a sudden my ipad2 won't let me read emails, says wrong password but I haven't changed anything!! Can anyone please help me to sort this? Many thanks.

    iOS: Unable to send or receive email
    http://support.apple.com/kb/TS3899
    Can’t Send Emails on iPad – Troubleshooting Steps
    http://ipadhelp.com/ipad-help/ipad-cant-send-emails-troubleshooting-steps/
    Setting up and troubleshooting Mail
    http://www.apple.com/support/ipad/assistant/mail/
    Using a POP account with multiple devices
    http://support.apple.com/kb/ht3228
    iOS: Adding an email account
    http://support.apple.com/kb/HT4810
    iOS: Setting up an Outlook.com, Hotmail, Live, or MSN email account
    http://support.apple.com/kb/ht1694
    Server does not allow relaying email error, fix
    http://appletoolbox.com/2012/01/server-does-not-allow-relaying-email-error-fix/
    Why Does My iPad Say "Cannot Connect to Server"?
    http://www.ehow.co.uk/info_8693415_ipad-say-cannot-connect-server.html
    How to Sync Contacts with Your iPad Using iTunes
    http://www.dummies.com/how-to/content/how-to-sync-contacts-with-your-ipad-using- itunes.html
    iOS: 'Mailbox Locked', account is in use on another device, or prompt to re-enter POP3 password
    http://support.apple.com/kb/ts2621
    The iPad's Mail app has no provisions for creating groups. However, you can use a third party app that many users recommend.
    MailShot -  https://itunes.apple.com/us/app/mailshot-pro-group-email-done/id445996226?mt=8
    Group Email  -  https://itunes.apple.com/us/app/group-email!-mail-client-attachments/id380690305 ?mt=8
    iPad Mail
    http://www.apple.com/support/ipad/mail/
    Configuration problems with IMAP e-mail on iOS with a non-standard SSL port.
    http://colinrobbins.me/2013/02/09/configuration-problems-with-imap-e-mail-on-ios -with-a-non-standard-ssl-port/
    Try this first - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.)
    Or this - Delete the account in Mail and then set it up again. Settings->Mail, Contacts, Calendars -> Accounts   Tap on the Account, then on the red button that says Remove Account.
     Cheers, Tom

  • HT201365 How can i unlock my i cloud lock? i have got password from my seller but it says wrong password. but i can log to i cloud from PC

    How can i unlock my i cloud lock? i have got password from my seller but it says wrong password. but i can log to i cloud from PC

    If a second-hand iOS device has been 'Activation locked' then only the previous owner can unlock it, either by providing you with the account ID and password, or by removing it from his list of devices (as he should have done before selling it) - please see http://support.apple.com/kb/ts4515
    If you are unable to contact him to do this then I'm afraid you will not be able to use the device - there is no other way of unlocking it at all. Apple cannot unlock it for you.
    You should if possible return it to wherever you bought it and ask for a refund as in this event the device is completely useless.

  • App Store says 'wrong password' but it's not!

    [I can't find a specific iPhone App Store as opposed to this Mac App Store section ... I'm this is in the wrong place, please let me know and I'll move it!]
    Odd one this - I would really appreciate some help on this one!
    The apps on my iPhone 4 appear to have been downloaded from at least three different Apple IDs; this dates back to some months ago when my Apple IDs didn't appears to be working properly do I created others to test the system with ... not realising at the time that Apple IDs can'tlater be merged.  Doh!
    Now when apps I own are updated, some downoad just fine but others fail saying I've entered the wrong password.
    I can't figure out which Apple ID was used to download that app so can't establish which Apple ID / password I need to use. I tried all this I remember to no avail.  As I recall, I used the same password for all my Apple IDs so it's probably more a case of just figuring out which Apple ID to use.
    So, just i case I had used a different password, I went to https://iforgot.apple.com to try and recover my password using security questions but it said my answers were wrong!
    So I went back to https://iforgot.apple.com to try and recover my password asking for my detals to be eMailed to me but the eMail (whilst being told it had ben sent) ever arrived in any or my eMail boxes!
    I'm going crazy now!
    Does anyone know how I can figure out:
    (1) ...which Apple ID was used to download the app (I tried looking at the apps in iTunes but the Apple ID is shown just as my name in lower case .. no eMail address)
    (2) ..what the correct password was (or how to reset it) for that Apple ID
    At the moment, my only option appears to be to delete any app that won't update and re-download it with one of my Apple IDs .. but presumably as it'll be a different from the one originaly used, it'll charge me again!!
    Kind people out therer ...Please help if you can!

    I've figured this out for myself so thought I'd let you guys know in case you have the same problem.
    There was another Apple ID that I'd forgotten about that these apps were downloaded with.
    Eventualy I managed to log into that account on the iPhone and I could download the updates.
    I still want to merge the Apple ID together but for now, when an update arrives, if that app is currently free, I'm deleting it and downloading it again using the correct Apple ID. I can't face the idea of paying twice for the same app!!
    Ho hum!

  • HT1918 I cant download anything I purchase when I try it brings me to my payment info and ask for security code I put it in and nothing happens. Says wrong code but it's not.

    Help me

    Is the address on your iTunes account exactly the same (format and spacing etc) as on your credit card bill : http://support.apple.com/kb/TS1646 ? If it is then you could try what it says at the bottom of that page :
    If the issue persists, contact your credit card company and verify that they and any company they use to process credit card authorizations have the correct information on file.
    And/or try contacting iTunes support : http://www.apple.com/support/itunes/contact/

  • I want to link my other email accounts to my imail so I can see them all at once. When I enter their account information, imail says I'm using the wrong passwords but I know they are correct. What now?

    I want to link my other email accounts to my imail so I can see them all at once. When I enter their account information, imail says I'm using the wrong passwords but I know they are correct. What now?

    This was EXACTLY what I needed about the purchases I made from my device. However, is there a way to re-download other ones you've made from a computer? Because I realized some of them were not just purchased from my device.
    This is a picture of what it looks like now:
    http://tinypic.com/r/107quxu/7
    As you can see, the stuff circled in red doesn't give me an option to download from Cloud Beta because it already says "downloaded".
    any way to get around that?

  • HT2534 When setting up my apple I'd I get a verification email but there does not seen to be a link to click on there is a link that says "verify now" but it's not a link the only other thing on the page is a link to apple thats starts the process all ove

    When setting up my apple I'd I get a verification email but there does not seen to be a link to click on there is a link that says "verify now" but it's not a link the only other thing on the page is a link to apple thats starts the process all over again.does anyone have a solution for this problem?

    The idea to jumpstart by change was not the smartest one, but gives you an opportunity to use that "temporary" account as permanent. You do not have a choice cause obviously despite you thinking that old account is no more -it does exist on Apple servers. And if you are unwilling to share your [email protected] with friend, just create one extra [email protected] for your friend. One suggestion - do not use gmail.

  • HT1277 i have set up an email account on my iPad, but i can not set up same account on iMac or iPhone , it keeps saying wrong password for account, any help please

    i have set up an email account on my iPad, but i can not set up same account on iMac or iPhone , it keeps saying wrong password for account, any help please

    i am trying to use my sky email on imac & iphone 4gs

  • I am trying to activate LR6 on a laptop that will not be connected to the internet.  I have clicked on the link for offline activation, but it says to follow the instructions till it says "having trouble connecting to the internet".  I never get there.  H

    I am trying to activate LR6 on a laptop that will not be connected to the internet.  I have clicked on the link for offline activation, but it says to follow the instructions till it says "having trouble connecting to the internet".  I never get there.  How do I get it to generate the code that I can take to an internet enabled device so I can validate it?

    http://portableapps.com/apps/internet/firefox_portable/localization#legacy36

  • Photoshop downloaded, but will not install. I've turned off firewall, but install is frozen. What to do next.      Error code 6...?    Say I need to download 64 bit version of photoshop.

    DOwnloaded PS13.  Will not install. Freezes at 2 percent. Error code 6. Says I need to download 64 bit version. What do you suggest next.  I'm not computer literate.

    Download 64 bit version of photoshop elementes 13 from below link and try to install it'
    Download Photoshop Elements products | 13, 12, 11, 10

  • Why does firefox beta download ask for adminstrator password but when I put it in, its says wrong password or user name?

    whenever I try to download firefox beta on my laptop it asks for an adminstrator password but when i put it in it says wrong user " name or password" so I try to by pass that by trying to download as user but then nothing happens the dialog box disappears and I have to start the download all over again. I'm trying to sync firefox with my android phone but I can't get the desktop/laptop version going.

    Since installing Windows 7 there have been some weird goings on with my laptop.
    I kept muddling around with this and ran a few diagnostics only to find that everything was fine. There was an incompatibility problem with Windows 7 and Firefox (safe mode) which I cared for by simply agreeing with everything Windows 7 wanted to do. It made an adjustment and apparently between the two programs they worked it out.
    I tried downloading Firefox 4 beta one more time...using a fresh download in my Firefox browser and from the Firefox webpage. Oddly, this time the program downloaded saved itself to my laptop. I was able to open and install it without incident.
    Now, I am all sync'd up!
    Thank you very much for your assistance

  • TS3212 im trying to install itunes but a message pops up saying this version is for 32 bit please use 64 bit installer, help?

    im trying to install itunes but a message pops up saying this version is for 32 bit please use 64 bit installer, help?

    Okay ... try seeing if you can download an iTunes64Setup.exe from the following download page:
    http://support.apple.com/kb/DL1577

  • HT4759 i cant sync my iphone to my pc, it says  uninstall then install d 64 bit version of itunes which i did hundreds of times but still i cant sync. pls help

    i cant sync my iphone to my pc, it says  uninstall then install d 64 bit version of itunes which i did hundreds of times but still i cant sync. pls help

    Let's try a standalone Apple Mobile Device Support install. It still might not install, but fingers crossed any error messages will give us a better idea of the underlying cause of why it's not installing under normal conditions.
    Download and save a copy of the iTunesSetup.exe (or iTunes64setup.exe) installer file to your hard drive:
    http://www.apple.com/itunes/download/
    Download and install the free trial version of WinRAR:
    http://www.rarlab.com/
    Right-click the iTunesSetup.exe (or iTunes64setup.exe), and select "Extract to iTunesSetup" (or "Extract to iTunes64Setup"). WinRAR will expand the contents of the file into a folder called "iTunesSetup" (or "iTunes64Setup").
    Go into the folder and doubleclick the AppleMobileDeviceSupport.msi (or AppleMobileDeviceSupport64.msi) to do a standalone AMDS install.
    (If it offers you the choice to remove or repair, choose "Remove", and if the uninstall goes through successfully, see if you can reinstall by doubleclicking the AppleMobileDeviceSupport.msi again.)
    Does it install (or uninstall and then reinstall) properly for you? If so, can you get a normal iTunes install to go through properly now?
    If instead you get an error message during the install (or uninstall), let us know what it says. (Precise text, please.)

  • Cant use iphone in itunes becuse it says i need to install 64 bit. But i already have 64 bit and ive reinstalled it 4 times.

    Cant use iphone in itunes becuse it says i need to install 64 bit. But i already have 64 bit and ive reinstalled it 4 times.
    How do i solve it?

    Solved it by opening the setup file in winrar and reparing "mobilesupport" (or something like that)

Maybe you are looking for

  • GridBagLayout and Panel Border problem

    I have 3 panels like A B C and the C panel has a Mouse Listener that on a mouseEntered creates a border around the same panel and on a mouseExited clears that border. When this border is created the A and B panels go up a little bit .. they move alon

  • How can i use another icloud account in my iphone? can i pay one?? where?

    how can i use another icloud account in my iphone? can i pay one?? where? My phone has reached the maximum number of free accounts activated where can I buy one to use?

  • Cr2 files in photoshop elements 11

    Can I open Canon CR2 files in Elements 11?

  • Crystal Reports 2011 - excel 2007-2010 export

    Hello, I just upgraded to crystal reports 2011 from crystal reports XI Release 2. I am having an issue exporting to excel 2007-2010 format. When I do an export and then open it in excel, excel gives me an error message that the file is corrupt and if

  • SNIP 3 handling in BizTalk

    Hi ALL, I need to configure SNIP 3 error handling in BizTalk. I heard that Biztalk will do snip 1-2 by default. Do you have any codes/sample codes for capturing snip 3 in Biztalk ?. OR please suggest the steps to do this. am new to biztalk ,(step by