Gettext: "undefined reference to `getdtablesize'"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello, I am building gettext for an given platform, because it is needed by glib2. However, building of getttext fails.

In ./gettext-tools/config.log, I found:

configure:20378: k-gcc -std=gnu99 -o conftest  -L/usr/local/k_tools/lib/  conftest.c  >&5
/tmp/ccFH5nFt.o: In function `main':
/home/.../dependencies/gettext-0.18.3.2/gettext-tools/conftest.c:134: undefined reference to `getdtablesize'
/home/.../dependencies/gettext-0.18.3.2/gettext-tools/conftest.c:134: relocation truncated to fit: R_K1_27_PCREL against undefined symbol `getdtablesize'
collect2: error: ld returned 1 exit status
configure:20378: $? = 1
configure: failed program was:
...

/usr/local/k_tools is the tool-chain where one can find the libraries and the C compiler for this platform. I set the CC and CFLAGS for the C compiler that I want to use, and LDFLAGS="-L/usr/local/k_tools/lib".

Although, the configure process successfully ends, it fails when it links (as one can expect):

/home/.../dependencies/gettext-0.18.3.2_IO/gettext-tools/gnulib-lib/.libs/libgettextlib.a(spawn_faction_addclose.o): In function `rpl_posix_spawn_file_actions_addclose':
/home/.../dependencies/gettext-0.18.3.2_IO/gettext-tools/gnulib-lib/spawn_faction_addclose.c:40: undefined reference to `getdtablesize'
/home/.../dependencies/gettext-0.18.3.2_IO/gettext-tools/gnulib-lib/spawn_faction_addclose.c:40: relocation truncated to fit: R_K1_27_PCREL against undefined symbol `getdtablesize'
...

It doesn't find the library that contains it, but AFAIK getdtablesize is provided by gettext, right? Do you have any idea of what it is happening? Thanks.
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
https://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux