EnglishУкраїнськаmRussian
Login/New
Topic with no new replies

[BugFixed] libintl missed symbols since r2914


Author Message
Written on: 31. 08. 2023 [12:52]
dudanov
Sergey Dudanov
Topic creator
registered since: 14.08.2013
Posts: 26
Hello.

In revision 2914, changes were made to the configure.ac. Among the changes is a change in the libintl check. As a result, the build process ends with a linking error finding symbols (-lintl is not passed to the linker).

I did not quite understand why and for what purposes the changes were made, otherwise I could have offered an alternative solution.

The log output is below. The C system library is musl.

JAVASCRIPT
/usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /tmp/openscada/src/.libs/liboscada.so: undefined reference to `libintl_bindtextdomain'
/usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /tmp/openscada/src/.libs/liboscada.so: undefined reference to `libintl_dgettext'
/usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /tmp/openscada/src/.libs/liboscada.so: undefined reference to `libintl_textdomain'
/usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /tmp/openscada/src/.libs/liboscada.so: undefined reference to `_nl_msg_cat_cntr'


Thanks.

[This article was edited 5 times, at last 31.08.2023 at 13:21.]

# rm -rf /bin/laden
Written on: 31. 08. 2023 [14:47]
roman
Roman Savochenko
Moderator
Contributor
Developer
registered since: 12.12.2007
Posts: 3742
"dudanov" wrote:

In revision 2914, changes were made to the configure.ac. Among the changes is a change in the libintl check. As a result, the build process ends with a linking error finding symbols (-lintl is not passed to the linker).

Yes, I have adapted the building to R6220(MIPS) with no internationalisation in whole but with presence mostly empty libintl.h, so I added the declaration checking of the function bindtextdomain() but I wrong recalled the line "AC_SEARCH_LIBS(libintl_bindtextdomain, [intl])".

Try the included patch now!

Learn, learn and learn better than work, work and work.
Attachment

intl.patch (File type: text/x-patch, Size: 829 bytes) — 265 downloads
Written on: 31. 08. 2023 [15:10]
dudanov
Sergey Dudanov
Topic creator
registered since: 14.08.2013
Posts: 26
Yes, the patch works great! Build proceeds without errors.
Looking forward to the next revision with a fix.

Thanks Roman.

# rm -rf /bin/laden



17836