<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class=""><br class=""></div><span class="Apple-tab-span" style="white-space:pre"> </span>I’ll mention one more thing, as I just tried recompiling this in linux:<div class=""><br class=""></div><div class=""><font face="Courier New" class="">./nntplib.c: In function “get_tcp_socket”:</font></div><div class=""><font face="Courier New" class="">./nntplib.c:526:24: warning: implicit declaration of function “s_close"; did you mean “close”? [-Wimplicit-function-declaration]</font></div><div class=""><font face="Courier New" class="">./nntplib.c:526:24: warning: nested extern declaration of “s_close” {-Wnested-externs]</font></div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>Changing s_close() to close() on that line does result in a clean compile on both Linux and MacOS, but I am not sure if that is the right change to make, hence the post.</div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>BL.</div><div class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Dec 28, 2022, at 3:23 PM, Brad Littlejohn <<a href="mailto:tyketto@sbcglobal.net" class="">tyketto@sbcglobal.net</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html; charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>Hey all.</div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>I am not on the mailing list, so I may not see any replies to this or if a fix for this has been committed.</div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>Since tin-2.6.2 was in the beta/snapshot stage, I’ve been getting the following error when compiling it:</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><div class=""><font face="Courier New" style="font-size: 11px;" class="">bradl@MacBook-Air-3:~/tin-2.6.2/src> make</font></div><div class=""><font face="Courier New" style="font-size: 11px;" class="">gcc -DHAVE_CONFIG_H -I. -I../include -I../pcre -I../pcre -DLOCALEDIR=\"/usr/local/share/locale\" -I../include -D_DARWIN_C_SOURCE -D_CONST_X_STRING -O2 -Qunused-arguments -Wno-error=implicit-function-declaration -W -Wall -Wbad-function-cast -Wcast-align -Wcast-qual -Wdeclaration-after-statement -Wextra -Winline -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wshadow -Wstrict-prototypes -Wundef -Wno-inline -Wwrite-strings -c ./nntplib.c</font></div><div class=""><font face="Courier New" style="font-size: 11px;" class="">./nntplib.c:526:10: warning: implicit declaration of function 's_close' is invalid in C99 [-Wimplicit-function-declaration]</font></div><div class=""><font face="Courier New" style="font-size: 11px;" class=""> (void) s_close(s);</font></div></div><div class=""><font face="Courier New" style="font-size: 11px;" class=""><br class=""></font></div><div class=""><div class=""><font face="Courier New" style="font-size: 11px;" class="">1 warning generated.</font></div><div class=""><font face="Courier New" style="font-size: 11px;" class="">Linking tin v2.6.2 ...</font></div><div class=""><font face="Courier New" style="font-size: 11px;" class="">gcc -o ./tin ./active.o ./art.o ./attrib.o ./auth.o ./charset.o ./color.o ./config.o ./cook.o ./curses.o ./debug.o ./envarg.o ./feed.o ./filter.o ./getline.o ./global.o ./group.o ./hashstr.o ./header.o ./help.o ./inews.o ./init.o ./joinpath.o ./keymap.o ./lang.o ./langinfo.o ./list.o ./lock.o ./mail.o ./main.o ./memory.o ./mimetypes.o ./misc.o ./my_tmpfile.o ./newsrc.o ./nntplib.o ./nntps.o ./nrctbl.o ./options_menu.o ./page.o ./parsdate.o ./pgp.o ./plp_snprintf.o ./post.o ./prompt.o ./read.o ./refs.o ./regex.o ./rfc1524.o ./rfc2045.o ./rfc2046.o ./rfc2047.o ./save.o ./screen.o ./search.o ./select.o ./sigfile.o ./signal.o ./strftime.o ./string.o ./tags.o ./tcurses.o ./tmpfile.o ./thread.o ./version.o ./wildmat.o ./xref.o -L../pcre -lpcre -lcurses -liconv </font></div><div class=""><font face="Courier New" style="font-size: 11px;" class="">Undefined symbols for architecture arm64:</font></div><div class=""><font face="Courier New" style="font-size: 11px;" class=""> "_s_close", referenced from:</font></div><div class=""><font face="Courier New" style="font-size: 11px;" class=""> _nntp_open in nntplib.o</font></div><div class=""><font face="Courier New" style="font-size: 11px;" class="">ld: symbol(s) not found for architecture arm64</font></div><div class=""><font face="Courier New" style="font-size: 11px;" class="">clang: error: linker command failed with exit code 1 (use -v to see invocation)</font></div><div class=""><font face="Courier New" style="font-size: 11px;" class="">make: *** [tin] Error 1</font></div></div><div class=""><font face="Courier New" style="font-size: 11px;" class=""><br class=""></font></div><div class=""><font class=""><span class="Apple-tab-span" style="white-space: pre;"> </span>I’m using the following for compile options:</font></div><div class=""><font face="Courier New" style="font-size: 11px;" class=""><br class=""></font></div><div class=""><font face="Courier New" style="font-size: 11px;" class="">./configure --with-gpg=/usr/local/bin/gpg --with-shell=/bin/bash --enable-nntp-only --enable-warnings --with-screen=terminfo --with-domain-name=<my domain here> --with-nntp-default-server=<MY NNTP SERVER HERE> --disable-ipv6 --with-coffee --disable-nls --with-included-gettext --with-Xaw3d --with-x</font></div><div class=""><font face="Courier New" style="font-size: 11px;" class=""><br class=""></font></div><div class=""><div class=""><font face="Courier New" style="font-size: 11px;" class="">bradl@MacBook-Air-3:~> gcc -v</font></div><div class=""><font face="Courier New" style="font-size: 11px;" class="">Apple clang version 14.0.0 (clang-1400.0.29.202)</font></div><div class=""><font face="Courier New" style="font-size: 11px;" class="">Target: arm64-apple-darwin21.6.0</font></div><div class=""><font face="Courier New" style="font-size: 11px;" class="">Thread model: posix</font></div><div class=""><font face="Courier New" style="font-size: 11px;" class="">InstalledDir: /Library/Developer/CommandLineTools/usr/bin</font></div></div><div class=""><span class="Apple-tab-span" style="white-space: pre;"> </span></div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>I get the same warning at compile time and error linking with both MacOS 12.6.1, as well as in linux, so I know it isn’t any changes to gcc or anything that would cause this. Additionally, tin-2.6.1 compiles cleanly. Any insights?</div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>BL.</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div></div></div></blockquote></div><br class=""></div></body></html>