Opened 12 years ago

Closed 12 years ago

#33538 closed defect (worksforme)

XviD: Undefined symbols "_xvid_Expand_mmx"

Reported by: abetaha@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.0.4
Keywords: Cc:
Port: XviD

Description (last modified by ryandesign (Ryan Carsten Schmidt))

am having problems building the gimp-app port. One of the culprits is XviD, which produces the following error on OS X Lion (10.7.3), with XCode (4.3).

The error in the log is at link time, and I have attached the full log file to the message.

Any help or workarounds are greatly appreciated.

Thanks,
Abe

info:build cd =build && /usr/bin/clang -L/opt/local/lib -arch x86_64 decoder.o encoder.o xvid.o bitstream/bit
stream.o bitstream/cbp.o bitstream/mbcoding.o dct/fdct.o dct/idct.o dct/simple_idct.o image/colorspace.o image
/image.o image/interpolate8x8.o image/font.o image/postprocessing.o image/qpel.o image/reduced.o motion/estima
tion_bvop.o motion/estimation_common.o motion/estimation_gmc.o motion/estimation_pvop.o motion/estimation_rd_b
ased.o motion/estimation_rd_based_bvop.o motion/gmc.o motion/motion_comp.o motion/vop_type_decision.o motion/s
ad.o prediction/mbprediction.o plugins/plugin_single.o plugins/plugin_2pass1.o plugins/plugin_2pass2.o plugins
/plugin_lumimasking.o plugins/plugin_dump.o plugins/plugin_psnr.o plugins/plugin_ssim.o plugins/plugin_psnrhvs
m.o quant/quant_h263.o quant/quant_matrix.o quant/quant_mpeg.o utils/emms.o utils/mbtransquant.o utils/mem_ali
gn.o utils/mem_transfer.o utils/timer.o bitstream/x86_asm/cbp_mmx.o bitstream/x86_asm/cbp_sse2.o dct/x86_asm/f
dct_mmx_ffmpeg.o dct/x86_asm/fdct_mmx_skal.o dct/x86_asm/fdct_sse2_skal.o dct/x86_asm/idct_3dne.o dct/x86_asm/
idct_mmx.o dct/x86_asm/idct_sse2_dmitry.o image/x86_asm/colorspace_rgb_mmx.o image/x86_asm/colorspace_yuv_mmx.
o image/x86_asm/colorspace_yuyv_mmx.o image/x86_asm/interpolate8x8_3dn.o image/x86_asm/interpolate8x8_3dne.o i
mage/x86_asm/interpolate8x8_mmx.o image/x86_asm/interpolate8x8_xmm.o image/x86_asm/postprocessing_mmx.o image/
x86_asm/postprocessing_sse2.o image/x86_asm/reduced_mmx.o image/x86_asm/qpel_mmx.o image/x86_asm/gmc_mmx.o ima
ge/x86_asm/deintl_sse.o motion/x86_asm/sad_xmm.o motion/x86_asm/sad_sse2.o motion/x86_asm/sad_mmx.o motion/x86
_asm/sad_3dne.o motion/x86_asm/sad_3dn.o quant/x86_asm/quantize_h263_mmx.o quant/x86_asm/quantize_h263_3dne.o
quant/x86_asm/quantize_mpeg_xmm.o quant/x86_asm/quantize_mpeg_mmx.o utils/x86_asm/mem_transfer_mmx.o utils/x86
_asm/mem_transfer_3dne.o utils/x86_asm/interlacing_mmx.o utils/x86_asm/cpuid.o plugins/x86_asm/plugin_ssim-a.o
   -o libxvidcore.4.dylib -Wl,-read_only_relocs,suppress -dynamiclib -flat_namespace -compatibility_version 4
-current_version 4.3 -install_name /opt/local/lib/libxvidcore.4.dylib -lpthread
:info:build ld: warning: -read_only_relocs cannot be used with x86_64
:info:build Undefined symbols for architecture x86_64:


info:build   "_xvid_Expand_mmx", referenced from:
:info:build       _xvid_Init_QP in qpel.o
:info:build       _xvid_H_Pass_16_mmx.Loop in qpel_mmx.o
:info:build       _xvid_H_Pass_Avrg_16_mmx.Loop in qpel_mmx.o
:info:build       _xvid_H_Pass_Avrg_Up_16_mmx.Loop in qpel_mmx.o
:info:build       _xvid_H_Pass_8_mmx.Loop in qpel_mmx.o
:info:build       _xvid_H_Pass_Avrg_8_mmx.Loop in qpel_mmx.o
:info:build       _xvid_H_Pass_Avrg_Up_8_mmx.Loop in qpel_mmx.o
:info:build       ...
:info:build ld: symbol(s) not found for architecture x86_64
:info:build clang: error: linker command failed with exit code 1 (use
-v to see invocation)

Attachments (1)

main.log (68.0 KB) - added by abetaha@… 12 years ago.

Download all attachments as: .zip

Change History (5)

Changed 12 years ago by abetaha@…

Attachment: main.log added

comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Port: XviD added
Summary: XviD and gimp-app don't build on LionXviD:

