MarcJHuber/event-driven-servers

Unable to compile on Debian

Luth1ng opened this issue · 3 comments

Hello,

On a clean Debian install, after installed the following packages :

apt install build-essential gcc make perl checkinstall 
apt install libc-ares-dev libssl-dev libcurl4-openssl-dev libradcli-dev libpam0g-dev libpcre2-dev libsctp-dev zlib1g-dev

./configure output give me :

Development files were found for: LIB-ARES, LIB-CRYPT, LIB-CRYPTO, LIB-CURL, LIB-PAM, LIB-PCRE2, LIB-RADCLI, LIB-SCTP, LIB-SSL, LIB-ZLIB
The file
    build/Makefile.inc.linux-5.10.0-9-amd64-x86_64
was just created. You may run "make" now.

But make cannot compile the program :

make

make[1]: Entering directory '/apps/tac_plus-ng/installation/event-driven-servers/mavis'
make[2]: Entering directory '/apps/tac_plus-ng/installation/event-driven-servers/build/linux-5.10.0-9-amd64-x86_64/mavis'
make[3]: Entering directory '/apps/tac_plus-ng/installation/event-driven-servers/mavis/perl'
make[4]: Entering directory '/apps/tac_plus-ng/installation/event-driven-servers/mavis/perl'
make[4]: Nothing to be done for 'install'.
make[4]: Leaving directory '/apps/tac_plus-ng/installation/event-driven-servers/mavis/perl'
make[3]: Leaving directory '/apps/tac_plus-ng/installation/event-driven-servers/mavis/perl'
make[3]: Entering directory '/apps/tac_plus-ng/installation/event-driven-servers/build/linux-5.10.0-9-amd64-x86_64/mavis'
make[4]: Entering directory '/apps/tac_plus-ng/installation/event-driven-servers/mavis/perl'
make[4]: Nothing to be done for 'install'.
make[4]: Leaving directory '/apps/tac_plus-ng/installation/event-driven-servers/mavis/perl'
make[3]: Leaving directory '/apps/tac_plus-ng/installation/event-driven-servers/build/linux-5.10.0-9-amd64-x86_64/mavis'
make[2]: Leaving directory '/apps/tac_plus-ng/installation/event-driven-servers/build/linux-5.10.0-9-amd64-x86_64/mavis'
make[2]: Entering directory '/apps/tac_plus-ng/installation/event-driven-servers/mavis/perl'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/apps/tac_plus-ng/installation/event-driven-servers/mavis/perl'
make[1]: Leaving directory '/apps/tac_plus-ng/installation/event-driven-servers/mavis'
make[1]: Entering directory '/apps/tac_plus-ng/installation/event-driven-servers/spawnd'
make[2]: Entering directory '/apps/tac_plus-ng/installation/event-driven-servers/build/linux-5.10.0-9-amd64-x86_64/spawnd'
make[3]: Entering directory '/apps/tac_plus-ng/installation/event-driven-servers/build/linux-5.10.0-9-amd64-x86_64/spawnd'
make[3]: Nothing to be done for 'install'.
make[3]: Leaving directory '/apps/tac_plus-ng/installation/event-driven-servers/build/linux-5.10.0-9-amd64-x86_64/spawnd'
make[2]: Leaving directory '/apps/tac_plus-ng/installation/event-driven-servers/build/linux-5.10.0-9-amd64-x86_64/spawnd'
make[1]: Leaving directory '/apps/tac_plus-ng/installation/event-driven-servers/spawnd'
make[1]: Entering directory '/apps/tac_plus-ng/installation/event-driven-servers/mavisd'
make[2]: Entering directory '/apps/tac_plus-ng/installation/event-driven-servers/build/linux-5.10.0-9-amd64-x86_64/mavisd'
make[3]: Entering directory '/apps/tac_plus-ng/installation/event-driven-servers/build/linux-5.10.0-9-amd64-x86_64/mavisd'
make[3]: Nothing to be done for 'install'.
make[3]: Leaving directory '/apps/tac_plus-ng/installation/event-driven-servers/build/linux-5.10.0-9-amd64-x86_64/mavisd'
make[2]: Leaving directory '/apps/tac_plus-ng/installation/event-driven-servers/build/linux-5.10.0-9-amd64-x86_64/mavisd'
make[1]: Leaving directory '/apps/tac_plus-ng/installation/event-driven-servers/mavisd'
make[1]: Entering directory '/apps/tac_plus-ng/installation/event-driven-servers/ftpd'
make[2]: Entering directory '/apps/tac_plus-ng/installation/event-driven-servers/ftpd/extra'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/apps/tac_plus-ng/installation/event-driven-servers/ftpd/extra'
make[2]: Entering directory '/apps/tac_plus-ng/installation/event-driven-servers/build/linux-5.10.0-9-amd64-x86_64/ftpd'
gcc -o ftpd pcre_rewrite.o h_auth.o ssl_init.o ssl_verify.o h_pbsz.o h_prot.o h_ccc.o h_abor.o h_cwd.o h_help.o h_list.o h_mdtm.o h_noop.o h_pass.o h_pasv.o h_port.o h_pwd.o h_quit.o h_rein.o h_rest.o h_retr.o h_size.o h_stat.o h_syst.o h_rnfr.o h_rnto.o h_type.o h_user.o h_stor.o h_dele.o h_mkd.o h_rmd.o h_site_chmod.o h_site_group.o h_site_checksum.o h_rang.o h_site_id.o h_site_umask.o h_site_idle.o h_site_groups.o h_feat.o log.o h_host.o h_lang.o h_mode.o main.o reply.o list.o readcmd.o parse.o path.o buffer2socket.o cleanup.o pickystat.o readme.o signals.o chunk.o file2buffer.o control2socket.o accept_data.o buffer.o auth.o quota.o accept_control.o glob.o socket2buffer.o foobar.o structs.o messages.o conversions.o tohex.o ident_buffer2socket.o ident_connect_out.o ident_connected.o conf.o ident_socket2buffer.o sig_bus.o h_esta.o h_mfmt.o h_mff.o mysendfile.o bug.o -Wl,-rpath,$ORIGIN/../lib -L/apps/tac_plus-ng/installation/event-driven-servers/build/linux-5.10.0-9-amd64-x86_64/mavis -Wl,-rpath,/usr/local/lib -lmavis   -L/usr/x86_64-linux-gnu/lib -Wl,-rpath,/usr/x86_64-linux-gnu/lib -lz -L/usr/x86_64-linux-gnu/lib -Wl,-rpath,/usr/x86_64-linux-gnu/lib -lpcre2-8 -L/usr/x86_64-linux-gnu/lib -Wl,-rpath,/usr/x86_64-linux-gnu/lib -lssl -L/usr/x86_64-linux-gnu/lib -Wl,-rpath,/usr/x86_64-linux-gnu/lib -lcrypto -L/usr/x86_64-linux-gnu/lib -Wl,-rpath,/usr/x86_64-linux-gnu/lib -lcrypt
/usr/bin/ld: ssl_verify.o: warning: relocation against `ssl_auth_req' in read-only section `.text'
/usr/bin/ld: h_auth.o: in function `sslify_c':
h_auth.c:(.text+0x486): undefined reference to `ssl_auth'
/usr/bin/ld: h_auth.c:(.text+0x491): undefined reference to `ssl_ctx'
/usr/bin/ld: h_auth.c:(.text+0x4a7): undefined reference to `ssl_ctx'
/usr/bin/ld: h_auth.o: in function `sslify_d':
h_auth.c:(.text+0x54c): undefined reference to `ssl_auth'
/usr/bin/ld: h_auth.c:(.text+0x557): undefined reference to `ssl_ctx'
/usr/bin/ld: h_auth.c:(.text+0x56d): undefined reference to `ssl_ctx'
/usr/bin/ld: h_auth.o: in function `h_auth':
h_auth.c:(.text+0x5ca): undefined reference to `ssl_ctx'
/usr/bin/ld: h_auth.c:(.text+0x691): undefined reference to `ssl_old_draft'
/usr/bin/ld: h_auth.c:(.text+0x740): undefined reference to `ssl_old_draft'
/usr/bin/ld: h_auth.c:(.text+0x806): undefined reference to `ssl_old_draft'
/usr/bin/ld: ssl_verify.o: in function `app_verify_cb':
ssl_verify.c:(.text+0x118): undefined reference to `ssl_auth_req'
/usr/bin/ld: ssl_verify.o: in function `ssl_set_verify':
ssl_verify.c:(.text+0x1ea): undefined reference to `ssl_auth_req'
/usr/bin/ld: h_ccc.o: in function `do_shutdown':
h_ccc.c:(.text+0x2f): undefined reference to `io_SSL_shutdown'
/usr/bin/ld: warning: creating DT_TEXTREL in a PIE
collect2: error: ld returned 1 exit status
make[2]: *** [/apps/tac_plus-ng/installation/event-driven-servers/ftpd/Makefile.obj:65: ftpd] Error 1
make[2]: Leaving directory '/apps/tac_plus-ng/installation/event-driven-servers/build/linux-5.10.0-9-amd64-x86_64/ftpd'
make[1]: *** [GNUmakefile:24: build] Error 2
make[1]: Leaving directory '/apps/tac_plus-ng/installation/event-driven-servers/ftpd'
make: *** [GNUmakefile:31: dirs] Error 1

Version:

make -v
GNU Make 4.3
gcc -v
gcc version 10.2.1 20210110 (Debian 10.2.1-6)

Some help would be much apreciated

Hi,

thanks for reporting this issue! Alaa, my attempts to run a current Debian in a VM failed. Does this problem survive a "make clean all" cycle?

If you're only interested in tac_plus-ng: you can easily exclude the other components with "configure tac_plus-ng", which might be a viable option for you.

I might possibly have another look at this issue once/if/when there's an easy way to reproduce it, but that's just not possible for operating systems that cannot be trivially executed in a virtualized environment.

Compiling with Ubuntu shows no errors.

Cheers,

Marc

Hi,

compiling in Debian shows no errors, either (the Debian install worked with VirtualBox, but I'm close to putting Debian on the "unsupported" list as it took me ages to find a way to launch a terminal session). Closing this as "invalid".

Closed.

Cheers,

Marc