On Fri, May 27, 2016 at 10:05:03AM +0200, Jakub Wilk wrote: > * Andreas Tille <andr...@an3as.eu>, 2016-05-27, 09:27: > >>/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 > > The command line that causes this is: > > gcc -shared -g -O2 -fstack-protector-strong -Wformat -Werror=format-security > -Wdate-time -D_FORTIFY_SOURCE=2 -DUSE_NON_CONST > -I/build/staden-2.0.0+b10/./tk_utils -I/build/staden-2.0.0+b10/./Misc > -I/build/staden-2.0.0+b10/./tk_utils -I/usr/include > -I"/usr/include/tcl8.6/tk-private/generic" > -I"/usr/include/tcl8.6/tk-private/unix" > -I"/usr/include/tcl8.6/tk-private/generic/ttk" > -I"/usr/include/tcl8.6/tcl-private/generic" > -I"/usr/include/tcl8.6/tcl-private/unix" > -I/build/staden-2.0.0+b10/./seq_utils -I/build/staden-2.0.0+b10 > -DSVN_VERSION="" -fPIC -g -O2 -fstack-protector-strong -Wformat > -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -DUSE_NON_CONST > -I/build/staden-2.0.0+b10/./tk_utils -I/build/staden-2.0.0+b10/./Misc > -I/build/staden-2.0.0+b10/./tk_utils -I/usr/include > -I"/usr/include/tcl8.6/tk-private/generic" > -I"/usr/include/tcl8.6/tk-private/unix" > -I"/usr/include/tcl8.6/tk-private/generic/ttk" > -I"/usr/include/tcl8.6/tcl-private/generic" > -I"/usr/include/tcl8.6/tcl-private/unix" > -I/build/staden-2.0.0+b10/./seq_utils -I/build/staden-2.0.0+b10 > -DSVN_VERSION="" -fPIC -L/build/staden-2.0.0+b10/lib -Wl,-z,relro > -Wl,--export-dynamic -Wl,-rpath,/usr/lib/staden -o > /build/staden-2.0.0+b10/lib/libtk_utils.so cli_arg.o tclXkeylist.o > tclXutil.o tcl_utils.o tcl_debug.o misc.o init.o text_output.o tkRaster.o > tkRasterBuiltIn.o sheet.o tkSheet.o tkSheet_common.o trace_print.o > postscript.o split.o tkTrace.o tkTraceComp.o tkTraceIO.o tkTraceDisp.o > capture.o canvas_box.o ruler_tick.o restriction_enzyme_map.o element_canvas.o > container.o container_ruler.o tcl_io_lib.o -L/usr/lib/x86_64-linux-gnu > -lstaden-read -fPIE -pie -Wl,-z,relro -Wl,-z,now -lm -lpthread -lcurl -lz > -L/usr/lib/x86_64-linux-gnu -ltk8.6 -L/usr/lib/x86_64-linux-gnu -ltcl8.6 > -lX11 -lXss -lXext -lXft -lfontconfig -lfreetype -lfontconfig -lpthread -ldl > -lz -lpthread -lieee -lm -lmisc -lpng -lz > > This is trying to build a shared library with -pie, which is not going to > fly. -pie (and -fPIE) is only for executables. > > Now, I don't see any mention of pie in debian/rules, or in the old build > log, so I guess this flag must have come from a (broken) library.
Most probably this is due to libstaden-read-dev where I added export DEB_BUILD_MAINT_OPTIONS = hardening=+all I'll revert this change and see what might happen ... Thanks for the pointer Andreas. -- http://fam-tille.de