[opensuse-packaging] Can someone help with this build error?
Hi, I get the following strange build error from home:plater:branches:graphics blender :- |/usr/lib64/gcc/x86_64-suse-linux/4.4/../../../../lib64/crt1.o: In function `_start': /usr/src/packages/BUILD/glibc-2.10.1/csu/../sysdeps/x86_64/elf/start.S:109: undefined reference to `main' collect2: ld returned 1 exit status I don't get this error when building on my 11.2 system, can anyone help? Thanks Dave P | -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On Thu, 19 Nov 2009, Dave Plater wrote:
Hi, I get the following strange build error from home:plater:branches:graphics blender :- |/usr/lib64/gcc/x86_64-suse-linux/4.4/../../../../lib64/crt1.o: In function `_start': /usr/src/packages/BUILD/glibc-2.10.1/csu/../sysdeps/x86_64/elf/start.S:109: undefined reference to `main' collect2: ld returned 1 exit status
I don't get this error when building on my 11.2 system, can anyone help?
You are lacking a `main' function. And you didn't quote enough context
for a more useful answer.
Richard.
--
Richard Guenther
Hi, I get the following strange build error from home:plater:branches:graphics blender :-
|/usr/lib64/gcc/x86_64-suse-linux/4.4/../../../../lib64/crt1.o: In
function `_start': /usr/src/packages/BUILD/glibc-2.10.1/csu/../sysdeps/x86_64/elf/start.S:109: undefined reference to `main' collect2: ld returned 1 exit status
I don't get this error when building on my 11.2 system, can anyone help?
Am Donnerstag, 19. November 2009 schrieb Dave Plater: try to add export SUSE_ASNEEDED=0 as first statement in the %build section
Thanks Dave P
-- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On Thu, 19 Nov 2009 18:15:49 +0100, you wrote:
try to add export SUSE_ASNEEDED=0
as first statement in the %build section
That would be a kind of voodoo in this case :) No library will supply the function 'main' which the C runtime library references. It would only play a role if the makefile would reference the library before the objects that contain main and then the list of missing symbols would be much longer. Philipp -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
participants (5)
-
Cristian Rodríguez
-
Dave Plater
-
oc2pus@arcor.de
-
Philipp Thomas
-
Richard Guenther