Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 23 Oct 2017, 00:33
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Compiling
Problem compiling 32-bit Openssl in 64-bit system
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [4 Posts]  
Author Message
Scooby

Joined: 03 Mar 2012
Posts: 601

PostPosted: Wed 04 Mar 2015, 17:03    Post subject:    

Tried to compile it for 32 bit on a 64 bit system

ran configure with linux-generic32
Installed musl-i686 package

Problem during linking

/usr/bin/ld: skipping incompatible /usr/lib/musl/lib/libc.a when searching for -lc
/usr/bin/ld: cannot find -lc


Any input on this?

*edit*
Started up a 32 bit linux and of course then I could compile it
Would be nice to know how to do it from a 64 bit

Anyway openssl came out 2,6 Mb stripped
Is that OK or could it be shrunk?
Back to top
View user's profile Send private message 
technosaurus


Joined: 18 May 2008
Posts: 4745

PostPosted: Wed 04 Mar 2015, 23:00    Post subject:  

Your musl toolchain isn't setup right. See:
http://wiki.musl-libc.org/wiki/Getting_started

The easiest way to make the tools work without modifying system variables is to change a line in musl's config.mak
prefix = /usr/local/musl
to
prefix = /usr/local

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
Scooby

Joined: 03 Mar 2012
Posts: 601

PostPosted: Thu 05 Mar 2015, 10:55    Post subject:  

Mine is actually /usr/lib/musl and I only had musl 32 bit installed
Code:

file xattr.o
xattr.o: ELF 32-bit LSB relocatable, Intel 80386, version 1 (SYSV), not stripped


Were xattr.o resides inside /usr/lib/musl/lib/libc.a

I compiled it on 32-bit linux using exactly the same musl package and
it worked.

I am missing something

Will keep trying...
Back to top
View user's profile Send private message 
technosaurus


Joined: 18 May 2008
Posts: 4745

PostPosted: Thu 05 Mar 2015, 14:20    Post subject:  

Scooby wrote:
Mine is actually /usr/lib/musl and I only had musl 32 bit installed
Code:

file xattr.o
xattr.o: ELF 32-bit LSB relocatable, Intel 80386, version 1 (SYSV), not stripped


Were xattr.o resides inside /usr/lib/musl/lib/libc.a

I compiled it on 32-bit linux using exactly the same musl package and
it worked.

I am missing something

Will keep trying...

yes - that is why I recommended /usr/local - otherwise you have to set $PATH, $LD_LIBRARY_PATH and possibly other variables

either way you want to use musl-gcc (not just gcc - its a wrapper) as your compiler either by setting $CC or editing makefile or whatever build tool script may automatically try to use gcc instead

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [4 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Compiling
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0327s ][ Queries: 13 (0.0041s) ][ GZIP on ]