Page 1 of 1

GNU Mailutils - building rpm fails

PostPosted: Jan 7th, '26, 00:28
by dimke
Hi all,

I am just trying to get the spec file running to create rpm and srpm for GNU Mailutils.

The source tarball comes from https://www.mailutils.org/download.html
and manually unpacking, ./configure, make, make install DESTDIR=somewhere
works perfectly until finished and all executables are created.

I now want to put all this in a spec file:

Code: Select all
Name:           mailutils
Version:        3.21
Release:        %mkrel 1
Summary:        GNU Mailutils
License:        GPL-2.0+
Group:          Networking/Other
Url:            https://www.mailutils.org/download.html
Source0:        %{name}-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
GNU Mailutils for accessing emails on imap or pop3 servers

%prep
%setup

%build
%configure

%make_build
%install
%make_install


The file macro is missing still, because by some reason at this step there's already and issue.
Only configuring works, while make starts and after some minutes it throws errors like

Code: Select all
/usr/bin/ld: /home/rpmbuild/rpmbuild/BUILD/mailutils-3.21/lib/mdecode.c:311: undefined reference to `mu_stream_destroy'
/usr/bin/ld: .libs/strexit.o: in function `mu_strexit':
/home/rpmbuild/rpmbuild/BUILD/mailutils-3.21/lib/strexit.c:51: undefined reference to `mu_kwd_xlat_tok'
/usr/bin/ld: .libs/unistr_u8.o: in function `unistr_downcase':
/home/rpmbuild/rpmbuild/BUILD/mailutils-3.21/lib/unistr_u8.c:29: undefined reference to `u8_tolower'
/usr/bin/ld: .libs/unistr_u8.o: in function `unistr_is_substring':
/home/rpmbuild/rpmbuild/BUILD/mailutils-3.21/lib/unistr_u8.c:37: undefined reference to `u8_strstr'
/usr/bin/ld: .libs/unistr_u8.o: in function `unistr_is_substring_dn':
/home/rpmbuild/rpmbuild/BUILD/mailutils-3.21/lib/unistr_u8.c:47: undefined reference to `u8_strstr'
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:1352: libmuaux.la] Error 1
make[3]: Leaving directory '/home/rpmbuild/rpmbuild/BUILD/mailutils-3.21/lib'
make[2]: *** [Makefile:1460: all-recursive] Error 1
make[1]: *** [Makefile:1365: all-recursive] Error 1
make: *** [Makefile:1250: all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.bPJPgJ (%build)


RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.bPJPgJ (%build)

and only a few executables are built.

Have I forgotten some macros / commands?

B.t.w., once this spec runs perfectly, it can be taken for cauldron as well.

Thanks for any hint!

Best regards,

Markus

Re: GNU Mailutils - building rpm fails

PostPosted: Jan 7th, '26, 13:59
by doktor5000
Hello,

double-/crossposting is not welcome, and you already got an answer in the german forum.

Re: GNU Mailutils - building rpm fails

PostPosted: Jan 7th, '26, 14:19
by dimke
Yes, you're right. Crossposting is always bad. That was because I first posted in the english group, but then came a suspicious autoreply like 'your post has to be inspected first' or so. But I was luckily able to go back in the browser to see what I wrote.
So, I could copy/paste, translate and post it there again. B.t.w. any clue why the english forum is censored?

Re: GNU Mailutils - building rpm fails

PostPosted: Jan 7th, '26, 15:16
by Germ
The first 2 posts by a new user has to be approved by a moderator in order to catch spammers. The post can be reviewed before becoming visible on the forum to regular users.