On Sat, 2017-11-18 at 23:19 -0600, Bruce Dubbs wrote: > John Burrell wrote: > > when compiling cdrdao-1.2.3 I get this failure: > > > > toc2mp3-toc2mp3.o: In function `init_encoder(int)': > > /usr/src/multimedia/cdrdao/cdrdao-1.2.3/utils/toc2mp3.cc:241: > > undefined reference to `bitrate_table' > > /usr/src/multimedia/cdrdao/cdrdao-1.2.3/utils/toc2mp3.cc:241: > > undefined reference to `bitrate_table' > > /usr/src/multimedia/cdrdao/cdrdao-1.2.3/utils/toc2mp3.cc:241: > > undefined reference to `bitrate_table' > > toc2mp3-toc2mp3.o: In function `printUsage': > > /usr/src/multimedia/cdrdao/cdrdao-1.2.3/utils/toc2mp3.cc:145: > > undefined reference to `bitrate_table' > > /usr/src/multimedia/cdrdao/cdrdao-1.2.3/utils/toc2mp3.cc:145: > > undefined reference to `bitrate_table' > > collect2: error: ld returned 1 exit status > > make[2]: *** [Makefile:322: toc2mp3] Error 1 > > > > I've found other references to this problem but, as yet, no > > solution to it. > > I get that too. bitrate_table should be in > /usr/lib/libmp3lame.so.0.0.0 > but it looks like it is no longer exported. the nm command shows: > > 0000000000054400 r bitrate_table > > The r means: > > "R" > "r" The symbol is in a read only data section. > > "If lowercase, the symbol is usually local; if uppercase, the symbol > is > global (external)." > > So it looks like lame needs to be fixed or cdrdao should not be using > it. > All references are in the file toc2mp3.cc > > The first two references are in the function printUsage() so they > can > probably be removed without issue. The second two are used to > determin if > a passed value is valid. > > There are only 4 references in the file. I do not know why ld lists > 5. > > > There is a message in the lame package: > > changed name of bitrate_table to index_to_bitrate, but that does not > fix > cdrdao. If you cna investigate a little more and get a fix, it would > be > appreciated. > > -- Bruce >
Just swap every instance of bitrate_table[1][i] with lame_get_bitrate(1, i) -- http://lists.linuxfromscratch.org/listinfo/blfs-dev FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
