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

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

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

masud.anwar1

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 -prefix=/export/home/edcs/nmh

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

configure:

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 -Wextra

 

Compilation gets further:-

 

Error I’m confronted with now,

 

cc -DHAVE_CONFIG_H -I.   -I./sbr -DNMHBINDIR='"/export/home/edcs/nmh/bin"' -DNMHLIBEXECDIR='"/export/home/edcs/nmh/libexec/nmh"' -DNMHETCDIR='"/export/home/edcs/nmh/etc/nmh"' -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"' -DNMHLIBEXECDIR='"/export/home/edcs/nmh/libexec/nmh"' -DNMHETCDIR='"/export/home/edcs/nmh/etc/nmh"' -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 './'`thirdparty/jsmn/jsmn.c

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_switch_multiword_via_readline.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 code.

 

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 [hidden email]


--
nmh-workers
https://lists.nongnu.org/mailman/listinfo/nmh-workers
Reply | Threaded
Open this post in threaded view
|

Re: Problems compiling on SPARC Sun Solaris 10 compile with ANSI C SUN compiler.

Ralph Corderoy
Hi,

Masud wrote:
> 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)

Solaris 10 doesn't have those three functions, says Gnulib.

    https://www.gnu.org/software/gnulib/manual/html_node/memmem.html
    https://www.gnu.org/software/gnulib/manual/html_node/stpcpy.html
    https://www.gnu.org/software/gnulib/manual/html_node/strnlen.html

http://austingroupbugs.net/view.php?id=1061 suggests POSIX are adding
memmem().  stpcpy() and strnlen() are in POSIX.1-2008.

I forget what we do in this situation?

--
Cheers, Ralph.

--
nmh-workers
https://lists.nongnu.org/mailman/listinfo/nmh-workers
Reply | Threaded
Open this post in threaded view
|

Re: Problems compiling on SPARC Sun Solaris 10 compile with ANSI C SUN compiler.

Ralph Corderoy
In reply to this post by masud.anwar1
Hi Masud,

> Wrt to is the stdbool being found - yes see yellow highlight below.
...
> checking stdbool.h usability... yes
> checking stdbool.h presence... yes
> checking for stdbool.h... yes
...
> config.status: creating config.h

What's the output of `grep -i bool config.h'?
Just to make sure that bit all went well.

--
Cheers, Ralph.

--
nmh-workers
https://lists.nongnu.org/mailman/listinfo/nmh-workers
Reply | Threaded
Open this post in threaded view
|

Re: Problems compiling on SPARC Sun Solaris 10 compile with ANSI C SUN compiler.

masud.anwar1
Hi Ralph,
Started a fresh and untared nmh 1.7.1
Ran ./configure -prefix=/export/home/edcs/nmh

edcs@frv0310005:/export/home/edcs/nmh-1.7.1> grep -i bool config.h
/* Define to 1 if you have the <stdbool.h> header file. */
#define HAVE_STDBOOL_H 1

Ran make:
cc -DHAVE_CONFIG_H -I.   -I./sbr -DNMHBINDIR='"/export/home/edcs/nmh/bin"' -DNMHLIBEXECDIR='"/export/home/edcs/nmh/libexec/nmh"' -DNMHETCDIR='"/export/home/edcs/nmh/etc/nmh"' -DNMHDOCDIR='"/export/home/edcs/nmh/share/doc/nmh"' -DMAILSPOOL='"/var/mail"' -DSENDMAILPATH='"/usr/sbin/sendmail"'   -g -v -errtags=yes -erroff=E_STATEMENT_NOT_REACHED -Wall -Wextra -c -o sbr/sbr_libmh_a-terminal.o `test -f 'sbr/terminal.c' || echo './'`sbr/terminal.c
"/usr/include/curses.h", line 86: invalid type combination
cc: acomp failed for sbr/terminal.c
make[1]: *** [Makefile:4332: sbr/sbr_libmh_a-terminal.o] Error 2
make[1]: Leaving directory '/export/home/edcs/nmh-1.7.1'
make: *** [Makefile:1643: all] Error 2

-----Original Message-----
From: Ralph Corderoy [mailto:[hidden email]]
Sent: 13 June 2019 15:12
To: Anwar, Masud (CDIO Development, Test & Operations (C&IT)) <[hidden email]>
Cc: [hidden email]
Subject: Re: Problems compiling on SPARC Sun Solaris 10 compile with ANSI C SUN compiler.

Hi Masud,

> Wrt to is the stdbool being found - yes see yellow highlight below.
...
> checking stdbool.h usability... yes
> checking stdbool.h presence... yes
> checking for stdbool.h... yes
...
> config.status: creating config.h

