Tommi Mäkitalo wrote:
> Hello again,
> 
> I found gcc 3.4.3 on my solaris express. After adding /usr/sfw/bin to my PATH 
> configure found my gcc and used that. Autoconf/automake prefers gcc by 
> default. Cxxtools 1.4.6 compiles without any problems ICONV_CONST is set 
> to "const" as expected. After setting LD_LIBRARY_PATH to /usr/local/lib 
> tntnet 1.6.1 compiles and runs also with gcc.
> 
> Tommi





the paths /opt/csw/gcc4/bin/g++   are from my
  SolarisTM Express, Developer Edition

which is  basically an OpenSolaris  community  version.


<Tommi>
I found gcc 3.4.3 on my solaris express.
</Tommi>


<Morten>
gcc 3.4.3  #too old for rock'n'roll
  gcc -v
Reading specs from /opt/csw/gcc4/lib/gcc/i386-pc-solaris2.8/4.0.2/specs
Target: i386-pc-solaris2.8
Configured with: ../sources/gcc-4.0.2/configure --prefix=/opt/csw/gcc4 
--with-local-prefix=/opt/csw --with-gnu-as --with-as=/opt/csw/bin/gas 
--without-gnu-ld --with-ld=/usr/ccs/bin/ld --enable-threads=posix 
--enable-shared --enable-multilib --enable-nls --with-included-gettext 
--with-libiconv-prefix=/opt/csw --with-x --enable-java-awt=xlib 
--with-system-zlib --enable-languages=c,c++,f95,java,objc,ada
Thread model: posix
gcc version 4.0.2
</Morten>


<Morten>
bash-3.00$ g++ -v
Reading specs from /opt/csw/gcc4/lib/gcc/i386-pc-solaris2.8/4.0.2/specs
Target: i386-pc-solaris2.8
Configured with: ../sources/gcc-4.0.2/configure --prefix=/opt/csw/gcc4 
--with-local-prefix=/opt/csw --with-gnu-as --with-as=/opt/csw/bin/gas 
--without-gnu-ld --with-ld=/usr/ccs/bin/ld --enable-threads=posix 
--enable-shared --enable-multilib --enable-nls --with-included-gettext 
--with-libiconv-prefix=/opt/csw --with-x --enable-java-awt=xlib 
--with-system-zlib --enable-languages=c,c++,f95,java,objc,ada
Thread model: posix
gcc version 4.0.2
</Morten>

<Tommi>
After adding /usr/sfw/bin to my PATH
configure found my gcc and used that.
</Tommi>


<Morten>
echo $PATH
/usr/bin:/usr/openwin/bin:/usr/ucb:/opt/sfw/bin:/opt/csw/bin:/opt/csw/gcc4/bin

bash-3.00$ which  gcc
/opt/csw/gcc4/bin/gcc

bash-3.00$ which  g++
/opt/csw/gcc4/bin/g++

bash-3.00$ which  ar
no ar in /usr/bin /usr/openwin/bin /usr/ucb /opt/sfw/bin /opt/csw/bin 
/opt/csw/gcc4/bin

bash-3.00$ which  gar
/opt/csw/bin/gar


bash-3.00$ which as
/usr/bin/as

bash-3.00$ which  gas
/opt/csw/bin/gas


bash-3.00$ which ld
/usr/ucb/ld

bash-3.00$ which  gld
/opt/csw/bin/gld
</Morten>

<Tommi>
Autoconf/automake prefers gcc by default.

Cxxtools 1.4.6 compiles without any problems ICONV_CONST is set to 
"const" as expected.

After setting LD_LIBRARY_PATH to /usr/local/lib
tntnet 1.6.1 compiles and runs also with gcc.
</Tommi>

<Morten>


bash-3.00$ which automake
/opt/csw/bin/automake

bash-3.00$ automake  --version
automake (GNU automake) 1.9.6
Written by Tom Tromey <[EMAIL PROTECTED]>.


bash-3.00$ which autoconf
/opt/csw/bin/autoconf

bash-3.00$ autoconf  --version
autoconf (GNU Autoconf) 2.61
Written by David J. MacKenzie and Akim Demaille.



bash-3.00$ which gmake
/opt/csw/bin/gmake

bash-3.00$ gmake  --version
GNU Make 3.81
This program built for i386-pc-solaris2.8


bash-3.00$ which dmake
/usr/bin/dmake

