All pastes #770926 Raw Edit

Untitled

public text v1 · immutable
·published 2007-11-12 18:24 UTC
rendered paste body
bash-3.00$ cat Makefile 
#
# Asterisk -- A telephony toolkit for Linux.
# 
# Makefile for resource modules
#
# Copyright (C) 1999-2006, Digium, Inc.
#
# This program is free software, distributed under the terms of
# the GNU General Public License
#

-include ../menuselect.makeopts ../menuselect.makedeps

C_MODS:=$(filter-out $(MENUSELECT_RES),$(patsubst %.c,%,$(wildcard res_*.c) $(wildcard res_*/res_*.c)))
CC_MODS:=$(filter-out $(MENUSELECT_RES),$(patsubst %.cc,%,$(wildcard res_*.cc) $(wildcard res_*/res_*.cc)))

LOADABLE_MODS:=$(C_MODS) $(CC_MODS)

ifneq ($(findstring res,$(MENUSELECT_EMBED)),)
  EMBEDDED_MODS:=$(LOADABLE_MODS)
  LOADABLE_MODS:=
endif

all: _all

include $(ASTTOPDIR)/Makefile.moddir_rules

$(if $(filter res_snmp,$(EMBEDDED_MODS)),modules.link,res_snmp.so): snmp/agent.o

$(if $(filter res_cepstral/res_cepstral,$(EMBEDDED_MODS)),modules.link,res_cepstral/res_cepstral.o): ASTCFLAGS+=-Ires_cepstral/include
$(if $(filter res_cepstral/res_cepstral,$(EMBEDDED_MODS)),modules.link,res_cepstral/res_cepstral.so): LDFLAGS+="-lswift -Wl,-rpath,/opt/swift/lib" res_cepstral.o

clean::
        rm -f snmp/*.o
        rm -f res_*/*.so res_*/*.o res_*/*.oo
bash-3.00$
bash-3.00$ readelf -d res_cepstral.so

Dynamic segment at offset 0x26c0 contains 23 entries:
  Tag        Type                         Name/Value
 0x00000001 (NEEDED)                     Shared library: [libswift.so.4]
 0x00000001 (NEEDED)                     Shared library: [libm.so.6]
 0x00000001 (NEEDED)                     Shared library: [libpthread.so.0]
 0x00000001 (NEEDED)                     Shared library: [libc.so.6]
 0x0000000c (INIT)                       0xe14
 0x0000000d (FINI)                       0x1b08
 0x00000004 (HASH)                       0xb4
 0x00000005 (STRTAB)                     0x808
 0x00000006 (SYMTAB)                     0x308
 0x0000000a (STRSZ)                      850 (bytes)
 0x0000000b (SYMENT)                     16 (bytes)
 0x00000003 (PLTGOT)                     0x37b4
 0x00000002 (PLTRELSZ)                   296 (bytes)
 0x00000014 (PLTREL)                     REL
 0x00000017 (JMPREL)                     0xcec
 0x00000011 (REL)                        0xc3c
 0x00000012 (RELSZ)                      176 (bytes)
 0x00000013 (RELENT)                     8 (bytes)
 0x6ffffffe (VERNEED)                    0xbfc
 0x6fffffff (VERNEEDNUM)                 1
 0x6ffffff0 (VERSYM)                     0xb5a
 0x6ffffffa (RELCOUNT)                   16
 0x00000000 (NULL)                       0x0
bash-3.00$ ldd res_cepstral.so
        linux-gate.so.1 =>  (0xffffe000)
        libswift.so.4 => not found
        libm.so.6 => /lib/tls/libm.so.6 (0xf7f4a000)
        libpthread.so.0 => /lib/tls/libpthread.so.0 (0xf7f38000)
        libc.so.6 => /lib/tls/libc.so.6 (0xf7e1e000)
        /lib/ld-linux.so.2 (0x56555000)