• Error compiling husky in a raspi 3 B 64 bits

    From Angel Ripoll@2:341/66 to Todos on Tue Feb 28 22:48:44 2023
    Hola Todos!

    I'm trying to compile husky on a raspberry PI 3B 64 bits and I can't.
    I downloaded the init_build.sh script, ran it, customized huskymak.cfg and ran ./build.sh (I did it with the -j 1 parameter because it hung if I did not put it). In the end it gives me an error that is the following:

    ****************************************************************************** cd hptzip/Build/obj/; \
    ar r libhptzip.a hptzip.o ioapi.o unzip.o zip.o
    ar: creating libhptzip.a
    cd hptzip/Build/obj/; ar s libhptzip.a
    ln -f hptzip/Build/obj/libhptzip.a hptzip/Build/
    gcc -s -o hpt/Build/hpt hpt/Build/obj/carbon.o hpt/Build/obj/dupe.o hpt/Build/obj/fcommon.o hpt/Build/obj/global.o hpt/Build/obj/hpt.o hpt/Build/obj/hptafix.o hpt/Build/obj/link.o hpt/Build/obj/perl.o hpt/Build/obj/pktread.o hpt/Build/obj/pktwrite.o hpt/Build/obj/post.o hpt/Build/obj/scan.o hpt/Build/obj/scanarea.o hpt/Build/obj/seenby.o hpt/Build/obj/toss.o areafix/Build/libareafix.a fidoconf/Build/libfidoconf.a smapi/Build/libsmapi.a huskylib/Build/libhusky.a hptzip/Build/libhptzip.a -Xlinker -l:libz.a -Wl,-E -fstack-protector-strong -L/usr/local/lib -L/usr/lib/aarch64-linux-gnu/perl/5.32/CORE -lperl -ldl -lm -lpthread -lc -lcrypt
    /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/10/../../../aarch64-linux-gnu/Scrt1.o: in function `_start':
    (.text+0x18): undefined reference to `main'
    /usr/bin/ld: (.text+0x1c): undefined reference to `main'
    collect2: error: ld returned 1 exit status
    make: *** [hpt/Makefile:99: hpt/Build/hpt] Error 1 ******************************************************************************

    I'm not at all familiar with compilations so any help is welcome

    Un saludo,
    Angel Ripoll
    aripoll @ zruspas.org

    --- GoldED+/LNX 1.1.5-b20230221 + HPT 1.9 + Binkd 1.1 en Debian
    * Origin: Synchronet - bbs.zruspas.org - Zruspa's BBS - (2:341/66)
  • From Alan Ianson@1:153/757.2 to Angel Ripoll on Tue Feb 28 14:29:28 2023
    Hello Angel,

    ******** cd hptzip/Build/obj/; \ ar r libhptzip.a hptzip.o ioapi.o
    unzip.o zip.o
    ar: creating libhptzip.a
    cd hptzip/Build/obj/; ar s libhptzip.a
    ln -f hptzip/Build/obj/libhptzip.a hptzip/Build/
    gcc -s -o hpt/Build/hpt hpt/Build/obj/carbon.o hpt/Build/obj/dupe.o hpt/Build/obj/fcommon.o hpt/Build/obj/global.o hpt/Build/obj/hpt.o hpt/Build/obj/hptafix.o hpt/Build/obj/link.o hpt/Build/obj/perl.o hpt/Build/obj/pktread.o hpt/Build/obj/pktwrite.o hpt/Build/obj/post.o hpt/Build/obj/scan.o hpt/Build/obj/scanarea.o hpt/Build/obj/seenby.o hpt/Build/obj/toss.o areafix/Build/libareafix.a fidoconf/Build/libfidoconf.a smapi/Build/libsmapi.a huskylib/Build/libhusky.a hptzip/Build/libhptzip.a -Xlinker -l:libz.a -Wl,-E -fstack-protector-strong -L/usr/local/lib -L/usr/lib/aarch64-linux-gnu/perl/5.32/CORE -lperl -ldl -lm -lpthread
    -lc -lcrypt /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/10/../../../aarch64-linux-gnu/Scrt1.o:
    in function `_start': (.text+0x18): undefined reference to
    `main' /usr/bin/ld: (.text+0x1c): undefined reference to `main'
    collect2: error: ld returned 1 exit status
    make: *** [hpt/Makefile:99: hpt/Build/hpt] Error 1 ********************************************************************** ********

    I'm not at all familiar with compilations so any help is welcome

    hptzip depends on minizip. Try setting USE_HPTZIP=0 and see if that works.

    You'll have to use zip and unzip instead.

    Ttyl :-),
    Al

    ... (Oh no, (I'm nesting (parentheses) again...) help!)
    --- GoldED+/LNX 1.1.5-b20230221
    * Origin: The Rusty MailBox - Penticton, BC Canada (1:153/757.2)
  • From Angel Ripoll@2:341/66 to Alan Ianson on Wed Mar 1 19:45:40 2023
    Hola Alan!

    28 Feb 23 14:29, Alan Ianson dijo a Angel Ripoll:

    hptzip depends on minizip. Try setting USE_HPTZIP=0 and see if that works.

    Thanks for answering but it still doesn't work

    *********************************************************
    gcc -s -o hpt/Build/hpt hpt/Build/obj/carbon.o hpt/Build/obj/dupe.o hpt/Build/obj/fcommon.o hpt/Build/obj/global.o hpt/Build/obj/hpt.o hpt/Build/obj/hptafix.o hpt/Build/obj/link.o hpt/Build/obj/perl.o hpt/Build/obj/pktread.o hpt/Build/obj/pktwrite.o hpt/Build/obj/post.o hpt/Build/obj/scan.o hpt/Build/obj/scanarea.o hpt/Build/obj/seenby.o hpt/Build/obj/toss.o areafix/Build/libareafix.a fidoconf/Build/libfidoconf.a smapi/Build/libsmapi.a huskylib/Build/libhusky.a -Wl,-E -fstack-protector-strong -L/usr/local/lib -L/usr/lib/aarch64-linux-gnu/perl/5.32/CORE -lperl -ldl -lm -lpthread -lc -lcrypt
    /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/10/../../../aarch64-linux-gnu/Scrt1.o: in function `_start':
    (.text+0x18): undefined reference to `main'
    /usr/bin/ld: (.text+0x1c): undefined reference to `main'
    collect2: error: ld returned 1 exit status
    make: *** [hpt/Makefile:99: hpt/Build/hpt] Error 1 *********************************************************

    Un saludo,
    Angel Ripoll
    aripoll @ zruspas.org

    --- GoldED+/LNX 1.1.5-b20230221 + HPT 1.9 + Binkd 1.1 en Debian
    * Origin: Synchronet - bbs.zruspas.org - Zruspa's BBS - (2:341/66)
  • From Alan Ianson@1:153/757 to Angel Ripoll on Wed Mar 1 11:18:24 2023
    hptzip depends on minizip. Try setting USE_HPTZIP=0 and see if that works.

    Thanks for answering but it still doesn't work

    *********************************************************
    gcc -s -o hpt/Build/hpt hpt/Build/obj/carbon.o hpt/Build/obj/dupe.o hpt/Build/obj/fcommon.o hpt/Build/obj/global.o hpt/Build/obj/hpt.o hpt/Build/obj/hptafix.o hpt/Build/obj/link.o hpt/Build/obj/perl.o hpt/Build/obj/pktread.o hpt/Build/obj/pktwrite.o hpt/Build/obj/post.o hpt/Build/obj/scan.o hpt/Build/obj/scanarea.o hpt/Build/obj/seenby.o hpt/Build/obj/toss.o areafix/Build/libareafix.a fidoconf/Build/libfidoconf.a smapi/Build/libsmapi.a huskylib/Build/libhusky.a -Wl,-E -fstack-protector-strong -L/usr/local/lib -L/usr/lib/aarch64-linux-gnu/perl/5.32/CORE -lperl -ldl -lm -lpthread -lc -lcrypt
    /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/10/../../../aarch64-linux-gnu/Scrt
    .o: in function `_start':
    (.text+0x18): undefined reference to `main'
    /usr/bin/ld: (.text+0x1c): undefined reference to `main'
    collect2: error: ld returned 1 exit status
    make: *** [hpt/Makefile:99: hpt/Build/hpt] Error 1 *********************************************************

    I don't know anything about the pi. I am not sure if the error above is related to perl, but you could also try setting PERL=0 and see if it works.

    Of course you won't have perl support but hpt and friens will work without it.

    --- BBBS/Li6 v4.10 Toy-6
    * Origin: The Rusty MailBox - Penticton, BC Canada (1:153/757)