bash-3.00$ dmake  --version
dmake: Sun Distributed Make 7.8 SunOS_i386 2007/05/03




bash-3.00$ cat  example_00.pl
#!/usr/bin/perl
# envrep - environment report

foreach $vn(sort keys %ENV) {
  printf "%-15.15s %-50.50s\n",
  $vn,$ENV{$vn};
  }



bash-3.00$ ./example_00.pl

AB_CARDCATALOG  /usr/dt/share/answerbooks/C/ab_cardcatalog
COLORTERM       gnome-terminal
DBUS_SESSION_BU unix:path=/tmp/dbus-PJWLQoFqhZ,guid=cb699e703881bb
DESKTOP_STARTUP
DISPLAY         :0.0
DTAPPSEARCHPATH /export/home/morten/.dt/appmanager:/usr/dt/appconf
DTDATABASESEARC /export/home/morten/.dt/types,/usr/dt/appconfig/ty
DTDEVROOT
DTHELPSEARCHPAT /export/home/morten/.dt/help/morten-solaris-devx-0
DTSCREENSAVERLI StartDtscreenSwarm StartDtscreenQix     StartDtscr
DTSOURCEPROFILE true
DTUSERSESSION   morten-solaris-devx-0
DTXSERVERLOCATI local
EDITOR          /usr/dt/bin/dtpad
GNOME_DESKTOP_S Default
GNOME_KEYRING_S /var/tmp/keyring-9oayPb/socket
GTK_RC_FILES    /etc/gtk/gtkrc:/export/home/morten/.gtkrc-1.2-gnom
G_BROKEN_FILENA yes
G_FILENAME_ENCO @locale,UTF-8
HELPPATH        /usr/openwin/lib/locale:/usr/openwin/lib/help
HOME            /export/home/morten
LANG            C
LC_ALL          C
LC_CTYPE        C
LOGNAME         morten
MAIL            /usr/mail/morten
MANPATH         /usr/dt/man:/usr/man:/usr/openwin/share/man
OLDPWD          /export/home/morten
OPENWINHOME     /usr/openwin
PATH            /usr/bin:/usr/openwin/bin:/usr/ucb:/opt/sfw/bin:/o
PWD             /export/home/morten
SDT_NO_DTDBCACH 1
SDT_NO_TOOLTALK 1
SESSIONTYPE     altDt
SESSION_MANAGER local/solaris-devx:/tmp/.ICE-unix/821,inet6/solari
SESSION_SVR     solaris-devx
SHELL           /bin/bash
SHLVL           2
SSH_AGENT_PID   826
SSH_AUTH_SOCK   /tmp/ssh-XXp6aOMb/agent.821
START_SPECKEYSD no
TERM            xterm
TZ              Europe/Berlin
USER            morten
WINDOWID        52428853
XFILESEARCHPATH /usr/openwin/lib/locale/%L/%T/%N%S:/usr/openwin/li
XMBINDDIR       /usr/dt/lib/bindings
XMICONBMSEARCHP /export/home/morten/.dt/icons/%B%M.bm:/export/home
XMICONSEARCHPAT /export/home/morten/.dt/icons/%B%M.pm:/export/home
_               ./example_00.pl
dtstart_session /dev/null




bash-3.00$ echo  $ENV

bash-3.00$ echo  $LD_LIBRARY_PATH

bash-3.00$
</Morten>


the solaris  express developer edition can easily be downloaded or 
requested
from http://opensolaris.org/os/


OpenSolaris Starter Kit
The free (no shipping or handling fees) Starter Kit includes three 
OpenSolaris distributions and step-by-step instructions on how to 
install and boot.
  » Request a DVD
  » Order Status



http://www.opensolaris.org/kits/


Additional software is available  as a companion CD  or  DVD


Solaris 10 11/06 OS Companion Software DVD downloads

     * Solaris 10 11/06 OS Companion Software DVD image download

       To download the Companion Software DVD image, click on the link 
above. Select the DVD for Solaris, either for SPARC or x64/x86 and 
follow the instructions to download the image. The Companion Software 
DVD image is located on the same page as the Solaris DVD image. The 
Companion Software DVD image contains both Sparc and x64/x86 binaries. 
Please note that you will need to use the `pkgadd` command to install 
the Companion software and the installer will no longer prompt you to 
enter the Companion DVD.

     * download Now Solaris 10 11/06 Companion Software individual 
packages download



http://www.sun.com/software/solaris/freeware/


