Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 395163 - app-cdr/cdrtools-3.01_alpha06 build failure: not linking to libintl
Summary: app-cdr/cdrtools-3.01_alpha06 build failure: not linking to libintl
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: FreeBSD (show other bugs)
Hardware: All FreeBSD
: Normal normal (vote)
Assignee: Gentoo/BSD Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 419515
  Show dependency tree
 
Reported: 2011-12-18 15:48 UTC by Naohiro Aota
Modified: 2012-08-18 09:05 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Complete build.log (build.log,212.68 KB, text/plain)
2011-12-18 15:48 UTC, Naohiro Aota
Details
files/cdrtools-3.01_alpha06-libintl.patch (cdrtools-3.01_alpha06-libintl.patch,469 bytes, patch)
2011-12-18 15:55 UTC, Naohiro Aota
Details | Diff
cdrtools-3.01_alpha07-libintl.patch (cdrtools-3.01_alpha07-libintl.patch,487 bytes, patch)
2012-06-22 02:42 UTC, Naohiro Aota
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Naohiro Aota gentoo-dev 2011-12-18 15:48:37 UTC
Created attachment 296261 [details]
Complete build.log

Build failure on Gentoo/FreeBSD

gmake[1]: Entering directory `/var/tmp/portage/app-cdr/cdrtools-3.01_alpha06/work/cdrtools-3.01/rscsi'
i686-gentoo-freebsd8.2-gcc -O -O2 -march=native -pipe -fomit-frame-pointer -finput-charset=ISO-8859-1 -fexec-charset=UTF-8 -DSCHILY_BUILD -IOBJ/x86-fbsd-freebsd-cc -I../incs/x86-fbsd-freebsd-cc -I../include -I/usr/local/include -I../libscg -c -o OBJ/x86-fbsd-freebsd-cc/rscsi.o rscsi.c  
        ==> LINKING "OBJ/x86-fbsd-freebsd-cc/rscsi"
../libs/x86-fbsd-freebsd-cc/pic/libschily.so: undefined reference to `libintl_gettext'
collect2: ld returned 1 exit status
gmake[1]: *** [OBJ/x86-fbsd-freebsd-cc/rscsi] Error 1
gmake[1]: Leaving directory `/var/tmp/portage/app-cdr/cdrtools-3.01_alpha06/work/cdrtools-3.01/rscsi'
gmake: *** [all] Error 2

The gcc argument lacks "-lintl" to link libintl_gettext.
Comment 1 Naohiro Aota gentoo-dev 2011-12-18 15:55:22 UTC
Created attachment 296263 [details, diff]
files/cdrtools-3.01_alpha06-libintl.patch

Patch to link libintl.

Build passed both on Linux and FreeBSD.

and ... I've tried to find upstream bugzilla or list where I can
report this issue.. but cannot find one. Where should I go?
Comment 2 Daniel Pielmeier gentoo-dev 2011-12-18 17:19:47 UTC
Thank you for the report and fix. There is no bug tracker for cdrtools. Issues are usually discussed on the developer list [1]. I would appreciate if you report the issue there.

[1] https://lists.berlios.de/mailman/listinfo/cdrecord-developers
Comment 3 schily 2012-01-22 19:31:33 UTC
Dynamic linking against local (own) libraries has currently only been tested well on Solaris.

While Solaris did put gettext() into libc in 1990, some platforms that introduced gettext() later did not follow that.

FreeBSD did in addition ban GNU libintl into a space outside the scope of the linker because of the limited freedom in its license. It may be however, that this changed recently as a lot of code has been reimplemented under BSD license recently. Before, you have been forced to call make with LDOPTX=-L/usr/local/lib COPTX=-I/usr/local/include in order to get gettext() on FreeBSD.

I any case, the final link situation is the same as on Linux, so why is there no problem on Linux?

BTW: the clean solution for this problem (in case of a non-broken dynamic linking concept) is to link the dynamic libschily against libintl - rscsi does not call gettxt() directly or indirectly.
Comment 4 Naohiro Aota gentoo-dev 2012-06-22 02:42:56 UTC
Created attachment 315951 [details, diff]
cdrtools-3.01_alpha07-libintl.patch

> BTW: the clean solution for this problem (in case of a non-broken dynamic linking concept) is to link the dynamic libschily against libintl - rscsi does not call gettxt() directly or indirectly.

Revised patch to link libschily against libintl.
Comment 5 Daniel Pielmeier gentoo-dev 2012-08-18 09:05:31 UTC
This should be fixed in cdrtools-3.01_alpha08.