bugGNU gettext - Bugs: bug #27185, Fails to compile on QNX

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #27185: Fails to compile on QNX

Submitted by:  None
Submitted on:  Wed 05 Aug 2009 08:47:09 PM UTC  
 
Category: BuildSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Bruno Haible <haible>
Open/Closed: Closed

Sun 09 Aug 2009 02:42:45 PM UTC, comment #1:

Thank you for the report. I can reproduce the problem on a
glibc system when configuring with --with-included-gettext
and forcing HAVE_POSIX_PRINTF to 0.

Your fix, to use the DLL_EXPORTED boilerplate from intl-compat.c,
is exactly the right one. I have applied it for the next
gettext release.

Bruno Haible <haible>
Project AdministratorIn charge of this item.
Wed 05 Aug 2009 08:47:09 PM UTC, original submission:

When I try to compile gettext 0.17 on a QNX 6.4.1 system, it fails with the following errors:

/bin/sh ../libtool --tag=CC --mode=link gcc -DINSTALLDIR=\"/usr/local/bin\" -g -O2 -o gettext gettext-gettext.o ../gnulib-lib/libgrt.a ../intl/libintl.la

gcc -DINSTALLDIR=\"/usr/local/bin\" -g -O2 -o .libs/gettext gettext-gettext.o ../gnulib-lib/libgrt.a ../intl/.libs/libintl.so -lc -Wl,--rpath -Wl,/usr/loca
l/l
ib
gettext-gettext.o: In function `usage':
/tmp/gettext-0.17/gettext-runtime/src/gettext.c:238: undefined reference to `libintl_fprintf'
/tmp/gettext-0.17/gettext-runtime/src/gettext.c:243: undefined reference to `libintl_printf'
/tmp/gettext-0.17/gettext-runtime/src/gettext.c:247: undefined reference to `libintl_printf'
/tmp/gettext-0.17/gettext-runtime/src/gettext.c:249: undefined reference to `libintl_printf'
/tmp/gettext-0.17/gettext-runtime/src/gettext.c:251: undefined reference to `libintl_printf'
/tmp/gettext-0.17/gettext-runtime/src/gettext.c:253: undefined reference to `libintl_printf'
gettext-gettext.o:/tmp/gettext-0.17/gettext-runtime/src/gettext.c:262: more undefined references to `libintl_printf' follow
../gnulib-lib/libgrt.a(propername.o): In function `proper_name_utf8':
/tmp/gettext-0.17/gettext-runtime/gnulib-lib/propername.c:139: undefined reference to `libintl_sprintf'
../gnulib-lib/libgrt.a(propername.o): In function `proper_name':
/tmp/gettext-0.17/gettext-runtime/gnulib-lib/propername.c:57: undefined reference to `libintl_sprintf'
../gnulib-lib/libgrt.a(error.o): In function `print_errno_message':
/tmp/gettext-0.17/gettext-runtime/gnulib-lib/error.c:131: undefined reference to `libintl_fprintf'
../gnulib-lib/libgrt.a(error.o): In function `error_tail':
/tmp/gettext-0.17/gettext-runtime/gnulib-lib/error.c:205: undefined reference to `libintl_vfprintf'
../gnulib-lib/libgrt.a(error.o): In function `error_at_line':
/tmp/gettext-0.17/gettext-runtime/gnulib-lib/error.c:317: undefined reference to `libintl_fprintf'
/tmp/gettext-0.17/gettext-runtime/gnulib-lib/error.c:309: undefined reference to `libintl_fprintf'
../gnulib-lib/libgrt.a(error.o): In function `error':
/tmp/gettext-0.17/gettext-runtime/gnulib-lib/error.c:250: undefined reference to `libintl_fprintf'
../gnulib-lib/libgrt.a(getopt.o): In function `_getopt_internal_r':
/tmp/gettext-0.17/gettext-runtime/gnulib-lib/getopt.c:546: undefined reference to `libintl_fprintf'
/tmp/gettext-0.17/gettext-runtime/gnulib-lib/getopt.c:597: undefined reference to `libintl_fprintf'
../gnulib-lib/libgrt.a(getopt.o):/tmp/gettext-0.17/gettext-runtime/gnulib-lib/getopt.c:775: more undefined references to `libintl_fprintf' follow
collect2: ld returned 1 exit status

I believe that the definitions of the printf-ish functions in printf.c need to be exported. The attached patch does so by modifying the definition of DLL_EXPORTED to match the definition in intl-compat.c.

Anonymous

 

Attached Files
file #18532:  export-printfs.diff added by None (650B - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by haible (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 27 Nov 2016 12:20:46 AM UTChaibleCategoryNone=>Build
    Sun 09 Aug 2009 02:42:45 PM UTChaibleStatusNone=>Fixed
      Assigned toNone=>haible
      Open/ClosedOpen=>Closed
    Wed 05 Aug 2009 08:47:09 PM UTCNoneAttached File-=>Added export-printfs.diff, #18532

    Back to the top


    Powered by Savane 3.1-cleanup1