Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Oct 2012 05:24:42 +0900
From:      =?UTF-8?Q?Ry=C5=8DTa_SimaMoto?= <liangtai.s4@gmail.com>
To:        ajtiM <lumiwa@gmail.com>
Cc:        mm@freebsd.org, freebsd-ports@freebsd.org
Subject:   Re: ffmpeg1
Message-ID:  <CABDoUfBtxrN%2BY4VcV6MF3a4xprk-RFHrO9T9wCB=Cv397fDQqw@mail.gmail.com>
In-Reply-To: <201210160528.15207.lumiwa@gmail.com>
References:  <201210160528.15207.lumiwa@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

I have the same problem.  In short, Setting
CONFIGURE_ARGS+=3D LIBS=3D"-lm" at the audio/fdk-aac/Makefile
may resolve it.

It is strange that libfdk-aac did not link against libm.so
though it uses some arithmetic functions from math.h.  The
config.log of multimedia/ffmpeg1 shows that:
/usr/local/lib/libfdk-aac.so: undefined reference to `floor'
/usr/local/lib/libfdk-aac.so: undefined reference to `ceil'
/usr/local/lib/libfdk-aac.so: undefined reference to `tan'
/usr/local/lib/libfdk-aac.so: undefined reference to `log'
/usr/local/lib/libfdk-aac.so: undefined reference to `atan'
/usr/local/lib/libfdk-aac.so: undefined reference to `acos'
/usr/local/lib/libfdk-aac.so: undefined reference to `exp'
/usr/local/lib/libfdk-aac.so: undefined reference to `sin'
/usr/local/lib/libfdk-aac.so: undefined reference to `pow'
/usr/local/lib/libfdk-aac.so: undefined reference to `atan2'
/usr/local/lib/libfdk-aac.so: undefined reference to `cos'
clang: error: linker command failed with exit code 1 (use -v to see invocat=
ion)
Then the linkage list of this library was:
$ ldd /usr/local/lib/libfdk-aac.so.0
/usr/local/lib/libfdk-aac.so.0:
	libc.so.7 =3D> /lib/libc.so.7 (0x2806e000)

It succeeds to test of compilation a new libfdk-aac.so that links
against both of libc and libm, with a short program from the
configure script of ffmpeg1 and its way:
ffconf.c:
   extern int aacEncOpen();
   int main(void){ aacEncOpen(); }
clang -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=3D64 -D_LARGEFILE_SOURCE -O2 \
  -pipe -fno-strict-aliasing -I/usr/local/include/vorbis -I/usr/local/inclu=
de \
  -std=3Dc99 -fomit-frame-pointer -I/usr/local/include -I/usr/local/include=
 \
  -I/usr/local/include/p11-kit-1 -I/usr/local/include/fribidi \
  -I/usr/local/include/freetype2 -I/usr/local/include -c -o ffconf.o ffconf=
.c
clang -L/usr/local/lib -Wl,--as-needed -o ffconf ffconf.o -lfdk-aac -lfaac =
\
  -lcelt0 -lcelt0 -lbluray -L/usr/local/lib -lass -laacplus -L/usr/local/li=
b \
  -lgnutls -L/usr/local/lib -L/usr/lib -lfontconfig -lva -lm -lbz2 -lz -pth=
read


2012/10/16, ajtiM <lumiwa@gmail.com>:
> Hi!
>
> I tried to update VLC on FreeBSD 9.1 RC2 and it need ffmpeg1 which I have=
 a
>
> problem to build:
>
> Cleaning for ffmpeg1-1.0
> =3D=3D=3D>  License GPLv3 LGPL3 accepted by the user
> =3D=3D=3D>  Found saved configuration for ffmpeg1-1.0
> =3D=3D=3D>   ffmpeg1-1.0 depends on file: /usr/local/sbin/pkg - found
> =3D=3D=3D>  Extracting for ffmpeg1-1.0
> =3D> SHA256 Checksum OK for ffmpeg-1.0.tar.bz2.
> =3D=3D=3D>   ffmpeg1-1.0 depends on file: /usr/local/bin/perl5.16.0 - fou=
nd
> =3D=3D=3D>  Patching for ffmpeg1-1.0
> =3D=3D=3D>   ffmpeg1-1.0 depends on file: /usr/local/bin/perl5.16.0 - fou=
nd
> =3D=3D=3D>  Applying FreeBSD patches for ffmpeg1-1.0
> =3D=3D=3D>   ffmpeg1-1.0 depends on executable: yasm - found
> =3D=3D=3D>   ffmpeg1-1.0 depends on file: /usr/local/bin/as - found
> =3D=3D=3D>   ffmpeg1-1.0 depends on executable: texi2html - found
> =3D=3D=3D>   ffmpeg1-1.0 depends on file: /usr/local/include/frei0r.h - f=
ound
> =3D=3D=3D>   ffmpeg1-1.0 depends on file: /usr/local/include/vdpau/vdpau.=
h -
> found
> =3D=3D=3D>   ffmpeg1-1.0 depends on executable: gmake - found
> =3D=3D=3D>   ffmpeg1-1.0 depends on executable: pkgconf - found
> =3D=3D=3D>   ffmpeg1-1.0 depends on file: /usr/local/libdata/pkgconfig/x1=
1.pc -
> found
> =3D=3D=3D>   ffmpeg1-1.0 depends on file: /usr/local/libdata/pkgconfig/xe=
xt.pc -
> found
> =3D=3D=3D>   ffmpeg1-1.0 depends on file: /usr/local/libdata/pkgconfig/xf=
ixes.pc -
> found
> =3D=3D=3D>   ffmpeg1-1.0 depends on file: /usr/local/bin/sdl-config - fou=
nd
> =3D=3D=3D>   ffmpeg1-1.0 depends on file: /usr/local/bin/perl5.16.0 - fou=
nd
> =3D=3D=3D>   ffmpeg1-1.0 depends on shared library: aacplus - found
> =3D=3D=3D>   ffmpeg1-1.0 depends on shared library: opencore-amrnb - foun=
d
> =3D=3D=3D>   ffmpeg1-1.0 depends on shared library: opencore-amrwb - foun=
d
> =3D=3D=3D>   ffmpeg1-1.0 depends on shared library: faac - found
> =3D=3D=3D>   ffmpeg1-1.0 depends on shared library: fdk-aac - found
> =3D=3D=3D>   ffmpeg1-1.0 depends on shared library: fontconfig - found
> =3D=3D=3D>   ffmpeg1-1.0 depends on shared library: freetype - found
> =3D=3D=3D>   ffmpeg1-1.0 depends on shared library: gnutls - found
> =3D=3D=3D>   ffmpeg1-1.0 depends on shared library: gsm - found
> =3D=3D=3D>   ffmpeg1-1.0 depends on shared library: mp3lame - found
> =3D=3D=3D>   ffmpeg1-1.0 depends on shared library: openal - found
> =3D=3D=3D>   ffmpeg1-1.0 depends on shared library: opencv_imgproc - foun=
d
> =3D=3D=3D>   ffmpeg1-1.0 depends on shared library: openjpeg - found
> =3D=3D=3D>   ffmpeg1-1.0 depends on shared library: rtmp - found
> =3D=3D=3D>   ffmpeg1-1.0 depends on shared library: schroedinger-1.0.11 -=
 found
> =3D=3D=3D>   ffmpeg1-1.0 depends on shared library: speex - found
> =3D=3D=3D>   ffmpeg1-1.0 depends on shared library: theora - found
> =3D=3D=3D>   ffmpeg1-1.0 depends on shared library: va - found
> =3D=3D=3D>   ffmpeg1-1.0 depends on shared library: vo-aacenc - found
> =3D=3D=3D>   ffmpeg1-1.0 depends on shared library: vo-amrwbenc - found
> =3D=3D=3D>   ffmpeg1-1.0 depends on shared library: vorbisenc - found
> =3D=3D=3D>   ffmpeg1-1.0 depends on shared library: vpx - found
> =3D=3D=3D>   ffmpeg1-1.0 depends on shared library: x264 - found
> =3D=3D=3D>   ffmpeg1-1.0 depends on shared library: xvidcore - found
> =3D=3D=3D>   ffmpeg1-1.0 depends on shared library: SDL-1.2.11 - found
> =3D=3D=3D>  Configuring for ffmpeg1-1.0
> ERROR: libfdk_aac not found
>
> If you think configure made a mistake, make sure you are using the latest
> version from Git.  If the latest version fails, report the problem to the
> ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
> Include the log file "config.log" produced by configure as this will help
> solving the problem.
> =3D=3D=3D>  Script "configure" failed unexpectedly.
> Please report the problem to mm@FreeBSD.org [maintainer] and attach the
> "/usr/ports/multimedia/ffmpeg1/work/ffmpeg-1.0/config.err" including the
> output of the failure of your make command. Also, it might be a good idea
> to
> provide an overview of all packages installed on your system (e.g. a
> /usr/local/sbin/pkg info -g -Ea).
> *** [do-configure] Error code 1
>
> Stop in /usr/ports/multimedia/ffmpeg1.
> *** [build] Error code 1
>
> Stop in /usr/ports/multimedia/ffmpeg1.
>
> =3D=3D=3D>>> make failed for multimedia/ffmpeg1
> =3D=3D=3D>>> Aborting update
>
> I reinstall fdk-aac and I have libfdk_aac on the system.
>
> Thank you.
>
> Mitja
> --------
> http://jpgmag.com/people/lumiwa
> _______________________________________________
> freebsd-ports@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org"
>


--=20
-=3D-=3D-=3D-=3D-=3D
SimaMoto,Ry=C5=8DTa <liangtai.s4@gmail.com>
http://code.google.com/p/gimp-doc-ja/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CABDoUfBtxrN%2BY4VcV6MF3a4xprk-RFHrO9T9wCB=Cv397fDQqw>