Subject: Re: crtend.o : how to find the Holy Graal ?
To: None <current-users@NetBSD.ORG>
From: Anders Mundt Due <amd@pd-house.dk>
List: current-users
Date: 10/24/2002 19:56:14
On 24 Oct, Eric Jacoboni wrote:
> Hi,
> 
> (I've posted some time ago this problem to -help but without any
> usefull response).
> 
> $ rox
> Shared object "crtend.o" not found
> 
> $ ldd /usr/local/libexec/rox/ROX-Filer
> ldd in free(): warning: chunk is already free.   <-- (1) See that?
> /usr/local/libexec/rox/ROX-Filer:
>          -liconv.3 => /usr/local/lib/libiconv.so.3
> [...]
>          -lc.12 => /usr/lib/libc.so.12
>          crtend.o => not found              <-- (2) See that?
> 

I got exactly the same on my i386 1.6I with a few programs, did a ktrace of it
to see if it actually tried to look for it. And lo' and behold, if even
finds it. But then does something to it that I'll have to look into.

 16235 vim      CALL  open(0x4812a8c0,0,0xbfbfb280)
 16235 vim      NAMI  "/usr/X11R6/lib/crtend.o"
 16235 vim      RET   open -1 errno 2 No such file or directory
 16235 vim      CALL  open(0x4812a900,0,0xbfbfb280)
 16235 vim      NAMI  "/usr/pkg/lib/crtend.o"
 16235 vim      RET   open -1 errno 2 No such file or directory
 16235 vim      CALL  open(0x4812a940,0,0xbfbfb280)
 16235 vim      NAMI  "/usr/lib/crtend.o"
 16235 vim      RET   open 3
 16235 vim      CALL  __fstat13(0x3,0xbfbfb280)
 16235 vim      RET   __fstat13 0
 16235 vim      CALL  mmap(0,0x1000,0x1,0x1,0x3,0,0)
 16235 vim      RET   mmap 1211990016/0x483d8000
 16235 vim      CALL  munmap(0x483d8000,0x1000)
 16235 vim      RET   munmap 0
 16235 vim      CALL  close(0x3)
 16235 vim      RET   close 0
 16235 vim      CALL  write(0x2,0xbfbfb2c0,0x22)
 16235 vim      GIO   fd 2 wrote 34 bytes
       "Shared object "crtend.o" not found"
 16235 vim      RET   write 34/0x22
 16235 vim      CALL  write(0x2,0x48124622,0x1)
 16235 vim      GIO   fd 2 wrote 1 bytes


So there must be something it's not happy about.

/Anders