Opened 7 years ago
Closed 7 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 |
Description
/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/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_devel_libgpg-error/libgpg-error/work/libgpg-error-1.28/src' make[2]: *** [all] Error 2
This is the corresponding source code:
173 # ifdef HAVE_SETENV 174 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 } 186 187 return 0; 188 } 189 190 # else /*!HAVE_SETENV*/
Attachments (1)
Change History (5)
Changed 7 years ago by ballapete (Peter "Pete" Dyballa)
comment:1 Changed 7 years ago by mf2k (Frank Schima)
Cc: | mps@… removed |
---|---|
Owner: | set to Schamschula |
Status: | new → assigned |
comment:2 Changed 7 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 7 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 https://trac.macports.org/ticket/55145 platform darwin 8 { configure.cppflags-append -D__DARWIN_UNIX03 }
comment:4 Changed 7 years ago by Schamschula (Marius Schamschula)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
Main.log from PPC Tiger