public inbox for cygwin-apps@cygwin.com
 help / color / mirror / Atom feed
From: Ken Brown <kbrown@cornell.edu>
To: cygwin-apps@cygwin.com
Subject: Re: [ITP] alure 1.2
Date: Mon, 17 Oct 2016 19:38:00 -0000	[thread overview]
Message-ID: <5413dc9d-2967-30f3-f34d-d87d0210c9ec@cornell.edu> (raw)
In-Reply-To: <32c91db6-8a6b-c02d-559f-babb16417c3a@fishpost.de>

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

  reply	other threads:[~2016-10-17 19:38 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-17 10:32 Bastian Germann
2016-10-13 17:05 ` Bastian Germann
2016-10-15  9:29   ` David Stacey
2016-10-16 21:30   ` Marco Atzeri
2016-10-17 13:46     ` Bastian Germann
2016-10-17 19:38       ` Ken Brown [this message]
2016-10-17 21:46         ` Bastian Germann
2016-10-18  0:06           ` Bastian Germann
2016-10-24 12:37             ` Jon Turney
2016-10-24 17:21               ` SSH key for upload access Bastian Germann
2016-10-28 16:47                 ` Yaakov Selkowitz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5413dc9d-2967-30f3-f34d-d87d0210c9ec@cornell.edu \
    --to=kbrown@cornell.edu \
    --cc=cygwin-apps@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).