Re: Gutenprint 5.3.5-pre1 Release

Solomon Peachy via Gimp-print-devel <[email protected]> Wed, 10 Jul 2024 15:30:53 -0400
Newsgroups gmane.linux.printing.gimp-print.devel
Message-ID <[email protected]>
On Wed, Jul 10, 2024 at 01:54:56PM -0400, Greg Troxel wrote:
> That is great progress to get it to build.  Did you, or could you, try
> with removing the -DPOSIX_C_SOURCE=200809L, and leaving --std=c99?   I
> am guessing that will be ok.

We definitely need --std=c99, as the codebase increasingly uses c99-isms 
and we don't know the defaults of whatever compiler is being used.

-DPOSIX_C_SOURCE=200809L is used to pull in strdup(), which is not part 
of the c99 stdlib but is required by POSIX.  This is on glibc at least, 
the BSDs and MacOS clearly differ.  

The manpage on Linux says -D_XOPEN_SOURCE >= 500 would also work, but I 
don't know what other side effects that might have.

Wihtout --std=c99, GCC likely defualts to 'gnuXX' (where XX depends on 
the exact version of the compiler) which defines _GNU_SOURCE and in 
turn also pulls in strdup().

..Hilariously, we already have a stp_strdup() function for this exact 
reason.

That said, there's also localtime_r (which also relies on POSIX_SOURCE 
and maybe BSD_SOURCE) and possibly some other stuff too.

 - Solomon
-- 
Solomon Peachy			      pizza at shaftnet dot org (email&xmpp)
                                      @pizza:shaftnet dot org   (matrix)
Dowling Park, FL                      speachy (libera.chat)

_______________________________________________
Gimp-print-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gimp-print-devel
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEE3H5Sx9DyiyB5hnENrGLLO/XVulEFAmaO4WsACgkQrGLLO/XV
ulGIhw//eR5XQZZWGGqL3/g2skxdB7YLvPY9V5li826eimVZQUPjpUzqnFiiGuQh
/aAQp8Htoj/rLZtsi/ydWBslMo+G2RXyVTgs0Rhigmwwf0D11/52h5LrydjrLysQ
cKMWkvI0964nXhOmxZUmO4I7Z3VF+eeX53IfkWcFIgoDRC2Q4mjXMzRBM+xxHXsF
Rg8nrCz13o/KXZKJR4rCPRLGgm+YDphsJn3hAD01FzQAjNKEmWPDPQuIunJEeZNR
jp7XA5GuR3h5nnGwZwz3SgpvtJHpXR4zW0sZm3wq4wtjKhym+0KjiXISsOuEVBTR
xwOU55QZaJZvdjrG+woOz5kS055O0KjB9fb6k4j0kh+/CNLHIFFfzXbZ4MXli4Zm
HGDIjwAFEKIPYs3GFNG2ZglL4lW1K+i6bfvP4dsQfjYAxu7BGLRFuS+WTWa+53o+
gjmjDU43HU4/w3RLqlJXzx2wHzr4mYQfHzST9yTkVQ6srmg2cq8lkGxscX9BjIyI
59HXP64mWq5yHxIrxbG71/Rdw7pBUlK3vu3Ly+3xGNRCkJ5cPH+6Oqz9tNI25URT
CmnEHGAmqqMriuLtxMwXtskXRlDTCVNqMBGir6Jh6Gr2ArQw+3j5dVQ13/xn/vO7
BMCyLFXIOsvpnzT2J0ZGTTEkxVtSljNuZ97Oh6LvXv+0qSV91W0=
=TEIX
-----END PGP SIGNATURE-----