The libdir for 64b systems (amd64) is lib64, as it was discussed on the mailing list.

I downloaded the amd64 deb and the content is below, is it something wrong there? It is only /usr/lib64 as it was expected to be...

On the other hand, you patch should be fine as well. But I just want to see where is something broken in provided debs at this time.

Cheers,
Daniel

# dpkg --contents kamailio_3.1.4+squeeze1_amd64.deb
drwxr-xr-x root/root         0 2011-05-26 23:07 ./
drwxr-xr-x root/root         0 2011-05-26 23:05 ./var/
drwxr-xr-x root/root         0 2011-05-26 23:05 ./var/run/
drwxr-xr-x root/root         0 2011-05-26 23:05 ./var/run/kamailio/
drwxr-xr-x root/root         0 2011-05-26 23:05 ./usr/
drwxr-xr-x root/root         0 2011-05-26 23:06 ./usr/sbin/
-rwxr-xr-x root/root   5185164 2011-05-26 23:05 ./usr/sbin/kamailio
-rwxr-xr-x root/root    158626 2011-05-26 23:05 ./usr/sbin/sercmd
-rwxr-xr-x root/root     50426 2011-05-26 23:06 ./usr/sbin/kamctl
-rwxr-xr-x root/root      6004 2011-05-26 23:06 ./usr/sbin/kamdbctl
drwxr-xr-x root/root         0 2011-05-26 23:05 ./usr/lib64/
drwxr-xr-x root/root         0 2011-05-26 23:07 ./usr/lib64/kamailio/
drwxr-xr-x root/root         0 2011-05-26 23:05 ./usr/lib64/kamailio/modules/
-rw-r--r-- root/root    191187 2011-05-26 23:05 ./usr/lib64/kamailio/modules/auth.so
-rw-r--r-- root/root    181891 2011-05-26 23:05 ./usr/lib64/kamailio/modules/ratelimit.so
-rw-r--r-- root/root    176469 2011-05-26 23:05 ./usr/lib64/kamailio/modules/sl.so
-rw-r--r-- root/root    305893 2011-05-26 23:05 ./usr/lib64/kamailio/modules/sms.so
-rw-r--r-- root/root    252837 2011-05-26 23:05 ./usr/lib64/kamailio/modules/avpops.so
-rw-r--r-- root/root     51895 2011-05-26 23:05 ./usr/lib64/kamailio/modules/cfg_db.so
-rw-r--r-- root/root     38863 2011-05-26 23:05 ./usr/lib64/kamailio/modules/cfg_rpc.so
-rw-r--r-- root/root    395667 2011-05-26 23:05 ./usr/lib64/kamailio/modules/ctl.so
-rw-r--r-- root/root    145298 2011-05-26 23:05 ./usr/lib64/kamailio/modules/db_flatstore.so
-rw-r--r-- root/root    182323 2011-05-26 23:05 ./usr/lib64/kamailio/modules/dialplan.so
-rw-r--r-- root/root    114728 2011-05-26 23:05 ./usr/lib64/kamailio/modules/enum.so
-rw-r--r-- root/root    268243 2011-05-26 23:05 ./usr/lib64/kamailio/modules/lcr.so
-rw-r--r-- root/root    166822 2011-05-26 23:05 ./usr/lib64/kamailio/modules/mediaproxy.so
-rw-r--r-- root/root     53855 2011-05-26 23:05 ./usr/lib64/kamailio/modules/mi_rpc.so
-rw-r--r-- root/root     66033 2011-05-26 23:05 ./usr/lib64/kamailio/modules/pdb.so
-rw-r--r-- root/root     91458 2011-05-26 23:05 ./usr/lib64/kamailio/modules/sanity.so
-rw-r--r-- root/root   1414228 2011-05-26 23:05 ./usr/lib64/kamailio/modules/tm.so
-rw-r--r-- root/root    126322 2011-05-26 23:05 ./usr/lib64/kamailio/modules/topoh.so
-rw-r--r-- root/root     37700 2011-05-26 23:05 ./usr/lib64/kamailio/modules/blst.so
-rw-r--r-- root/root     88310 2011-05-26 23:05 ./usr/lib64/kamailio/modules/prefix_route.so
-rw-r--r-- root/root     44304 2011-05-26 23:05 ./usr/lib64/kamailio/modules/counters.so
-rw-r--r-- root/root     97511 2011-05-26 23:05 ./usr/lib64/kamailio/modules/debugger.so
-rw-r--r-- root/root     77408 2011-05-26 23:05 ./usr/lib64/kamailio/modules/matrix.so
-rw-r--r-- root/root     74753 2011-05-26 23:05 ./usr/lib64/kamailio/modules/mqueue.so
-rw-r--r-- root/root    164409 2011-05-26 23:05 ./usr/lib64/kamailio/modules/mtree.so
-rw-r--r-- root/root    166433 2011-05-26 23:05 ./usr/lib64/kamailio/modules/pipelimit.so
-rw-r--r-- root/root     36946 2011-05-26 23:05 ./usr/lib64/kamailio/modules/textopsx.so
-rw-r--r-- root/root     65625 2011-05-26 23:05 ./usr/lib64/kamailio/modules/xhttp.so
-rw-r--r-- root/root    191671 2011-05-26 23:05 ./usr/lib64/kamailio/libkcore.so.1.0
-rw-r--r-- root/root    160223 2011-05-26 23:05 ./usr/lib64/kamailio/libsrdb1.so.1.0
-rw-r--r-- root/root    101942 2011-05-26 23:05 ./usr/lib64/kamailio/libsrdb2.so.1.0
-rw-r--r-- root/root     76797 2011-05-26 23:05 ./usr/lib64/kamailio/libkmi.so.1.0
drwxr-xr-x root/root         0 2011-05-26 23:05 ./usr/lib64/kamailio/modules_s/
-rw-r--r-- root/root     84305 2011-05-26 23:05 ./usr/lib64/kamailio/modules_s/auth_db.so
-rw-r--r-- root/root    133765 2011-05-26 23:05 ./usr/lib64/kamailio/modules_s/dialog.so
-rw-r--r-- root/root    121077 2011-05-26 23:05 ./usr/lib64/kamailio/modules_s/dispatcher.so
-rw-r--r-- root/root     32443 2011-05-26 23:05 ./usr/lib64/kamailio/modules_s/diversion.so
-rw-r--r-- root/root    139929 2011-05-26 23:05 ./usr/lib64/kamailio/modules_s/domain.so
-rw-r--r-- root/root    123438 2011-05-26 23:05 ./usr/lib64/kamailio/modules_s/exec.so
-rw-r--r-- root/root     52942 2011-05-26 23:05 ./usr/lib64/kamailio/modules_s/maxfwd.so
-rw-r--r-- root/root    115192 2011-05-26 23:05 ./usr/lib64/kamailio/modules_s/msilo.so
-rw-r--r-- root/root    339711 2011-05-26 23:05 ./usr/lib64/kamailio/modules_s/nathelper.so
-rw-r--r-- root/root    159690 2011-05-26 23:05 ./usr/lib64/kamailio/modules_s/pdt.so
-rw-r--r-- root/root    434805 2011-05-26 23:05 ./usr/lib64/kamailio/modules_s/permissions.so
-rw-r--r-- root/root    176228 2011-05-26 23:05 ./usr/lib64/kamailio/modules_s/pike.so
-rw-r--r-- root/root    204473 2011-05-26 23:05 ./usr/lib64/kamailio/modules_s/registrar.so
-rw-r--r-- root/root    146160 2011-05-26 23:05 ./usr/lib64/kamailio/modules_s/rr.so
-rw-r--r-- root/root     55430 2011-05-26 23:05 ./usr/lib64/kamailio/modules_s/speeddial.so
-rw-r--r-- root/root    176348 2011-05-26 23:05 ./usr/lib64/kamailio/modules_s/textops.so
-rw-r--r-- root/root    170758 2011-05-26 23:05 ./usr/lib64/kamailio/modules_s/uac.so
-rw-r--r-- root/root     52537 2011-05-26 23:05 ./usr/lib64/kamailio/modules_s/uri_db.so
-rw-r--r-- root/root    369882 2011-05-26 23:05 ./usr/lib64/kamailio/modules_s/usrloc.so
-rw-r--r-- root/root    161506 2011-05-26 23:05 ./usr/lib64/kamailio/modules_s/xlog.so
-rw-r--r-- root/root    194172 2011-05-26 23:05 ./usr/lib64/kamailio/libser_cds.so.0.1
drwxr-xr-x root/root         0 2011-05-26 23:06 ./usr/lib64/kamailio/modules_k/
-rw-r--r-- root/root    169066 2011-05-26 23:05 ./usr/lib64/kamailio/modules_k/acc.so
-rw-r--r-- root/root     57023 2011-05-26 23:05 ./usr/lib64/kamailio/modules_k/alias_db.so
-rw-r--r-- root/root     79066 2011-05-26 23:05 ./usr/lib64/kamailio/modules_k/auth_db.so
-rw-r--r-- root/root     61971 2011-05-26 23:05 ./usr/lib64/kamailio/modules_k/benchmark.so
-rw-r--r-- root/root     94207 2011-05-26 23:05 ./usr/lib64/kamailio/modules_k/call_control.so
-rw-r--r-- root/root     92946 2011-05-26 23:05 ./usr/lib64/kamailio/modules_k/cfgutils.so
-rw-r--r-- root/root    227514 2011-05-26 23:06 ./usr/lib64/kamailio/modules_k/db_text.so
-rw-r--r-- root/root    674808 2011-05-26 23:06 ./usr/lib64/kamailio/modules_k/dialog.so
-rw-r--r-- root/root    308183 2011-05-26 23:06 ./usr/lib64/kamailio/modules_k/dispatcher.so
-rw-r--r-- root/root     31723 2011-05-26 23:06 ./usr/lib64/kamailio/modules_k/diversion.so
-rw-r--r-- root/root     96830 2011-05-26 23:06 ./usr/lib64/kamailio/modules_k/domain.so
-rw-r--r-- root/root    341037 2011-05-26 23:06 ./usr/lib64/kamailio/modules_k/drouting.so
-rw-r--r-- root/root    135021 2011-05-26 23:06 ./usr/lib64/kamailio/modules_k/exec.so
-rw-r--r-- root/root     84218 2011-05-26 23:06 ./usr/lib64/kamailio/modules_k/group.so
-rw-r--r-- root/root    190673 2011-05-26 23:06 ./usr/lib64/kamailio/modules_k/htable.so
-rw-r--r-- root/root    227022 2011-05-26 23:06 ./usr/lib64/kamailio/modules_k/imc.so
-rw-r--r-- root/root    126122 2011-05-26 23:06 ./usr/lib64/kamailio/modules_k/kex.so
-rw-r--r-- root/root     52023 2011-05-26 23:06 ./usr/lib64/kamailio/modules_k/maxfwd.so
-rw-r--r-- root/root    149232 2011-05-26 23:06 ./usr/lib64/kamailio/modules_k/mi_datagram.so
-rw-r--r-- root/root    128898 2011-05-26 23:06 ./usr/lib64/kamailio/modules_k/mi_fifo.so
-rw-r--r-- root/root    165810 2011-05-26 23:06 ./usr/lib64/kamailio/modules_k/msilo.so
-rw-r--r-- root/root    223413 2011-05-26 23:06 ./usr/lib64/kamailio/modules_k/nat_traversal.so
-rw-r--r-- root/root    200383 2011-05-26 23:06 ./usr/lib64/kamailio/modules_k/nathelper.so
-rw-r--r-- root/root     55793 2011-05-26 23:06 ./usr/lib64/kamailio/modules_k/path.so
-rw-r--r-- root/root    135370 2011-05-26 23:06 ./usr/lib64/kamailio/modules_k/pdt.so
-rw-r--r-- root/root    292071 2011-05-26 23:06 ./usr/lib64/kamailio/modules_k/permissions.so
-rw-r--r-- root/root    148268 2011-05-26 23:06 ./usr/lib64/kamailio/modules_k/pike.so
-rw-r--r-- root/root    469427 2011-05-26 23:06 ./usr/lib64/kamailio/modules_k/pv.so
-rw-r--r-- root/root    173302 2011-05-26 23:06 ./usr/lib64/kamailio/modules_k/qos.so
-rw-r--r-- root/root     82702 2011-05-26 23:06 ./usr/lib64/kamailio/modules_k/regex.so
-rw-r--r-- root/root    257517 2011-05-26 23:06 ./usr/lib64/kamailio/modules_k/registrar.so
-rw-r--r-- root/root    152168 2011-05-26 23:06 ./usr/lib64/kamailio/modules_k/rr.so
-rw-r--r-- root/root     46127 2011-05-26 23:06 ./usr/lib64/kamailio/modules_k/rtimer.so
-rw-r--r-- root/root    248052 2011-05-26 23:06 ./usr/lib64/kamailio/modules_k/rtpproxy.so
-rw-r--r-- root/root    157163 2011-05-26 23:06 ./usr/lib64/kamailio/modules_k/siptrace.so
-rw-r--r-- root/root    218124 2011-05-26 23:06 ./usr/lib64/kamailio/modules_k/siputils.so
-rw-r--r-- root/root     58600 2011-05-26 23:06 ./usr/lib64/kamailio/modules_k/speeddial.so
-rw-r--r-- root/root    106021 2011-05-26 23:06 ./usr/lib64/kamailio/modules_k/sqlops.so
-rw-r--r-- root/root     97925 2011-05-26 23:06 ./usr/lib64/kamailio/modules_k/sst.so
-rw-r--r-- root/root     47325 2011-05-26 23:06 ./usr/lib64/kamailio/modules_k/statistics.so
-rw-r--r-- root/root    177206 2011-05-26 23:06 ./usr/lib64/kamailio/modules_k/textops.so
-rw-r--r-- root/root    155959 2011-05-26 23:06 ./usr/lib64/kamailio/modules_k/tmx.so
-rw-r--r-- root/root    329930 2011-05-26 23:06 ./usr/lib64/kamailio/modules_k/uac.so
-rw-r--r-- root/root    101046 2011-05-26 23:06 ./usr/lib64/kamailio/modules_k/uac_redirect.so
-rw-r--r-- root/root     58582 2011-05-26 23:06 ./usr/lib64/kamailio/modules_k/uri_db.so
-rw-r--r-- root/root    103629 2011-05-26 23:06 ./usr/lib64/kamailio/modules_k/userblacklist.so
-rw-r--r-- root/root    353716 2011-05-26 23:06 ./usr/lib64/kamailio/modules_k/usrloc.so
-rw-r--r-- root/root     68422 2011-05-26 23:06 ./usr/lib64/kamailio/modules_k/xlog.so
-rw-r--r-- root/root    710976 2011-05-26 23:06 ./usr/lib64/kamailio/modules_k/seas.so
drwxr-xr-x root/root         0 2011-05-26 23:06 ./usr/lib64/kamailio/kamctl/
-rw-r--r-- root/root       663 2011-05-26 23:05 ./usr/lib64/kamailio/kamctl/kamctl.dbtext
-rw-r--r-- root/root      2424 2011-05-26 23:05 ./usr/lib64/kamailio/kamctl/kamdbctl.dbtext
drwxr-xr-x root/root         0 2011-05-26 23:05 ./usr/lib64/kamailio/kamctl/dbtextdb/
-rwxr-xr-x root/root     35262 2011-05-26 23:05 ./usr/lib64/kamailio/kamctl/dbtextdb/dbtextdb.py
-rw-r--r-- root/root     15615 2011-05-26 23:06 ./usr/lib64/kamailio/kamctl/kamctl.base
-rw-r--r-- root/root      1837 2011-05-26 23:06 ./usr/lib64/kamailio/kamctl/kamctl.ctlbase
-rw-r--r-- root/root      3670 2011-05-26 23:06 ./usr/lib64/kamailio/kamctl/kamctl.fifo
-rw-r--r-- root/root       995 2011-05-26 23:06 ./usr/lib64/kamailio/kamctl/kamctl.ser
-rw-r--r-- root/root      1818 2011-05-26 23:06 ./usr/lib64/kamailio/kamctl/kamctl.ser_mi
-rw-r--r-- root/root      2457 2011-05-26 23:06 ./usr/lib64/kamailio/kamctl/kamctl.unixsock
-rw-r--r-- root/root      4083 2011-05-26 23:06 ./usr/lib64/kamailio/kamctl/kamctl.sqlbase
-rw-r--r-- root/root      5526 2011-05-26 23:06 ./usr/lib64/kamailio/kamctl/kamdbctl.base
-rw-r--r-- root/root     43332 2011-05-26 23:06 ./usr/lib64/kamailio/libtrie.so.1.0
drwxr-xr-x root/root         0 2011-05-26 23:06 ./usr/share/
drwxr-xr-x root/root         0 2011-05-26 23:05 ./usr/share/kamailio/
drwxr-xr-x root/root         0 2011-05-26 23:05 ./usr/share/kamailio/dbtext/
drwxr-xr-x root/root         0 2011-05-26 23:06 ./usr/share/kamailio/dbtext/kamailio/
-rw-r--r-- root/root       122 2011-05-26 23:05 ./usr/share/kamailio/dbtext/kamailio/acc
-rw-r--r-- root/root       372 2011-05-26 23:05 ./usr/share/kamailio/dbtext/kamailio/active_watchers
-rw-r--r-- root/root        76 2011-05-26 23:05 ./usr/share/kamailio/dbtext/kamailio/address
-rw-r--r-- root/root       254 2011-05-26 23:05 ./usr/share/kamailio/dbtext/kamailio/aliases
-rw-r--r-- root/root       159 2011-05-26 23:05 ./usr/share/kamailio/dbtext/kamailio/carrierfailureroute
-rw-r--r-- root/root        35 2011-05-26 23:05 ./usr/share/kamailio/dbtext/kamailio/carrier_name
-rw-r--r-- root/root       196 2011-05-26 23:06 ./usr/share/kamailio/dbtext/kamailio/carrierroute
-rw-r--r-- root/root        88 2011-05-26 23:06 ./usr/share/kamailio/dbtext/kamailio/cpl
-rw-r--r-- root/root        90 2011-05-26 23:06 ./usr/share/kamailio/dbtext/kamailio/dbaliases
-rw-r--r-- root/root       415 2011-05-26 23:06 ./usr/share/kamailio/dbtext/kamailio/dialog
-rw-r--r-- root/root       128 2011-05-26 23:06 ./usr/share/kamailio/dbtext/kamailio/dialplan
-rw-r--r-- root/root       104 2011-05-26 23:06 ./usr/share/kamailio/dbtext/kamailio/dispatcher
-rw-r--r-- root/root        48 2011-05-26 23:06 ./usr/share/kamailio/dbtext/kamailio/domain
-rw-r--r-- root/root        34 2011-05-26 23:06 ./usr/share/kamailio/dbtext/kamailio/domain_name
-rw-r--r-- root/root        94 2011-05-26 23:06 ./usr/share/kamailio/dbtext/kamailio/domainpolicy
-rw-r--r-- root/root       116 2011-05-26 23:06 ./usr/share/kamailio/dbtext/kamailio/dr_gateways
-rw-r--r-- root/root        79 2011-05-26 23:06 ./usr/share/kamailio/dbtext/kamailio/dr_groups
-rw-r--r-- root/root        49 2011-05-26 23:06 ./usr/share/kamailio/dbtext/kamailio/dr_gw_lists
-rw-r--r-- root/root       130 2011-05-26 23:06 ./usr/share/kamailio/dbtext/kamailio/dr_rules
-rw-r--r-- root/root        69 2011-05-26 23:06 ./usr/share/kamailio/dbtext/kamailio/globalblacklist
-rw-r--r-- root/root        77 2011-05-26 23:06 ./usr/share/kamailio/dbtext/kamailio/grp
-rw-r--r-- root/root        79 2011-05-26 23:06 ./usr/share/kamailio/dbtext/kamailio/htable
-rw-r--r-- root/root        69 2011-05-26 23:06 ./usr/share/kamailio/dbtext/kamailio/imc_members
-rw-r--r-- root/root        52 2011-05-26 23:06 ./usr/share/kamailio/dbtext/kamailio/imc_rooms
-rw-r--r-- root/root       237 2011-05-26 23:06 ./usr/share/kamailio/dbtext/kamailio/lcr_gw
-rw-r--r-- root/root       105 2011-05-26 23:06 ./usr/share/kamailio/dbtext/kamailio/lcr_rule
-rw-r--r-- root/root        94 2011-05-26 23:06 ./usr/share/kamailio/dbtext/kamailio/lcr_rule_target
-rw-r--r-- root/root       254 2011-05-26 23:06 ./usr/share/kamailio/dbtext/kamailio/location
-rw-r--r-- root/root        33 2011-05-26 23:06 ./usr/share/kamailio/dbtext/kamailio/matrix
-rw-r--r-- root/root       122 2011-05-26 23:06 ./usr/share/kamailio/dbtext/kamailio/missed_calls
-rw-r--r-- root/root        60 2011-05-26 23:06 ./usr/share/kamailio/dbtext/kamailio/pdt
-rw-r--r-- root/root       133 2011-05-26 23:06 ./usr/share/kamailio/dbtext/kamailio/presentity
-rw-r--r-- root/root       315 2011-05-26 23:06 ./usr/share/kamailio/dbtext/kamailio/pua
-rw-r--r-- root/root        87 2011-05-26 23:06 ./usr/share/kamailio/dbtext/kamailio/purplemap
-rw-r--r-- root/root        44 2011-05-26 23:06 ./usr/share/kamailio/dbtext/kamailio/re_grp
-rw-r--r-- root/root       155 2011-05-26 23:06 ./usr/share/kamailio/dbtext/kamailio/rls_presentity
-rw-r--r-- root/root       372 2011-05-26 23:06 ./usr/share/kamailio/dbtext/kamailio/rls_watchers
-rw-r--r-- root/root       149 2011-05-26 23:06 ./usr/share/kamailio/dbtext/kamailio/silo
-rw-r--r-- root/root       169 2011-05-26 23:06 ./usr/share/kamailio/dbtext/kamailio/sip_trace
-rw-r--r-- root/root       148 2011-05-26 23:06 ./usr/share/kamailio/dbtext/kamailio/speed_dial
-rw-r--r-- root/root       128 2011-05-26 23:06 ./usr/share/kamailio/dbtext/kamailio/subscriber
-rw-r--r-- root/root        86 2011-05-26 23:06 ./usr/share/kamailio/dbtext/kamailio/trusted
-rw-r--r-- root/root        82 2011-05-26 23:06 ./usr/share/kamailio/dbtext/kamailio/uri
-rw-r--r-- root/root        76 2011-05-26 23:06 ./usr/share/kamailio/dbtext/kamailio/userblacklist
-rw-r--r-- root/root       120 2011-05-26 23:06 ./usr/share/kamailio/dbtext/kamailio/usr_preferences
-rw-r--r-- root/root       942 2011-05-26 23:06 ./usr/share/kamailio/dbtext/kamailio/version
-rw-r--r-- root/root       150 2011-05-26 23:06 ./usr/share/kamailio/dbtext/kamailio/watchers
-rw-r--r-- root/root       123 2011-05-26 23:06 ./usr/share/kamailio/dbtext/kamailio/xcap
drwxr-xr-x root/root         0 2011-05-26 23:06 ./usr/share/doc/
drwxr-xr-x root/root         0 2011-05-26 23:07 ./usr/share/doc/kamailio/
drwxr-xr-x root/root         0 2011-05-26 23:07 ./usr/share/doc/kamailio/modules/
-rw-r--r-- root/root      5540 2011-05-26 23:06 ./usr/share/doc/kamailio/modules/README.ratelimit.gz
-rw-r--r-- root/root      4379 2011-05-26 23:06 ./usr/share/doc/kamailio/modules/README.sms.gz
-rw-r--r-- root/root      3826 2011-05-26 23:06 ./usr/share/doc/kamailio/modules/README.sl
-rw-r--r-- root/root      1563 2011-05-26 23:06 ./usr/share/doc/kamailio/modules/README.cfg_db.gz
-rw-r--r-- root/root      2566 2011-05-26 23:06 ./usr/share/doc/kamailio/modules/README.ctl.gz
-rw-r--r-- root/root     22940 2011-05-26 23:06 ./usr/share/doc/kamailio/modules/README.tm.gz
-rw-r--r-- root/root      2147 2011-05-26 23:06 ./usr/share/doc/kamailio/modules/README.cfg_rpc
-rw-r--r-- root/root      3850 2011-05-26 23:06 ./usr/share/doc/kamailio/modules/README.db_flatstore
-rw-r--r-- root/root      3386 2011-05-26 23:06 ./usr/share/doc/kamailio/modules/README.enum.gz
-rw-r--r-- root/root      4102 2011-05-26 23:06 ./usr/share/doc/kamailio/modules/README.mediaproxy.gz
-rw-r--r-- root/root      1588 2011-05-26 23:06 ./usr/share/doc/kamailio/modules/README.pdb.gz
-rw-r--r-- root/root      2408 2011-05-26 23:06 ./usr/share/doc/kamailio/modules/README.mi_rpc
-rw-r--r-- root/root      1559 2011-05-26 23:06 ./usr/share/doc/kamailio/modules/README.topoh.gz
-rw-r--r-- root/root      1245 2011-05-26 23:06 ./usr/share/doc/kamailio/modules/README.counters.gz
-rw-r--r-- root/root      3462 2011-05-26 23:06 ./usr/share/doc/kamailio/modules/README.debugger.gz
-rw-r--r-- root/root      3891 2011-05-26 23:06 ./usr/share/doc/kamailio/modules/README.blst
-rw-r--r-- root/root      2752 2011-05-26 23:06 ./usr/share/doc/kamailio/modules/README.prefix_route
-rw-r--r-- root/root      2136 2011-05-26 23:06 ./usr/share/doc/kamailio/modules/README.matrix.gz
-rw-r--r-- root/root      1663 2011-05-26 23:06 ./usr/share/doc/kamailio/modules/README.mtree.gz
-rw-r--r-- root/root      1760 2011-05-26 23:06 ./usr/share/doc/kamailio/modules/README.xhttp.gz
-rw-r--r-- root/root      3247 2011-05-26 23:06 ./usr/share/doc/kamailio/modules/README.mqueue
-rw-r--r-- root/root      1629 2011-05-26 23:06 ./usr/share/doc/kamailio/modules/README.textopsx
-rw-r--r-- root/root      7075 2011-05-26 23:06 ./usr/share/doc/kamailio/modules/README.auth.gz
-rw-r--r-- root/root      6062 2011-05-26 23:06 ./usr/share/doc/kamailio/modules/README.avpops.gz
-rw-r--r-- root/root      3097 2011-05-26 23:06 ./usr/share/doc/kamailio/modules/README.dialplan.gz
-rw-r--r-- root/root      6385 2011-05-26 23:06 ./usr/share/doc/kamailio/modules/README.lcr.gz
-rw-r--r-- root/root      2336 2011-05-26 23:06 ./usr/share/doc/kamailio/modules/README.sanity.gz
-rw-r--r-- root/root      2657 2011-05-26 23:06 ./usr/share/doc/kamailio/modules/README.pipelimit.gz
drwxr-xr-x root/root         0 2011-05-26 23:07 ./usr/share/doc/kamailio/modules_s/
-rw-r--r-- root/root      1949 2011-05-26 23:06 ./usr/share/doc/kamailio/modules_s/README.dispatcher.gz
-rw-r--r-- root/root      2021 2011-05-26 23:06 ./usr/share/doc/kamailio/modules_s/README.diversion.gz
-rw-r--r-- root/root      6319 2011-05-26 23:06 ./usr/share/doc/kamailio/modules_s/README.domain.gz
-rw-r--r-- root/root      1826 2011-05-26 23:06 ./usr/share/doc/kamailio/modules_s/README.exec.gz
-rw-r--r-- root/root      3712 2011-05-26 23:06 ./usr/share/doc/kamailio/modules_s/README.msilo.gz
-rw-r--r-- root/root      1905 2011-05-26 23:06 ./usr/share/doc/kamailio/modules_s/README.maxfwd
-rw-r--r-- root/root      2612 2011-05-26 23:06 ./usr/share/doc/kamailio/modules_s/README.pdt.gz
-rw-r--r-- root/root      4710 2011-05-26 23:06 ./usr/share/doc/kamailio/modules_s/README.permissions.gz
-rw-r--r-- root/root      2567 2011-05-26 23:06 ./usr/share/doc/kamailio/modules_s/README.pike.gz
-rw-r--r-- root/root      6675 2011-05-26 23:06 ./usr/share/doc/kamailio/modules_s/README.registrar.gz
-rw-r--r-- root/root      1848 2011-05-26 23:06 ./usr/share/doc/kamailio/modules_s/README.rr.gz
-rw-r--r-- root/root      2716 2011-05-26 23:06 ./usr/share/doc/kamailio/modules_s/README.speeddial.gz
-rw-r--r-- root/root      1763 2011-05-26 23:06 ./usr/share/doc/kamailio/modules_s/README.uac.gz
-rw-r--r-- root/root      1394 2011-05-26 23:06 ./usr/share/doc/kamailio/modules_s/README.uri_db.gz
-rw-r--r-- root/root      4058 2011-05-26 23:06 ./usr/share/doc/kamailio/modules_s/README.usrloc.gz
-rw-r--r-- root/root      3007 2011-05-26 23:06 ./usr/share/doc/kamailio/modules_s/README.xlog.gz
-rw-r--r-- root/root      2452 2011-05-26 23:06 ./usr/share/doc/kamailio/modules_s/README.auth_db.gz
-rw-r--r-- root/root      2414 2011-05-26 23:06 ./usr/share/doc/kamailio/modules_s/README.nathelper.gz
-rw-r--r-- root/root      3567 2011-05-26 23:06 ./usr/share/doc/kamailio/modules_s/README.textops.gz
drwxr-xr-x root/root         0 2011-05-26 23:07 ./usr/share/doc/kamailio/modules_k/
-rw-r--r-- root/root      1541 2011-05-26 23:06 ./usr/share/doc/kamailio/modules_k/README.alias_db.gz
-rw-r--r-- root/root      3323 2011-05-26 23:06 ./usr/share/doc/kamailio/modules_k/README.auth_db.gz
-rw-r--r-- root/root      2572 2011-05-26 23:06 ./usr/share/doc/kamailio/modules_k/README.benchmark.gz
-rw-r--r-- root/root      4044 2011-05-26 23:06 ./usr/share/doc/kamailio/modules_k/README.cfgutils.gz
-rw-r--r-- root/root      4188 2011-05-26 23:06 ./usr/share/doc/kamailio/modules_k/README.db_text.gz
-rw-r--r-- root/root      9919 2011-05-26 23:06 ./usr/share/doc/kamailio/modules_k/README.dialog.gz
-rw-r--r-- root/root      7694 2011-05-26 23:06 ./usr/share/doc/kamailio/modules_k/README.dispatcher.gz
-rw-r--r-- root/root      1879 2011-05-26 23:06 ./usr/share/doc/kamailio/modules_k/README.diversion.gz
-rw-r--r-- root/root      2190 2011-05-26 23:06 ./usr/share/doc/kamailio/modules_k/README.domain.gz
-rw-r--r-- root/root      8490 2011-05-26 23:06 ./usr/share/doc/kamailio/modules_k/README.drouting.gz
-rw-r--r-- root/root      2014 2011-05-26 23:06 ./usr/share/doc/kamailio/modules_k/README.exec.gz
-rw-r--r-- root/root      2093 2011-05-26 23:06 ./usr/share/doc/kamailio/modules_k/README.group.gz
-rw-r--r-- root/root      3552 2011-05-26 23:06 ./usr/share/doc/kamailio/modules_k/README.htable.gz
-rw-r--r-- root/root      3031 2011-05-26 23:06 ./usr/share/doc/kamailio/modules_k/README.imc.gz
-rw-r--r-- root/root      1856 2011-05-26 23:06 ./usr/share/doc/kamailio/modules_k/README.kex.gz
-rw-r--r-- root/root      2138 2011-05-26 23:06 ./usr/share/doc/kamailio/modules_k/README.mi_datagram.gz
-rw-r--r-- root/root      5417 2011-05-26 23:06 ./usr/share/doc/kamailio/modules_k/README.msilo.gz
-rw-r--r-- root/root      3909 2011-05-26 23:06 ./usr/share/doc/kamailio/modules_k/README.mi_fifo
-rw-r--r-- root/root      5521 2011-05-26 23:06 ./usr/share/doc/kamailio/modules_k/README.nathelper.gz
-rw-r--r-- root/root      1773 2011-05-26 23:06 ./usr/share/doc/kamailio/modules_k/README.path.gz
-rw-r--r-- root/root      3208 2011-05-26 23:06 ./usr/share/doc/kamailio/modules_k/README.pdt.gz
-rw-r--r-- root/root      5730 2011-05-26 23:06 ./usr/share/doc/kamailio/modules_k/README.permissions.gz
-rw-r--r-- root/root      2652 2011-05-26 23:06 ./usr/share/doc/kamailio/modules_k/README.pike.gz
-rw-r--r-- root/root      1324 2011-05-26 23:06 ./usr/share/doc/kamailio/modules_k/README.pv.gz
-rw-r--r-- root/root      2025 2011-05-26 23:06 ./usr/share/doc/kamailio/modules_k/README.qos.gz
-rw-r--r-- root/root      3546 2011-05-26 23:06 ./usr/share/doc/kamailio/modules_k/README.regex.gz
-rw-r--r-- root/root      4423 2011-05-26 23:06 ./usr/share/doc/kamailio/modules_k/README.rr.gz
-rw-r--r-- root/root      6320 2011-05-26 23:06 ./usr/share/doc/kamailio/modules_k/README.rtpproxy.gz
-rw-r--r-- root/root      2512 2011-05-26 23:06 ./usr/share/doc/kamailio/modules_k/README.rtimer
-rw-r--r-- root/root      5236 2011-05-26 23:06 ./usr/share/doc/kamailio/modules_k/README.siputils.gz
-rw-r--r-- root/root      2279 2011-05-26 23:06 ./usr/share/doc/kamailio/modules_k/README.speeddial.gz
-rw-r--r-- root/root      1888 2011-05-26 23:06 ./usr/share/doc/kamailio/modules_k/README.sqlops.gz
-rw-r--r-- root/root      3095 2011-05-26 23:06 ./usr/share/doc/kamailio/modules_k/README.sst.gz
-rw-r--r-- root/root      5166 2011-05-26 23:06 ./usr/share/doc/kamailio/modules_k/README.textops.gz
-rw-r--r-- root/root      2930 2011-05-26 23:06 ./usr/share/doc/kamailio/modules_k/README.statistics
-rw-r--r-- root/root      1954 2011-05-26 23:06 ./usr/share/doc/kamailio/modules_k/README.tmx.gz
-rw-r--r-- root/root      2999 2011-05-26 23:06 ./usr/share/doc/kamailio/modules_k/README.uac_redirect.gz
-rw-r--r-- root/root      1420 2011-05-26 23:06 ./usr/share/doc/kamailio/modules_k/README.uri_db.gz
-rw-r--r-- root/root      3271 2011-05-26 23:06 ./usr/share/doc/kamailio/modules_k/README.userblacklist.gz
-rw-r--r-- root/root      7087 2011-05-26 23:06 ./usr/share/doc/kamailio/modules_k/README.usrloc.gz
-rw-r--r-- root/root      1829 2011-05-26 23:06 ./usr/share/doc/kamailio/modules_k/README.xlog.gz
-rw-r--r-- root/root     18542 2011-05-26 23:06 ./usr/share/doc/kamailio/modules_k/README.seas.gz
-rw-r--r-- root/root      8287 2011-05-26 23:06 ./usr/share/doc/kamailio/modules_k/README.acc.gz
-rw-r--r-- root/root      4058 2011-05-26 23:06 ./usr/share/doc/kamailio/modules_k/README.call_control.gz
-rw-r--r-- root/root      1522 2011-05-26 23:06 ./usr/share/doc/kamailio/modules_k/README.maxfwd.gz
-rw-r--r-- root/root     10075 2011-05-26 23:06 ./usr/share/doc/kamailio/modules_k/README.nat_traversal.gz
-rw-r--r-- root/root      7364 2011-05-26 23:06 ./usr/share/doc/kamailio/modules_k/README.registrar.gz
-rw-r--r-- root/root      2558 2011-05-26 23:06 ./usr/share/doc/kamailio/modules_k/README.siptrace.gz
-rw-r--r-- root/root      3103 2011-05-26 23:06 ./usr/share/doc/kamailio/modules_k/README.uac.gz
-rw-r--r-- root/root     25561 2011-05-26 23:06 ./usr/share/doc/kamailio/NEWS.gz
-rw-r--r-- root/root    168203 2011-05-26 20:08 ./usr/share/doc/kamailio/changelog.gz
-rw-r--r-- root/root      2074 2011-05-26 23:06 ./usr/share/doc/kamailio/AUTHORS
-rw-r--r-- root/root      3740 2011-05-26 23:06 ./usr/share/doc/kamailio/README
-rw-r--r-- root/root      1323 2011-05-26 20:08 ./usr/share/doc/kamailio/README.Debian
-rw-r--r-- root/root      1030 2011-05-26 20:08 ./usr/share/doc/kamailio/copyright
drwxr-xr-x root/root         0 2011-05-26 23:07 ./usr/share/doc/kamailio/examples/
-rw-r--r-- root/root      1568 2011-05-26 20:08 ./usr/share/doc/kamailio/examples/acc.cfg
-rw-r--r-- root/root       861 2011-05-26 20:08 ./usr/share/doc/kamailio/examples/ccdiversion.cfg
-rw-r--r-- root/root       929 2011-05-26 20:08 ./usr/share/doc/kamailio/examples/exec.cfg
-rw-r--r-- root/root      1032 2011-05-26 20:08 ./usr/share/doc/kamailio/examples/exec_dist.cfg
-rw-r--r-- root/root       488 2011-05-26 20:08 ./usr/share/doc/kamailio/examples/exec_s2.cfg
-rw-r--r-- root/root       711 2011-05-26 20:08 ./usr/share/doc/kamailio/examples/exec_s3.cfg
-rw-r--r-- root/root       954 2011-05-26 20:08 ./usr/share/doc/kamailio/examples/exec_s4.cfg
-rw-r--r-- root/root      1535 2011-05-26 20:08 ./usr/share/doc/kamailio/examples/exec_s5.cfg
-rw-r--r-- root/root      2032 2011-05-26 20:08 ./usr/share/doc/kamailio/examples/exec_s5b.cfg
-rw-r--r-- root/root      2253 2011-05-26 20:08 ./usr/share/doc/kamailio/examples/flag_reply.cfg
-rwxr-xr-x root/root      1095 2011-05-26 20:08 ./usr/share/doc/kamailio/examples/geo_split.sh
drwxr-xr-x root/root         0 2011-05-26 23:07 ./usr/share/doc/kamailio/examples/kamailio/
-rw-r--r-- root/root      1421 2011-05-26 20:08 ./usr/share/doc/kamailio/examples/kamailio/serial_183.cfg
-rw-r--r-- root/root      2403 2011-05-26 20:08 ./usr/share/doc/kamailio/examples/kamailio/ctd.sh.gz
-rw-r--r-- root/root      1753 2011-05-26 20:08 ./usr/share/doc/kamailio/examples/kamailio/pstn.cfg.gz
-rw-r--r-- root/root      1505 2011-05-26 20:08 ./usr/share/doc/kamailio/examples/kamailio/exec_s5.cfg
-rw-r--r-- root/root       973 2011-05-26 20:08 ./usr/share/doc/kamailio/examples/kamailio/exec_s4.cfg
-rw-r--r-- root/root      2963 2011-05-26 20:08 ./usr/share/doc/kamailio/examples/kamailio/msilo.cfg
-rw-r--r-- root/root       720 2011-05-26 20:08 ./usr/share/doc/kamailio/examples/kamailio/redirect.cfg
drwxr-xr-x root/root         0 2011-05-26 20:08 ./usr/share/doc/kamailio/examples/kamailio/web_im/
-rw-r--r-- root/root      1375 2011-05-26 20:08 ./usr/share/doc/kamailio/examples/kamailio/web_im/click_to_dial.php
-rw-r--r-- root/root       603 2011-05-26 20:08 ./usr/share/doc/kamailio/examples/kamailio/web_im/click_to_dial.html
-rw-r--r-- root/root       391 2011-05-26 20:08 ./usr/share/doc/kamailio/examples/kamailio/web_im/send_im.html
-rw-r--r-- root/root      1414 2011-05-26 20:08 ./usr/share/doc/kamailio/examples/kamailio/web_im/send_im.php
-rw-r--r-- root/root       267 2011-05-26 20:08 ./usr/share/doc/kamailio/examples/kamailio/web_im/README
-rw-r--r-- root/root      2094 2011-05-26 20:08 ./usr/share/doc/kamailio/examples/kamailio/flag_reply.cfg
-rw-r--r-- root/root       757 2011-05-26 20:08 ./usr/share/doc/kamailio/examples/kamailio/exec_s3.cfg
-rw-r--r-- root/root      1888 2011-05-26 20:08 ./usr/share/doc/kamailio/examples/kamailio/fork.cfg
-rw-r--r-- root/root      1627 2011-05-26 20:08 ./usr/share/doc/kamailio/examples/kamailio/acc.cfg
-rw-r--r-- root/root      1817 2011-05-26 20:08 ./usr/share/doc/kamailio/examples/kamailio/replicate.cfg
-rw-r--r-- root/root       560 2011-05-26 20:08 ./usr/share/doc/kamailio/examples/kamailio/logging.cfg
-rw-r--r-- root/root      2782 2011-05-26 20:08 ./usr/share/doc/kamailio/examples/kamailio/nathelper.cfg.gz
-rw-r--r-- root/root      2320 2011-05-26 20:08 ./usr/share/doc/kamailio/examples/kamailio/acc-mysql.cfg.gz
-rw-r--r-- root/root       568 2011-05-26 20:08 ./usr/share/doc/kamailio/examples/logging.cfg
-rw-r--r-- root/root      3057 2011-05-26 20:08 ./usr/share/doc/kamailio/examples/msilo.cfg
-rw-r--r-- root/root      1839 2011-05-26 20:08 ./usr/share/doc/kamailio/examples/onr.cfg
-rw-r--r-- root/root       669 2011-05-26 20:08 ./usr/share/doc/kamailio/examples/redirect.cfg
-rw-r--r-- root/root      1871 2011-05-26 20:08 ./usr/share/doc/kamailio/examples/replicate.cfg
-rw-r--r-- root/root      1402 2011-05-26 20:08 ./usr/share/doc/kamailio/examples/serial_183.cfg
-rw-r--r-- root/root       563 2011-05-26 20:08 ./usr/share/doc/kamailio/examples/snmp.cfg
-rw-r--r-- root/root      1139 2011-05-26 20:08 ./usr/share/doc/kamailio/examples/uas.cfg
-rw-r--r-- root/root      2293 2011-05-26 20:08 ./usr/share/doc/kamailio/examples/vm_proxy.cfg
-rw-r--r-- root/root      2609 2011-05-26 20:08 ./usr/share/doc/kamailio/examples/voicemail.cfg
drwxr-xr-x root/root         0 2011-05-26 20:08 ./usr/share/doc/kamailio/examples/web_im/
-rw-r--r-- root/root      1210 2011-05-26 20:08 ./usr/share/doc/kamailio/examples/web_im/click_to_dial.php
-rw-r--r-- root/root       603 2011-05-26 20:08 ./usr/share/doc/kamailio/examples/web_im/click_to_dial.html
-rw-r--r-- root/root       393 2011-05-26 20:08 ./usr/share/doc/kamailio/examples/web_im/send_im.html
-rw-r--r-- root/root      1230 2011-05-26 20:08 ./usr/share/doc/kamailio/examples/web_im/send_im.php
-rw-r--r-- root/root       267 2011-05-26 20:08 ./usr/share/doc/kamailio/examples/web_im/README
-rw-r--r-- root/root      3294 2011-05-26 20:08 ./usr/share/doc/kamailio/examples/welcome.cfg
-rw-r--r-- root/root      2311 2011-05-26 20:08 ./usr/share/doc/kamailio/examples/ctd.sh.gz
-rw-r--r-- root/root      1754 2011-05-26 20:08 ./usr/share/doc/kamailio/examples/pstn.cfg.gz
-rw-r--r-- root/root      9896 2011-05-26 23:06 ./usr/share/doc/kamailio/INSTALL.gz
-rw-r--r-- root/root      3406 2011-05-26 23:06 ./usr/share/doc/kamailio/README-MODULES.gz
-rw-r--r-- root/root       653 2011-05-26 22:30 ./usr/share/doc/kamailio/changelog.Debian.gz
drwxr-xr-x root/root         0 2011-05-26 23:06 ./usr/share/man/
drwxr-xr-x root/root         0 2011-05-26 23:07 ./usr/share/man/man8/
-rw-r--r-- root/root      1507 2011-05-26 23:07 ./usr/share/man/man8/kamctl.8.gz
-rw-r--r-- root/root      1490 2011-05-26 23:07 ./usr/share/man/man8/kamailio.8.gz
-rw-r--r-- root/root       896 2011-05-26 23:07 ./usr/share/man/man8/kamdbctl.8.gz
drwxr-xr-x root/root         0 2011-05-26 23:07 ./usr/share/man/man5/
-rw-r--r-- root/root       627 2011-05-26 23:07 ./usr/share/man/man5/kamailio.cfg.5.gz
drwxr-xr-x root/root         0 2011-05-26 23:06 ./usr/share/man/man7/
drwxr-xr-x root/root         0 2011-05-26 23:07 ./etc/
drwxr-xr-x root/root         0 2011-05-26 23:06 ./etc/kamailio/
-rw-r--r-- root/root      1745 2011-05-26 23:06 ./etc/kamailio/dictionary.kamailio
-rw-r--r-- root/root     18543 2011-05-26 23:06 ./etc/kamailio/kamailio.cfg
-rw-r--r-- root/root      3626 2011-05-26 23:06 ./etc/kamailio/kamctlrc
drwxr-xr-x root/root         0 2011-05-26 23:07 ./etc/default/
-rw-r--r-- root/root       722 2011-05-26 20:08 ./etc/default/kamailio
drwxr-xr-x root/root         0 2011-05-26 23:07 ./etc/init.d/
-rwxr-xr-x root/root      4259 2011-05-26 20:08 ./etc/init.d/kamailio
lrwxrwxrwx root/root         0 2011-05-26 23:07 ./usr/lib64/kamailio/libkcore.so.1 -> libkcore.so.1.0
lrwxrwxrwx root/root         0 2011-05-26 23:07 ./usr/lib64/kamailio/libkcore.so -> libkcore.so.1.0
lrwxrwxrwx root/root         0 2011-05-26 23:07 ./usr/lib64/kamailio/libsrdb1.so.1 -> libsrdb1.so.1.0
lrwxrwxrwx root/root         0 2011-05-26 23:07 ./usr/lib64/kamailio/libsrdb1.so -> libsrdb1.so.1.0
lrwxrwxrwx root/root         0 2011-05-26 23:07 ./usr/lib64/kamailio/libsrdb2.so.1 -> libsrdb2.so.1.0
lrwxrwxrwx root/root         0 2011-05-26 23:07 ./usr/lib64/kamailio/libsrdb2.so -> libsrdb2.so.1.0
lrwxrwxrwx root/root         0 2011-05-26 23:07 ./usr/lib64/kamailio/libkmi.so.1 -> libkmi.so.1.0
lrwxrwxrwx root/root         0 2011-05-26 23:07 ./usr/lib64/kamailio/libkmi.so -> libkmi.so.1.0
lrwxrwxrwx root/root         0 2011-05-26 23:07 ./usr/lib64/kamailio/libser_cds.so.0 -> libser_cds.so.0.1
lrwxrwxrwx root/root         0 2011-05-26 23:07 ./usr/lib64/kamailio/libser_cds.so -> libser_cds.so.0.1
lrwxrwxrwx root/root         0 2011-05-26 23:07 ./usr/lib64/kamailio/libtrie.so.1 -> libtrie.so.1.0
lrwxrwxrwx root/root         0 2011-05-26 23:07 ./usr/lib64/kamailio/libtrie.so -> libtrie.so.1.0


