Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Sent: 25 Aug 2002 04:40:47 GMT Message-ID: <004801c24bf1$95216330$0200a8c0@TCS012593> From: "Abraham Backus" To: References: <20020823154437 DOT 6154 DOT h011 DOT c000 DOT wm AT mail DOT backus DOT com DOT criticalpath DOT net> <29727752142 DOT 20020825031813 AT familiehaase DOT de> Subject: Re: Xerces C++ support in cygwin Date: Sat, 24 Aug 2002 21:40:45 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Here are my exact steps.... I'm using the latest of cygwin and all the other necessary packages available via cygwin setup (make, gcc, etc.) > mkdir /cvs_projects > cd /cvs_projects > cvs -d :pserver:anoncvs AT cvs DOT apache DOT org:/home/cvspublic login > cvs -d :pserver:anoncvs AT cvs DOT apache DOT org:/home/cvspublic checkout xml-xerces/c --- takes a long while --- > cd xml-xerces/c/src/xercesc > ./runConfigure -p cygwin -c gcc -x g++ -m inmem -n socket -t native --- takes a little while --- > make --- takes a long while, and the last steps takes quite awhile and sucks up memory as it links the xerces dll --- > make install --- takes a little while --- It should work for you... a few people have added some patches (see http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6467). I even completely wiped out my cvs view and re-downloaded it via cvs checkout. Note that I've also discovered that "./runConfigure -pcygwin -cgcc -xg++" also works... the rest of the options are the same as the defaults for cygwin that are in the runConfigure script. An update on my problems with the tests and samples though: I was able to update a few files to add cygwin support for these directories, if you want to try them, download the two patch files attached to "Xerces-C++ bug #12004 Samples/Tests don't build under cygwin" (http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12004). With these patches, just do "./runConfigure -pcygwin -cgcc -xg++" in both the xml-xerces/c/tests and xml-xerces/c/samples directories. Remember that libxerces-c.dll must have been already built and installed prior to building the tests and samples. Now the tests and samples build ok, but when I try to run the tests, I get a stackdump. It appears that either gcc or cygwin has a problem with c++ exceptions being thrown from a dll. I stepped through the DOMMemTest app in gdb and it puked at about the moment where a DOMException would be thrown. I've seen some mention of this c++ exceptions problem in the cygwin mailing list archives, but don't see any solutions or further ideas about where the problem lies, although I thought I saw mention somewhere that the problem exists in other platforms besides cygwin when gcc is used. -Abe ----- Original Message ----- From: "Gerrit P. Haase" To: Sent: Saturday, August 24, 2002 6:18 PM Subject: Re: Xerces C++ support in cygwin > Hallo abraham, > > > > Getting xerces to build: > > 1) Create your cvs view of the xerces-c source tree > > (see http://xml.apache.org/cvs.html, you want > > xml-xerces, and the "c" directory of that module). > > 2) cd to the c/src/xercesc directory of the cvs view > > 3) type the following at the cygwin prompt: > >> ./runConfigure -p cygwin -c gcc -x g++ -m inmem -n > > socket -t native > > What about threads: ' -r pthread '? > > > > 4) then type "make" > > 5) after everything is finished building, type "make > > install" > > > you should now be able to use xerces in your app > > (remember to use -lxerces-c in your link, and also make > > sure that /usr/local/bin is in your windows %PATH% when > > you run your app) > > > Gerrit > -- > =^..^= > > > -- > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple > Bug reporting: http://cygwin.com/bugs.html > Documentation: http://cygwin.com/docs.html > FAQ: http://cygwin.com/faq/ > > -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/