> Hi everyone,
>
> I have a program and I need read with scanf() more
> than 256bytes (around
> 2048 bytes), but it isn't possible to do this on
> OpenSolaris or Solaris
> 8/07.
> The same program on Linux and AIX can read.
>
> The shell that I'm using is bash.
>
> Plz, do you have any idea about it !?
>
>
> cheers,
>
> TS.
> _______________________________________________
> opensolaris-help mailing list
> opensolaris-help at opensolaris.org
With out seeing the source code, you can try it for example:
# echo $PATH
/usr/sbin:/usr/bin:/usr/openwin/bin:/usr/dt/bin/usr/ucb:/usr/sfw/bin:/usr/ccs/bin:.
# uname -a
SunOS unknown 5.10 Generic_127112-06 i86pc i386 i86pc
# cat /etc/release
Solaris 10 8/07 s10x_u4wos_12b X86
Copyright 2007 Sun Microsystems, Inc. All Rights Reserved.
Use is subject to license terms.
Assembled 16 August 2007
# gcc -v
Reading specs from /usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/specs
Configured with: /builds/sfw10-gate/usr/src/cmd/gcc/gcc-3.4.3/configure
--prefix=/usr/sfw --with-as=/usr/sfw/bin/gas --with-gnu-as
--with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++
--enable-shared
Thread model: posix
gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath)
#
ALso if 64bit and you are using configure ./configure --prefix=/usr/local
ABI=64 CFLAGS="-xarch=amd64"
and set your LD_LIBRARY_PATH
and cc -xarch=amd64 if using a sun compiler instead for 64bit AMD/Intel
You can check out gcc forum at
http://www.opensolaris.org/jive/forum.jspa?forumID=8
and linker at http://www.opensolaris.org/jive/forum.jspa?forumID=63 and
compiler forum at http://www.opensolaris.org/jive/forum.jspa?forumID=208
and take a look at the porting guide
http://www.opensolaris.org/os/project/gccfss-on/porting/
This message posted from opensolaris.org