Current Issue


Table of contents

CD-ROM

Sys Admin and The Perl Journal CD-ROM version 12.0

Version 12.0 delivers every issue of Sys Admin from 1992 through 2006 and every
issue of The Perl Journal from 1996-2002 in one convenient CD-ROM!

Order now!

Sys Admin Magazine > Archives > 2005 > June 2005

Questions and Answers

Amy Rich

Q I'm trying to compile aspell 0.60.2 on a Solaris 8 machine with gcc 2.95.3. The configure and build processes seem to go fine until this line:

g++ -shared -nostdlib  <lots of object files>  -ldl    \
  -L/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3 \
  -L/usr/ccs/lib -L/usr/local/lib -lstdc++ -lm -lgcc   \
  /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3/crtend.o \
  /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3/crtn.o   \
  -Wl,-h -Wl,libaspell.so.15 -o .libs/libaspell.so.15.1.2
When the operation tries to link here, it spits out pages and pages of errors that look similar to the following:

Text relocation remains            referenced
  against symbol         offset    in file
<unknown>                0xac8     /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/ \
                                   2.95.3/libstdc++.a(iovfscanf.o)
<unknown>                0x584     /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/ \
                                   2.95.3/libstdc++.a(outfloat.o)
<unknown>                0x1bc4    /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/ \
                                   2.95.3/libstdc++.a(floatconv.o)
__udiv64                 0x1044    /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/ \
                                   2.95.3/libstdc++.a(iostream.o)
Presumably I'm missing a library directory or something like that. The error output doesn't even list the symbol it's missing in the first few pages (although it does for later ones), so I'm not certain how I should track each of them down. Any hints on where I should start?

A Your problem is that your libstdc++ was not built as a shared library. Whenever you try to compile something shared, it will fail quite verbosely.




MarketPlace

Build IT Knowledge with Current & Trusted Content
Helps Employees Develop & Hone New Technical Programming Skills. Sign Up & Get Full Access.

Six Sigma Certification
100% Online-Six Sigma Certificate from Villanova - Find Out More Now.

Workflow Enabled Help Desk & IT Service Management
Automate service desk activities and integrate processes across IT. Learn more here.

Flowcharts from C/C++ code -- Free trial download
Understand C/C++ code in less time. A new team member ? Inherited legacy code ? Get up to speed faster with Crystal Flow for C/C++. Code-formatting improves readability. Flowcharts are integrated with code browser. Export flowcharts to Visio.

Wanna see your ad here?