I have hpt installed with DYNLIBS=1, PREFIX=/usr/local & LIBDIR=${PREFIX}/lib in huskymak.cfg.
I had to add /usr/local/lib to /etc/ld.so.conf.d/your_lib.conf and then run sudo ldconfig to allow husky to run.
make[1]: Entering directory '/tmp/smapinntpd/src'
gcc -Wall -Wno-pointer-sign -DPLATFORM_LINUX -D__PROGPROT_H__ -c main.c -o main.o
In file included from main.c:1:
nntpserv.h:22:10: fatal error: smapi/msgapi.h: No such file or directory
22 | #include <smapi/msgapi.h>
| ^~~~~~~~~~~~~~~~
compilation terminated.
I seem to be stuck trying to compile SmapiNNTPd.
Does anyone have any pointers as to how I can get this compiled & running?
On Wed, 24 Jan 2024 15:02:54 -0500, Jay Harris -> All wrote:
I seem to be stuck trying to compile SmapiNNTPd.
Does anyone have any pointers as to how I can get this compiled &
running?
Where are these located:
libsmapi.a
libsmapi.so
libsmapi.so.2.5
libsmapi.so.2.5.0
If they aren't in /usr/local/lib, then you might need to make a
symlink or point your LIBDIR in huskymak.cfg to where they actually
are.
But still the same message about missing the smapi/msgapi.h file:
/tmp/smapinntpd/src$ make linux
make -f Makefile.linux
make[1]: Entering directory '/tmp/smapinntpd/src'
gcc -Wall -Wno-pointer-sign -DPLATFORM_LINUX -D__PROGPROT_H__ -c main.c -o
main.o
In file included from main.c:1:
nntpserv.h:22:10: fatal error: smapi/msgapi.h: No such file or directory
22 | #include <smapi/msgapi.h>
| ^~~~~~~~~~~~~~~~
compilation terminated.
make[1]: *** [Makefile.linux:37: main.o] Error 1
make[1]: Leaving directory '/tmp/smapinntpd/src'
make: *** [Makefile:15: linux] Error 2
I notice that I have smapi 2.5 which doesn't include the smapi/progprot.h file also referenced in nntpserv.h, but it is there in the 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. ;)
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"
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"
This worked, thank you. I'm not sure why I didn't consider using
absolute paths, but that was the solution.
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. ;)
On 25.1.2024 5:40, Nicholas Boel wrote:Seeing as though we are probably using the exact same Makefile.linux, yes. Yes it is. ;)
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. ;)
Please take a look at Makefile.linux. Is progprot.h "optional"? :
===
ifneq ($(wildcard progprot.h),)
PLATFORMDEF = -DPLATFORM_LINUX
else
PLATFORMDEF = -DPLATFORM_LINUX -D__PROGPROT_H__
endif
===
This worked, thank you. I'm not sure why I didn't consider using absolute paths, but that was the solution.
I was able to add in Carlos' MODE READER and UTF-8 patches, so if all went well this message should be sent using SmapiNNTPd with a proper UTF-8 kludge from my iPhone.
Jay
--- NewsTap/5.5 (iPhone/iPod Touch)
* Origin: Northern Realms (1:229/664)
Sysop: | Saxainden |
---|---|
Location: | Littleton, CO |
Users: | 30 |
Nodes: | 10 (0 / 10) |
Uptime: | 00:20:14 |
Calls: | 355 |
Messages: | 37,120 |