LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 01-29-2011, 06:03 PM   #1
targz
LQ Newbie
 
Registered: Jan 2011
Posts: 3

Rep: Reputation: 0
Solaris newbie Development questions.


Hi all and here we go, sorry if this is a repeat but i lost much time while looking for usable FAQ and i'm gonna kill myself cause seems like someone spent much time to make GCC unusable in Solaris because of native SunStudio.
Ok lets see on steps right after Solaris install:
1. go and grab gcc-4.5.1-sol10-x86-local.gz on ftp.sunfreeware.com
2. then for sure also grabbed gmp-4.2.1 mpfr-2.4.0 mpc-0.8.2 cause when i try to compile sources it says about this dependencies.
3. then libgcc-3.4.6 libiconv-1.13.1 libintl-3.4.0 libpng-1.2.44 libtool-2.4 libxml2-2.7.7 glib-2.25.13 coreutils-8.9 binutils-2.21 automake-1.11.1 autoconf-2.68 make-3.82 pcre-8.12 slang-2.1.4 zlib-1.2.5 perl-5.12.2
4. GCC 4.5.1 installs to /usr/local/gcc4
5. PATH=/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/gcc4/bin
6. LD_LIBRARY_PATH=/lib:/usr/lib:/usr/local/lib:/usr/local/gcc4/lib
And afterall it still hack my brain with ./configure errors and any sources cant be compiled saying something like this:
Configuring TinTin++
checking for gcc... gcc
checking for C compiler default output file name...
configure: error: in `/home/user/Downloads/tt/src':
configure: error: C compiler cannot create executables
Log says about bugs but any Solaris, OpenSolaris, OpenIndiana got this.. where i'm lagging? or there also need some sort of linking cause SS works as intended, thx.
 
Old 01-29-2011, 06:30 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
What kind of machine is this?

What happens when you try to compile (with just gcc, no configure or make) a simple hello world program?
 
Old 01-29-2011, 06:47 PM   #3
targz
LQ Newbie
 
Registered: Jan 2011
Posts: 3

Original Poster
Rep: Reputation: 0
its x86 distros

gcc hello (gcc)
ld: fatal: file crt1.o: open failed: No such file or directory
collect2: ld returned 1 exit status

cc hello (sunstudio)
ld: fatal: file hello: unknown file type
ld: fatal: file processing errors. No output written to a.out

hello <called file>

#include <stdio.h>
int main()
{
printf("Hello, world!\n");
return 0;
}

and here some config log

gcc version 4.5.1 (GCC)
configure:2151: $? = 0
configure:2158: gcc -V >&5
gcc: '-V' option must have argument
configure:2162: $? = 1
configure:2185: checking for C compiler default output file name
configure:2207: gcc conftest.c >&5
ld.so.1: cc1: fatal: libmpfr.so.4: open failed: No such file or directory
gcc: Internal error: Killed (program cc1)
Please submit a full bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
configure:2211: $? = 1
configure:2249: result:
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2255: error: in `/home/user/Downloads/tt/src':
configure:2257: error: C compiler cannot create executables
See `config.log' for more details.

Last edited by targz; 01-29-2011 at 06:53 PM.
 
Old 01-29-2011, 08:17 PM   #4
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Looks like it's missing libmpfr.so.4. You sure you installed mpfr?
 
Old 01-30-2011, 05:44 AM   #5
targz
LQ Newbie
 
Registered: Jan 2011
Posts: 3

Original Poster
Rep: Reputation: 0
Yes libmpfr.so.4 was missing cause its not included in 2.4.0 package from sunfreeware.com. so i installed http://solaris.guengel.ch/solaris/do...-3.0.0.pkg.bz2 and now it says about AMD_3DNOW missing and seems like it compiled on amd platform.
after downgrade gcc to 4.4.2 wich dont need it
Thread model: posix
gcc version 4.4.2 (GCC)
configure:2151: $? = 0
configure:2158: gcc -V >&5
gcc: '-V' option must have argument
configure:2162: $? = 1
configure:2185: checking for C compiler default output file name
configure:2207: gcc conftest.c >&5
ld: fatal: file crt1.o: open failed: No such file or directory
collect2: ld returned 1 exit status
configure:2211: $? = 1
configure:2249: result:
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2255: error: in `/home/user/Downloads/tt/src':
configure:2257: error: C compiler cannot create executables
Seems like need some specific things like here
http://www.graffe.com/forums/showthr...s-10&p=1190889
i'll try to install "missing packages"

And i have new question %) why after installing oi-dev-148-text-x86.iso and installing same big pack MC 4.7.0.10 with all dependencies written for mc, libiconv, libintl, ligcc etc shows bugs like this: (standart OI-b148 with gnome works fine)
Attached Thumbnails
Click image for larger version

Name:	mc.png
Views:	20
Size:	65.3 KB
ID:	6001  

Last edited by targz; 01-30-2011 at 05:56 AM.
 
Old 02-03-2011, 07:03 AM   #6
xeleema
Member
 
Registered: Aug 2005
Location: D.i.t.h.o, Texas
Distribution: Slackware 13.x, rhel3/5, Solaris 8-10(sparc), HP-UX 11.x (pa-risc)
Posts: 988
Blog Entries: 4

Rep: Reputation: 254Reputation: 254Reputation: 254
Greetingz!

That's not a bug with MC, you seem to have the wrong codepage loaded.
1) "env|grep LC" should give you what the current locale is set to.
2) Look for a locale that matches the language you want to use.
3) Then "export $VARIABLE_NAME=value" before you run MC.

As for your compiler problem, do the following;
find / -type f -name "crt1.*"
This should find the object file compiled somewhere in your source tree. We need to know if GCC made it that far and is hanging when linking, or if this is something else.
"which ld"
Does this return /usr/ucb/ld or /usr/css/bin/ld? If so, you may need to re-order things in your $PATH.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
more linux development newbie questions about sbull.c eantoranz Programming 3 12-05-2010 10:41 AM
GUI Frontend Development (programming) questions animehair Linux - Software 0 12-05-2005 08:45 AM
Some development questions vbmark Programming 1 11-23-2004 12:41 PM
Couple of questions on Emacs for C++ development. digitized_funk Programming 1 11-02-2003 07:40 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 01:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration