Building dll's and executables in same package

Yaakov Selkowitz yselkowitz@users.sourceforge.net
Tue Feb 17 17:59:00 GMT 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Charles Wilson wrote:
| Don't use dlltool.  It's old and crotchety.  Use gcc -shared (or
| libtool).  For examples, see the dllhelpers
|
here:http://www.neuro.gatech.edu/users/cwilson/cygutils/dll-stuff/index.html


OK, so I got the dllhelpers-0.4.1 and tried out the c_autotools stuff,
bootstrapped it, and everything built fine.  But when I get back to
clamav (and I've seen this before too), it just doesn't work.

In short, I do the following:

1) aclocal
2) libtoolize --copy --force, which tells me to run
3) aclocal
4) autoheader (clamav needs this)
5) automake --add-missing --copy --force-missing
6) autoconf

I don't get any warnings when I do this, and it seemingly configures
fine.  But when I go to make, it fails seriously:

make  all-recursive
make[1]: Entering directory
`/home/Yaakov/devel/testing/clamav/clamav-0.67/.build'
Making all in libclamav
make[2]: Entering directory
`/home/Yaakov/devel/testing/clamav/clamav-0.67/.build/libclamav'
if /bin/bash ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I.
- -I/home/Yaakov/devel/testing/clamav/clamav-0.67/libclamav -I.. -I..
- -I/home/Yaakov/devel/testing/clamav/clamav-0.67/libclamav/zziplib    -O2
- -MT matcher.lo -MD -MP -MF ".deps/matcher.Tpo" \
~  -c -o matcher.lo `test -f
'/home/Yaakov/devel/testing/clamav/clamav-0.67/libclamav/matcher.c' ||
echo
'/home/Yaakov/devel/testing/clamav/clamav-0.67/libclamav/'`/home/Yaakov/devel/testing/clamav/clamav-0.67/libclamav/matcher.c;
\
then mv -f ".deps/matcher.Tpo" ".deps/matcher.Plo"; \
else rm -f ".deps/matcher.Tpo"; exit 1; \
fi
../libtool: line 1: s%^.*/%%: No such file or directory
../libtool: line 1: -e: command not found
*** Warning: inferring the mode of operation is deprecated.
*** Future versions of Libtool will require -mode=MODE be specified.
../libtool: line 1: -e: command not found
../libtool: line 1: -e: command not found
../libtool: line 1: -e: command not found
../libtool: line 1: -e: command not found
../libtool: line 1: -e: command not found
../libtool: line 1: -e: command not found
../libtool: line 1: -e: command not found
../libtool: line 1: -e: command not found
../libtool: line 1: -e: command not found
../libtool: line 1: -e: command not found
../libtool: line 1: -e: command not found
../libtool: line 1: -e: command not found
../libtool: line 1: -e: command not found
../libtool: line 1: -e: command not found
../libtool: line 1: -e: command not found
../libtool: line 1: -e: command not found
: compile: cannot determine name of library object from `'
make[2]: *** [matcher.lo] Error 1
make[2]: Leaving directory
`/home/Yaakov/devel/testing/clamav/clamav-0.67/.build/libclamav'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/home/Yaakov/devel/testing/clamav/clamav-0.67/.build'
make: *** [all] Error 2

What's going on here?

| And make sure you're using a new(er) libtool/autoconf, like
| autoconf-devel-2.59 and libtool-devel-1.5.

$ cygcheck -c autoconf-devel automake-devel libtool-devel
Cygwin Package Information
Package              Version        Status
autoconf-devel       2.59-1         OK
automake-devel       1.7.9-1        OK
libtool-devel        1.5-3          OK

Thanks for your help.

Yaakov
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFAMlSFpiWmPGlmQSMRAkjuAJ9ff90EFavW/+R0QouJjon8DPYVHQCeN8wb
mdQsato7c9PwmXbJyQR2d54=
=hyaa
-----END PGP SIGNATURE-----


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list