From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Sebastien.deMentendeHorne@electrabel.com Newsgroups: gmane.lisp.guile.devel Subject: guile with cygwin, undefined reference to `WinMain@16' Date: Thu, 21 Mar 2002 17:22:44 +0100 Sender: guile-devel-admin@gnu.org Message-ID: <8D1414482878D4119AEE00508B6C9074089662B7@seacex02.eib.electrabel.be> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 (Generated by NET-TEL Mailguard SMTP version 3.5.6.5) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C1D0F4.A1782DD0" X-Trace: main.gmane.org 1016727938 12680 127.0.0.1 (21 Mar 2002 16:25:38 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 21 Mar 2002 16:25:38 +0000 (UTC) Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16o5Ni-0003IO-00 for ; Thu, 21 Mar 2002 17:25:38 +0100 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16o5MF-0005Qp-00; Thu, 21 Mar 2002 11:24:07 -0500 Original-Received: from mailrelay-drp.electrabel.be ([194.29.97.133] helo=seebmr02) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16o5LA-0005KU-00 for ; Thu, 21 Mar 2002 11:23:00 -0500 Original-Received: from seebex05.eib.electrabel.be (SEEBEX05.EIB.ELECTRABEL.COM [171.26.236.55]) by seebmr02 (3.05.5.2) with ESMTP id SAA26803 for ; Thu, 21 Mar 2002 18:19:55 +0200 Original-Received: by seebex05.eib.electrabel.be with Internet Mail Service (5.5.2653.19) id ; Thu, 21 Mar 2002 17:22:44 +0100 Original-To: guile-devel@gnu.org X-Mailer: Internet Mail Service (5.5.2653.19) Errors-To: guile-devel-admin@gnu.org X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Developers list for Guile, the GNU extensibility library List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.lisp.guile.devel:135 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:135 This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C1D0F4.A1782DD0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by seebmr02 id RAA00089 Hi, =20 I am trying to compile guile-1.5.6 with the latest cygwin environment. =20 After some manual clean up (as removing HAVE_WINSOCK2_H and dealing with weird .lo files containing "timestamp"), I got an error in libguile/ that mentions an undefined reference to WinMain@16 . Is it just a matter of linking with an additional library or is it a deeper problem ? =20 The flags for configure were: --without-networking --without-posix --with-gnu-ld =20 make all-am make[1]: Entering directory `/cygdrive/h/GFJ138/home/guile-1.5.6/libguile= ' /bin/sh ../libtool --mode=3Dlink gcc -g -O2 -Wall -Wmissing-prototypes = -o libguile.la -rpath /usr/local/lib -version-info 15:0:1 -export-dynamic -no-undefined alist.lo arbiters.lo async.lo backtrace.lo boolean.lo chars= .lo continuations.lo debug.lo deprecation.lo dynl.lo dynwind.lo environments.= lo eq.lo error.lo eval.lo evalext.lo extensions.lo feature.lo fluids.lo fports.lo gc.lo gc_os_dep.lo gdbint.lo gh_data.lo gh_eval.lo gh_funcs.lo gh_init.lo gh_io.lo gh_list.lo gh_predicates.lo goops.lo gsubr.lo guardians.lo hash.lo hashtab.lo hooks.lo init.lo ioext.lo iselect.lo keywords.lo lang.lo list.lo load.lo macros.lo mallocs.lo modules.lo numbers.lo objects.lo objprop.lo options.lo pairs.lo ports.lo print.lo procprop.lo procs.lo properties.lo random.lo rdelim.lo read.lo root.lo rw= .lo scmsigs.lo script.lo simpos.lo smob.lo sort.lo srcprop.lo stackchk.lo stacks.lo stime.lo strings.lo strop.lo strorder.lo strports.lo struct.lo symbols.lo throw.lo values.lo variable.lo vectors.lo version.lo vports.lo weaks.lo symbols-deprecated.lo regex-posix.lo ramap.lo unif.lo -lltdl -lcrypt -lm rm -fr .libs/libguile.la .libs/libguile.* .libs/libguile.* generating symbol list for `libguile.la' dlltool --export-all --exclude-symbols DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRT= Sta rtup@12,DllEntryPoint@12 --output-def .libs/cygguile-14.dll-def alist.lo arbiters.lo async.lo backtrace.lo boolean.lo chars.lo continuations.lo debug.lo deprecation.lo dynl.lo dynwind.lo environments.lo eq.lo error.lo eval.lo evalext.lo extensions.lo feature.lo fluids.lo fports.lo gc.lo gc_os_dep.lo gdbint.lo gh_data.lo gh_eval.lo gh_funcs.lo gh_init.lo gh_io= .lo gh_list.lo gh_predicates.lo goops.lo gsubr.lo guardians.lo hash.lo hashtab.lo hooks.lo init.lo ioext.lo iselect.lo keywords.lo lang.lo list.= lo load.lo macros.lo mallocs.lo modules.lo numbers.lo objects.lo objprop.lo options.lo pairs.lo ports.lo print.lo procprop.lo procs.lo properties.lo random.lo rdelim.lo read.lo root.lo rw.lo scmsigs.lo script.lo simpos.lo smob.lo sort.lo srcprop.lo stackchk.lo stacks.lo stime.lo strings.lo strop.lo strorder.lo strports.lo struct.lo symbols.lo throw.lo values.lo variable.lo vectors.lo version.lo vports.lo weaks.lo symbols-deprecated.l= o regex-posix.lo ramap.lo unif.lo sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < .libs/cygguile-14.dll-def > .libs/libguile.exp if test "x`head -1 .libs/libguile.exp`" =3D xEXPORTS; then cp .libs/libguile.exp .libs/cygguile-14.dll-def; else echo EXPORTS > .libs/cygguile-14.dll-def; _lt_hint=3D1; cat .libs/libguile.exp | while r= ead symbol; do set dummy $symbol; case $# in 2) echo " $2 @ $_lt_hint ; " >> .libs/cygguile-14.dll-def;; *) echo " $2 @ $_lt_hint $3 ; " >> .libs/cygguile-14.dll-def;; esac; _lt_hint=3D`expr 1 + $_lt_hint`; done; = fi gcc -Wl,--base-file,.libs/cygguile-14.dll-base -Wl,-e,__cygwin_dll_entry= @12 -o .libs/cygguile-14.dll alist.lo arbiters.lo async.lo backtrace.lo boolean.lo chars.lo continuations.lo debug.lo deprecation.lo dynl.lo dynwind.lo environments.lo eq.lo error.lo eval.lo evalext.lo extensions.l= o feature.lo fluids.lo fports.lo gc.lo gc_os_dep.lo gdbint.lo gh_data.lo gh_eval.lo gh_funcs.lo gh_init.lo gh_io.lo gh_list.lo gh_predicates.lo goops.lo gsubr.lo guardians.lo hash.lo hashtab.lo hooks.lo init.lo ioext.= lo iselect.lo keywords.lo lang.lo list.lo load.lo macros.lo mallocs.lo modules.lo numbers.lo objects.lo objprop.lo options.lo pairs.lo ports.lo print.lo procprop.lo procs.lo properties.lo random.lo rdelim.lo read.lo root.lo rw.lo scmsigs.lo script.lo simpos.lo smob.lo sort.lo srcprop.lo stackchk.lo stacks.lo stime.lo strings.lo strop.lo strorder.lo strports.l= o struct.lo symbols.lo throw.lo values.lo variable.lo vectors.lo version.lo vports.lo weaks.lo symbols-deprecated.lo regex-posix.lo ramap.lo unif.lo .libs/libimp-cygltdl-3.a -lcrypt /usr/lib/libcygwin.a(libcmain.o)(.text+0x6a): undefined reference to `WinMain@16' collect2: ld returned 1 exit status make[1]: *** [libguile.la] Error 1 S=E9bastien de Menten | ELECTRABEL=20 Tel: ++32 10 48 51 76 | Quantitative Analysis,=20 Fax: ++32 10 48 51 09 | Place de l'universit=E9, 16, 4=E8m= e =E9tage Gsm: ++32 478 789 444 | B-1348 Louvain-la-Neuve, BELGIUM=20 =20 ------_=_NextPart_001_01C1D0F4.A1782DD0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by seebmr02 id RAA00089
Hi,
 
I am tr= ying to=20 compile guile-1.5.6 with the latest cygwin environment.
 
After s= ome manual=20 clean up (as removing HAVE_WINSOCK2_H and dealing with weird .lo files=20 containing "timestamp"), I got an error in libguile/ that mentions an und= efined=20 reference to WinMain@16. Is it just a m= atter of=20 linking with an additional library or is it a deeper problem=20 ?
 
The fla= gs for=20 configure were:
--witho= ut-networking=20 --without-posix --with-gnu-ld
 
make =20 all-am
make[1]: Entering directory=20 `/cygdrive/h/GFJ138/home/guile-1.5.6/libguile'
/bin/sh ../libtool --mo= de=3Dlink=20 gcc  -g -O2 -Wall -Wmissing-prototypes   -o libguile.la -r= path=20 /usr/local/lib -version-info 15:0:1 -export-dynamic -no-undefined alist.l= o=20 arbiters.lo async.lo backtrace.lo boolean.lo chars.lo continuations.lo de= bug.lo=20 deprecation.lo dynl.lo dynwind.lo environments.lo eq.lo error.lo eval.lo=20 evalext.lo extensions.lo feature.lo fluids.lo fports.lo gc.lo gc_os_dep.l= o=20 gdbint.lo gh_data.lo gh_eval.lo gh_funcs.lo gh_init.lo gh_io.lo gh_list.l= o=20 gh_predicates.lo goops.lo gsubr.lo guardians.lo hash.lo hashtab.lo hooks.= lo=20 init.lo ioext.lo iselect.lo keywords.lo lang.lo list.lo load.lo macros.lo= =20 mallocs.lo modules.lo numbers.lo objects.lo objprop.lo options.lo pairs.l= o=20 ports.lo print.lo procprop.lo procs.lo properties.lo random.lo rdelim.lo = read.lo=20 root.lo rw.lo scmsigs.lo script.lo simpos.lo smob.lo sort.lo srcprop.lo=20 stackchk.lo stacks.lo stime.lo strings.lo strop.lo strorder.lo strports.l= o=20 struct.lo symbols.lo throw.lo values.lo variable.lo vectors.lo version.lo= =20 vports.lo weaks.lo symbols-deprecated.lo regex-posix.lo ramap.lo unif.lo=20 -lltdl  -lcrypt -lm
rm -fr .libs/libguile.la .libs/libguile.*=20 .libs/libguile.*
generating symbol list for `libguile.la'
 dll= tool=20 --export-all --exclude-symbols
DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,D= llMainCRTStartup@12,DllEntryPoint@12 --output-def .libs/cygguile-14.dll-def&nbs= p; alist.lo=20 arbiters.lo async.lo backtrace.lo boolean.lo chars.lo continuations.lo de= bug.lo=20 deprecation.lo dynl.lo dynwind.lo environments.lo eq.lo error.lo eval.lo=20 evalext.lo extensions.lo feature.lo fluids.lo fports.lo gc.lo gc_os_dep.l= o=20 gdbint.lo gh_data.lo gh_eval.lo gh_funcs.lo gh_init.lo gh_io.lo gh_list.l= o=20 gh_predicates.lo goops.lo gsubr.lo guardians.lo hash.lo hashtab.lo hooks.= lo=20 init.lo ioext.lo iselect.lo keywords.lo lang.lo list.lo load.lo macros.lo= =20 mallocs.lo modules.lo numbers.lo objects.lo objprop.lo options.lo pairs.l= o=20 ports.lo print.lo procprop.lo procs.lo properties.lo random.lo rdelim.lo = read.lo=20 root.lo rw.lo scmsigs.lo script.lo simpos.lo smob.lo sort.lo srcprop.lo=20 stackchk.lo stacks.lo stime.lo strings.lo strop.lo strorder.lo strports.l= o=20 struct.lo symbols.lo throw.lo values.lo variable.lo vectors.lo version.lo= =20 vports.lo weaks.lo symbols-deprecated.lo regex-posix.lo ramap.lo=20 unif.lo
 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//"= <=20 .libs/cygguile-14.dll-def > .libs/libguile.exp
