[cups] cups-filter && Solaris SPARC with non-standard C-functions

Matthias Apitz guru at unixarea.de
Tue Jan 19 23:49:55 PST 2016


El día Wednesday, January 20, 2016 a las 07:02:33AM +0000, Douglas Kosovic escribió:

> Hi Matthias,

Hi Douglas,

Thanks for your reply; ...

> 
> > It turned out that cups-filter (in concrete the version 1.0.62) makes use
> > of non-Standard (non Posix) C-functions, for example: 
> > 
> > strndup()
> > mkstemps()
> > strcasestr()
> 
> They are POSIX.1-2008 functions and Solaris 11 has them in the Standard C Library. You are using Solaris 10 which was released in 2005, so isn't aware of them.

I have checked the man pages on Linux, they claim that strdup(3) was
POSIX.1-2001, but strndup(3) a GNU extension:

...
CONFORMING TO
       strdup() conforms to SVr4, 4.3BSD, POSIX.1-2001.  strndup(),
       strdupa(), and strndupa() are  GNU extensions.

Any way, we must provide support for Solaris 10, because our customers
run these servers too.

> 
> > How is this supposed to be repaired?
> 
> In other projects I've seen code that provides implementations of the functions if they aren't defined.

There is https://www.gnu.org/software/gnulib/ and I will see if I could
use this.

> I guess you could submit a cups-filters bug, see bug tracking  link on following page :
>    http://www.linuxfoundation.org/collaborate/workgroups/openprinting/cups-filters

Yep, at least cups-filter should probe for such exotic C-calls :-)

	matthias

-- 
Matthias Apitz, ✉ guru at unixarea.de, ⌂ http://www.unixarea.de/  ☎ +49-176-38902045
UNIX since V7 on PDP-11 | UNIX on mainframe since ESER 1055 (IBM /370)
UNIX on x86 since SVR4.2 UnixWare 2.1.2 | FreeBSD since 2.2.5



More information about the cups mailing list