LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-18-2025, 08:51 AM   #1
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 2,412

Rep: Reputation: 306Reputation: 306Reputation: 306Reputation: 306
Building sendmail fails on vfscanf


Trying to build the latest, 8.18.1, returns:

Quote:
cc -O2 -I. -I../../include -I/usr/local/include -I/usr/local/ssl/include -DCDB -UNIS -DSTARTTLS -DUSE_EAI -c -o vfscanf.o vfscanf.c
vfscanf.c: In function 'scanalrm':
vfscanf.c:88:1: warning: old-style function definition [-Wold-style-definition]
88 | scanalrm(sig)
| ^~~~~~~~
vfscanf.c: In function 'sm_vfscanf':
vfscanf.c:109:1: warning: old-style function definition [-Wold-style-definition]
109 | sm_vfscanf(fp, timeout, fmt0, ap)
| ^~~~~~~~~~
vfscanf.c:243:30: error: assignment to 'ULONGLONG_T (*)(const char *, char **, int)' {aka 'long long unsigned int (*)(const char *, char **, int)'} from incompatible pointer type 'ULONGLONG_T (*)(void)' {aka 'long long unsigned int (*)(void)'} [-Wincompatible-pointer-types]
243 | ccfn = (ULONGLONG_T (*)())sm_strtoll;
| ^
vfscanf.c:249:30: error: assignment to 'ULONGLONG_T (*)(const char *, char **, int)' {aka 'long long unsigned int (*)(const char *, char **, int)'} from incompatible pointer type 'ULONGLONG_T (*)(void)' {aka 'long long unsigned int (*)(void)'} [-Wincompatible-pointer-types]
249 | ccfn = (ULONGLONG_T (*)())sm_strtoll;
| ^
vfscanf.c:327:30: error: assignment to 'ULONGLONG_T (*)(const char *, char **, int)' {aka 'long long unsigned int (*)(const char *, char **, int)'} from incompatible pointer type 'ULONGLONG_T (*)(void)' {aka 'long long unsigned int (*)(void)'} [-Wincompatible-pointer-types]
327 | ccfn = (ULONGLONG_T (*)()) sm_strtoll;
| ^
vfscanf.c: In function 'sm_sccl':
vfscanf.c:776:1: warning: old-style function definition [-Wold-style-definition]
776 | sm_sccl(tab, fmt)
| ^~~~~~~
make[1]: *** [<builtin>: vfscanf.o] Error 1
make[1]: Leaving directory '/usr/src/sendmail-8.18.1/obj.Linux.6.16.1.x86_64/libsm'
make: *** [Makefile:409: /usr/src/sendmail-8.18.1/obj.Linux.6.16.1.x86_64/libsm/libsm.a] Error 2
The same happens if I try to build 8.17.2 - which is the version I built and have been using for 5 years. I don't even understand the error. Slackware current, Kernel 6.16.1. Slackbuilds seems to have abandoned sendmail. This happens even with unmodified source.
 
Old 08-18-2025, 10:50 PM   #2
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 2,412

Original Poster
Rep: Reputation: 306Reputation: 306Reputation: 306Reputation: 306
A redditor pointed me to a patch https://github.com/gentoo/gentoo/blo..._strtoll.patch

There's another patch to get mailstats to build: https://github.com/gentoo/gentoo/blo...23-ctime.patch

Last edited by RandomTroll; 08-19-2025 at 07:02 AM.
 
Old 08-20-2025, 10:37 AM   #3
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 2,412

Original Poster
Rep: Reputation: 306Reputation: 306Reputation: 306Reputation: 306
The 8.18.1.10 snapshot doesn't have this problem.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Building a DIY email server for testing before building a virtual server phughes1961 Linux - Server 2 04-02-2020 08:38 AM
Building an out-of-tree module without building the kernel source lijodevasia Linux - General 2 08-01-2013 12:45 AM
Building DRBD into 2.6.17 Debian Fails technick Linux - Kernel 1 08-09-2006 01:10 PM
Sendmail Sendmail Sendmail lmcilwain Fedora 0 02-14-2006 02:01 PM
Wine fails after building font metrics : X error postb99 Linux - Software 2 07-29-2003 02:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:10 PM.

Contact Us - Advertising Info - Rules - Privacy - Donations - Contributing Member - LQ Sitemap - "Weather apps tell you it'll rain. Wyndo tells you when to go."
Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions