Opened 14 months ago

Last modified 11 months ago

#68144 assigned defect

libextractor @1.11: fails to build on Rosetta: Undefined symbols: "_LE_le16toh"

Reported by: barracuda156 Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: powerpc, rosetta, snowleopard Cc:
Port: libextractor

Description

:info:build libtool: link: ( cd ".libs" && rm -f "libextractor_riff.la" && ln -s "../libextractor_riff.la" "libextractor_riff.la" )
:info:build /bin/sh ../../libtool  --tag=CC   --mode=link /usr/bin/gcc-4.2  -pipe -Os -arch ppc  -export-dynamic -avoid-version -module -no-undefined -export-symbols-regex "(EXTRACTOR|pl)_[a-zA-Z0-9_]*_......." -Wl,-headerpad_max_install_names -L/opt/local/lib -lMacportsLegacySupport -arch ppc -o libextractor_flac.la -rpath /opt/local/lib/libextractor flac_extractor.lo -lFLAC  -lintl -Wl,-framework -Wl,CoreFoundation 
:info:build libtool: link: /opt/local/bin/nm  .libs/sid_extractor.o   | sed -n -e 's/^.*[	 ]\([BCDEGRST][BCDEGRST]*\)[	 ][	 ]*_\([_A-Za-z][_A-Za-z0-9]*\)$/\1 _\2 \2/p' | sed '/ __gnu_lto/d' | /opt/local/bin/gsed 's/.* //' | sort | uniq > .libs/libextractor_sid.exp
:info:build libtool: link: /opt/local/bin/nm  .libs/s3m_extractor.o   | sed -n -e 's/^.*[	 ]\([BCDEGRST][BCDEGRST]*\)[	 ][	 ]*_\([_A-Za-z][_A-Za-z0-9]*\)$/\1 _\2 \2/p' | sed '/ __gnu_lto/d' | /opt/local/bin/gsed 's/.* //' | sort | uniq > .libs/libextractor_s3m.exp
:info:build libtool: link: /opt/local/bin/ggrep -E -e "(EXTRACTOR|pl)_[a-zA-Z0-9_]*_......." ".libs/libextractor_sid.exp" > ".libs/libextractor_sid.expT"
:info:build libtool: link: /opt/local/bin/ggrep -E -e "(EXTRACTOR|pl)_[a-zA-Z0-9_]*_......." ".libs/libextractor_s3m.exp" > ".libs/libextractor_s3m.expT"
:info:build libtool: link: /opt/local/bin/nm  .libs/xm_extractor.o   | sed -n -e 's/^.*[	 ]\([BCDEGRST][BCDEGRST]*\)[	 ][	 ]*_\([_A-Za-z][_A-Za-z0-9]*\)$/\1 _\2 \2/p' | sed '/ __gnu_lto/d' | /opt/local/bin/gsed 's/.* //' | sort | uniq > .libs/libextractor_xm.exp
:info:build libtool: link: mv -f ".libs/libextractor_sid.expT" ".libs/libextractor_sid.exp"
:info:build libtool: link: sed -e 's|^|_|' < .libs/libextractor_sid.exp > .libs/libextractor_sid-symbols.expsym
:info:build libtool: link: /usr/bin/gcc-4.2  -o .libs/libextractor_sid.so -bundle  .libs/sid_extractor.o   -L/opt/local/lib -lMacportsLegacySupport  -Os -arch ppc -Wl,-headerpad_max_install_names -arch ppc   -Wl,-exported_symbols_list,.libs/libextractor_sid-symbols.expsym
:info:build libtool: link: ar cr .libs/libextractor_sid.a  sid_extractor.o
:info:build libtool: link: mv -f ".libs/libextractor_s3m.expT" ".libs/libextractor_s3m.exp"
:info:build libtool: link: sed -e 's|^|_|' < .libs/libextractor_s3m.exp > .libs/libextractor_s3m-symbols.expsym
:info:build libtool: link: /usr/bin/gcc-4.2  -o .libs/libextractor_s3m.so -bundle  .libs/s3m_extractor.o   -L/opt/local/lib -lMacportsLegacySupport  -Os -arch ppc -Wl,-headerpad_max_install_names -arch ppc   -Wl,-exported_symbols_list,.libs/libextractor_s3m-symbols.expsym
:info:build libtool: link: ranlib .libs/libextractor_sid.a
:info:build Undefined symbols:
:info:build   "_LE_le16toh", referenced from:
:info:build       _EXTRACTOR_s3m_extract_method in s3m_extractor.o
:info:build       _EXTRACTOR_s3m_extract_method in s3m_extractor.o
:info:build       _EXTRACTOR_s3m_extract_method in s3m_extractor.o
:info:build       _EXTRACTOR_s3m_extract_method in s3m_extractor.o
:info:build       _EXTRACTOR_s3m_extract_method in s3m_extractor.o
:info:build       _EXTRACTOR_s3m_extract_method in s3m_extractor.o
:info:build       _EXTRACTOR_s3m_extract_method in s3m_extractor.o
:info:build ld: symbol(s) not found
:info:build collect2: ld returned 1 exit status
:info:build make[4]: *** [libextractor_s3m.la] Error 1

