Mail Archives: cygwin/2004/02/13/01:24:18
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Charles Wilson wrote:
| You might want to use automake+autoconf+libtool, instead of just
| autoconf+libtool.
Do I need to --force these? See below.
|> 2) I added an empty main function to one of the src .c files:
|>
|> +int main ()
|> +{ return 0; }
|
| You don't need to do this.
I got this from the Cygwin FAQ, regarding WinMain AT 16 errors. When I
didn't do this, after autoconf and libtoolize, I still get:
~ gcc -Wl,--base-file,.libs/cygfribidi-0.dll-base
- -Wl,-e,__cygwin_dll_entry AT 12 -o .libs/cygfribidi-0.dll fribidi.lo
fribidi_types.lo fribidi_mem.lo fribidi_mirroring.lo
fribidi_char_type.lo fribidi_wcwidth.lo fribidi_utils.lo
fribidi_char_sets.lo fribidi_char_sets_utf8.lo
fribidi_char_sets_cap_rtl.lo fribidi_char_sets_iso8859_6.lo
fribidi_char_sets_iso8859_8.lo fribidi_char_sets_cp1255.lo
fribidi_char_sets_cp1256.lo fribidi_char_sets_isiri_3342.lo
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../libcygwin.a(libcmain.o)
(.text+0x7c): undefined reference to `_WinMain AT 16'
collect2: ld returned 1 exit status
make: *** [libfribidi.la] Error 1
| 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
FWIW, I tried rebuilding clamav (which has a libclamav) by just adding
- -no-undefined and the main() function, and both the dll and all
executables dependent on it are built, but when I try running those
programs they segfault with a STATUS_ACCESS_VIOLATION. When I
automake/libtoolize without adding a main(), I get:
~ gcc -Wl,--base-file,.libs/cygclamav-1.dll-base
- -Wl,-e,__cygwin_dll_entry AT 12 -o .libs/cygclamav-1.dll matcher.lo md5.lo
others.lo readdb.lo cvd.lo dsig.lo str.lo scanners.lo unrarlib.lo
zzip-dir.lo zzip-err.lo zzip-file.lo zzip-info.lo zzip-io.lo
zzip-stat.lo zzip-zip.lo strc.lo blob.lo mbox.lo message.lo strrcpy.lo
table.lo text.lo -lz -lbz2 .libs/libimp-cyggmp-3.a -lpthread
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../libcygwin.a(libcmain.o)
(.text+0x7c): undefined reference to `_WinMain AT 16'
collect2: ld returned 1 exit status
make[2]: *** [libclamav.la] Error 1
This whole thing of making DLLs is something that I would REALLY like to
get figured out. Thanks!
Yaakov
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFALG0spiWmPGlmQSMRAoDnAKDhpBVgFRfpMyfApjFNnc0e+5ze2gCg+/Gc
3O9VSeBukqpDQabl428Guq4=
=McTI
-----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/
- Raw text -