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

Dynamic library creation/usage, How?

how can I create/usr a dynamic library so that it will be accepted by
dpkg-shlibsdep? I have teste to create a library with:

  gcc -shared -W1,-soname,libcompface.so.1 -o libcompface.so.1.0.0 arith.o file.o compress.o gen.o uncompface.o

And then use it by by:

  gcc -o xfaces -g -ansi     -L/usr/X11R6/lib Tiled.o       cmd_check.o     face_actions.o          face_annotate.o         face_binding.o          face_command.o          face_display.o          face_image.o    face_image_xbm.o        face_search.o           face_search_binding.o           face_search_facedb.o    face_search_resource.o          face_search_uh.o        mail_box.o      mail_body.o     mail_check.o            mail_file.o     mail_header.o           mail_items.o            mail_parse.o    main.o          path.o          regexp.o        regsub.o        string.o        face_sound.o face_image_xpm.o face_shape.o face_search_xface.o face_image_xface.o pop_check.o            -lXpm -lXaw -lXmu -lXt -lSM -lICE -lXExExt -lXext -lX11 -L/usr/local/lib -lcompface                       -laudio -lm   

But the dpkg-shlibs complains with:

  dpkg-shlibdeps: warning: unknown output from ldd on `xfaces': ` libcompface.so => /usr/lib/libcompface.so'

I have the debina/shlibs.local file which contains:

  libXpm 4 xpm4.7 
  libcompface 1 compface

This works fine with the libXpm... I know that this is supposed to be defined
in /var/lib/dpkg/*.sbubstvar, but I had the same problem there. If i take a 
look at the systemcalls produced by dpkg-shlibs, I find that all other 
libraries are mentioned together with there mager version number, here is the
intresting section:

open("/usr/lib/perl5/i486-linux/5.003/auto/POSIX/POSIX.so", O_RDONLY) = 5
pipe([4, 5])                            = 0
read(4, "\tlibICE.so.6 => /usr/X11R6/lib/"..., 4096) = 45
read(4, "\tlibXext.so.6 => /usr/X11R6/lib"..., 4096) = 47
read(4, "\tlibX11.so.6 => /usr/X11R6/lib/"..., 4096) = 45
read(4, "\tlibcompface.so => /usr/lib/lib"..., 4096) = 43
write(2, "dpkg-shlibdeps: warning: unknown"..., 107) = 107
read(4, "\tlibm.so.5 => /lib/libm.so.5.0."..., 4096) = 33
read(4, "\tlibc.so.5 => /lib/libc.so.5.2."..., 4096) = 34
read(4, "", 4096)                       = 0

What am I doing wrong?

TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-REQUEST@lists.debian.org . Trouble? e-mail to Bruce@Pixar.com

Reply to: