Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Dec 2013 03:38:36 +0200
From:      "Andrew W. Nosenko" <andrew.w.nosenko@gmail.com>
To:        Lowell Gilbert <freebsd-ports-local@be-well.ilk.org>
Cc:        Ajtim <lumiwa@gmail.com>, wg@freebsd.org, FreeBSD Ports <freebsd-ports@freebsd.org>
Subject:   Re: opencv update
Message-ID:  <CALa-7vzK_L810kh-p1Ktqyds_10zqUMC6xaRX6_UhKSvwBJHnQ@mail.gmail.com>
In-Reply-To: <448uw0fex4.fsf@lowell-desk.lan>
References:  <9791025.9uybD67rLo@lumiwa.farms.net> <44iov4fl19.fsf@lowell-desk.lan> <448uw0fex4.fsf@lowell-desk.lan>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Dec 5, 2013 at 12:07 AM, Lowell Gilbert <
freebsd-ports-local@be-well.ilk.org> wrote:

> Lowell Gilbert <freebsd-ports-local@be-well.ilk.org> writes:
>
> > Ajtim <lumiwa@gmail.com> writes:
> >
> >> I did what is in /usr/ports/UPDATING and looks like I am in trouble
> >> now. My system is FreeBSD 10.0-BETA4 (amd64):
> >>
> >> ===> FreeBSD 10 autotools fix applied to
> >> /usr/ports/multimedia/ffmpeg0/work/ffmpeg-0.7.16/configure
> >> ERROR: opencv-core not found
> >
> > Looks like ffmpeg0's opencv support should now depend on graphics/opencv
> > rather than graphics/opencv-core. I'm testing this theory now...
>
> No, that's not right. There's some configure-script editing in the port
> that I hadn't noticed. It's probably a minor fix, but in the meantime
> turning off ffmpeg0's option for opencv should get you around it.
>
>
I didn't verified it yet, but my assumption that it's combination of wrong
order of linker parameters and --as-needed option.  Libraries placed before
object file, which uses them (wrong order), so at the time of theirs
occurrence they are unneeded and therefore skipped.  Similar problem would
to occur independently of --as-needed if static libraries would be used
instead of dynamic, or linker occur more strict/conservative.

PS. @Mark: cvCreateImageHeader, symbol, which test program tries to find in
opencv-core.so library, exists there and exported indeed.  It absent in the
output of plain nm (or 'nm -a' in your case) just because library is heavy
stripped (removed anything unneeded for ld.so).  If use 'nm -D', you will
see that symbol.


-- 
Andrew W. Nosenko <andrew.w.nosenko@gmail.com>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CALa-7vzK_L810kh-p1Ktqyds_10zqUMC6xaRX6_UhKSvwBJHnQ>