From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29522 invoked by alias); 22 Oct 2003 01:49:30 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 29515 invoked from network); 22 Oct 2003 01:49:27 -0000 Received: from unknown (HELO smtp.enc.edu) (63.85.52.127) by sources.redhat.com with SMTP; 22 Oct 2003 01:49:27 -0000 Received: from localhost (new-av.r.its.enc.edu [10.100.0.201]) by smtp.enc.edu (Postfix) with ESMTP id 6C39A2B960 for ; Tue, 21 Oct 2003 21:45:39 -0400 (EDT) Received: from smtp.enc.edu ([10.100.0.201]) by localhost (smtp.enc.edu [10.100.0.201]) (amavisd-new, port 10024) with ESMTP id 23502-06 for ; Tue, 21 Oct 2003 21:45:39 -0400 (EDT) Received: from enc.edu (r1s10.r.its.enc.edu [10.100.0.20]) by smtp.enc.edu (Postfix) with ESMTP id 2A3232B79F for ; Tue, 21 Oct 2003 21:45:39 -0400 (EDT) Message-ID: <3F95E4E9.9000905@enc.edu> Date: Wed, 22 Oct 2003 01:59:00 -0000 From: Charles Owens Organization: Eastern Nazarene College User-Agent: Mozilla/5.0 (X11; U; Linux i386; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en MIME-Version: 1.0 To: cygwin@cygwin.com Subject: Re: Perl - trying to install libwin32 References: <3F7A4288.90001@enc.edu> <10689931569.20031001114521@familiehaase.de> <3F90BA48.7080809@enc.edu> In-Reply-To: Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at enc.edu X-SW-Source: 2003-10/txt/msg01350.txt.bz2 Igor, Here's what's getting produced by make: gcc -shared -o File.dll -Wl,--out-implib=libFile.dll.a -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--stack,8388608 -L/usr/local/lib -L/usr/local/lib -L/usr/lib/w32api -I/usr/include/w32api -s File.o /usr/lib/perl5/5.8.0/cygwin-multi-64int/CORE/libperl.dll.a -lkernel32 I've also tried (by hand): gcc -shared -o File.dll -Wl,--out-implib=libFile.dll.a -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--stack,8388608 -s File.o /usr/lib/perl5/5.8.0/cygwin-multi-64int/CORE/libperl.dll.a -L/usr/local/lib -L/usr/local/lib -L/usr/lib/w32api -lkernel32 -I/usr/include/w32api Any thoughts? Thanks, Charles Igor Pechtchanski wrote: >Charles, > >Linkers like forward references, and don't understand back references. >The libraries should go to the very end of the line, after the object >files (and I believe the *FLAGS vars usually get put right after the >executable). You might need to use some other variable for this. > >If the libraries are at the end of the gcc invocation, please post the >exact gcc command you get when compiling. > Igor > >On Fri, 17 Oct 2003, Charles Owens wrote: > > > >>Okay... (just now getting back to this). >> >>Thanks for the pointer... but it must be something else. >> >>Since the build is failing in APIFile I've added this to APIFile/Makefile >> >> LDDLFLAGS = -L/usr/lib/w32api -lkernel32 -I/usr/include/w32api >> >>When I run 'make' I do see that the gcc line in question now has these >>options... but the link fails in the same way as before. (lots of >>unresolved reverences, eg. "...File.c: undefined reference to >>'_CloseHandle'") >> >>Any thoughts on what my next step should be? >> >>Thanks much, >> >>Charles >> >> >>Gerrit P. Haase wrote: >> >> >> >>>>I'm also seeing the same problem as Paul when trying to compile >>>>libwin32-0.191 (patched) on cygwin. This is with both gcc 3.3.1 and gcc >>>>3.2 20020927 (prerelease) . >>>> >>>>Any suggestions? Here's what "make" is giving me (with gcc 3.2): >>>> >>>> >>>Try adding libkernel32.a (-L/usr/lib/w32api -lkernel32) to the linkline? >>> >>>Gerrit >>> >>> > > > -- \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ Charles N. Owens charles.n.owens@enc.edu http://www.enc.edu/~charles.n.owens Senior Technology Officer Information Technology Services Eastern Nazarene College ///////////////////////////////////////////////////////////////////////// -- 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/