huskyproject / hpt Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v2.0
License: GNU General Public License v2.0
Squish uses MS-DOS time for the date_written
field, which only has a 2-second resolution (10:05:23 is stored as 10:05:22). For preserving the accurate date/time of the original message, Squish has also the __ftsc_date
field, which is written by hpt for imported mails.
Problem:
If an echomail area is rescanned, hpt doesn't read the original date/time from __ftsc_date
, but uses date_written
. Around 50% of the rescanned and exported messages have a timestamp that is 1 second off (the original timestamp). This could cause problems in dupe detection for some tossers.
Solution:
Read and use the __ftsc_date
field, if it is not empty.
При сборке с помощью cmake вываливается следующая ошибка и hpt не собирается:
[fido@srv-srt2 hpt]$ cmake -H. -Bbuild -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX:PATH=/home/fido/fido_make/husky
-------------------------
System : Linux 4.18.0-147.3.1.el8_1.x86_64
Compiler : GNU 8.3.1
Prefix : /home/fido/fido_make/husky (run "cmake . -DCMAKE_INSTALL_PREFIX:PATH=/other" for other prefix)
libhusky : /home/fido/fido_make/husky/lib64/libhusky.so
libfidoconfig : /home/fido/fido_make/husky/lib64/libfidoconfig.so
libsmapi : /home/fido/fido_make/husky/lib64/libsmapi.so
libareafix : /home/fido/fido_make/husky/lib64/libareafix.so
hptzip : hptzip_LIB-NOTFOUND
perl : TRUE
Build shared : ON
Build type : Release
-------------------------
-- Configuring done
-- Generating done
-- Build files have been written to: /home/fido/fidosoft/husky/hpt/build
[fido@srv-srt2 hpt]$ cmake --build build
[ 17%] Built target tpkt
[ 24%] Built target hptlink
[ 26%] Building C object CMakeFiles/hpt.dir/src/perl.c.o
In file included from /home/fido/fidosoft/husky/hpt/src/perl.c:73:
/usr/lib64/perl5/CORE/perl.h:2727:22: ошибка: неизвестное имя типа <<off64_t>>; имелось в виду <<off_t>>?
# define Off_t off64_t
^~~~~~~
/usr/lib64/perl5/CORE/perlio.h:248:15: замечание: в расширении макроса <<Off_t>>
PERL_CALLCONV Off_t PerlIO_tell(PerlIO *);
^~~~~
/usr/lib64/perl5/CORE/perl.h:2727:22: ошибка: неизвестное имя типа <<off64_t>>; имелось в виду <<off_t>>?
# define Off_t off64_t
^~~~~~~
/usr/lib64/perl5/CORE/perlio.h:251:41: замечание: в расширении макроса <<Off_t>>
PERL_CALLCONV int PerlIO_seek(PerlIO *, Off_t, int);
^~~~~
/usr/lib64/perl5/CORE/perl.h:2727:22: ошибка: неизвестное имя типа <<off64_t>>; имелось в виду <<off_t>>?
# define Off_t off64_t
^~~~~~~
/usr/lib64/perl5/CORE/proto.h:791:47: замечание: в расширении макроса <<Off_t>>
PERL_CALLCONV bool Perl_do_seek(pTHX_ GV* gv, Off_t pos, int whence);
^~~~~
/usr/lib64/perl5/CORE/perl.h:2727:22: ошибка: неизвестное имя типа <<off64_t>>; имелось в виду <<off_t>>?
# define Off_t off64_t
^~~~~~~
/usr/lib64/perl5/CORE/proto.h:798:15: замечание: в расширении макроса <<Off_t>>
PERL_CALLCONV Off_t Perl_do_sysseek(pTHX_ GV* gv, Off_t pos, int whence);
^~~~~
/usr/lib64/perl5/CORE/perl.h:2727:22: ошибка: неизвестное имя типа <<off64_t>>; имелось в виду <<off_t>>?
# define Off_t off64_t
^~~~~~~
/usr/lib64/perl5/CORE/proto.h:798:51: замечание: в расширении макроса <<Off_t>>
PERL_CALLCONV Off_t Perl_do_sysseek(pTHX_ GV* gv, Off_t pos, int whence);
^~~~~
/usr/lib64/perl5/CORE/perl.h:2727:22: ошибка: неизвестное имя типа <<off64_t>>; имелось в виду <<off_t>>?
# define Off_t off64_t
^~~~~~~
/usr/lib64/perl5/CORE/proto.h:801:15: замечание: в расширении макроса <<Off_t>>
PERL_CALLCONV Off_t Perl_do_tell(pTHX_ GV* gv)
^~~~~
/usr/lib64/perl5/CORE/perl.h:2727:22: ошибка: неизвестное имя типа <<off64_t>>; имелось в виду <<off_t>>?
# define Off_t off64_t
^~~~~~~
/usr/lib64/perl5/CORE/proto.h:6090:53: замечание: в расширении макроса <<Off_t>>
PERL_CALLCONV int Perl_PerlIO_seek(pTHX_ PerlIO *f, Off_t offset, int whence);
^~~~~
/usr/lib64/perl5/CORE/perl.h:2727:22: ошибка: неизвестное имя типа <<off64_t>>; имелось в виду <<off_t>>?
# define Off_t off64_t
^~~~~~~
/usr/lib64/perl5/CORE/proto.h:6103:15: замечание: в расширении макроса <<Off_t>>
PERL_CALLCONV Off_t Perl_PerlIO_tell(pTHX_ PerlIO *f);
^~~~~
gmake[2]: *** [CMakeFiles/hpt.dir/build.make:245: CMakeFiles/hpt.dir/src/perl.c.o] Ошибка 1
gmake[1]: *** [CMakeFiles/Makefile2:142: CMakeFiles/hpt.dir/all] Ошибка 2
gmake: *** [Makefile:152: all] Ошибка 2
Система:
[fido@srv-srt2 hpt]$ cat /etc/redhat-release
Red Hat Enterprise Linux release 8.1 (Ootpa)
с помощью cd hpt && make clean all install всё собирается нормально.
clang -Ih -I/home/ozzmosis/opt/husky/include -c -O3 -fomit-frame-pointer -fPIC -Wall -DUNIX -DHAS_POPEN src/fcommon.c
src/fcommon.c:297:75: error: passing 'hs_addr' (aka 'struct _netaddr') to parameter of incompatible type 'const hs_addr *' (aka 'const struct _netaddr *'); take the address
with &
w_log(LL_CREAT, "pktFile %s created for [%s]", link->pktFile, aka2str(link->hisAka));
^~~~~~~~~~~~
&
/home/ozzmosis/opt/husky/include/fidoconf/common.h:171:47: note: passing argument to parameter 'p_aka' here
HUSKYEXT char * aka2str(const hs_addr * const p_aka);
^
src/fcommon.c:320:75: error: passing 'hs_addr' (aka 'struct _netaddr') to parameter of incompatible type 'const hs_addr *' (aka 'const struct _netaddr *'); take the address
with &
w_log(LL_CREAT, "pktFile %s created for [%s]", link->pktFile, aka2str(link->hisAka));
^~~~~~~~~~~~
&
/home/ozzmosis/opt/husky/include/fidoconf/common.h:171:47: note: passing argument to parameter 'p_aka' here
HUSKYEXT char * aka2str(const hs_addr * const p_aka);
^
src/fcommon.c:417:55: error: passing 'struct _netaddr' to parameter of incompatible type 'const hs_addr *' (aka 'const struct _netaddr *'); take the address with &
xscatprintf(&tmp2, "hpt %s ", aka2str(config->addr[0]));
^~~~~~~~~~~~~~~
&
/home/ozzmosis/opt/husky/include/fidoconf/common.h:171:47: note: passing argument to parameter 'p_aka' here
HUSKYEXT char * aka2str(const hs_addr * const p_aka);
^
src/fcommon.c:418:40: error: passing 'hs_addr' (aka 'struct _netaddr') to parameter of incompatible type 'const hs_addr *' (aka 'const struct _netaddr *'); remove *
xstrcat(&tmp2, aka2str(*aka));
^~~~
/home/ozzmosis/opt/husky/include/fidoconf/common.h:171:47: note: passing argument to parameter 'p_aka' here
HUSKYEXT char * aka2str(const hs_addr * const p_aka);
^
4 errors generated.
gmake: *** [makefile.inc:28: fcommon.o] Error 1
When trying to compile xpt process stops with an error. I use gmake
gcc -s -o hptlink hptlink.o -L/Users/fido/fido_make/husky/lib -lareafix -lfidoconfig -lsmapi -lhusky global.o
ld: warning: option -s is obsolete and being ignored
duplicate symbol _versionStr in:
hptlink.o
global.o
duplicate symbol _config in:
hptlink.o
global.o
ld: 2 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
gmake: *** [makefile.inc:48: hptlink] Error 1
Software Versions:
srv-srt2:hpt fido$ sw_vers
ProductName: Mac OS X
ProductVersion: 10.11.6
BuildVersion: 15G22010
srv-srt2:hpt fido$ make -v
GNU Make 3.81
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
This program built for i386-apple-darwin11.3.0
srv-srt2:hpt fido$ gmake -v
GNU Make 4.2.1
Built for x86_64-apple-darwin15.6.0
Copyright (C) 1988-2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Currently husky is unable to find it's config even though the path was set in huskymak.cfg.
I am testing the 2023-0105 build of husky.
If I set the FIDOCONFIG variable to point to that config I get a segfault when running hpt.
Sorry I have no other details, I am not sure why that is happening.
Please see my comment on commit 4219514#commitcomment-48179950
hpt/lnx 1.9.0-cur 2021-03-11
all projects required at HEAD and built via this Dockerfile ( https://github.com/shtirlic/ftn-bundle/blob/main/Dockerfile)
sys : Linux af560894a3ef 5.4.0-66-generic #74-Ubuntu SMP Wed Jan 27 22:54:38 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
database: JAM
editor: golded
all resulting netmail pkt can not be read by rntrack
heres is the result from my test point hpt:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.