This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Problems building ecos sources


On Wed, 2006-02-22 at 22:39 +0100, Andrew Lunn wrote:
> On Wed, Feb 22, 2006 at 04:56:09PM +0000, David Fernandez wrote:
> > On Wed, 2006-02-22 at 17:53 +0100, Andrew Lunn wrote:
> > > On Wed, Feb 22, 2006 at 04:49:42PM +0000, David Fernandez wrote:
> > > > 
> > > > 	Hi there,
> > > > 
> > > > 	I'm trying to configure and make the gcc-2.0 tarball, but gives several
> > > > warnings about compiler options not supported for C++, and finally it
> > > > stops complaining about undefined dinamic linker symbols.
> > > > 
> > > > 	I'm using gcc-4.0.2 toolchain, does it support that?
> > > > 
> > > > 	Any ideas about what could be wrong?
> > > 
> > > So you are using gcc-4.0.2 to compile gcc-2.0? Why do you want to use
> > > such an old version of gcc?
> > > 
> > >         Andrew
> > 
> > 	Ooops, I meant ecos-2.0...
> 
> I've not used the old ecos-2.0 for many years....
> 
> I just compiled anonymous cvs using gcc 4.0.3. As you said there are
> lots of warning, but it does compile.
> 
> I suggest you upgrade to annoncvs.
> 
>         Andrew

	I've downloaded this time the file ecos-trunk-full.tar.bz2 from
ecoscentric (I don't have cvs access at work, but it is supposed to be a
weekly snapshot from the CVS, right?), Extract it in /opt, made a
$HOME/ecos-build directory, gone into it, run /opt/ecos/configure
--prefix=/usr/local/ecos, run make. And this is the result:

[root@software ecos-build]# make
...
c++ -pipe -Wall -Wpointer-arith -Wbad-function-cast -Wcast-qual
-Wstrict-prototypes -Wmissing-prototypes -Wnested-externs
-Woverloaded-virtual -O0   -o ecosconfig  ecosconfig.o cdl_exec.o
build.o flags.o  -lcdl -lcyginfra -L/usr/local/ecos/lib -ltcl8.4
-L/root/ecos-build/host/libcdl -L/root/ecos-build/host/infra
/usr/local/ecos/lib/libtcl8.4.a(tclLoadDl.o)(.text+0x2a): In function
`TclpDlopen':
/usr/src/redhat/BUILD/insight-6.1/tcl/unix/../unix/tclLoadDl.c:78:
undefined reference to `dlopen'
/usr/local/ecos/lib/libtcl8.4.a(tclLoadDl.o)(.text
+0x7b):/usr/src/redhat/BUILD/insight-6.1/tcl/unix/../unix/tclLoadDl.c:88: undefined reference to `dlopen'
/usr/local/ecos/lib/libtcl8.4.a(tclLoadDl.o)(.text
+0x95):/usr/src/redhat/BUILD/insight-6.1/tcl/unix/../unix/tclLoadDl.c:93: undefined reference to `dlerror'
/usr/local/ecos/lib/libtcl8.4.a(tclLoadDl.o)(.text+0x10a): In function
`TclpFindSymbol':
/usr/src/redhat/BUILD/insight-6.1/tcl/unix/../unix/tclLoadDl.c:136:
undefined reference to `dlsym'
/usr/local/ecos/lib/libtcl8.4.a(tclLoadDl.o)(.text
+0x174):/usr/src/redhat/BUILD/insight-6.1/tcl/unix/../unix/tclLoadDl.c:142: undefined reference to `dlsym'
/usr/local/ecos/lib/libtcl8.4.a(tclLoadDl.o)(.text+0x1bb): In function
`TclpUnloadFile':
/usr/src/redhat/BUILD/insight-6.1/tcl/unix/../unix/tclLoadDl.c:179:
undefined reference to `dlclose'
collect2: ld returned 1 exit status
make[3]: *** [ecosconfig] Error 1
make[3]: Leaving directory
`/root/ecos-build/host/tools/configtool/standalone/common'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/root/ecos-build/host/tools/configtool/standalone/common'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/ecos-build/host'
make: *** [all-recursive] Error 1

	Why? (almost the same as with ecos-2.0 tarball)

David.


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]