Thread: [Quickfix-developers] Compile Errors on Debian unstable
Brought to you by:
orenmnero
From: Paul C. <pau...@op...> - 2008-07-28 21:19:07
|
Hi: I am not able to compíle 1.12.4 nor the cvs version, using Debian unstable fully updated to last week. I believe the compilers are gcc-4.3.1-2 and g++-4.3.1-2, although I have older versions of gcc/g++ installed. I do not have sstream but it is my understanding that I don´t need it. I am barely getting anywhere in the compilation, with the error: strcpy is not a member of std occurring in src/tests/TestDeferredTestReporter.cpp basically right out of the gates. The QuickFIX documentation doesn´t mention anything about compiler versions. Can anyone give me some guidance here? Thanks, Paul Check |
From: Paul C. <pau...@op...> - 2008-07-28 22:58:16
|
Hi: I am not able to compíle 1.12.4 nor the cvs version, using Debian unstable fully updated to last week. I believe the compilers are gcc-4.3.1-2 and g++-4.3.1-2, although I have older versions of gcc/g++ installed. My machine is a Xeon SMP. I am barely getting anywhere in the compilation, with the error: "strcpy is not a member of std" occurring in src/tests/TestDeferredTestReporter.cpp The QuickFIX documentation doesn´t mention anything about compiler versions. Can anyone give me some guidance here? Thanks, Paul Check |
From: Balwinder S D. <bdh...@gm...> - 2008-08-04 16:55:03
|
On 07/29/2008 02:49 AM, Paul Check wrote: > Hi: I am not able to compíle 1.12.4 nor the cvs version, using Debian > unstable fully updated to last week. I believe the compilers are > gcc-4.3.1-2 and g++-4.3.1-2, although I have older versions of gcc/g++ > installed. I do not have sstream but it is my understanding that I don´t > need it. > > I am barely getting anywhere in the compilation, with the error: > > strcpy is not a member of std > > occurring in src/tests/TestDeferredTestReporter.cpp > > basically right out of the gates. > > The QuickFIX documentation doesn´t mention anything about compiler versions. > > Can anyone give me some guidance here? > Most the issues and, or your concerns are related GCC 4.3, hence either you apply the http://cto.homelinux.net/pub/patches/quickfix/quickfix-1.12.4-svn-1.patch.gz patch against the latest SVN head (1999) or get a latest snapshot of my working copy from http://cto.homelinux.net/git?p=quickfix.git;a=snapshot;h=cf4d8d157ea81f98ddafde4d2538cf185fa26a7e;sf=tgz The later one i.e. my working copy, contains many more autotools/automake build systems enhancements. Hope that helps, -- Dr Balwinder S "bsd" Dheeman Registered Linux User: #229709 Anu'z Linux@HOME (Unix Shoppe) Machines: #168573, 170593, 259192 Chandigarh, UT, 160062, India Gentoo, Fedora, Debian/FreeBSD/XP Home: http://cto.homelinux.net/~bsd/ Visit: http://counter.li.org/ |
From: Paul C. <pa...@op...> - 2008-08-04 23:06:12
|
> QuickFIX Documentation: > http://www.quickfixengine.org/quickfix/doc/html/index.html > QuickFIX Support: http://www.quickfixengine.org/services.html > > On 07/29/2008 02:49 AM, Paul Check wrote: >> Hi: I am not able to compíle 1.12.4 nor the cvs version, using Debian >> unstable fully updated to last week. I believe the compilers are >> gcc-4.3.1-2 and g++-4.3.1-2, although I have older versions of gcc/g++ >> installed. I do not have sstream but it is my understanding that I don´t >> need it. >> >> I am barely getting anywhere in the compilation, with the error: >> >> strcpy is not a member of std >> >> occurring in src/tests/TestDeferredTestReporter.cpp >> >> basically right out of the gates. >> >> The QuickFIX documentation doesn´t mention anything about compiler >> versions. >> >> Can anyone give me some guidance here? >> > > Most the issues and, or your concerns are related GCC 4.3, hence either > you apply the > http://cto.homelinux.net/pub/patches/quickfix/quickfix-1.12.4-svn-1.patch.gz > patch against the latest SVN head (1999) or get a latest snapshot of my > working copy from > http://cto.homelinux.net/git?p=quickfix.git;a=snapshot;h=cf4d8d157ea81f98ddafde4d2538cf185fa26a7e;sf=tgz > > The later one i.e. my working copy, contains many more > autotools/automake build systems enhancements. > > Hope that helps, Indeed, I was able to compile your snapshot using gcc/++ 4.3 and the python 2.5 headers, with mysql, python and ruby config options. Very nice. I am still having one problem that is showing up in all versions of quickfix that I am trying. When I try the --with-java option my compile is getting stuck on the "Building jar....quickfix.jar" line, with a java process running. The java process seems to just hang. If I go to src/java and do "ant jar" it will build the quickfix.jar in 5 seconds. I take it there is something wrong with my system, but I cannot nail it down. Any ideas anyone? Regards, Paul |
From: Balwinder S D. <bdh...@gm...> - 2008-08-05 05:19:45
|
On 08/05/2008 04:36 AM, Paul Check wrote: >> Hope that helps, >> > > Indeed, I was able to compile your snapshot using gcc/++ 4.3 and the > python 2.5 headers, with mysql, python and ruby config options. Very nice. > > I am still having one problem that is showing up in all versions of > quickfix that I am trying. When I try the --with-java option my compile is > getting stuck on the "Building jar....quickfix.jar" line, with a java > process running. The java process seems to just hang. If I go to src/java > and do "ant jar" it will build the quickfix.jar in 5 seconds. I take it > there is something wrong with my system, but I cannot nail it down. Any > ideas anyone Not sure, but may be that you have an older/faster *ant-gcj* installed in the path, likewise a fastjar (jar-gcj) also; you may check it by issuing any of the following: ant -version dpkg -l |grep ant jar --version After installing and testing 'ant' (ant-gcj) and fastjar, I have tuned the requisite java build.sh scripts. Please check out the commitdiff http://cto.homelinux.net/git?p=quickfix.git;a=commitdiff;h=8dd40e8024d64137d949fd6864af2bba9509e9a2 Cheers, -- Dr Balwinder S "bsd" Dheeman Registered Linux User: #229709 Anu'z Linux@HOME (Unix Shoppe) Machines: #168573, 170593, 259192 Chandigarh, UT, 160062, India Gentoo, Fedora, Debian/FreeBSD/XP Home: http://cto.homelinux.net/~bsd/ Visit: http://counter.li.org/ |
From: Paul C. <pau...@op...> - 2008-08-06 16:57:48
|
On Tuesday 05 August 2008 01:19:34 Balwinder S Dheeman wrote: > QuickFIX Documentation: > http://www.quickfixengine.org/quickfix/doc/html/index.html QuickFIX > Support: http://www.quickfixengine.org/services.html > > On 08/05/2008 04:36 AM, Paul Check wrote: > >> Hope that helps, > > > > Indeed, I was able to compile your snapshot using gcc/++ 4.3 and the > > python 2.5 headers, with mysql, python and ruby config options. Very > > nice. > > > > I am still having one problem that is showing up in all versions of > > quickfix that I am trying. When I try the --with-java option my compile > > is getting stuck on the "Building jar....quickfix.jar" line, with a java > > process running. The java process seems to just hang. If I go to > > src/java and do "ant jar" it will build the quickfix.jar in 5 seconds. I > > take it there is something wrong with my system, but I cannot nail it > > down. Any ideas anyone > > Not sure, but may be that you have an older/faster *ant-gcj* installed > in the path, likewise a fastjar (jar-gcj) also; you may check it by > issuing any of the following: > > ant -version > dpkg -l |grep ant > jar --version > > After installing and testing 'ant' (ant-gcj) and fastjar, I have tuned > the requisite java build.sh scripts. Please check out the commitdiff > http://cto.homelinux.net/git?p=quickfix.git;a=commitdiff;h=8dd40e8024d64137 >d949fd6864af2bba9509e9a2 I don´t think that was the problem given that the process was hanging for an hour. But, I took your suggestion and just replaced the java call with an ant call in the build.sh scripts. Also, I deleted all my older java versions as well as ant-gcj, but left fastjar installed. By the way, there is a build.sh in the src directory. I believe your patch missed that one? So there should be four in total. At first I thought your patch wasn´t working, but after patching manually realized there was the additional build.sh . Regards, Paul |
From: Balwinder S D. <bdh...@gm...> - 2008-08-06 21:56:54
|
On 08/06/2008 10:26 PM, Paul Check wrote: > I don´t think that was the problem given that the process was hanging for an > hour. But, I took your suggestion and just replaced the java call with an > ant call in the build.sh scripts. Also, I deleted all my older java versions > as well as ant-gcj, but left fastjar installed. > > By the way, there is a build.sh in the src directory. I believe your patch > missed that one? So there should be four in total. At first I thought your > patch wasn´t working, but after patching manually realized there was the > additional build.sh . Regards, Paul > You're right, I somehow missed to update src/build.sh and add src/C++/link.sh scripts. I have committed the updated versions of the same to git repository; thanks -- Dr Balwinder S "bsd" Dheeman Registered Linux User: #229709 Anu'z Linux@HOME (Unix Shoppe) Machines: #168573, 170593, 259192 Chandigarh, UT, 160062, India Gentoo, Fedora, Debian/FreeBSD/XP Home: http://cto.homelinux.net/~bsd/ Visit: http://counter.li.org/ |
From: Paul C. <pa...@op...> - 2008-08-06 23:47:49
|
> QuickFIX Documentation: > http://www.quickfixengine.org/quickfix/doc/html/index.html > QuickFIX Support: http://www.quickfixengine.org/services.html > > On 08/06/2008 10:26 PM, Paul Check wrote: >> I don´t think that was the problem given that the process was hanging >> for an >> hour. But, I took your suggestion and just replaced the java call with >> an >> ant call in the build.sh scripts. Also, I deleted all my older java >> versions >> as well as ant-gcj, but left fastjar installed. >> >> By the way, there is a build.sh in the src directory. I believe your >> patch >> missed that one? So there should be four in total. At first I thought >> your >> patch wasn´t working, but after patching manually realized there was the >> additional build.sh . Regards, Paul >> > > You're right, I somehow missed to update src/build.sh and add > src/C++/link.sh scripts. I have committed the updated versions of the > same to git repository; thanks No problem. I am still uncertain as to exactly what my original problem was, but the "ant" compile works. I am not much of an expert in java/ant, but is there no problem with compatability? Does the JAVA_HOME variable still get used? I understand ant is just a make-like utility...but if you´re just calling ant without any reference to the specific version of java you want to use, will it just use the defaults on the system or does it automatically use JAVA_HOME? A second question: In the original build.sh program there is a reference to classpath that is used in the java call. Is this not necessary with ant because the relevant classes are referenced in the build.xml file? Regards, Paul |
From: Balwinder S D. <bdh...@gm...> - 2008-08-06 23:40:13
|
On 08/07/2008 03:38 AM, Shane Trotter wrote: > Out of curiosity are the updates you keep track of in git being merged > into the main QuickFIX repository? That's none of my business; only owners, developers and, or administrators of the QuickFIX project have that prerogative to accept and, or merge such changes. But the users need not worry, because I'm making the all that work publically available for everyone to download, test, evaluate and, or use as per terms and, or license of the original project. Since, I'm a newbie to FIX and QuickFIX as such, so I shall not be making any major changes in the existing code until I get a complete grasp of the whole thing along with nod for go from the original developers. After checking out the sources from upstream SVN repository a few days ago, I attempted try build the same on both the Debian/testing (GCC 4.3) and FreeBSD 8.0-CURRENT (GCC 4.2) machines and needed to add a few missing headers to make it work. No doubt, the Autoconf, Automake and Libtool are packages for making your software more portable and to simplify building it -- usually on someone else's system, but seems the current QuickFIX team is somewhat more inclined towards most popular (though not suitable for such services, where system clock drift, automatic updates and, or restarts suck a lot) operating system or may be they don't have enough of the developers, testers and, or users from real world and, or much more mature environments. I'm writing this, because I found that the current QuickFIX configure/automake files needed a heavy overhaul, and that's what I was trying to accomplish. A new machine is on its way this week, so I shall try making it (the QuickFIX) build under the Windows MinG32/MSYS and mono environments as well. Thanks, Regards, -- Dr Balwinder S "bsd" Dheeman Registered Linux User: #229709 Anu'z Linux@HOME (Unix Shoppe) Machines: #168573, 170593, 259192 Chandigarh, UT, 160062, India Gentoo, Fedora, Debian/FreeBSD/XP Home: http://cto.homelinux.net/~bsd/ Visit: http://counter.li.org/ |