GNU Mailutils - building rpm fails

This forum is dedicated to packaging and translating :

On those activities rely the making of Mageia Linux Distribution.

Post all questions and information about packaging and translating : feedbacks, discussion about guidelines, packaging practices...

GNU Mailutils - building rpm fails

Postby dimke » Jan 7th, '26, 00:28

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
dimke
 
Posts: 2
Joined: Aug 27th, '18, 22:35

Re: GNU Mailutils - building rpm fails

Postby doktor5000 » Jan 7th, '26, 13:59

Hello,

double-/crossposting is not welcome, and you already got an answer in the german forum.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18213
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: GNU Mailutils - building rpm fails

Postby dimke » Jan 7th, '26, 14:19

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?
dimke
 
Posts: 2
Joined: Aug 27th, '18, 22:35

Re: GNU Mailutils - building rpm fails

Postby Germ » Jan 7th, '26, 15:16

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.
Starting in 1999: Mandrake > Mandriva > Mageia
Linux User #274693
User avatar
Germ
 
Posts: 756
Joined: Mar 30th, '11, 13:16
Location: Chelsea, Oklahoma USA


Return to Packaging and translating for Mageia

Who is online

Users browsing this forum: No registered users and 1 guest