undefined reference to 'main', In function '__uClibc_main'..

undefined reference to 'main', In function '__uClibc_main'..

Post by Pusik Par » Thu, 10 Apr 2003 09:18:45



DEAR YOU.

I'm trying to develop an apllication on the ARM7TDMI  board using
uClinux-dist and arm-elf-toolchain.
I found the below error message.

I looked at the /uClibc/libc/misc/internals/__uClibc_main.c file and looked
for the "extern void main(int argc,void *argv,void *envp);" and
"exit(main(argc, argv, envp));"
But I couldn't know where the function "main(argc, argv, envp)" was defined.

Please beg your advice.
Have a Happy day.

/usr/local/arm-elf/lib/libc.a(__uClibc_main.o): In function `__uClibc_main':
__uClibc_main.o(.text+0xac): undefined reference to `main'
__uClibc_main.o(.text+0xbc): undefined reference to `_fini'
__uClibc_main.o(.text+0xc4): undefined reference to `_init'
collect2: ld returned 1 exit status
make[2]: *** [obj/arm-elf/libixml.so] Error 1
make[1]: *** [all] Error 2
make: *** [upnp] Error 2

 
 
 

1. undefined reference to 'main', In function '__uClibc_main'..

DEAR YOU.

I'm trying to develop an apllication on the ARM7TDMI  board using
uClinux-dist and arm-elf-toolchain.
I found the below error message.

I looked at the /uClibc/libc/misc/internals/__uClibc_main.c file and looked
for the "extern void main(int argc,void *argv,void *envp);" and
"exit(main(argc, argv, envp));"
But I couldn't know where the function "main(argc, argv, envp)" was defined.

Please beg your advice.
Have a Happy day.

/usr/local/arm-elf/lib/libc.a(__uClibc_main.o): In function `__uClibc_main':
__uClibc_main.o(.text+0xac): undefined reference to `main'
__uClibc_main.o(.text+0xbc): undefined reference to `_fini'
__uClibc_main.o(.text+0xc4): undefined reference to `_init'
collect2: ld returned 1 exit status
make[2]: *** [obj/arm-elf/libixml.so] Error 1
make[1]: *** [all] Error 2
make: *** [upnp] Error 2

2. Slackware Installation Problems...

3. drivers/block/block.o: In function `rd_blkdev_pagecache_IO' and `rd_make_request': undefined reference to `bio_size'

4. chmod

5. undefined reference to `pw_crypt',undefined reference to `spw_unpack'

6. nice attitude......

7. undefined reference to 'main'

8. Sending email with knews

9. sound/built-in.o: In function `snd_complete_urb': undefined reference to `usb_submit_urb'

10. 2.5.6 -- ieee1394drv.o: In function `initialize_dma_ir_prg': undefined reference to `virt_to_bus_not_defined_use_pci_map'

11. error compiling apache - undefined reference to `crypt' in function `authenticate_basic_user'

12. 2.5.9 -- Build error -- scsidrv.o: In function `ahc_linux_halt': undefined reference to `ahc_tailq'

13. 2.5.14 -- fs/fs.o: In function `end_buffer_read_file_async': undefined reference to `clear_buffer_async'