From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 33552 invoked by alias); 17 Oct 2016 19:38:23 -0000 Mailing-List: contact cygwin-apps-help@cygwin.com; run by ezmlm Precedence: bulk Sender: cygwin-apps-owner@cygwin.com List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Mail-Followup-To: cygwin-apps@cygwin.com Received: (qmail 32479 invoked by uid 89); 17 Oct 2016 19:38:21 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 spammy=detects, Audio X-HELO: limerock04.mail.cornell.edu Received: from limerock04.mail.cornell.edu (HELO limerock04.mail.cornell.edu) (128.84.13.244) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 17 Oct 2016 19:38:19 +0000 X-CornellRouted: This message has been Routed already. Received: from authusersmtp.mail.cornell.edu (granite3.serverfarm.cornell.edu [10.16.197.8]) by limerock04.mail.cornell.edu (8.14.4/8.14.4_cu) with ESMTP id u9HJcH4a017155 for ; Mon, 17 Oct 2016 15:38:17 -0400 Received: from [10.128.137.140] (dhcp-gs-2444.eduroam.cornell.edu [10.128.137.140]) (authenticated bits=0) by authusersmtp.mail.cornell.edu (8.14.4/8.12.10) with ESMTP id u9HJcF8p003741 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT) for ; Mon, 17 Oct 2016 15:38:17 -0400 Subject: Re: [ITP] alure 1.2 To: cygwin-apps@cygwin.com References: <63e7af2d-03ee-802e-dfdd-9eb2152d839f@fishpost.de> <32c91db6-8a6b-c02d-559f-babb16417c3a@fishpost.de> From: Ken Brown Message-ID: <5413dc9d-2967-30f3-f34d-d87d0210c9ec@cornell.edu> Date: Mon, 17 Oct 2016 19:38:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <32c91db6-8a6b-c02d-559f-babb16417c3a@fishpost.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-PMX-Cornell-Gauge: Gauge=X X-PMX-CORNELL-AUTH-RESULTS: dkim-out=none; X-IsSubscribed: yes X-SW-Source: 2016-10/txt/msg00025.txt.bz2 On 10/17/2016 9:41 AM, Bastian Germann wrote: > Am 16.10.2016 um 23:30 schrieb Marco Atzeri: >> Any reason to not add FLAC (Free Lossless Audio Codec) >> dependency ? > > Yes, there is a reason: The symbols used from FLAC/stream_decoder.h > cannot be linked: > > [ 70%] Linking CXX shared library cygalure-1.dll > CMakeFiles/alure.dir/src/codec_flac.o: In function > `flacStream::GetLength()': > /usr/src/debug/alure-1.2-1/src/codec_flac.cpp:160: undefined reference > to `FLAC__stream_decoder_get_total_samples' > /usr/src/debug/alure-1.2-1/src/codec_flac.cpp:160:(.text$_ZN10flacStream9GetLengthEv[_ZN10flacStream9GetLengthEv]+0x5): > relocation truncated to fit: R_X86_64_PC32 against undefined symbol > `FLAC__stream_decoder_get_total_samples' > CMakeFiles/alure.dir/src/codec_flac.o: In function `flacStream::Rewind()': > /usr/src/debug/alure-1.2-1/src/codec_flac.cpp:148: undefined reference > to `FLAC__stream_decoder_seek_absolute' > /usr/src/debug/alure-1.2-1/src/codec_flac.cpp:148:(.text$_ZN10flacStream6RewindEv[_ZN10flacStream6RewindEv]+0xf): > relocation truncated to fit: R_X86_64_PC32 against undefined symbol > `FLAC__stream_decoder_seek_absolute' > CMakeFiles/alure.dir/src/codec_flac.o: In function > `flacStream::GetData(unsigned char*, unsigned int)': > /usr/src/debug/alure-1.2-1/src/codec_flac.cpp:138: undefined reference > to `FLAC__stream_decoder_process_single' > /usr/src/debug/alure-1.2-1/src/codec_flac.cpp:138:(.text$_ZN10flacStream7GetDataEPhj[_ZN10flacStream7GetDataEPhj]+0x73): > relocation truncated to fit: R_X86_64_PC32 against undefined symbol > `FLAC__stream_decoder_process_single' > /usr/src/debug/alure-1.2-1/src/codec_flac.cpp:139: undefined reference > to `FLAC__stream_decoder_get_state' > /usr/src/debug/alure-1.2-1/src/codec_flac.cpp:139:(.text$_ZN10flacStream7GetDataEPhj[_ZN10flacStream7GetDataEPhj]+0x8a): > relocation truncated to fit: R_X86_64_PC32 against undefined symbol > `FLAC__stream_decoder_get_state' > CMakeFiles/alure.dir/src/codec_flac.o: In function > `flacStream::~flacStream()': > /usr/src/debug/alure-1.2-1/src/codec_flac.cpp:191: undefined reference > to `FLAC__stream_decoder_finish' > /usr/src/debug/alure-1.2-1/src/codec_flac.cpp:191:(.text$_ZN10flacStreamD1Ev[_ZN10flacStreamD1Ev]+0x1d): > relocation truncated to fit: R_X86_64_PC32 against undefined symbol > `FLAC__stream_decoder_finish' > /usr/src/debug/alure-1.2-1/src/codec_flac.cpp:192: undefined reference > to `FLAC__stream_decoder_delete' > /usr/src/debug/alure-1.2-1/src/codec_flac.cpp:192:(.text$_ZN10flacStreamD1Ev[_ZN10flacStreamD1Ev]+0x26): > relocation truncated to fit: R_X86_64_PC32 against undefined symbol > `FLAC__stream_decoder_delete' > CMakeFiles/alure.dir/src/codec_flac.o: In function > `flacStream::~flacStream()': > /usr/src/debug/alure-1.2-1/src/codec_flac.cpp:191: undefined reference > to `FLAC__stream_decoder_finish' > /usr/src/debug/alure-1.2-1/src/codec_flac.cpp:191:(.text$_ZN10flacStreamD0Ev[_ZN10flacStreamD0Ev]+0x1d): > relocation truncated to fit: R_X86_64_PC32 against undefined symbol > `FLAC__stream_decoder_finish' > /usr/src/debug/alure-1.2-1/src/codec_flac.cpp:192: undefined reference > to `FLAC__stream_decoder_delete' > /usr/src/debug/alure-1.2-1/src/codec_flac.cpp:192:(.text$_ZN10flacStreamD0Ev[_ZN10flacStreamD0Ev]+0x26): > relocation truncated to fit: R_X86_64_PC32 against undefined symbol > `FLAC__stream_decoder_delete' > CMakeFiles/alure.dir/src/codec_flac.o: In function > `flacStream::flacStream(std::istream*)': > /usr/src/debug/alure-1.2-1/src/codec_flac.cpp:169: undefined reference > to `FLAC__stream_decoder_new' > /usr/src/debug/alure-1.2-1/src/codec_flac.cpp:169:(.text$_ZN11DecoderDeclI10flacStreamLi1EE7FactoryEPSi[_ZN11DecoderDeclI10flacStreamLi1EE7FactoryEPSi]+0xb0): > relocation truncated to fit: R_X86_64_PC32 against undefined symbol > `FLAC__stream_decoder_new' > /usr/src/debug/alure-1.2-1/src/codec_flac.cpp:172: undefined reference > to `FLAC__stream_decoder_init_stream' > /usr/src/debug/alure-1.2-1/src/codec_flac.cpp:172:(.text$_ZN11DecoderDeclI10flacStreamLi1EE7FactoryEPSi[_ZN11DecoderDeclI10flacStreamLi1EE7FactoryEPSi]+0x117): > relocation truncated to fit: R_X86_64_PC32 against undefined symbol > `FLAC__stream_decoder_init_stream' > /usr/src/debug/alure-1.2-1/src/codec_flac.cpp:182: undefined reference > to `FLAC__stream_decoder_delete' > /usr/src/debug/alure-1.2-1/src/codec_flac.cpp:182:(.text$_ZN11DecoderDeclI10flacStreamLi1EE7FactoryEPSi[_ZN11DecoderDeclI10flacStreamLi1EE7FactoryEPSi]+0x128): > additional relocation overflows omitted from the output > CMakeFiles/alure.dir/src/codec_flac.o: In function `flacStream::InitFlac()': > /usr/src/debug/alure-1.2-1/src/codec_flac.cpp:209: undefined reference > to `FLAC__stream_decoder_process_single' > CMakeFiles/alure.dir/src/codec_flac.o: In function > `flacStream::flacStream(std::istream*)': > /usr/src/debug/alure-1.2-1/src/codec_flac.cpp:180: undefined reference > to `FLAC__stream_decoder_finish' > CMakeFiles/alure.dir/src/codec_flac.o: In function `flacStream::InitFlac()': > /usr/src/debug/alure-1.2-1/src/codec_flac.cpp:210: undefined reference > to `FLAC__stream_decoder_get_state' That happens because DYNLOAD is not defined. If you build with DYNLOAD defined, it links fine. There is one glitch that has to be fixed when you do that. The build detects windows.h and then doesn't include dlfcn.h. [See main.h, lines 17--31.] So I edited CMakeLists.txt so as to trick the build into not defining HAVE_WINDOWS_H. I don't know enough about cmake to know the right way to handle this. Ken