Opened 5 years ago

Closed 5 years ago

#56099 closed defect (fixed)

libgpg-error @1.28 does not build on PPC Tiger, Mac OS X 10.4.11, because it cannot learn that unseenv() returns void

Reported by: ballapete (Peter "Pete" Dyballa) Owned by: Schamschula (Marius Schamschula)
Priority: Normal Milestone:
Component: ports Version: 2.4.2
Keywords: tiger Cc:
Port: libgpg-error


/bin/sh ../libtool  --tag=CC   --mode=compile /opt/local/bin/gcc-apple-4.2 -DHAVE_CONFIG_H -I. -I..  -DLOCALEDIR=\"/opt/local/share/locale\"  -I/opt/local/include  -pipe -Os -arch ppc -Wall -Wpointer-arith -MT libgpg_error_la-sysutils.lo -MD -MP -MF .deps/libgpg_error_la-sysutils.Tpo -c -o libgpg_error_la-sysutils.lo `test -f 'sysutils.c' || echo './'`sysutils.c
libtool: compile:  /opt/local/bin/gcc-apple-4.2 -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/opt/local/share/locale\" -I/opt/local/include -pipe -Os -arch ppc -Wall -Wpointer-arith -MT libgpg_error_la-sysutils.lo -MD -MP -MF .deps/libgpg_error_la-sysutils.Tpo -c sysutils.c  -fno-common -DPIC -o .libs/libgpg_error_la-sysutils.o
sysutils.c: In function '_gpgrt_setenv':
sysutils.c:178: error: void value not ignored as it ought to be
make[3]: *** [libgpg_error_la-sysutils.lo] Error 1
make[3]: Leaving directory `/opt/local/var/macports/build/'
make[2]: *** [all] Error 2

This is the corresponding source code:

  173	# ifdef HAVE_SETENV
  175	  {
  176	    if (!value && overwrite)
  177	      {
  178	        if (unsetenv (name))
  179	          return _gpg_err_code_from_syserror ();
  180	      }
  181	    else
  182	      {
  183	        if (setenv (name, value, overwrite))
  184	          return _gpg_err_code_from_syserror ();
  185	      }
  187	    return 0;
  188	  }
  190	# else /*!HAVE_SETENV*/

Attachments (1)

main.log (38.2 KB) - added by ballapete (Peter "Pete" Dyballa) 5 years ago.
Main.log from PPC Tiger

Download all attachments as: .zip

Change History (5)

Changed 5 years ago by ballapete (Peter "Pete" Dyballa)

Attachment: main.log added

Main.log from PPC Tiger

comment:1 Changed 5 years ago by mf2k (Frank Schima)

Cc: mps@… removed
Owner: set to Schamschula
Status: newassigned

comment:2 Changed 5 years ago by Schamschula (Marius Schamschula)

Unfortunately, I have no way of testing on Tiger. It installed correctly on Leopard (PPC). Patches are welcome

comment:3 Changed 5 years ago by ballapete (Peter "Pete" Dyballa)

I works to add to Portfile these lines as Ken Cunningham suggested in #55145:

# fix build on Tiger see
platform darwin 8 {
    configure.cppflags-append -D__DARWIN_UNIX03

comment:4 Changed 5 years ago by Schamschula (Marius Schamschula)

Resolution: fixed
Status: assignedclosed

In b51e6244597410fd9ce315ce7b99c03cf4a58137/macports-ports:

libgpg-error 1.28: fix build on PPC Tiger

Closes: #56099

Note: See TracTickets for help on using tickets.