TIP: Click on subject to list as thread! ANSI
echo: jamnntpd
to: Jay Harris
from: Nicholas Boel
date: 2024-01-24 21:40:00
subject: Compiling SmapiNNTPd

On Thu, 25 Jan 2024 00:31:34 -0500, Jay Harris -> Nicholas Boel wrote:

 JH> But still the same message about missing the smapi/msgapi.h file:

 JH> /tmp/smapinntpd/src$ make linux
 JH> make -f Makefile.linux
 JH> make[1]: Entering directory '/tmp/smapinntpd/src'
 JH> gcc  -Wall -Wno-pointer-sign -DPLATFORM_LINUX -D__PROGPROT_H__ -c main.c -o
 JH> main.o
 JH> In file included from main.c:1:
 JH> nntpserv.h:22:10: fatal error: smapi/msgapi.h: No such file or directory
 JH>     22 | #include 
 JH>        |          ^~~~~~~~~~~~~~~~
 JH> compilation terminated.
 JH> make[1]: *** [Makefile.linux:37: main.o] Error 1
 JH> make[1]: Leaving directory '/tmp/smapinntpd/src'
 JH> make: *** [Makefile:15: linux] Error 2

So I think what I did was I edited nntpserv.h and changed those two lines.

#include "/home/user/src/husky/smapi/smapi/msgapi.h"
#include "/home/user/src/husky/smapi/smapi/progprot.h"

... and it compiled. It may not be the best solution, but I had the same problems you did and when I got fed up I just started trying to point directly to files it was looking for. ;)

 JH> I notice that I have smapi 2.5 which doesn't include the smapi/progprot.h
 JH> file also referenced in nntpserv.h, but it is there in the
 JH> smapi-2.2.4-src.tar.gz archive I downloaded.
Funny thing I just noticed. I don't have progprot.h on my entire system, but changing that line to point directly to the smapi directory still worked. So maybe as long as it finds msgapi.h you're good to go. ;)

Regards,
Nick

... "Take my advice, I don't use it anyway."
--- Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:115.0) Gecko/20100101 Thunderb
                                                                            
* Origin: _thePharcyde distribution system (Wisconsin) (1:154/10)

SOURCE: echomail via QWK@pharcyde.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.