[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Problems with linking on libc6 system

Sorry, if this is described somewhere, I did some RTFM, but didn't
find answer to my problem.  I've installed libc6(-dev) 2.0.4-1 and gcc and I can't link hello world program:

  $ gcc hello.c
  /usr/lib/crt1.o(.text+0xe): undefined reference to `__libc_init_first'
  /usr/lib/crt1.o(.text+0x18): undefined reference to `_environ'

Static linking is OK.  I've found file `/usr/lib/libc.so', which I
don't understand.  Linking with `/lib/ld-linux.so.2' removes
`_environ' error but I didn't find `__libc_init_first' anywhere except
of static libc.

Could someone tell me what's wrong on my system?

Milan Zamazal

TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .

Reply to: