Am 18.02.2016 um 17:43 schrieb Dan Dennedy:
> On Thu, Feb 18, 2016 at 8:32 AM Patrick Matthäi <pmatth...@debian.org
> <mailto:pmatth...@debian.org>> wrote:

>     cc -shared -Wl,-soname,libmlt.so.6 -Wl,--version-script=mlt.vers -o
>     libmlt.so.6.0.0 mlt_frame.o mlt_version.o mlt_geometry.o mlt_deque.o
>     mlt_property.o mlt_properties.o mlt_events.o mlt_parser.o mlt_service.o
>     mlt_producer.o mlt_multitrack.o mlt_playlist.o mlt_consumer.o
>     mlt_filter.o mlt_transition.o mlt_field.o mlt_tractor.o mlt_factory.o
>     mlt_repository.o mlt_pool.o mlt_tokeniser.o mlt_profile.o mlt_log.o
>     mlt_cache.o mlt_animation.o -fPIE -pie -Wl,-z,relro -Wl,-z,now
>     -Wl,--no-undefined -Wl,--as-needed -Wl,--no-undefined -Wl,--as-needed
>     -ldl -lpthread -lm
>     /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/Scrt1.o: In
>     function `_start':
>     (.text+0x20): undefined reference to `main'
>     collect2: error: ld returned 1 exit status
>     Makefile:96: recipe for target 'libmlt.so.6.0.0' failed
> 
> 
> 
> I do not know about these things and have no plans to address it in the
> near future. A patch is welcome.
>  

I tracked down the problem to PIE (address randomization aka ASLR), see
[0]. With PIE enabled mlt fails to build from source.
All other flags are enabled and I can not spot any problems, yet.


[0]:
https://wiki.debian.org/Hardening#DEB_BUILD_HARDENING_PIE_.28gcc.2Fg.2B-.2B-_-fPIE_-pie.29

-- 
/*
Mit freundlichem Gruß / With kind regards,
 Patrick Matthäi
 GNU/Linux Debian Developer

  Blog: http://www.linux-dev.org/
E-Mail: pmatth...@debian.org
        patr...@linux-dev.org
*/

Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Mlt-devel mailing list
Mlt-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mlt-devel

Reply via email to