On 5/31/11 1:16 PM, Alex Hermann wrote:
On Tuesday 31 May 2011, Daniel-Constantin Mierla wrote:
On 5/31/11 9:55 AM, Alex Hermann wrote:
I still had the issue that the install process was installing the libs to
/usr/lib64 instead of /usr/lib. The rules file was only removing dups
from /usr/lib. The fix for me was to export the LIBDIR variable in the
rules file to have the libs installed in the correct directory:
/usr/lib.
that was solved some time ago.

Do you still get the issue with 3.1.4? I checked kamailio mysql deb
packages and they don't have anymore the libs.

The build server uses several chroot environments, so the host system
architecture is in some cases different that target architecture, so for
a while, even the 'make deb' was fixed in git repository, some of
packages were still broke since the build server uses completely
different building script. That was fixed also and all packages should
be in good shape.
Well, I just downloaded a 3.1.4 amd64 .deb from deb.kamailio.org and that 
still has the libraries in the wrong location: /usr/lib64 instead of /usr/lib. 

I can't reproduce creating the same packages. If i build them with the rules 
file from the git repo, libs go to /usr/lib64, but dups aren't cleared 
(because LIBDIR=/usr/lib in the rules file and LIBDIR=/usr/lib64 in the 
Makefile). If I use the patch below, LIBDIR is the same (and correct) in both 
the rules file and the Makefile. 

The Makefile does not automatically inherit variables set in the rules file. 
They need to be explicitly exported as in the patch below or be added to the 
make command line:
$(MAKE) LIBDIR=$(LIBDIR) ....


fix-debian-libdir

commit f5adae2236c2c4bf037bf55bcd11100b83622c34
Author: Alex Hermann <alex@speakup.nl>
Date:   Mon May 23 16:55:47 2011 +0200

    pkg: Export the LIBDIR variable from the rules file, so libraries are installed to the correct directory.

diff --git a/pkg/kamailio/deb/debian/rules b/pkg/kamailio/deb/debian/rules
index 30feea7..1c7423f 100755
--- a/pkg/kamailio/deb/debian/rules
+++ b/pkg/kamailio/deb/debian/rules
@@ -44,8 +44,8 @@ PACKAGE_GROUPS=mysql postgres berkeley unixodbc radius presence \
 			   ldap xml perl utils purple memcached tls \
 			   snmpstats carrierroute xmpp cpl lua python geoip
 
-# name of libdir in the path for libraries (e.g., lib for 32b, lib64 for 64b)
-LIBDIR ?= lib
+# name of libdir in the path for libraries
+export LIBDIR ?= lib
 
 # directories with possible duplicate libraries (that should be deleted
 # from current module* packages)
