Date: Mon, 27 Jun 2016 18:53:00 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 210635] devel/libdlna: fix build in presence of itself Message-ID: <bug-210635-13@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D210635 Bug ID: 210635 Summary: devel/libdlna: fix build in presence of itself Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: Individual Port(s) Assignee: freebsd-ports-bugs@FreeBSD.org Reporter: amdmi3@FreeBSD.org CC: malus.x@gmail.com Flags: maintainer-feedback?(malus.x@gmail.com) CC: malus.x@gmail.com Created attachment 171880 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D171880&action= =3Dedit Patch libdlna does not always build in presence of older version of itself in the system: ############################################# # Linking shared objects # ############################################# cc -shared -Wl,-soname,libdlna.so.0 profiles.lo containers.lo image_jpeg.lo image_png.lo audio_aac.lo audio_ac3.lo audio_amr.lo audio_atrac3.lo audio_g726.lo audio_lpcm.lo audio_mp2.lo audio_mp3.lo audio_wma.lo av_mpeg1= .lo av_mpeg2.lo av_mpeg4_part2.lo av_mpeg4_part10.lo av_wmv9.lo upnp_dms.lo \ -L/usr/local/lib -fstack-protector -lavformat -lavcodec -o libdlna.so.0.2= .3 ln -sf libdlna.so.0.2.3 libdlna.so.0 ln -sf libdlna.so.0 libdlna.so gmake[2]: =D0=B2=D1=8B=D1=85=D0=BE=D0=B4 =D0=B8=D0=B7 =D0=BA=D0=B0=D1=82=D0= =B0=D0=BB=D0=BE=D0=B3=D0=B0 =C2=AB/usr/ports/devel/libdlna/work/libdlna-0.2= .3/src=C2=BB cc test-libdlna.c -O2 -pipe -I/usr/local/include -fstack-protector -fno-strict-aliasing -W -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=3D64 -D_REENTRANT -O2 -pipe -I/usr/local/include -fstack-protector -fno-strict-aliasing -Isrc -L/usr/local/lib -fstack-protector -Lsrc -ldlna -lavformat -lavcodec -o test-libdlna /usr/bin/ld: /usr/local/lib/libdlna.so: invalid string offset 2534 >=3D 124= 1 for section `.dynstr' /usr/bin/ld: /usr/local/lib/libdlna.so: invalid string offset 2617 >=3D 124= 1 for section `.dynstr' /usr/bin/ld: /usr/local/lib/libdlna.so: invalid string offset 1461 >=3D 124= 1 for section `.dynstr' /usr/bin/ld: warning: libavformat.so.1, needed by /usr/local/lib/libdlna.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libavcodec.so.1, needed by /usr/local/lib/libdlna.so,= not found (try using -rpath or -rpath-link) /usr/local/lib/libdlna.so: undefined reference to `no symbol' /usr/local/lib/libdlna.so: undefined reference to `av_open_input_file@LIBAVFORMAT_52' /usr/local/lib/libdlna.so: undefined reference to `av_register_all@LIBAVFORMAT_52' /usr/local/lib/libdlna.so: undefined reference to `av_find_stream_info@LIBAVFORMAT_52' /usr/local/lib/libdlna.so: undefined reference to `av_close_input_file@LIBAVFORMAT_52' cc: error: linker command failed with exit code 1 (use -v to see invocation) gmake[1]: *** [Makefile:36: test-libdlna] =D0=9E=D1=88=D0=B8=D0=B1=D0=BA=D0= =B0 1 gmake[1]: =D0=B2=D1=8B=D1=85=D0=BE=D0=B4 =D0=B8=D0=B7 =D0=BA=D0=B0=D1=82=D0= =B0=D0=BB=D0=BE=D0=B3=D0=B0 =C2=AB/usr/ports/devel/libdlna/work/libdlna-0.2= .3=C2=BB *** Error code 1 Note "-L/usr/local/lib -fstack-protector -Lsrc -ldlna" - system library path get into the flags before local one, so test may not build. Fix this by pla= cing local library search directory before LDFLAGS. Also: - Add license - Strip library - Switch to USES=3Dlocalbase post-patch target was merged into the Makefile patch to avoid confusion of having both REINPLACE_CMD and patch for the same file. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-210635-13>