From owner-freebsd-ports@FreeBSD.ORG Sat Oct 20 20:24:43 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DF2E0734; Sat, 20 Oct 2012 20:24:43 +0000 (UTC) (envelope-from liangtai.s4@gmail.com) Received: from mail-vb0-f54.google.com (mail-vb0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 63D4F8FC0C; Sat, 20 Oct 2012 20:24:43 +0000 (UTC) Received: by mail-vb0-f54.google.com with SMTP id v11so2141566vbm.13 for ; Sat, 20 Oct 2012 13:24:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=QLTgpagcMymES/TIl7aryxd+zKwnfLd2JVcEQGPx98I=; b=rLLM6Yb5btvFff31pdBB9+cTUi+vbD7zyTblegNCQMXn/X09JvpIDOdAMnC642QiM9 jU9DLqcwiijMvG6nVDhtjmQDuk/PPstpkI8viHrZK2YzWzIAUJzRipc0bAhNVc7u+xSN o2tA9uyCmzir2uSZLlAiN2tNunQsMQqBwhl1TDcZl16mmH8hYLewyX3RUPAhu0jEwL4u vTXAx95gIP6p1lIEmqf3rXDea4JxJL867PODF7lYTBXgsqWJ2yQOGFHWXzKdjKz0qQGc 5Q6Lw9HeL1oFJKUNU612Eko9PYo/qJc14iVX3T50plDINXZl0gZpM8tayoGKrOfsjJL1 asRQ== MIME-Version: 1.0 Received: by 10.52.69.172 with SMTP id f12mr5764189vdu.92.1350764682313; Sat, 20 Oct 2012 13:24:42 -0700 (PDT) Received: by 10.220.189.71 with HTTP; Sat, 20 Oct 2012 13:24:42 -0700 (PDT) In-Reply-To: <201210160528.15207.lumiwa@gmail.com> References: <201210160528.15207.lumiwa@gmail.com> Date: Sun, 21 Oct 2012 05:24:42 +0900 Message-ID: Subject: Re: ffmpeg1 From: =?UTF-8?Q?Ry=C5=8DTa_SimaMoto?= To: ajtiM Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: mm@freebsd.org, freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Oct 2012 20:24:44 -0000 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 : > 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 http://code.google.com/p/gimp-doc-ja/