Related Links

     * Steve Christensen's sunfreeware.com site
     * Phil's Solaris Hints -- Home of the popular pkg-get utility
     * The BigAdmin Systems Administration Portal
     * GNOME for the Solaris Operating System
     * Netscape Software for the Solaris Operating System
     * OpenOffice -- The Open Source office suite
     * SunSource.net provided by Sun's Open Source Program Office


http://sunfreeware.com/

http://sunfreeware.com/pkg-get.html

http://gridengine.sunsource.net/howto/howto.html

http://www.sun.com/software/solaris/freeware/


Dear Tommi
Please compare  all outputs.
I would prefer not do downgrade to an older gcc,

However for troubleshooting I could  fire up an old instance of
solaris 9  which has some ancient version of  g++.

I don't  believe it is  always  necessary to upgrade  gcc  or g++

if your  tntnet  cxxtools version works with the same version of
gcc 3.4.3 under linux,
then it is most unlikely due to a bug in tntnet.
or version indifference in g++.

we know  that    this is one of the errors

checking for iconv... no, consider installing GNU libiconv

it is installed.


#  pkg-get  -i    libiconv
No worries... you already have version 1.9.2 of libiconv
If you doubt this message, run 'pkg-get -U', then run
  'pkg-get upgrade libiconv'
#


the first I do after downloading  is this


  bash-3.00$ ./configure   AR=gar   CXX=g++
checking for a BSD-compatible install... ./install-sh -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for setsockopt in -lnsl... no
checking for accept in -lsocket... yes
checking for library containing dlopen... none required
checking build system type... i386-pc-solaris2.11
checking host system type... i386-pc-solaris2.11
checking for ld used by GCC... /usr/ccs/bin/ld
checking if the linker (/usr/ccs/bin/ld) is GNU ld... no
checking for shared library run path origin... /bin/bash: 
./config.rpath: No such file or directory
done
checking for iconv... no, consider installing GNU libiconv
checking for sched_yield... yes
checking whether pthreads work with -pthreads... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... -D_REENTRANT
checking for cc_r... gcc
checking for CC_r... g++
checking for a sed that does not truncate output... /opt/csw/bin/gsed
checking for grep that handles long lines and -e... /usr/xpg4/bin/grep
checking for egrep... /usr/xpg4/bin/grep -E
checking for ld used by gcc... /usr/ccs/bin/ld
checking if the linker (/usr/ccs/bin/ld) is GNU ld... no
checking for /usr/ccs/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/ccs/bin/nm -p
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for xlf... no
checking for f77... f77
checking whether we are using the GNU Fortran 77 compiler... no
checking whether f77 accepts -g... yes
checking the maximum length of command line arguments... 262144
checking command to parse /usr/ccs/bin/nm -p output from gcc object... ok
checking for objdir... .libs
checking for ar... gar
checking for ranlib... no
checking for strip... no
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/ccs/bin/ld) supports shared 
libraries... yes
checking whether -lc should be explicitly linked in... yes
checking dynamic linker characteristics... solaris2.11 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... no
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/ccs/bin/ld
checking if the linker (/usr/ccs/bin/ld) is GNU ld... no
checking whether the g++ linker (/usr/ccs/bin/ld) supports shared 
libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... no
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/ccs/bin/ld) supports shared 
libraries... yes
checking dynamic linker characteristics... solaris2.11 ld.so
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for f77 option to produce PIC... -fPIC
checking if f77 PIC flag -fPIC works... no
checking if f77 static flag -static works... no
checking if f77 supports -c -o file.o... yes
checking whether the f77 linker (/usr/ccs/bin/ld) supports shared 
libraries... yes
checking dynamic linker characteristics... f90: Warning: Option 
-print-search-dirs passed to ld, if ld is invoked, ignored otherwise
Usage: f90 [ options ] files.  Use 'f90 -flags' for details
solaris2.11 ld.so
checking how to hardcode library paths into programs... immediate
configure: loggertype is cxxtools
configure: checking inline assembler type...
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating include/Makefile
config.status: creating demo/Makefile
config.status: creating cxxtools-config
config.status: creating src/config.h
config.status: src/config.h is unchanged
config.status: creating include/cxxtools/config.h
config.status: include/cxxtools/config.h is unchanged
config.status: executing depfiles commands
bash-3.00$




Best regards

Morten


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Tntnet-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tntnet-general

Reply via email to