Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

json-c only produces 32-bit .so files? #101

Closed
ksuarz opened this issue Aug 27, 2013 · 2 comments
Closed

json-c only produces 32-bit .so files? #101

ksuarz opened this issue Aug 27, 2013 · 2 comments

Comments

@ksuarz
Copy link

ksuarz commented Aug 27, 2013

I'm trying to make an RPM for json-c and json-c-devel for CentOS 5, 64-bit. However, when it gets installed it makes 32-bit .so files:

$ file libjson.so.0.1.0
libjson.so.0.1.0: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), stripped

My version of ld will complain that it's not compatible and skips linking it when I try to build things using json-c-devel. So is there a 64-bit version, or am I doing things wrong?

(Sorry if this has been covered already in the docs; I haven't seen anything in the READMEs)

@oerdnj
Copy link

oerdnj commented Aug 28, 2013

That's your local linker problem, json-c links on amd64 arch just fine (and other archs as well)...

$ file libjson-c.so.2.0.0
libjson-c.so.2.0.0: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=0x156c7fdfd310b39aa841859ec9c3314a269faea9, stripped

@ksuarz
Copy link
Author

ksuarz commented Aug 28, 2013

Yeah I eventually got it. Just being dumb, thanks.

@ksuarz ksuarz closed this as completed Aug 28, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants