Bug 187442

Summary: [ports] multimedia/smpeg: fail to link
Product: Ports & Packages Reporter: fiziologus
Component: Individual Port(s)Assignee: Jose Alonso Cardenas Marquez <acm>
Status: Closed Overcome By Events    
Severity: Affects Only Me CC: amdmi3
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description fiziologus 2014-03-11 09:30:00 UTC
multimedia/smpeg: fail to link with base clang (with base gcc all OK)

libtool: link: ( cd ".libs" && rm -f "libsmpeg.la" && ln -s "../libsmpeg.la" "libsmpeg.la" )
/bin/sh /usr/local/bin/libtool --mode=link clang  -O2 -pipe -fno-strict-aliasing -I/usr/local/include/SDL -I/usr/local/include -D_GNU_SOURCE=1 -D_REENTRANT -D_THREAD_SAFE -DUSE_MMX -DTHREADED_AUDIO -DNDEBUG -I.. -DNOCONTROLS -I. -I./audio -I./video  -o plaympeg  plaympeg.o libsmpeg.la -L/usr/local/lib -Wl,-rpath,/usr/local/lib -lSDL -pthread -lm
libtool: link: clang -O2 -pipe -fno-strict-aliasing -I/usr/local/include/SDL -I/usr/local/include -D_GNU_SOURCE=1 -D_REENTRANT -D_THREAD_SAFE -DUSE_MMX -DTHREADED_AUDIO -DNDEBUG -I.. -DNOCONTROLS -I. -I./audio -I./video -o .libs/plaympeg plaympeg.o -Wl,-rpath -Wl,/usr/local/lib -pthread  ./.libs/libsmpeg.so -L/usr/local/lib /usr/local/lib/libSDL.so /usr/local/lib/libiconv.so -lvgl /usr/local/lib/libaa.so -lncurses /usr/local/lib/libX11.so /usr/local/lib/libxcb.so /usr/local/lib/libXau.so /usr/local/lib/libXdmcp.so /usr/local/lib/libpthread-stubs.so -lrpcsvc -lusbhid -lm -pthread -Wl,-rpath -Wl,/usr/local/lib
./.libs/libsmpeg.so: undefined reference to `operator new[](unsigned int)'
./.libs/libsmpeg.so: undefined reference to `operator delete[](void*)'
./.libs/libsmpeg.so: undefined reference to `operator delete(void*)'
./.libs/libsmpeg.so: undefined reference to `operator new(unsigned int)'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[1]: *** [plaympeg] Error 1
gmake[1]: Leaving directory `/usr/ports/multimedia/smpeg/work/smpeg-0.4.4'
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2014-03-11 09:30:08 UTC
Responsible Changed
From-To: freebsd-ports-bugs->acm

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Jose Alonso Cardenas Marquez freebsd_committer freebsd_triage 2014-03-26 18:39:33 UTC
State Changed
From-To: open->feedback

- Do you have the same problem yet? 

I tested it on 10-amd64, 10-i386 and 9-amd64 and it compiles without problems. 
Please look at the following log files 

https://redports.org/~acm/20140326182435-60916-191827/smpeg-0.4.4_11.log 
https://redports.org/~acm/20140326182451-54257-191828/smpeg-0.4.4_11.log 
https://redports.org/~acm/20140326183023-69978-191833/smpeg-0.4.4_11.log
Comment 3 Toni Ballesta 2014-04-27 11:20:39 UTC
Yes, the bug exist. I've in the same situation. The temporal solution I
found is using, misteriously, the "c++" compiler, throught on FreeBSD 10
is exactly, I think, like clang.

If you pass the CXX=c++ option to the compilator, smpeg is compiled
without problems. If you pass, for example, CXX=gcc47, this have the
same bug.

Try running:

# make clean && make CXX=c++

------------
This port will be debug.
Comment 4 Dmitry Marakasov freebsd_committer freebsd_triage 2014-11-23 16:29:42 UTC
Do you still experience the problem? I couldn't reproduce it neither in poudriere

http://people.freebsd.org/~amdmi3/smpeg.logs/

nor on live system (with different compilers as well).

If there's no way to reproduce it, this PR should be closed.
Comment 5 fiziologus 2014-11-27 16:23:38 UTC
Sorry for late respons (plus I forgot this report).
In current port state bug is gone and port build without problem (perhaps this be echo from migrate to new verb and mechanics).