Coder Social home page Coder Social logo

huskyproject / hpt Goto Github PK

View Code? Open in Web Editor NEW
24.0 24.0 10.0 9.54 MB

License: GNU General Public License v2.0

Makefile 0.87% Ruby 0.68% C 71.22% Perl 20.68% Batchfile 1.17% Shell 0.68% CMake 0.74% Raku 3.34% C++ 0.29% Berry 0.06% HTML 0.02% Pawn 0.25%

hpt's People

Contributors

askovpen avatar brorabbit avatar dukelsky avatar madires avatar vasilyevmax avatar vitaliy-aksyonov avatar zoomosis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hpt's Issues

Проблема при сборке cmake с perl

При сборке с помощью 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 всё собирается нормально.

husky is unable to find it's config

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.

hpt not compiled on OS X 10.11.6

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.

Squish __ftsc_date field not used in rescanned mails

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.

Build failure in src/fcommon.c

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.