Hi,

I am having the same make error that Richard Hornby
reported in October.  I am running Cygwin on XP, not
Linux.  I am a graduate student who would like to
download the FlightGear source code with the hopes of
extending it to test aircraft control algorithms I
have been designing.

I followed the installation instructions to the
letter; I even cleared out Cygwin and reinstalled it
with all of the recomended options.  I was able to
build ZLIB, Metakit, PLIB, and Simgear, and the
configure script for FlightGear seems to pass, with
this message: 

Configure Summary
=================
Prefix: /usr/local
Plib PSL scripting:
  You will not be able to run scripts written in PSL
  and some advanced GUI and input features may not
  work.  Download and install the latest CVS version
  of plib if you would like to enable PSL support.
Debug messages: yes
Automake version: automake (GNU automake) 1.7.6
Using FGEnvironment
Using default multiplayer support
threads: no

When I run make, I get this (which ends with an
error):

Making all in tests
make[1]: Entering directory
`/usr/local/source/FlightGear-0.9.3/tests'
source='est-epsilon.c' object='est-epsilon.o'
libtool=no \
depfile='.deps/est-epsilon.Po'
tmpdepfile='.deps/est-epsilon.TPo' \
depmode=gcc3 /bin/bash ../depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I../src/Include     -g
-O2 -c `test -f est-epsilon.
c || echo './'`est-epsilon.c
gcc  -g -O2  -L/usr/X11R6/lib -o est-epsilon.exe 
est-epsilon.o
source='gl-info.c' object='gl-info.o' libtool=no \
depfile='.deps/gl-info.Po'
tmpdepfile='.deps/gl-info.TPo' \
depmode=gcc3 /bin/bash ../depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I../src/Include     -g
-O2 -c `test -f gl-info.c ||
 echo './'`gl-info.c
gcc  -g -O2  -L/usr/X11R6/lib -o gl-info.exe 
gl-info.o -lglut32 -lglu32 -lopeng
l32 -luser32 -lgdi32
source='test-gethostname.cxx'
object='test-gethostname.o' libtool=no \
depfile='.deps/test-gethostname.Po'
tmpdepfile='.deps/test-gethostname.TPo' \
depmode=gcc3 /bin/bash ../depcomp \
g++ -DHAVE_CONFIG_H -I. -I. -I../src/Include     -g
-O2 -c -o test-gethostname.o
 `test -f test-gethostname.cxx || echo
'./'`test-gethostname.cxx
g++  -g -O2  -L/usr/X11R6/lib -o test-gethostname.exe 
test-gethostname.o
source='test-mktime.cxx' object='test-mktime.o'
libtool=no \
depfile='.deps/test-mktime.Po'
tmpdepfile='.deps/test-mktime.TPo' \
depmode=gcc3 /bin/bash ../depcomp \
g++ -DHAVE_CONFIG_H -I. -I. -I../src/Include     -g
-O2 -c -o test-mktime.o `tes
t -f test-mktime.cxx || echo './'`test-mktime.cxx
g++  -g -O2  -L/usr/X11R6/lib -o test-mktime.exe 
test-mktime.o
source='test-text.cxx' object='test-text.o' libtool=no
\
depfile='.deps/test-text.Po'
tmpdepfile='.deps/test-text.TPo' \
depmode=gcc3 /bin/bash ../depcomp \
g++ -DHAVE_CONFIG_H -I. -I. -I../src/Include     -g
-O2 -c -o test-text.o `test
-f test-text.cxx || echo './'`test-text.cxx
g++  -g -O2  -L/usr/X11R6/lib -o test-text.exe 
test-text.o
source='test-up.cxx' object='test-up.o' libtool=no \
depfile='.deps/test-up.Po'
tmpdepfile='.deps/test-up.TPo' \
depmode=gcc3 /bin/bash ../depcomp \
g++ -DHAVE_CONFIG_H -I. -I. -I../src/Include     -g
-O2 -c -o test-up.o `test -f
 test-up.cxx || echo './'`test-up.cxx
g++  -g -O2  -L/usr/X11R6/lib -o test-up.exe 
test-up.o -lsgmath -lsgdebug -lpli
bsg -lplibul
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../../i686-pc-cygwin/bin/ld:
cannot
find -lsgmath
collect2: ld returned 1 exit status
make[1]: *** [test-up.exe] Error 1
make[1]: Leaving directory
`/usr/local/source/FlightGear-0.9.3/tests'
make: *** [all-recursive] Error 1

If anyone knows how I can fix this, I would appreciate
it.

Thanks,
Adam Cataldo

