Hello,

I want to install liburcu-dev:i386 and liburcu-dev:amd64 simultaneously on
my
x86_64 machine. I cannot do that using 'apt install' as either installation
removes the other.

1. I went through https://wiki.debian.org/Multiarch/Implementation.

2. I fetched .deb files for both, extracted them using,
   dpkg-deb -R liburcu-dev_0.9.1-3_amd64.deb rcupackage_amd64
   dpkg-deb -R liburcu-dev_0.9.1-3_i386.deb rcupackage_i386

3. Added 'Multi-Arch: same' to DEBIAN/control file for both packages.

4. Re-packaged them using,
   dpkg-deb -b rcupackage_amd64 rcupackage_amd64.deb
   dpkg-deb -b rcupackage_i386 rcupackage_i386.deb

5. Installed both using,
   sudo dpkg -i rcupackage_amd64.deb; sudo apt install -f
   sudo dpkg -i --force-overwrite rcupackage_i386.deb; sudo apt install -f
   The overwrite was done for files in /usr/share/doc/liburcu-dev/examples/
   and file /usr/include/urcu/config.h.

In this way, I was able to install both and use them for what I wanted. But
how
to avoid the clash of files? I understand that we have these different names
usr/lib/i386-linux-gnu and usr/lib/x86_64-linux-gnu.

Thanks,
Rehas


On Wed, Feb 15, 2017 at 10:53 PM, Michael Jeanson <mjean...@efficios.com>
wrote:

> On 2017-02-10 04:12, Rehas Sachdeva wrote:
> > Package: liburcu-dev
> > Version: 0.9.1-3
> >
> > I followed the instructions here,
> > https://wiki.debian.org/Multiarch/Implementation
> > to add i386 architecture.
> >
> > I am able to build 64-bit binaries but I am not able to force 32-bit
> > build using -m32 flag, as mentioned here http://liburcu.org/. Below is
> > the error message:
> >
> > /usr/bin/ld: skipping incompatible //usr/local/lib/liburcu.so when
> > searching for -lurcu
> > /usr/bin/ld: skipping incompatible //usr/local/lib/liburcu.a when
> > searching for -lurcu
> > /usr/bin/ld: cannot find -lurcu
> > collect2: error: ld returned 1 exit status
> >
> > I am using GNU/Linux 4.4.0-62-generic, on x86_64 machine.
> >
> > Thanks.
>
> Hi,
>
> I'm not sure exactly what you are trying to achieve but the files you
> refer to in "/usr/local" are not part of the liburcu debian package and
> must be artifacts of a local build and install.
>
> I'll need more details on what you are trying to do and what steps you
> took to get there.
>
> Regards,
>
> Michael
>
>

Reply via email to