On 2015/12/08 23:18, Patrik Lundin wrote:
> On Tue, Dec 08, 2015 at 09:46:34PM +0000, Stuart Henderson wrote:
> > Thanks, this is looking good to me, Only two changes I'd make. First is
> > in the rc script, what you have isn't wrong, but the mkdir/chown/chmod
> > lines can be replaced with a single command:
> > 
> >     install -d -o root:_kea -m 775 ${LOCALSTATEDIR}/run/kea
> > 
> 
> This is much prettier, nice catch :).
> 
> >
> > Second change is WANTLIB/LIB_DEPENDS; it picks up botan so it needs to be
> > listed in LIB_DEPENDS, and the relevant WANTLIBs added. New tar attached.
> > 
> 
> What is picking up botan? I looked at every @bin and @lib with ldd and I
> can't see anyone referring to that library. What am i missing?
> 
> -- 
> Patrik Lundin
> 

I see it in perfdhcp. Actually it looks like there's another option, we can
instead use CONFIGURE_ARGS+= --with-openssl - which would you prefer?



$ objdump -p ../fake-amd64/usr/local/sbin/perfdhcp

../fake-amd64/usr/local/sbin/perfdhcp:     file format elf64-x86-64

Program Header:
    PHDR off    0x0000000000000040 vaddr 0x0000000000000040 paddr 
0x0000000000000040 align 2**3
         filesz 0x0000000000000268 memsz 0x0000000000000268 flags r-x
  INTERP off    0x0000000000000318 vaddr 0x0000000000000318 paddr 
0x0000000000000318 align 2**0
         filesz 0x0000000000000013 memsz 0x0000000000000013 flags r--
    LOAD off    0x0000000000000000 vaddr 0x0000000000000000 paddr 
0x0000000000000000 align 2**20
         filesz 0x00000000000536de memsz 0x00000000000536de flags r-x
    LOAD off    0x00000000000536e0 vaddr 0x00000000001536e0 paddr 
0x00000000001536e0 align 2**20
         filesz 0x0000000000011ba5 memsz 0x0000000000011ba5 flags r--
    LOAD off    0x0000000000065288 vaddr 0x0000000000265288 paddr 
0x0000000000265288 align 2**20
         filesz 0x0000000000001b30 memsz 0x0000000000001b30 flags rw-
    LOAD off    0x0000000000066db8 vaddr 0x0000000000366db8 paddr 
0x0000000000366db8 align 2**20
         filesz 0x0000000000000908 memsz 0x0000000000000908 flags rw-
    LOAD off    0x00000000000676c0 vaddr 0x00000000004676c0 paddr 
0x00000000004676c0 align 2**20
         filesz 0x0000000000000058 memsz 0x0000000000000500 flags rw-
 DYNAMIC off    0x0000000000066b88 vaddr 0x0000000000266b88 paddr 
0x0000000000266b88 align 2**3
         filesz 0x0000000000000230 memsz 0x0000000000000230 flags rw-
    NOTE off    0x000000000000032c vaddr 0x000000000000032c paddr 
0x000000000000032c align 2**2
         filesz 0x0000000000000018 memsz 0x0000000000000018 flags r--
EH_FRAME off    0x000000000005a2a8 vaddr 0x000000000015a2a8 paddr 
0x000000000015a2a8 align 2**2
         filesz 0x0000000000000f54 memsz 0x0000000000000f54 flags r--
OPENBSD_RANDOMIZE off    0x0000000000065288 vaddr 0x0000000000265288 paddr 
0x0000000000265288 align 2**3
         filesz 0x0000000000000008 memsz 0x0000000000000008 flags rw-

Dynamic Section:
  NEEDED      libkea-exceptions.so.0.0
  NEEDED      libkea-dhcp++.so.0.0
  NEEDED      libkea-asiolink.so.0.0
  NEEDED      libkea-dns++.so.0.0
  NEEDED      libkea-cryptolink.so.0.0
  NEEDED      libbotan-1.10.so.1.0
  NEEDED      libbz2.so.10.4
  NEEDED      libcrypto.so.36.1
  NEEDED      libgmp.so.9.0
  NEEDED      libpthread.so.20.1
  NEEDED      libz.so.5.0
  NEEDED      libkea-util.so.0.0
  NEEDED      libstdc++.so.57.0
  NEEDED      libm.so.9.0
  NEEDED      libc.so.84.2
  RPATH       /usr/local/lib
  HASH        0x348
  STRTAB      0x4908
  SYMTAB      0x1440
  STRSZ       0x6a93
  SYMENT      0x18
  DEBUG       0x0
  PLTGOT      0x366db8
  PLTRELSZ    0xd98
  PLTREL      0x7
  JMPREL      0xf7c8
  RELA        0xb3a0
  RELASZ      0x4428
  RELAENT     0x18
  RELACOUNT   0x111

Reply via email to