One issue per ticket please. This ticket will be about XviD's failure to build. If you're having a different issue with gimp-app, feel free to file a separate ticket for that.

And please remember to use WikiFormatting and to preview before submitting, and to fill in the Port field.

This could be a clang issue. Have you tried using a different compiler?

comment:2 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Summary: XviD:XviD: Undefined symbols "_xvid_Expand_mmx"

comment:3 Changed 12 years ago by abetaha@…

Thanks for the pointers on WikiFormatting.

The errors are related: gimp-app fails to build because of the XviD issue.

I tried a different compiler, but sadly I still get the same error:

sudo port install xvid configure.compiler=llvm-gcc-4.2

:info:build cd =build && /usr/bin/llvm-gcc-4.2 -L/opt/local/lib -arch x86_64 decoder.o encoder.o xvid.o bitstr
eam/bitstream.o bitstream/cbp.o bitstream/mbcoding.o dct/fdct.o dct/idct.o dct/simple_idct.o image/colorspace.
o image/image.o image/interpolate8x8.o image/font.o image/postprocessing.o image/qpel.o image/reduced.o motion
/estimation_bvop.o motion/estimation_common.o motion/estimation_gmc.o motion/estimation_pvop.o motion/estimati
on_rd_based.o motion/estimation_rd_based_bvop.o motion/gmc.o motion/motion_comp.o motion/vop_type_decision.o m
otion/sad.o prediction/mbprediction.o plugins/plugin_single.o plugins/plugin_2pass1.o plugins/plugin_2pass2.o 
plugins/plugin_lumimasking.o plugins/plugin_dump.o plugins/plugin_psnr.o plugins/plugin_ssim.o plugins/plugin_
psnrhvsm.o quant/quant_h263.o quant/quant_matrix.o quant/quant_mpeg.o utils/emms.o utils/mbtransquant.o utils/
mem_align.o utils/mem_transfer.o utils/timer.o bitstream/x86_asm/cbp_mmx.o bitstream/x86_asm/cbp_sse2.o dct/x8
6_asm/fdct_mmx_ffmpeg.o dct/x86_asm/fdct_mmx_skal.o dct/x86_asm/fdct_sse2_skal.o dct/x86_asm/idct_3dne.o dct/x
86_asm/idct_mmx.o dct/x86_asm/idct_sse2_dmitry.o image/x86_asm/colorspace_rgb_mmx.o image/x86_asm/colorspace_y
uv_mmx.o image/x86_asm/colorspace_yuyv_mmx.o image/x86_asm/interpolate8x8_3dn.o image/x86_asm/interpolate8x8_3
dne.o image/x86_asm/interpolate8x8_mmx.o image/x86_asm/interpolate8x8_xmm.o image/x86_asm/postprocessing_mmx.o
 image/x86_asm/postprocessing_sse2.o image/x86_asm/reduced_mmx.o image/x86_asm/qpel_mmx.o image/x86_asm/gmc_mm
x.o image/x86_asm/deintl_sse.o motion/x86_asm/sad_xmm.o motion/x86_asm/sad_sse2.o motion/x86_asm/sad_mmx.o mot
ion/x86_asm/sad_3dne.o motion/x86_asm/sad_3dn.o quant/x86_asm/quantize_h263_mmx.o quant/x86_asm/quantize_h263_
3dne.o quant/x86_asm/quantize_mpeg_xmm.o quant/x86_asm/quantize_mpeg_mmx.o utils/x86_asm/mem_transfer_mmx.o ut
ils/x86_asm/mem_transfer_3dne.o utils/x86_asm/interlacing_mmx.o utils/x86_asm/cpuid.o plugins/x86_asm/plugin_s
sim-a.o   -o libxvidcore.4.dylib -Wl,-read_only_relocs,suppress -dynamiclib -flat_namespace -compatibility_version 4 -current_version 4.3 -install_name /opt/local/lib/libxvidcore.4.dylib -lpthread 
:info:build ld: warning: -read_only_relocs cannot be used with x86_64
:info:build Undefined symbols for architecture x86_64:
:info:build   "_xvid_Expand_mmx", referenced from:
:info:build       _xvid_Init_QP in qpel.o
:info:build       _xvid_H_Pass_16_mmx.Loop in qpel_mmx.o
:info:build       _xvid_H_Pass_Avrg_16_mmx.Loop in qpel_mmx.o
:info:build       _xvid_H_Pass_Avrg_Up_16_mmx.Loop in qpel_mmx.o
:info:build       _xvid_H_Pass_8_mmx.Loop in qpel_mmx.o
:info:build       _xvid_H_Pass_Avrg_8_mmx.Loop in qpel_mmx.o
:info:build       _xvid_H_Pass_Avrg_Up_8_mmx.Loop in qpel_mmx.o
:info:build       ...
:info:build ld: symbol(s) not found for architecture x86_64
:info:build collect2: ld returned 1 exit status
:info:build make: *** [libxvidcore.4.dylib] Error 1

comment:4 Changed 12 years ago by jmroot (Joshua Root)

Resolution: worksforme
Status: newclosed

I can't reproduce this. You should be able to use the binary now anyway.

Note: See TracTickets for help on using tickets.