What's the output of `grep -i bool config.h'?
Just to make sure that bit all went well.

--
Cheers, Ralph.

______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com ______________________________________________________________________

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 [hidden email]
--
nmh-workers
https://lists.nongnu.org/mailman/listinfo/nmh-workers
Reply | Threaded
Open this post in threaded view
|

Re: Problems compiling on SPARC Sun Solaris 10 compile with ANSI C SUN compiler.

Ralph Corderoy
Hi Masud,

> > grep -i bool config.h
> /* Define to 1 if you have the <stdbool.h> header file. */
> #define HAVE_STDBOOL_H 1
...
> "/usr/include/curses.h", line 86: invalid type combination
> cc: acomp failed for sbr/terminal.c

From your first email:

    85  #if !defined(__cplusplus) && !defined(_BOOL)
    86  typedef char bool;

Can you investigate your stdbool.h and see if it does anything with
_BOOL.  If not, what under /usr/include takes an interest in _BOOL?

--
Cheers, Ralph.

--
nmh-workers
https://lists.nongnu.org/mailman/listinfo/nmh-workers
Reply | Threaded
Open this post in threaded view
|

Re: Problems compiling on SPARC Sun Solaris 10 compile with ANSI C SUN compiler.

Ken Hornstein-2
In reply to this post by Ralph Corderoy
So, first off ... if HAVE_STDBOOL_H is being defined and we are including
stdbool.h, then I guess I am wondering what the contents of stdbool.h are.
Also, I don't know who is supposed to be adding the preprocessor symbol
_BOOL.  I think some time spent with the -E option (or whatever does the
similar thing on Solaris) and looking at stdbool.h could puzzle this out.

>> 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)
>
>Solaris 10 doesn't have those three functions, says Gnulib.
>
>    https://www.gnu.org/software/gnulib/manual/html_node/memmem.html
>    https://www.gnu.org/software/gnulib/manual/html_node/stpcpy.html
>    https://www.gnu.org/software/gnulib/manual/html_node/strnlen.html
>
>http://austingroupbugs.net/view.php?id=1061 suggests POSIX are adding
>memmem().  stpcpy() and strnlen() are in POSIX.1-2008.

We try to conform to POSIX; I did not realize memmem() was NOT POSIX,
but to be fair this is the first I've heard of it and I didn't realize
we used it.  Looking where it is used, I understand why we use it.

>I forget what we do in this situation?

I guess our official answer is: ¯\_(ツ)_/¯

In a perfect world, we'd offer function replacements for at least the
non-POSIX functions we use via autoconf, and possibly for other functions.
And I don't want to actively make Solaris not work ... but I'm PERSONALLY
not interested in spending the time to make that work, especially since
I haven't had access to any Solaris systems in a long time and Solaris
has become a "challenging" system to develop for in recent years.

I guess the answers are: change the code to use other functions or install
Gnulib and use that (note: that might be a bit of a challenge since gnulib
is really designed to be used as source, not a library you link against),
or find some other library that has these functions and link against it.
Or, really, write some trivial replacements for those functions because
I think you could do them all as one-liners.  Maybe not memmem(), but that
one would only be a few lines.

--Ken

--
nmh-workers
https://lists.nongnu.org/mailman/listinfo/nmh-workers
Reply | Threaded
Open this post in threaded view
|

Re: Problems compiling on SPARC Sun Solaris 10 compile with ANSI C SUN compiler.

Robert Elz
    Date:        Thu, 13 Jun 2019 12:08:07 -0400
    From:        Ken Hornstein <[hidden email]>
    Message-ID:  <[hidden email]>

  | Or, really, write some trivial replacements for those functions because
  | I think you could do them all as one-liners.  Maybe not memmem(), but that
  | one would only be a few lines.

Just grab sources for them from any of the *BSD versions.   Much better
that GNU-anything ... no weird licensing issues involved.

kre


--
nmh-workers
https://lists.nongnu.org/mailman/listinfo/nmh-workers
Reply | Threaded
Open this post in threaded view
|

Re: Problems compiling on SPARC Sun Solaris 10 compile with ANSI C SUN compiler.

Ken Hornstein-2
>  | Or, really, write some trivial replacements for those functions
>  | because I think you could do them all as one-liners.  Maybe not
>  | memmem(), but that one would only be a few lines.
>
>Just grab sources for them from any of the *BSD versions.  Much better
>that GNU-anything ... no weird licensing issues involved.

Again, I have no issue if someone else wants to do that.  It's just
not something I want to do, personally.  Also, I lack access to any
Solaris systems to test those changes on.

--Ken

--
nmh-workers
https://lists.nongnu.org/mailman/listinfo/nmh-workers