Opened 3 months ago

Last modified 8 weeks ago

#69277 new defect

gawk @5.3.0 does not build on PPC Tiger, Mac OS X 10.4.11, because of undefined symbols

Reported by: ballapete (Peter "Pete" Dyballa) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.9.1
Keywords: ppc tiger Cc: mps@…
Port: gawk

Description

libtool: compile:  /opt/local/bin/gcc-mp-7 -DHAVE_CONFIG_H -I. -I./.. -isystem/opt/local/include/LegacySupport -I/opt/local/include -D__DARWIN_UNIX03 -pipe -Os -arch ppc -Wall -DNDEBUG -MT readdir.lo -MD -MP -MF .deps/readdir.Tpo -c readdir.c  -fno-common -DPIC -o .libs/readdir.o
readdir.c: In function 'dir_get_record':
readdir.c:221:20: warning: array subscript is above array bounds [-Warray-bounds]
  the_dir->fw.fields[1].len = flen-1;
  ~~~~~~~~~~~~~~~~~~^~~
readdir.c:225:20: warning: array subscript is above array bounds [-Warray-bounds]
  the_dir->fw.fields[2].len = flen-1;
  ~~~~~~~~~~~~~~~~~~^~~
readdir.c: In function 'dir_take_control_of':
readdir.c:303:20: warning: array subscript is above array bounds [-Warray-bounds]
  the_dir->fw.fields[1].skip = 1; /* single '/' separator */
  ~~~~~~~~~~~~~~~~~~^~~
readdir.c:304:20: warning: array subscript is above array bounds [-Warray-bounds]
  the_dir->fw.fields[2].skip = 1; /* single '/' separator */
  ~~~~~~~~~~~~~~~~~~^~~
mv -f .deps/readdir.Tpo .deps/readdir.Plo
/bin/sh ./libtool  --tag=CC   --mode=link /opt/local/bin/gcc-mp-7  -pipe -Os -arch ppc -Wall -DNDEBUG -module -avoid-version -no-undefined -Wl,-headerpad_max_install_names -L/opt/local/lib -lMacportsLegacySupport -arch ppc -o readdir.la -rpath /opt/local/lib/gawk readdir.lo -lintl -Wl,-framework -Wl,CoreFoundation 
libtool: link: /opt/local/bin/gcc-mp-7  -o .libs/readdir.so -bundle  .libs/readdir.o   -L/opt/local/lib -lMacportsLegacySupport -lintl  -Os -arch ppc -Wl,-headerpad_max_install_names -arch ppc -Wl,-framework -Wl,CoreFoundation  
Undefined symbols:
  "_fdopendir$UNIX2003", referenced from:
      _dir_take_control_of in readdir.o
ld: symbol(s) not found
collect2: error: ld returned 1 exit status
make[4]: *** [readdir.la] Error 1
make[4]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_gawk/gawk/work/gawk-5.3.0/extension'

Attachments (1)

main.log (67.8 KB) - added by ballapete (Peter "Pete" Dyballa) 3 months ago.
Main.log from PPC Tiger, Mac OS X 10.4.11

Download all attachments as: .zip

Change History (3)

Changed 3 months ago by ballapete (Peter "Pete" Dyballa)

Attachment: main.log added

Main.log from PPC Tiger, Mac OS X 10.4.11

comment:1 Changed 3 months ago by Schamschula (Marius Schamschula)

I'm sorry, but I have no way of looking into this. A PR is welcome.

comment:2 Changed 8 weeks ago by ballapete (Peter "Pete" Dyballa)

It seems it is the + mpfr variant that causes the problem:

  gawk @5.2.2_0+mpfr requested_variants='+mpfr' platform='darwin 8' archs='ppc' date='2023-05-16T14:24:33+0200'
  gawk @5.3.0_0 (active) requested_variants='' platform='darwin 8' archs='ppc' date='2024-03-23T16:31:31+0100'
Note: See TracTickets for help on using tickets.