-----BEGIN PGP SIGNED MESSAGE-----
Hello Sean,
Monday, August 27, 2001, 11:09:17 PM, you wrote:
> vadddomain(domain, pwdata->pw_dir, pwdata->pw_uid, pwdata->pw_gid);
>
> you could avoid the call to getpwnam by using the constants defined
> in vpopmail_config.h:
> vadddomain(domain, VPOPMAILDIR, VPOPMAILUID, VPOPMAILGID);
Thanks, SWIG now generates proper wrapper files and I can compile and
link them but when I try to import them into Python, I end up with
the vpopmail API calls being undefined symbols which isn't really
suprising with a module that is only 14kb as opposed to about 50kb in
the case of libvpopmail.a.
I did
gcc -c -I/home/vpopmail/include -I/usr/local/include/python2.1 \
- -I/usr/local/include/python2.1 vpopmailpython.c vpopmailpython_wrap.c
ld -shared -L/home/vpopmail/include -lvpopmail -lcrypt \
vpopmailpython.o vpopmailpython_wrap.o -o vpopmail.so
How can I get ld to build something as shared library but still
link libvpopmail.a "statically" into it? I think ld thinks it can
ignore
all undefined symbols when using -shared cause those will be fixed at
runtime which isn't true in the case of libvpopmail as it is only an
archive, not a shared object...
Best regards,
Gabriel
«šv"€$"@
-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5i
iQEVAwUBO4te1cZa2WpymlDxAQFzagf/dhN264dTwFnNExrTWaW/02t1WWD4Dt7f
gE3YZOM4qT8xtBLsJG/wl0W1LUSzcqIwI0JSPNTJ9q0ddrqUmMcuOgwwPahf2uQ8
MB/fVWHjHVi3c1SOIEaQJXYptc8tlutSx5yGaUgQDPHyuYOXRvZyjveCyG0L5f0+
o4Cf16NyWkmFuPyqfySGBSM+VTOm36dyzLi0VuHHAQ5TkfiYNXoHHn6CBF/UueS/
owoCcJeFW/uKR/YtTlo7mOLvLXfNmjemVkecBe+pTHFVlWWrneQtSf9ONk4Q6CoI
dV3j+ykZ/t2Ml7gwAXzu9FLug29Se28r3PN8Q040FXyVQY1FLNAImg==
=KwQV
-----END PGP SIGNATURE-----