diff --git a/pkg/kamailio/deb/lenny/rules b/pkg/kamailio/deb/lenny/rules
index 38066c0..730d3c9 100755
--- a/pkg/kamailio/deb/lenny/rules
+++ b/pkg/kamailio/deb/lenny/rules
@@ -44,8 +44,8 @@ PACKAGE_GROUPS=mysql postgres berkeley unixodbc radius presence \
 			   ldap xml perl utils purple memcached tls \
 			   snmpstats carrierroute xmpp cpl lua python
 
-# name of libdir in the path for libraries (e.g., lib for 32b, lib64 for 64b)
-LIBDIR ?= lib
+# name of libdir in the path for libraries
+export LIBDIR ?= lib
 
 # directories with possible duplicate libraries (that should be deleted
 # from current module* packages)
diff --git a/pkg/kamailio/deb/lucid/rules b/pkg/kamailio/deb/lucid/rules
index 30feea7..1c7423f 100755
--- a/pkg/kamailio/deb/lucid/rules
+++ b/pkg/kamailio/deb/lucid/rules
@@ -44,8 +44,8 @@ PACKAGE_GROUPS=mysql postgres berkeley unixodbc radius presence \
 			   ldap xml perl utils purple memcached tls \
 			   snmpstats carrierroute xmpp cpl lua python geoip
 
-# name of libdir in the path for libraries (e.g., lib for 32b, lib64 for 64b)
-LIBDIR ?= lib
+# name of libdir in the path for libraries
+export LIBDIR ?= lib
 
 # directories with possible duplicate libraries (that should be deleted
 # from current module* packages)
diff --git a/pkg/kamailio/deb/squeeze/rules b/pkg/kamailio/deb/squeeze/rules
index 0f2e2a5..d80b129 100755
--- a/pkg/kamailio/deb/squeeze/rules
+++ b/pkg/kamailio/deb/squeeze/rules
@@ -44,8 +44,8 @@ PACKAGE_GROUPS=mysql postgres berkeley unixodbc radius presence \
 			   ldap xml perl utils geoip memcached tls \
 			   snmpstats carrierroute xmpp cpl lua python
 
-# name of libdir in the path for libraries (e.g., lib for 32b, lib64 for 64b)
-LIBDIR ?= lib
+# name of libdir in the path for libraries
+export LIBDIR ?= lib
 
 # directories with possible duplicate libraries (that should be deleted
 # from current module* packages)

-- 
Daniel-Constantin Mierla -- http://www.asipto.com
http://linkedin.com/in/miconda -- http://twitter.com/miconda