Opened 2 years ago
Closed 2 years ago
#65200 closed defect (fixed)
libiconv @1.17: ./iconv.c:200: error: duplicate 'static'
Reported by: | barracuda156 | Owned by: | ryandesign (Ryan Carsten Schmidt) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.7.2 |
Keywords: | tiger leopard | Cc: | MarcusCalhoun-Lopez (Marcus Calhoun-Lopez) |
Port: | libiconv |
Description
libtool: compile: /usr/bin/gcc-4.2 -std=gnu99 -I. -I. -I../include -I./../include -I.. -I./.. -pipe -Os -arch ppc -fvisibility=hidden -DLIBDIR=\"/opt/local/lib\" -DBUILDING_LIBICONV -DBUILDING_LIBCHARSET -DBUILDING_DLL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\"/opt/local/lib\" -DNO_XMALLOC -Dset_relocation_prefix=libiconv_set_relocation_prefix -Drelocate=libiconv_relocate -Drelocate2=libiconv_relocate2 -DHAVE_CONFIG_H -c ./relocatable.c -o relocatable.o >/dev/null 2>&1 In file included from ./iconv.c:121: ./encodings.def:71: warning: initialization from incompatible pointer type ./encodings.def:71: warning: initialization from incompatible pointer type ./iconv.c:200: error: duplicate 'static' make[1]: *** [iconv.lo] Error 1 make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_textproc_libiconv/libiconv/work/libiconv-1.17-ppc/lib' make: *** [all] Error 2
Attachments (1)
Change History (7)
Changed 2 years ago by barracuda156
comment:1 follow-up: 2 Changed 2 years ago by ryandesign (Ryan Carsten Schmidt)
comment:2 Changed 2 years ago by barracuda156
Replying to ryandesign:
Does removing patch-c99.diff from the
patchfiles
line help?
Indeed, it does:
36-111:~ svacchanda$ port -v installed libiconv The following ports are currently installed: libiconv @1.16_1 requested_variants='-universal' platform='darwin 9' archs='ppc' date='2021-12-22T11:50:47+0800' libiconv @1.16_1+universal requested_variants='+universal' platform='darwin 9' archs='ppc ppc64' date='2021-12-21T05:52:40+0800' libiconv @1.17_0+universal (active) requested_variants='+universal' platform='darwin 9' archs='ppc ppc64' date='2022-05-19T21:32:39+0800'
Thank you.
comment:3 Changed 2 years ago by ryandesign (Ryan Carsten Schmidt)
Keywords: | tiger added; powerpc ppc64 removed |
---|---|
Status: | assigned → accepted |
Summary: | libiconv fails to upgrade to 1.17 on Leopard for ppc+ppc64: ./iconv.c:200: error: duplicate 'static' → libiconv @1.17: ./iconv.c:200: error: duplicate 'static' |
Thanks for confirming. I can reproduce it too, on Catalina when using apple-gcc42. I'll get rid of the patch.
comment:4 Changed 2 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Cc: | MarcusCalhoun-Lopez added |
---|
comment:5 Changed 2 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
The static
keyword already seems to exist in the upstream source, so is there a need to include it in the patch at all?
There is a pull request that attempts to fix the problem.
comment:6 Changed 2 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → fixed |
---|---|
Status: | accepted → closed |
Note: See
TracTickets for help on using
tickets.
Does removing patch-c99.diff from the
patchfiles
line help?