On Fri, 30 Oct 2026 00:02:35 +0100,
Sebastian Reitenbach <[email protected]> wrote:
> 
> [1  <text/plain; UTF-8 (quoted-printable)>]
> Hi Kirill,
> 
> I have them installed snapshots as of whatever yesterday was on the
> mirrors.
> 
> Now that it's working for you, the issue is probably in my mk.conf.
> I have this in my /etc/mk.conf: DEBUG=-g -O0, and afaik, with -O0, inlining
> is not done. probably I could get around the issue commenting out the DEBUG
> line
> and try again. But still, shouldn't it be buildable with both, O0 and O2?
> 
> My amd64 just built with the DEBUG=-g -O0
> line without issues, so I will try without that line on the hppa Tomorrow.
> 

I can confirm that adding DEBUG=-g -O0 to /etc/mk.conf indeed fails the
build as:

libtool: link: cc -o .libs/msgfmt -O2 -pipe -g -O0 msgfmt-msgfmt.o 
msgfmt-write-mo.o msgfmt-write-java.o msgfmt-write-csharp.o 
msgfmt-write-resources.o msgfmt-write-tcl.o msgfmt-write-qt.o 
msgfmt-write-desktop.o msgfmt-write-xml.o 
../../gettext-runtime/intl/msgfmt-hash-string.o -L.libs -lgettextsrc 
-lgettextlib -lm -liconv -lintl -ltextstyle -lncurses 
-Wl,-rpath-link,/usr/local/lib
.libs/libgettextsrc.so.12.0: warning: strcat() is almost always misused, please 
use strlcat()
msgfmt-write-mo.o: In function `write_table':
/usr/ports/pobj/gettext-1.0/gettext-1.0/gettext-tools/src/write-mo.c:399: 
warning: strcpy() is almost always misused, please use strlcpy()
.libs/libgettextlib.so.16.0: warning: wcscat() is almost always misused, please 
use wcslcat()
msgfmt-msgfmt.o: In function `add_mo_suffix':
/usr/ports/pobj/gettext-1.0/gettext-1.0/gettext-tools/src/msgfmt.c:1144: 
warning: stpcpy() is dangerous; do not use it
msgfmt-write-csharp.o: In function `msgdomain_write_csharp':
/usr/ports/pobj/gettext-1.0/gettext-1.0/gettext-tools/src/write-csharp.c:671: 
warning: sprintf() is often misused, please use snprintf()
.libs/libgettextsrc.so.12.0: undefined reference to `xsd_c'
collect2: ld returned 1 exit status
Error while executing cc -o .libs/msgfmt -O2 -pipe -g -O0 msgfmt-msgfmt.o 
msgfmt-write-mo.o msgfmt-write-java.o msgfmt-write-csharp.o 
msgfmt-write-resources.o msgfmt-write-tcl.o msgfmt-write-qt.o 
msgfmt-write-desktop.o msgfmt-write-xml.o 
../../gettext-runtime/intl/msgfmt-hash-string.o -L.libs -lgettextsrc 
-lgettextlib -lm -liconv -lintl -ltextstyle -lncurses 
-Wl,-rpath-link,/usr/local/lib
*** Error 25 in gettext-tools/src (Makefile:5554 'msgfmt')


-- 
wbr, Kirill

Reply via email to