[Top] [All Lists]

[nmh-workers] Problems compiling on SPARC Sun Solaris 10 compile with ANSI C SUN compiler.

2019-06-13 09:45:14
Thanks for all your help. Just got back on this.

Environment SPARC Sun Solaris 10 compile with ANSI C compiler.

Wrt to is the stdbool being found - yes see yellow highlight below.

edcs@frv0310005:/export/home/edcs/nmh-1.7.1> ./configure 
checking for a BSD-compatible install... ./install-sh -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking build system type... sparc-sun-solaris2.10
checking host system type... sparc-sun-solaris2.10
configure: configuring for nmh-1.7.1
configure: configuring for nmh dated  6 March 2018
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... no
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking whether cc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of cc... none
checking how to run the C preprocessor... cc -E
checking for grep that handles long lines and -e... /usr/xpg4/bin/grep
checking for egrep... /usr/xpg4/bin/grep -E
checking whether termios.h defines TIOCGWINSZ... yes
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking stdbool.h usability... yes
checking stdbool.h presence... yes
checking for stdbool.h... yes
checking wchar.h usability... yes
checking wchar.h presence... yes
checking for wchar.h... yes
checking wctype.h usability... yes
checking wctype.h presence... yes
checking for wctype.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/stream.h usability... yes
checking sys/stream.h presence... yes
checking for sys/stream.h... yes
checking for sys/ptem.h... yes
checking for wcwidth... yes
checking for mbtowc... yes
checking for getutxent... yes
checking for arc4random... no
checking for mkstemps... no
checking for getline... no
checking whether compiler supports -Wall... yes
checking whether compiler supports -Wextra... yes
checking platform-specific additional CPPFLAGS...
checking whether linker supports -Qunused-arguments... no
checking whether to enable assertions... yes
checking whether make sets $(MAKE)... (cached) yes
checking for ranlib... ranlib
checking for gawk... (cached) nawk
checking for a sed that does not truncate output... /usr/bin/sed
checking for bison... no
checking for byacc... no
checking for flex... no
checking for lex... lex
checking lex output file root... lex.yy
checking lex library... -ll
checking whether yytext is a pointer... no
checking for ar... ar
checking the archiver (ar) interface... ar
checking for cut... /usr/bin/cut
checking for md5sum... no
checking for md5... md5
checking for ls... /usr/xpg4/bin/ls
checking how to get ls to show us the group ownership of a file... -l
checking for sendmail... /usr/sbin/sendmail
checking where mail spool is located... /var/mail
checking whether the mail spool is world-writable... yes
checking lockfile.h usability... no
checking lockfile.h presence... no
checking for lockfile.h... no
checking for dotlockfile... no
checking what group owns the mail spool... mail
checking for a program to provide a MIME type string...
checking for a program to provide a MIME encoding string...
checking for library containing gethostbyname... -lnsl
checking for library containing connect... -lsocket
checking for flock... no
checking for lockf... yes
checking default locking method for the mail spool... dot
checking iconv.h usability... yes
checking iconv.h presence... yes
checking for iconv.h... yes
checking for iconv... yes
checking whether _libiconv_version is declared... no
checking for iconv declaration... const
checking the argument of the tputs() callback... char
checking for setupterm in -ltermcap... yes
checking for library containing readline... no
checking for dbm in ndbm.h... yes
checking sasl/sasl.h usability... yes
checking sasl/sasl.h presence... yes
checking for sasl/sasl.h... yes
checking for sasl_client_new in -lsasl2... no
checking openssl/ssl.h usability... yes
checking openssl/ssl.h presence... yes
checking for openssl/ssl.h... yes
checking for BIO_write in -lcrypto... yes
checking for SSL_new in -lssl... yes
checking for X509_VERIFY_PARAM_set1_host... yes
checking for curl-config... no
checking for struct tm.tm_gmtoff... no
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for struct dirent.d_type... no
checking that generated files are newer than configure... done
configure: creating ./config.status
nmh configuration
nmh version                : 1.7.1
host os                    : sparc-sun-solaris2.10
compiler                   : cc
compiler flags             :  -g -v -errtags=yes 
-erroff=E_STATEMENT_NOT_REACHED -Wall -Wextra
linker flags               :
preprocessor flags         :
source code location       : .
binary install path        : /export/home/edcs/nmh/bin
libexec install path       : /export/home/edcs/nmh/libexec/nmh
config files install path  : /export/home/edcs/nmh/etc/nmh
man page install path      : /export/home/edcs/nmh/share/man
docs install path          : /export/home/edcs/nmh/share/doc/nmh
RPM build root             : ./RPM
backup prefix              : ,
transport system           : smtp
spool default locking type : dot
default smtp server        : localhost
SASL support               : no
TLS support                : yes
OAuth support              : no

