tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: mysql built with pkgsrc gcc6 missing atomic.so



* On 2019-04-30 at 14:17 BST, David Brownlee wrote:

> On Tue, 30 Apr 2019 at 08:07, Jonathan Perkin <jperkin%joyent.com@localhost> wrote:
> >
> > * On 2019-04-30 at 06:23 BST, David Brownlee wrote:
> >
> > > Mysql-5.7 built with pkgsrc gcc the installed on another machine fails to
> > > run due to missing libatomic.so
> > >
> > > ldd `which mysql`|ag latomic
> > >         -latomic.3 => not found
> > >
> > > Installing gcc6-libs-6.5.0nb3 fixes it
> > >
> > > ldd `which mysql`|ag latomic
> > >         -latomic.3 => /usr/pkg/gcc6/x86_64--netbsd/lib/./libatomic.so.3
> > >
> > > Should mysql set USE_PKGSRC_GCC_RUNTIME?
> >
> > The package-settable variable is USE_GCC_RUNTIME, which it should set.
> >
> > USE_PKGSRC_GCC_RUNTIME is a user variable indicating whether to depend
> > on the -libs packages instead of the full gcc package.
> 
> Great, thanks. Will poke mysql57-{client,server}. I don't use earlier
> versions, but I can run a test build and check them with ldd to see if
> they need the same.

It's highly likely.  The number of packages that require
USE_GCC_RUNTIME adding is huge, I gave up trying to add it everywhere
and instead now just set it globally for our packages (which always
ship pkgsrc gcc-libs).

-- 
Jonathan Perkin  -  Joyent, Inc.  -  www.joyent.com


Home | Main Index | Thread Index | Old Index