LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   how to install gcc on solaris 10????? (https://www.linuxquestions.org/questions/solaris-opensolaris-20/how-to-install-gcc-on-solaris-10-a-857228/)

bathory 01-20-2011 06:12 AM

If (g)make does not finish succesfully, you cannot run (g)make install
I don't know what is the problem with libtool, but try:
Code:

gmake distclean
./configure
gmake

and see if it works

ziadh 01-20-2011 06:32 AM

Quote:

Originally Posted by bathory (Post 4231411)
If (g)make does not finish succesfully, you cannot run (g)make install
I don't know what is the problem with libtool, but try:
Code:

gmake distclean
./configure
gmake

and see if it works



bash-3.00# gmake distclean
gmake: *** No rule to make target `distclean'. Stop. i do notknow what is the problem here, i know that i have now all the files i need to edit, but the server is not running...
so i guess the install did work for the files and directories to be created, but maybe there are problems in the configuration files of the server thats why it isnt running...
i hope you have some other suggestions, and thank you for your useful helps!

bathory 01-20-2011 07:01 AM

Quote:

bash-3.00# gmake distclean
gmake: *** No rule to make target `distclean'. Stop
You should run the command from inside the sources directory (the same you ran ./configure)


Quote:

i do notknow what is the problem here, i know that i have now all the files i need to edit, but the server is not running...
so i guess the install did work for the files and directories to be created, but maybe there are problems in the configuration files of the server thats why it isnt running...
If gmake exited with errors, the software is not compiled completely, so it's normal that the server is not running
Try again to run "gmake distclean" in the sources directory and then rerun ./configure, gmake

ziadh 01-20-2011 07:08 AM

bash-3.00# cd freeradius-server-2.1.10
bash-3.00# ls
COPYRIGHT Make.inc.in acinclude.m4 config.sub dialup_admin libtool.m4 missing share
CREDITS Makefile aclocal.m4 configure doc ltmain.sh raddb src
INSTALL README autogen.sh configure.in install-sh man redhat suse
LICENSE VERSION config.guess debian libltdl mibs scripts todo
bash-3.00# gmake distclean
Makefile:10: Make.inc: No such file or directory
gmake: *** No rule to make target `Make.inc'. Stop.

ziadh 01-20-2011 07:14 AM

i deleted the folder and did a tar -xvf **FILE**
just to test on new clean copy
i couldnt run gmake distclean
so i did ./configure
the tried gmake distclean and it worked apparently

but i cant do the "make" or "gmake" command now

bash-3.00# gmake
Makefile:10: Make.inc: No such file or directory
gmake: *** No rule to make target `Make.inc'. Stop.
bash-3.00#
bash-3.00# gmake install
Makefile:10: Make.inc: No such file or directory
gmake: *** No rule to make target `Make.inc'. Stop.
bash-3.00#

bathory 01-20-2011 07:31 AM

Quote:

i deleted the folder and did a tar -xvf **FILE**
just to test on new clean copy
i couldnt run gmake distclean
so i did ./configure
the tried gmake distclean and it worked apparently

but i cant do the "make" or "gmake" command now
If you've extracted the archive again, then there is no need to run gmake distclean, as there is nothing that need to be cleaned.
Let's start from the beginning.
Delete the directory and extract again the tar.gz archive. Get into the directory created and run ./configure (maybe you should look at the output of ./configure --help to see if there are some specific options you want to enable/disable). After ./configure finishes, run gmake.
If it ends without errors, then you can run gmake install to install the software

ziadh 01-20-2011 07:43 AM

ld: fatal: relocations remain against allocatable but non-writable sections
collect2: ld returned 1 exit status
gmake[6]: *** [rlm_perl.la] Error 1
gmake[6]: Leaving directory `/home/radius/freeradius-server-2.1.10/src/modules/rlm_perl'
gmake[5]: *** [rlm_perl] Error 2
gmake[5]: Leaving directory `/home/radius/freeradius-server-2.1.10/src/modules'
gmake[4]: *** [all] Error 2
gmake[4]: Leaving directory `/home/radius/freeradius-server-2.1.10/src/modules'
gmake[3]: *** [modules] Error 2
gmake[3]: Leaving directory `/home/radius/freeradius-server-2.1.10/src'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/home/radius/freeradius-server-2.1.10/src'
gmake[1]: *** [src] Error 2
gmake[1]: Leaving directory `/home/radius/freeradius-server-2.1.10'
gmake: *** [all] Error 2


still got the same errors, im running as root, i dont understand why i get

ld: fatal: relocations remain against allocatable but non-writable sections

weird...

bathory 01-20-2011 08:03 AM

Doh, what give the following commands:
Code:

which gcc
gcc -v


ziadh 01-20-2011 08:04 AM

bash-3.00# 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)

---------- Post added 01-20-11 at 03:05 PM ----------

bash-3.00# which gcc
/usr/sfw/bin/gcc

bathory 01-20-2011 08:26 AM

I cannot tell what's wrong now with ld (and previously with libtool)
Run
Code:

gmake distclean
./configure --with--gnu-ld
gmake

and see how it goes.
I've tried to compile the same software on a sparc solaris 10 and it compiled just fine (same gcc version BTW)


All times are GMT -5. The time now is 09:39 PM.