config.status: creating Makefile
config.status: creating test/common.sh
config.status: creating uip/spost
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing build-directories commands

If I run the following command the _BOOL does not get added to the Makefile
./configure CFLAGS='-D_BOOL' -prefix=/export/home/edcs/nmh

Aside if I run for fun ./configure CFLAGS='-D_BOIL' 
-prefix=/export/home/edcs/nmh       -----  _BOIL does get added to the CFLAGS 
in the Makefile.

I manually edited the Makefile and added _BOOL
CFLAGS = -g -v -D_BOOL -errtags=yes -erroff=E_STATEMENT_NOT_REACHED -Wall 

Compilation gets further:-

Error I'm confronted with now,

cc -DHAVE_CONFIG_H -I.   -I./sbr -DNMHBINDIR='"/export/home/edcs/nmh/bin"' 
-DNMHDOCDIR='"/export/home/edcs/nmh/share/doc/nmh"' -DMAILSPOOL='"/var/mail"' 
-DSENDMAILPATH='"/usr/sbin/sendmail"'   -g -v -D_BOOL -errtags=yes 
-erroff=E_STATEMENT_NOT_REACHED -Wall -Wextra -c -o sbr/sbr_libmh_a-vfgets.o 
`test -f 'sbr/vfgets.c' || echo './'`sbr/vfgets.c
source='thirdparty/jsmn/jsmn.c' object='thirdparty/jsmn/sbr_libmh_a-jsmn.o' 
libtool=no \
DEPDIR=.deps depmode=none /bin/bash ./depcomp \
cc -DHAVE_CONFIG_H -I.   -I./sbr -DNMHBINDIR='"/export/home/edcs/nmh/bin"' 
-DNMHDOCDIR='"/export/home/edcs/nmh/share/doc/nmh"' -DMAILSPOOL='"/var/mail"' 
-DSENDMAILPATH='"/usr/sbin/sendmail"'   -g -v -D_BOOL -errtags=yes 
-erroff=E_STATEMENT_NOT_REACHED -Wall -Wextra -c -o 
thirdparty/jsmn/sbr_libmh_a-jsmn.o `test -f 'thirdparty/jsmn/jsmn.c' || echo 
source='sbr/getline.c' object='sbr/getline.o' libtool=no \
DEPDIR=.deps depmode=none /bin/bash ./depcomp \
cc -DHAVE_CONFIG_H -I.     -g -v -D_BOOL -errtags=yes 
-erroff=E_STATEMENT_NOT_REACHED -Wall -Wextra -c -o sbr/getline.o sbr/getline.c
rm -f sbr/libmh.a
ar cru sbr/libmh.a config/sbr_libmh_a-config.o config/sbr_libmh_a-version.o 
sbr/sbr_libmh_a-addrsbr.o sbr/sbr_libmh_a-ambigsw.o sbr/sbr_libmh_a-arglist.o 
sbr/sbr_libmh_a-atooi.o sbr/sbr_libmh_a-base64.o sbr/sbr_libmh_a-brkstring.o 
sbr/sbr_libmh_a-charstring.o sbr/sbr_libmh_a-check_charset.o 
sbr/sbr_libmh_a-client.o sbr/sbr_libmh_a-closefds.o sbr/sbr_libmh_a-concat.o 
sbr/sbr_libmh_a-context_del.o sbr/sbr_libmh_a-context_find.o 
sbr/sbr_libmh_a-context_foil.o sbr/sbr_libmh_a-context_read.o 
sbr/sbr_libmh_a-context_replace.o sbr/sbr_libmh_a-context_save.o 
sbr/sbr_libmh_a-copyip.o sbr/sbr_libmh_a-cpydata.o sbr/sbr_libmh_a-cpydgst.o 
sbr/sbr_libmh_a-crawl_folders.o sbr/sbr_libmh_a-credentials.o 
sbr/sbr_libmh_a-ctype-checked.o sbr/sbr_libmh_a-datetime.o 
sbr/sbr_libmh_a-discard.o sbr/sbr_libmh_a-done.o sbr/sbr_libmh_a-dtime.o 
sbr/sbr_libmh_a-dtimep.o sbr/sbr_libmh_a-encode_rfc2047.o 
sbr/sbr_libmh_a-error.o sbr/sbr_libmh_a-escape_addresses.o 
sbr/sbr_libmh_a-ext_hook.o sbr/sbr_libmh_a-fdcompare.o 
sbr/sbr_libmh_a-fmt_addr.o sbr/sbr_libmh_a-fmt_compile.o 
sbr/sbr_libmh_a-fmt_new.o sbr/sbr_libmh_a-fmt_rfc2047.o 
sbr/sbr_libmh_a-fmt_scan.o sbr/sbr_libmh_a-folder_addmsg.o 
sbr/sbr_libmh_a-folder_delmsgs.o sbr/sbr_libmh_a-folder_free.o 
sbr/sbr_libmh_a-folder_pack.o sbr/sbr_libmh_a-folder_read.o 
sbr/sbr_libmh_a-folder_realloc.o sbr/sbr_libmh_a-getarguments.o 
sbr/sbr_libmh_a-getcpy.o sbr/sbr_libmh_a-geteditor.o 
sbr/sbr_libmh_a-getfolder.o sbr/sbr_libmh_a-getpass.o 
sbr/sbr_libmh_a-icalendar.o sbr/sbr_libmh_a-icalparse.o 
sbr/sbr_libmh_a-lock_file.o sbr/sbr_libmh_a-m_atoi.o sbr/sbr_libmh_a-m_backup.o 
sbr/sbr_libmh_a-m_convert.o sbr/sbr_libmh_a-m_draft.o 
sbr/sbr_libmh_a-m_getfld.o sbr/sbr_libmh_a-m_gmprot.o 
sbr/sbr_libmh_a-m_maildir.o sbr/sbr_libmh_a-m_mktemp.o sbr/sbr_libmh_a-m_name.o 
sbr/sbr_libmh_a-m_popen.o sbr/sbr_libmh_a-m_rand.o sbr/sbr_libmh_a-makedir.o 
sbr/sbr_libmh_a-md5.o sbr/sbr_libmh_a-message_id.o sbr/sbr_libmh_a-mf.o 
sbr/sbr_libmh_a-mime_type.o sbr/sbr_libmh_a-mts.o sbr/sbr_libmh_a-netsec.o 
sbr/sbr_libmh_a-oauth.o sbr/sbr_libmh_a-oauth_prof.o sbr/sbr_libmh_a-path.o 
sbr/sbr_libmh_a-pidstatus.o sbr/sbr_libmh_a-pidwait.o 
sbr/sbr_libmh_a-print_help.o sbr/sbr_libmh_a-print_sw.o 
sbr/sbr_libmh_a-print_version.o sbr/sbr_libmh_a-push.o 
sbr/sbr_libmh_a-r1bindex.o sbr/sbr_libmh_a-read_line.o 
sbr/sbr_libmh_a-read_switch.o sbr/sbr_libmh_a-read_switch_multiword.o 
sbr/sbr_libmh_a-read_yes_or_no_if_tty.o sbr/sbr_libmh_a-readconfig.o 
sbr/sbr_libmh_a-refile.o sbr/sbr_libmh_a-remdir.o sbr/sbr_libmh_a-ruserpass.o 
sbr/sbr_libmh_a-seq_add.o sbr/sbr_libmh_a-seq_bits.o sbr/sbr_libmh_a-seq_del.o 
sbr/sbr_libmh_a-seq_getnum.o sbr/sbr_libmh_a-seq_list.o 
sbr/sbr_libmh_a-seq_nameok.o sbr/sbr_libmh_a-seq_print.o 
sbr/sbr_libmh_a-seq_read.o sbr/sbr_libmh_a-seq_save.o 
sbr/sbr_libmh_a-seq_setcur.o sbr/sbr_libmh_a-seq_setprev.o 
sbr/sbr_libmh_a-seq_setunseen.o sbr/sbr_libmh_a-showfile.o 
sbr/sbr_libmh_a-signals.o sbr/sbr_libmh_a-smatch.o sbr/sbr_libmh_a-snprintb.o 
sbr/sbr_libmh_a-ssequal.o sbr/sbr_libmh_a-strindex.o sbr/sbr_libmh_a-terminal.o 
sbr/sbr_libmh_a-trimcpy.o sbr/sbr_libmh_a-unquote.o sbr/sbr_libmh_a-uprf.o 
sbr/sbr_libmh_a-utils.o sbr/sbr_libmh_a-vector.o sbr/sbr_libmh_a-vfgets.o 
thirdparty/jsmn/sbr_libmh_a-jsmn.o sbr/getline.o
ranlib sbr/libmh.a
source='uip/ali.c' object='uip/ali.o' libtool=no \
DEPDIR=.deps depmode=none /bin/bash ./depcomp \
cc -DHAVE_CONFIG_H -I.     -g -v -D_BOOL -errtags=yes 
-erroff=E_STATEMENT_NOT_REACHED -Wall -Wextra -c -o uip/ali.o uip/ali.c
source='uip/aliasbr.c' object='uip/aliasbr.o' libtool=no \
DEPDIR=.deps depmode=none /bin/bash ./depcomp \
cc -DHAVE_CONFIG_H -I.     -g -v -D_BOOL -errtags=yes 
-erroff=E_STATEMENT_NOT_REACHED -Wall -Wextra -c -o uip/aliasbr.o uip/aliasbr.c
cc  -g -v -D_BOOL -errtags=yes -erroff=E_STATEMENT_NOT_REACHED -Wall -Wextra   
-o uip/ali uip/ali.o uip/aliasbr.o sbr/libmh.a  -lsocket -lnsl
Undefined                       first referenced
symbol                             in file
memmem                              sbr/libmh.a(sbr_libmh_a-m_getfld.o)
stpcpy                              sbr/libmh.a(sbr_libmh_a-concat.o)
strnlen                             sbr/libmh.a(sbr_libmh_a-utils.o)
ld: fatal: symbol referencing errors. No output written to uip/ali
make[1]: *** [Makefile:2128: uip/ali] Error 2
make[1]: Leaving directory '/export/home/edcs/nmh-1.7.1'
make: *** [Makefile:1643: all] Error 2

If this gets increasing difficult down this route I will see if I can get the 
sysadmin to download gcc and the appropriate dependences. And just use the gnu 
compiler for NMH. We can still use the the ANSI C compiler for all our other 

Kind Regards

Masud Anwar

Customs Declaration Services |Tel 03000 524 962

The information in this e-mail and any attachments is confidential and may be 
subject to legal professional privilege. Unless you are the intended recipient 
or his/her representative you are not authorised to, and must not, read, copy, 
distribute, use or retain this message or any part of it. If you are not the 
intended recipient, please notify the sender immediately.

HM Revenue & Customs computer systems will be monitored and communications 
carried on them recorded, to secure the effective operation of the system and 
for lawful purposes.

The Commissioners for HM Revenue and Customs are not liable for any personal 
views of the sender. 

This e-mail may have been intercepted and its information altered.

If you have any doubt about the authenticity of an email you receive which 
claims to come from HM Revenue & Customs (HMRC), please do not follow any links 
within the email, disclose any personal details or respond to it. Instead 
forward it to us at phishing@hmrc.gov.uk
<Prev in Thread] Current Thread [Next in Thread>