Re: [Quickfix-developers] Trouble compiling QuickFix on Solaris 10SPARC
Brought to you by:
orenmnero
From: Charles G. <cha...@un...> - 2009-02-04 15:20:53
|
Figured out the sequence that works (I think): ln -sf ../../src/ruby/quickfix.so $(top_builddir)/lib/ruby/quickfix.so #ln -sf ../../src/ruby/quickfix.bundle $(top_builddir)/lib/ruby/quickfix.bundle bash ./link.sh $(top_builddir)/lib/ruby quickfix.so quickfix.bundle src/ruby/quickfix.bundle does NOT exist, so that LN was causing an error. In lib/ruby, quickfix.bundle is a link to quickfix.so (created by link.sh). So I think that was the intended result. Maybe other flavors simply fail on ln and move on but Solaris was getting hung up on: #ln -sf ../../src/ruby/quickfix.bundle $(top_builddir)/lib/ruby/quickfix.bundle I have quickfix installed now and hopefully it will work just fine. Thanks. On Wed, Feb 4, 2009 at 10:04 AM, <Jon...@ub...> wrote: > On Solaris, ln gives that error if the target already exists but the > source file doesn't. > > $ mkdir tmp > $ cd tmp > $ ln -s foo bar > $ ln -s foo bar > > So the problem here: > > + ln -sf quickfix.so ../../lib/ruby/quickfix.bundle > ln: cannot create ../../lib/ruby/quickfix.bundle: File exists > > is that "../../lib/ruby/quickfix.bundle" already exists, but > "quickfix.so" doesn't. > > > > -----Original Message----- > From: Charles Gagnon [mailto:cha...@un...] > Sent: 04 February 2009 14:41 > To: Rodrick Brown > Cc: qui...@li... > Subject: Re: [Quickfix-developers] Trouble compiling QuickFix on Solaris > 10SPARC > > QuickFIX Documentation: > http://www.quickfixengine.org/quickfix/doc/html/index.html > QuickFIX Support: http://www.quickfixengine.org/services.html > > Rodrick, I love your blog... > > I checked config.log but nothing sticks out. The problem was on 'make', > not 'configure' so maybe that's why. > > I've narrowed it down to a problem in src/rudy, the Makefile has: > > all-local: > bash ./make_ruby.sh $(CXX) $(CXXFLAGS) $(LIBS) > mkdir -p $(top_builddir)/lib/ruby > ln -sf ../../src/ruby/quickfix_ruby.rb > $(top_builddir)/lib/ruby/quickfix_ruby.rb > ln -sf ../../src/ruby/quickfix_fields.rb > $(top_builddir)/lib/ruby/quickfix_fields.rb > ln -sf ../../src/ruby/quickfix40.rb > $(top_builddir)/lib/ruby/quickfix40.rb > ln -sf ../../src/ruby/quickfix41.rb > $(top_builddir)/lib/ruby/quickfix41.rb > ln -sf ../../src/ruby/quickfix42.rb > $(top_builddir)/lib/ruby/quickfix42.rb > ln -sf ../../src/ruby/quickfix43.rb > $(top_builddir)/lib/ruby/quickfix43.rb > ln -sf ../../src/ruby/quickfix44.rb > $(top_builddir)/lib/ruby/quickfix44.rb > ln -sf ../../src/ruby/quickfix.so > $(top_builddir)/lib/ruby/quickfix.so > ln -sf ../../src/ruby/quickfix.bundle > $(top_builddir)/lib/ruby/quickfix.bundle > > bash ./link.sh $(top_builddir)/lib/ruby quickfix.so > quickfix.bundle > > link.sh does this: > > + DIR=../../lib/ruby > + FILE1=quickfix.so > + FILE2=quickfix.bundle > + echo ../../lib/ruby/quickfix.so > ../../lib/ruby/quickfix.so > + '[' -e ../../lib/ruby/quickfix.so ']' > + ln -sf quickfix.so ../../lib/ruby/quickfix.bundle > ln: cannot create ../../lib/ruby/quickfix.bundle: File exists > > So the error seems to be trying to link on top on something we just > created two lines ago with another ln command. So I am thinking maybe a > name should be different somewhere or a directory. I tried removing the > two "ln -sf" before link.sh and it builds okay but by the time I run > make install, the files are no longer there. No idea what other step > removed them. > > Any ideas? > > On Tue, Feb 3, 2009 at 4:32 PM, Rodrick Brown <rod...@gm...> > wrote: >> Take a look at config.log to see where exactly the compilation or test > >> failed to get a better idea of why its failing. >> >> On Tue, Feb 3, 2009 at 4:14 PM, Charles Gagnon > <cha...@un...> wrote: >>> QuickFIX Documentation: >>> http://www.quickfixengine.org/quickfix/doc/html/index.html >>> QuickFIX Support: http://www.quickfixengine.org/services.html >>> >>> I'm having trouble compiling QuickFix 1844 on a Solaris 10 SPARC box. >>> I have no experience with QuickFix and I am just trying it out. >>> Anybody seen similar errors? >>> >>> I ran bootstrap and "./configure --with-ruby --prefix=/opt/local" >>> >>> [...] >>> mkdir -p ../../lib/ruby >>> ln -sf ../../src/ruby/quickfix_ruby.rb >>> ../../lib/ruby/quickfix_ruby.rb ln -sf >>> ../../src/ruby/quickfix_fields.rb ../../lib/ruby/quickfix_fields.rb >>> ln -sf ../../src/ruby/quickfix40.rb ../../lib/ruby/quickfix40.rb ln >>> -sf ../../src/ruby/quickfix41.rb ../../lib/ruby/quickfix41.rb ln -sf >>> ../../src/ruby/quickfix42.rb ../../lib/ruby/quickfix42.rb ln -sf >>> ../../src/ruby/quickfix43.rb ../../lib/ruby/quickfix43.rb ln -sf >>> ../../src/ruby/quickfix44.rb ../../lib/ruby/quickfix44.rb ln -sf >>> ../../src/ruby/quickfix.so ../../lib/ruby/quickfix.so ln -sf >>> ../../src/ruby/quickfix.bundle ../../lib/ruby/quickfix.bundle bash >>> ./link.sh ../../lib/ruby quickfix.so quickfix.bundle >>> ../../lib/ruby/quickfix.so >>> ln: cannot create ../../lib/ruby/quickfix.bundle: File exists >>> *** Error code 2 >>> make: Fatal error: Command failed for target `all-local' >>> Current working directory >>> /home/cgagnon/metc/src/quickfix-1844/src/ruby >>> *** Error code 1 >>> The following command caused the error: >>> set fnord $MAKEFLAGS; amf=$2; \ >>> dot_seen=no; \ >>> target=`echo all-recursive | sed s/-recursive//`; \ >>> list='C++ ruby'; for subdir in $list; do \ >>> echo "Making $target in $subdir"; \ >>> if test "$subdir" = "."; then \ >>> dot_seen=yes; \ >>> local_target="$target-am"; \ >>> else \ >>> local_target="$target"; \ >>> fi; \ >>> (cd $subdir && make $local_target) \ || case "$amf" in *=*) exit >>> 1;; *k*) fail=yes;; *) exit 1;; esac; \ done; \ if test "$dot_seen" = > >>> "no"; then \ make "$target-am" || exit 1; \ fi; test -z "$fail" >>> make: Fatal error: Command failed for target `all-recursive' >>> Current working directory /home/cgagnon/metc/src/quickfix-1844/src >>> *** Error code 1 >>> The following command caused the error: >>> set fnord $MAKEFLAGS; amf=$2; \ >>> dot_seen=no; \ >>> target=`echo all-recursive | sed s/-recursive//`; \ list='src bin >>> spec test examples CPPTest doc'; for subdir in $list; do \ echo >>> "Making $target in $subdir"; \ if test "$subdir" = "."; then \ >>> dot_seen=yes; \ >>> local_target="$target-am"; \ >>> else \ >>> local_target="$target"; \ >>> fi; \ >>> (cd $subdir && make $local_target) \ || case "$amf" in *=*) exit >>> 1;; *k*) fail=yes;; *) exit 1;; esac; \ done; \ if test "$dot_seen" = > >>> "no"; then \ make "$target-am" || exit 1; \ fi; test -z "$fail" >>> make: Fatal error: Command failed for target `all-recursive' >>> Current working directory /home/cgagnon/metc/src/quickfix-1844 >>> *** Error code 1 >>> make: Fatal error: Command failed for target `all' >>> >>> >>> -- >>> Charles Gagnon >>> http://unixrealm.com >>> charlesg at unixrealm.com >>> >>> --------------------------------------------------------------------- >>> --------- Create and Deploy Rich Internet Apps outside the browser >>> with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can >>> use existing skills and code to build responsive, highly engaging >>> applications that combine the power of local resources and data with >>> the reach of the web. Download the Adobe AIR SDK and Ajax docs to >>> start building applications today-http://p.sf.net/sfu/adobe-com >>> _______________________________________________ >>> Quickfix-developers mailing list >>> Qui...@li... >>> https://lists.sourceforge.net/lists/listinfo/quickfix-developers >>> >> >> >> >> -- >> [ Rodrick R. Brown ] >> http://www.rodrickbrown.com http://www.linkedin.com/in/rodrickbrown >> > > > > -- > Charles Gagnon > http://unixrealm.com > charlesg at unixrealm.com > > ------------------------------------------------------------------------ > ------ > Create and Deploy Rich Internet Apps outside the browser with > Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use > existing skills and code to build responsive, highly engaging > applications that combine the power of local resources and data with the > reach of the web. Download the Adobe AIR SDK and Ajax docs to start > building applications today-http://p.sf.net/sfu/adobe-com > _______________________________________________ > Quickfix-developers mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfix-developers > Visit our website at http://www.ubs.com > > This message contains confidential information and is intended only > for the individual named. If you are not the named addressee you > should not disseminate, distribute or copy this e-mail. Please > notify the sender immediately by e-mail if you have received this > e-mail by mistake and delete this e-mail from your system. > > E-mails are not encrypted and cannot be guaranteed to be secure or > error-free as information could be intercepted, corrupted, lost, > destroyed, arrive late or incomplete, or contain viruses. The sender > therefore does not accept liability for any errors or omissions in the > contents of this message which arise as a result of e-mail transmission. > If verification is required please request a hard-copy version. This > message is provided for informational purposes and should not be > construed as a solicitation or offer to buy or sell any securities > or related financial instruments. > > UBS Limited is a company registered in England & Wales under company > number 2035362, whose registered office is at 1 Finsbury Avenue, > London, EC2M 2PP, United Kingdom. > > UBS AG (London Branch) is registered as a branch of a foreign company > under number BR004507, whose registered office is at > 1 Finsbury Avenue, London, EC2M 2PP, United Kingdom. > > UBS Clearing and Execution Services Limited is a company registered > in England & Wales under company number 03123037, whose registered > office is at 1 Finsbury Avenue, London, EC2M 2PP, United Kingdom. > -- Charles Gagnon http://unixrealm.com charlesg at unixrealm.com |