Attachments (3)

Portfile.diff (1.3 KB) - added by ryandesign (Ryan Carsten Schmidt) 14 months ago.
endian.patch (6.0 KB) - added by ryandesign (Ryan Carsten Schmidt) 14 months ago.
libextractor_log.txt (140.9 KB) - added by barracuda156 14 months ago.

Download all attachments as: .zip

Change History (9)

comment:1 Changed 14 months ago by barracuda156

Apparently common/le_architecture.h is broken.

comment:2 Changed 14 months ago by ryandesign (Ryan Carsten Schmidt)

Could you attach the main.log?

Changed 14 months ago by ryandesign (Ryan Carsten Schmidt)

Attachment: Portfile.diff added

Changed 14 months ago by ryandesign (Ryan Carsten Schmidt)

Attachment: endian.patch added

comment:3 Changed 14 months ago by ryandesign (Ryan Carsten Schmidt)

Keywords: haspatch added
Summary: libextractor fails to build on Rosetta: Undefined symbols: "_LE_le16toh"libextractor @1.11: fails to build on Rosetta: Undefined symbols: "_LE_le16toh"

Does the attached patch fix it for you?

comment:4 in reply to:  3 Changed 14 months ago by barracuda156

Replying to ryandesign:

Does the attached patch fix it for you?

Unfortunately, no.

libtool: link: /usr/bin/gcc-4.2  -o .libs/libextractor_s3m.so -bundle  .libs/s3m_extractor.o   -L/opt/local/lib -lMacportsLegacySupport  -Os -arch ppc -Wl,-headerpad_max_install_names -arch ppc   -Wl,-exported_symbols_list,.libs/libextractor_s3m-symbols.expsym
Undefined symbols:
  "_LE_le16toh", referenced from:
      _EXTRACTOR_s3m_extract_method in s3m_extractor.o
      _EXTRACTOR_s3m_extract_method in s3m_extractor.o
      _EXTRACTOR_s3m_extract_method in s3m_extractor.o
      _EXTRACTOR_s3m_extract_method in s3m_extractor.o
      _EXTRACTOR_s3m_extract_method in s3m_extractor.o
      _EXTRACTOR_s3m_extract_method in s3m_extractor.o
      _EXTRACTOR_s3m_extract_method in s3m_extractor.o
ld: symbol(s) not found
collect2: ld returned 1 exit status

libtool: link: /usr/bin/gcc-4.2  -o .libs/libextractor_wav.so -bundle  .libs/wav_extractor.o   -L/opt/local/lib -lMacportsLegacySupport /opt/local/lib/libintl.dylib  -Os -arch ppc -Wl,-headerpad_max_install_names -arch ppc -Wl,-framework -Wl,CoreFoundation   -Wl,-exported_symbols_list,.libs/libextractor_wav-symbols.expsym
Undefined symbols:
  "_LE_le32toh", referenced from:
      _EXTRACTOR_wav_extract_method in wav_extractor.o
      _EXTRACTOR_wav_extract_method in wav_extractor.o
  "_LE_le16toh", referenced from:
      _EXTRACTOR_wav_extract_method in wav_extractor.o
      _EXTRACTOR_wav_extract_method in wav_extractor.o
ld: symbol(s) not found
collect2: ld returned 1 exit status

I will attach the log now.

Last edited 14 months ago by barracuda156 (previous) (diff)

Changed 14 months ago by barracuda156

Attachment: libextractor_log.txt added

comment:5 Changed 11 months ago by ryandesign (Ryan Carsten Schmidt)

Keywords: haspatch removed

I updated libextractor to 1.13 but I don't think a lot changed between 1.11 and 1.13 so this bug probably didn't get fixed.

comment:6 in reply to:  5 Changed 11 months ago by barracuda156

Replying to ryandesign:

I updated libextractor to 1.13 but I don't think a lot changed between 1.11 and 1.13 so this bug probably didn't get fixed.

Yes, it still fails the same way:

libtool: link: ar cr .libs/libextractor_real.a  real_extractor.o
libtool: link: /usr/bin/gcc-4.2 -std=gnu99  -o .libs/libextractor_s3m.so -bundle  .libs/s3m_extractor.o   -L/opt/local/lib -lMacportsLegacySupport  -Os -arch ppc -Wl,-headerpad_max_install_names -arch ppc   -Wl,-exported_symbols_list,.libs/libextractor_s3m-symbols.expsym
libtool: link: ar cr .libs/libextractor_riff.a  riff_extractor.o
Undefined symbols:
  "_LE_le16toh", referenced from:
      _EXTRACTOR_s3m_extract_method in s3m_extractor.o
      _EXTRACTOR_s3m_extract_method in s3m_extractor.o
      _EXTRACTOR_s3m_extract_method in s3m_extractor.o
      _EXTRACTOR_s3m_extract_method in s3m_extractor.o
      _EXTRACTOR_s3m_extract_method in s3m_extractor.o
      _EXTRACTOR_s3m_extract_method in s3m_extractor.o
      _EXTRACTOR_s3m_extract_method in s3m_extractor.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
Last edited 11 months ago by barracuda156 (previous) (diff)
Note: See TracTickets for help on using tickets.