> Curt and Charu - thanks I will give it a go.  
> However, my makes of SG and
> FG were in the same hour, so I think the compiler
> version problem is
> unlikely unless different compilers are actually
> called.
> 
> I will get inside the code and see if  I can resolve
> that question, unless
> you can tell me otherwise.
> 
> Just to check - I am assuming that make clean will
> not
> prejudice my ability
> to 'cvs -z3 up -dP'  in the future, whereas dist
> clean
> will.  If this is so
> (and dist clean will) is it nonetheless something
> else
> to try?
> 
> Tks for the help - it's nice to know I'm not alone!
> 
> R
> 
> ----- Original Message -----
> From: "Curtis L. Olson" <curt at flightgear.org>
> To: "FlightGear developers discussions"
> <flightgear-devel at flightgear.org>
> Sent: Wednesday, October 29, 2003 10:16 PM
> Subject: Re: [Flightgear-devel] Re: make error -
> help
> please
> 
> 
> > This almost sounds like you may have built simgear
> (or portions of it)
> > with a different version of the compiler than you
> currently using.
> > C++ can change it's name mangling scheme across
> versions and across
> > platforms and that can generate errors similar to
> what you are
> > seeing.  It might be good to do a make clean of
> everything (including
> > plib) and work on building it from scratch.
> >
> > Regards,
> >
> > Curt.
> >
> > Charu Sharma writes:
> > > Did you try doing make clean before doing make.
> > >
> > >
> > >
> > >  --- Richard Hornby <r.f.hornby at talk21.com>
> wrote: > I
> > > took my first tentative steps into Linux in July
> > > > when I purchased SuSE8.2.
> > > > I decided to build FlightGear as a learning
> > > > experience.  Boy has it been!
> > > >
> > > > My first attempts to make FG failed with an
> odd
> make
> > > > error pointing to
> > > > SimGear - though I didn't know it at the time.
> > > > Acting on advice recieved I
> > > > found and removed the SuSE SimGear and
> installed
> > > > 0.3.3 CVS version, then
> > > > found and worked around the FG 'main.cxx'
> problem,
> > > > deleted and updated that,
> > > > then recompiled FG CSV and it worked!
> (mostly).
> This
> > > > took about three
> > > > months.
> > > >
> > > > A week later 0.9.3 was released.  I thought I
> knew
> > > > what I was doing now.
> > > >
> > > > Went back to CVS for the new source and data
> files,
> > > > got SimGear 0.3.4 and
> > > > CVS'd that, and got back to the exact same
> build
> > > > error as stopped me the
> > > > first time.  I have got both FG and SG in CVS
> > > > version, fully checked out at
> > > > the same time.  I cannot find more than one
> version
> > > > of SimGear on the
> > > > machine (though I have only looked for
> *simgear*,
> > > > not any other reference.
> > > > I have plib 1.6.0 and zlib both of which came
> with
> > > > the SuSE distro and which
> > > > I have not rechecked out.
> > > >
> > > > Here is the persistent error message.  It has
> always
> > > > and only been this
> > > > problem which has stopped the make.
> > > >
> > > > test-up.o(.text+0xc2): In function `main':
> > > > /usr/local/FlightGear/ccvs/
> > > >
> > >
>
CVSsource/FlightGear-0.9.N/source/tests/test-up.cxx:31:
> > > > undefined reference to `sgGeodToGeoc(double
> const&,
> > > > double const&, double*,
> > > > double*)'
> > > > test-up.o(.text+0x164): In function `main':
> > > >
> /usr/local/include/simgear/math/point3d.hxx:283:
> > > > undefined reference to
> > > > `sgGeodToGeoc(double const&, double const&,
> double*,
> > > > double*)'
> > > > collect2: ld returned 1 exit status
> > > > make[1]: *** [test-up] Error 1
> > > > make[1]: Leaving directory
> > > >
> > >
>
`/usr/local/FlightGear/ccvs/CVSsource/FlightGear-0.9.N/source/tests'
> > > > make: *** [all-recursive] Error 1
> > > >
> > > > Please could  I have some helpful thoughts - I
> > > > really have tried everything
> > > > which I can find or have been told!
> > > >
> > > > Tks, RH :-(
> > > >
> > > >
> > > >
> > > >
> _______________________________________________
> > > > Flightgear-devel mailing list
> > > > Flightgear-devel at flightgear.org
> > > >
> > >
>
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
> > >
> > >
>
________________________________________________________________________
> > > Yahoo! India Matrimony: Find your partner
> online.
> > > Go to http://yahoo.shaadi.com
> > >
> > > _______________________________________________
> > > Flightgear-devel mailing list
> > > Flightgear-devel at flightgear.org
> > >
>
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
> >
> > --
> > Curtis Olson   HumanFIRST Program              
> FlightGear Project
> > Twin Cities    curt 'at' me.umn.edu            
> curt
> 'at' flightgear.org
> > Minnesota      http://www.menet.umn.edu/~curt  
> http://www.flightgear.org
> >
> > _______________________________________________
> > Flightgear-devel mailing list
> > Flightgear-devel at flightgear.org
> >
>
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
> 
> 
> __________________________________
> Do you Yahoo!?
> Free Pop-Up Blocker - Get it now
> http://companion.yahoo.com/


__________________________________
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/

_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to