if test "x`head -1=20 .libs/libguile.exp`" =3D xEXPORTS; then cp .libs/libguile.exp=20 .libs/cygguile-14.dll-def; else echo EXPORTS > .libs/cygguile-14.dll-d= ef;=20 _lt_hint=3D1; cat .libs/libguile.exp | while read symbol; do set dum= my=20 $symbol; case $# in 2) echo " $2 @ $_lt_hint ; " >>=20 .libs/cygguile-14.dll-def;; *) echo " $2 @ $_lt_hint $3 ; " >>=20 .libs/cygguile-14.dll-def;; esac; _lt_hint=3D`expr 1 + $_lt_hint`; done;=20 fi
 gcc -Wl,--base-file,.libs/cygguile-14.dll-base=20 -Wl,-e,__cygwin_dll_entry@12 -o .libs/cygguile-14.dll  alist.lo arbi= ters.lo=20 async.lo backtrace.lo boolean.lo chars.lo continuations.lo debug.lo=20 deprecation.lo dynl.lo dynwind.lo environments.lo eq.lo error.lo eval.lo=20 evalext.lo extensions.lo feature.lo fluids.lo fports.lo gc.lo gc_os_dep.l= o=20 gdbint.lo gh_data.lo gh_eval.lo gh_funcs.lo gh_init.lo gh_io.lo gh_list.l= o=20 gh_predicates.lo goops.lo gsubr.lo guardians.lo hash.lo hashtab.lo hooks.= lo=20 init.lo ioext.lo iselect.lo keywords.lo lang.lo list.lo load.lo macros.lo= =20 mallocs.lo modules.lo numbers.lo objects.lo objprop.lo options.lo pairs.l= o=20 ports.lo print.lo procprop.lo procs.lo properties.lo random.lo rdelim.lo = read.lo=20 root.lo rw.lo scmsigs.lo script.lo simpos.lo smob.lo sort.lo srcprop.lo=20 stackchk.lo stacks.lo stime.lo strings.lo strop.lo strorder.lo strports.l= o=20 struct.lo symbols.lo throw.lo values.lo variable.lo vectors.lo version.lo= =20 vports.lo weaks.lo symbols-deprecated.lo regex-posix.lo ramap.lo unif.lo&= nbsp;=20 .libs/libimp-cygltdl-3.a=20 -lcrypt
/usr/lib/libcygwin.a(libcmain.o)(.text+0x6a): undefined refere= nce to=20 `WinMain@16'
c= ollect2: ld=20 returned 1 exit status
make[1]: *** [libguile.la] Error 1

S=E9bastien de=20 Menten           &= nbsp;  =20 |    ELECTRABEL
Tel:  ++32 10 48 51=20 76           =20 |    Quantitative Analysis,
Fax:  ++32 10 48 51=20 09           =20 |    Place de l'universit=E9, 16, 4=E8me =E9tage Gsm:  ++32 478 789=20 444           =20 |    B-1348 Louvain-la-Neuve, BELGIUM

 
------_=_NextPart_001_01C1D0F4.A1782DD0-- _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel