Sign up ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

I am writing a little program which uses libpcap and my target machine is i386, while my dev machine is x86_64.

Now, when I install libpcap0.8:i386, which works, I get under /usr/lib/i386_linux_gnu/ and but NOT I installed libpcap0.8-dev on a 32bit VM and it seems like this package contains the symlink

When I want to compile my program with -m32 -L/usr/lib/i386_linux_gnu/ -lpcap that just won't work, because it can't find the library (obviously). So I have to use ugly hacks like specifying the version with or by creating a symlink manually.

Trying to install libpcap0.8-dev:i386 gives me dependency hell (open: 65; closed: 238; defer: 25; conflict: 40).

So is there a beautiful way to fix this, in a way using the package system how it's supposed to work, or do I need to stick with my ugly hacks. Or is this a bug and I should file a report?

share|improve this question

closed as unclear what you're asking by Braiam, BuZZ-dEE, psusi, Eric Carvalho, Radu Rădeanu Jun 12 '14 at 14:04

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question.If this question can be reworded to fit the rules in the help center, please edit the question.

Could you provide the exact error messages? – Braiam Jun 11 '14 at 19:37
I don't see while this question got all the attention all of a sudden, including requests for more information and down-votes. It's from 2012 and it was already closed. I don't even have the original build environment any more, nor am I working on that project any longer. – Benjamin Maurer Jun 17 '14 at 17:33

2 Answers 2

up vote 0 down vote accepted

Well, I just created a symlink from '/usr/lib/x86_64-linux-gnu/' to '/usr/lib/x86_64-linux-gnu/'

share|improve this answer

Multiarch isn't pervasive yet, only some of the most common libraries have been multi-arched.

So, instead of cross-building using multi-arched libraries, why don't you just build your app in a 32bit chroot? I described how to do that here.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.