/bin/sh ../libtool --tag=CXX --mode=link x86_64-pc-linux-gnu-g++ -O3 -march=k8 -mmmx -msse -msse2 -m3dnow -pipe -fomit-frame-pointer -maccumulate-outgoing-args -floop-optimize2 -frerun-loop-opt -fvisibility=hidden -fvisibility-inlines-hidden -fno-strict-aliasing -pthread -Wl,-O1 -o mpeg2enc mpeg2enc.o ../mpeg2enc/libmpeg2encpp.la ../utils/libmjpegutils.la -lm -lm x86_64-pc-linux-gnu-g++ -O3 -march=k8 -mmmx -msse -msse2 -m3dnow -pipe -fomit-frame-pointer -maccumulate-outgoing-args -floop-optimize2 -frerun-loop-opt -fvisibility=hidden -fvisibility-inlines-hidden -fno-strict-aliasing -pthread -Wl,-O1 -o .libs/mpeg2enc mpeg2enc.o ../mpeg2enc/.libs/libmpeg2encpp.so /var/tmp/portage/mjpegtools-1.8.0-r1/work/mjpegtools-1.8.0/utils/.libs/libmjpegutils.so ../utils/.libs/libmjpegutils.so -lm mpeg2enc.o: In function `MPEG2EncCmdLineOptions::StartupBanner()': mpeg2enc.cc:(.text+0x11e): undefined reference to `RateCtl::InvScaleQuant(int, int)' mpeg2enc.o: In function `MPEG2EncCmdLineOptions::MPEG2EncCmdLineOptions()': mpeg2enc.cc:(.text+0x765): undefined reference to `MPEG2EncOptions::MPEG2EncOptions()' mpeg2enc.o: In function `MPEG2EncCmdLineOptions::MPEG2EncCmdLineOptions()': mpeg2enc.cc:(.text+0x785): undefined reference to `MPEG2EncOptions::MPEG2EncOptions()' mpeg2enc.o: In function `Y4MPipeReader::~Y4MPipeReader()': mpeg2enc.cc:(.text+0x914): undefined reference to `PictureReader::~PictureReader()' mpeg2enc.cc:(.text+0x935): undefined reference to `PictureReader::~PictureReader()' mpeg2enc.o: In function `Y4MPipeReader::~Y4MPipeReader()': mpeg2enc.cc:(.text+0x99d): undefined reference to `PictureReader::~PictureReader()' mpeg2enc.o: In function `Y4MPipeReader::~Y4MPipeReader()': mpeg2enc.cc:(.text+0x9fd): undefined reference to `PictureReader::~PictureReader()' mpeg2enc.o: In function `Y4MPipeReader::Y4MPipeReader(EncoderParams&, int)': mpeg2enc.cc:(.text+0xa24): undefined reference to `PictureReader::PictureReader(EncoderParams&)' mpeg2enc.cc:(.text+0xa64): undefined reference to `PictureReader::~PictureReader()' mpeg2enc.o: In function `Y4MPipeReader::Y4MPipeReader(EncoderParams&, int)': mpeg2enc.cc:(.text+0xa84): undefined reference to `PictureReader::PictureReader(EncoderParams&)' mpeg2enc.cc:(.text+0xac4): undefined reference to `PictureReader::~PictureReader()' mpeg2enc.o: In function `Y4MPipeReader::LoadFrame()': mpeg2enc.cc:(.text+0xb9d): undefined reference to `PictureReader::LumMean(unsigned char*)' mpeg2enc.o: In function `MPEG2EncCmdLineOptions::SetFormatPresets(MPEG2EncInVidParams const&)': mpeg2enc.cc:(.text+0xd65): undefined reference to `MPEG2EncOptions::SetFormatPresets(MPEG2EncInVidParams const&)' mpeg2enc.o: In function `YUV4MPEGEncoder::YUV4MPEGEncoder(MPEG2EncCmdLineOptions&)': mpeg2enc.cc:(.text+0xdc4): undefined reference to `MPEG2Encoder::MPEG2Encoder(MPEG2EncOptions&)' mpeg2enc.cc:(.text+0xe05): undefined reference to `MPEG2EncOptions::SetFormatPresets(MPEG2EncInVidParams const&)' mpeg2enc.cc:(.text+0xe50): undefined reference to `ElemStrmWriter::ElemStrmWriter()' mpeg2enc.cc:(.text+0xe90): undefined reference to `Quantizer::Quantizer(EncoderParams&)' mpeg2enc.cc:(.text+0xed7): undefined reference to `SeqEncoder::SeqEncoder(EncoderParams&, PictureReader&, Quantizer&, ElemStrmWriter&, RateCtl&)' mpeg2enc.cc:(.text+0xeea): undefined reference to `EncoderParams::Init(MPEG2EncOptions const&)' mpeg2enc.cc:(.text+0xef6): undefined reference to `PictureReader::Init()' mpeg2enc.cc:(.text+0xf02): undefined reference to `Quantizer::Init()' mpeg2enc.cc:(.text+0xf0e): undefined reference to `SeqEncoder::Init()' mpeg2enc.cc:(.text+0xf50): undefined reference to `OnTheFlyRateCtl::OnTheFlyRateCtl(EncoderParams&)' mpeg2enc.cc:(.text+0xf81): undefined reference to `MPEG2Encoder::~MPEG2Encoder()' mpeg2enc.cc:(.text+0xf96): undefined reference to `ElemStrmWriter::~ElemStrmWriter()' mpeg2enc.o: In function `YUV4MPEGEncoder::YUV4MPEGEncoder(MPEG2EncCmdLineOptions&)': mpeg2enc.cc:(.text+0xfe4): undefined reference to `MPEG2Encoder::MPEG2Encoder(MPEG2EncOptions&)' mpeg2enc.cc:(.text+0x1025): undefined reference to `MPEG2EncOptions::SetFormatPresets(MPEG2EncInVidParams const&)' mpeg2enc.cc:(.text+0x1070): undefined reference to `ElemStrmWriter::ElemStrmWriter()' mpeg2enc.cc:(.text+0x10b0): undefined reference to `Quantizer::Quantizer(EncoderParams&)' mpeg2enc.cc:(.text+0x10f7): undefined reference to `SeqEncoder::SeqEncoder(EncoderParams&, PictureReader&, Quantizer&, ElemStrmWriter&, RateCtl&)' mpeg2enc.cc:(.text+0x110a): undefined reference to `EncoderParams::Init(MPEG2EncOptions const&)' mpeg2enc.cc:(.text+0x1116): undefined reference to `PictureReader::Init()' mpeg2enc.cc:(.text+0x1122): undefined reference to `Quantizer::Init()' mpeg2enc.cc:(.text+0x112e): undefined reference to `SeqEncoder::Init()' mpeg2enc.cc:(.text+0x1170): undefined reference to `OnTheFlyRateCtl::OnTheFlyRateCtl(EncoderParams&)' mpeg2enc.cc:(.text+0x11a1): undefined reference to `MPEG2Encoder::~MPEG2Encoder()' mpeg2enc.cc:(.text+0x11b6): undefined reference to `ElemStrmWriter::~ElemStrmWriter()' mpeg2enc.o: In function `main': mpeg2enc.cc:(.text+0x1ab0): undefined reference to `MPEG2EncOptions::MPEG2EncOptions()' mpeg2enc.cc:(.text+0x1b11): undefined reference to `SeqEncoder::EncodeStream()' mpeg2enc.cc:(.text+0x1b19): undefined reference to `MPEG2Encoder::~MPEG2Encoder()' mpeg2enc.cc:(.text+0x1b68): undefined reference to `MPEG2Encoder::~MPEG2Encoder()' mpeg2enc.o: In function `YUV4MPEGEncoder::Encode()': mpeg2enc.cc:(.text+0x8): undefined reference to `SeqEncoder::EncodeStream()' mpeg2enc.o: In function `Y4MPipeReader::~Y4MPipeReader()': mpeg2enc.cc:(.text+0x992): undefined reference to `PictureReader::~PictureReader()' mpeg2enc.o: In function `Y4MPipeReader::~Y4MPipeReader()': mpeg2enc.cc:(.text+0x9f2): undefined reference to `PictureReader::~PictureReader()' mpeg2enc.o: In function `FILE_StrmWriter::~FILE_StrmWriter()': mpeg2enc.cc:(.text._ZN15FILE_StrmWriterD0Ev[FILE_StrmWriter::~FILE_StrmWriter()]+0x25): undefined reference to `ElemStrmWriter::~ElemStrmWriter()' mpeg2enc.cc:(.text._ZN15FILE_StrmWriterD0Ev[FILE_StrmWriter::~FILE_StrmWriter()]+0x46): undefined reference to `ElemStrmWriter::~ElemStrmWriter()' mpeg2enc.o: In function `FILE_StrmWriter::~FILE_StrmWriter()': mpeg2enc.cc:(.text._ZN15FILE_StrmWriterD1Ev[FILE_StrmWriter::~FILE_StrmWriter()]+0x3e): undefined reference to `ElemStrmWriter::~ElemStrmWriter()' mpeg2enc.cc:(.text._ZN15FILE_StrmWriterD1Ev[FILE_StrmWriter::~FILE_StrmWriter()]+0x33): undefined reference to `ElemStrmWriter::~ElemStrmWriter()' mpeg2enc.o:(.rodata._ZTI13Y4MPipeReader[typeinfo for Y4MPipeReader]+0x10): undefined reference to `typeinfo for PictureReader' collect2: ld returned 1 exit status make[2]: *** [mpeg2enc] Error 1 make[2]: Leaving directory `/var/tmp/portage/mjpegtools-1.8.0-r1/work/mjpegtools-1.8.0/mpeg2enc' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/mjpegtools-1.8.0-r1/work/mjpegtools-1.8.0' make: *** [all] Error 2 My emerge --info: As attachment. I hope this goes to a right place, this is my first time filling a new bug (don't hit me hard) :-).
Created attachment 89626 [details] My emerge --info
Ah, my mistake. I thought package.cflags would work -- media-video/mjpegtools -O2 -pipe -march=k8 -- but as I watch my log, it seems that it doesnt't. So I put cflags and cxxflags to a right condition in make.conf and mjpegtools compiled succesfully. Damn...