The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Problems with Last By_Jam UNIX for Advanced & Expert Users 3 09-29-2006 12:12 AM
Problems with Make frustrated1 SUN Solaris 1 07-23-2005 06:16 PM
Problems with gnu make handak9 UNIX for Advanced & Expert Users 2 10-01-2004 01:20 AM
CD-ROM Problems saucierm UNIX for Dummies Questions & Answers 5 10-23-2003 11:20 AM
problems with make kmgrady01 UNIX for Dummies Questions & Answers 2 03-22-2002 10:58 AM

Closed Thread
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-03-2001
Registered User
 

Join Date: Sep 2001
Posts: 114
'make' problems (compliation problems?)

I'm trying to compile and install both most recent version of 'make' and the
most recent version of 'openssh' on my Sparc20.

I've run into the following problems... and I don't know what they mean. Can
someone please help me resolve these issues?

I'm using the 'make' version that was included with Solaris 8.



'make(new version)' errors:
-------------
# make
make all-recursive
Making all in glob
gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -c glob.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -c fnmatch.c
rm -f libglob.a
ar cru libglob.a glob.o fnmatch.o
: libglob.a
Making all in i18n
gcc -DALIASPATH=\"/usr/local/share/locale:.\"
-DLOCALEDIR=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/lib\"
-DINCLUDEDIR=\"/usr/local/include\" -DHAVE_CONFIG_H -I. -I. -I./glob -g -O2
-c ar.c
/usr/ccs/bin/as: "/var/tmp/ccy5n06u.s", line 902: error: unknown opcode
".subsection"
/usr/ccs/bin/as: "/var/tmp/ccy5n06u.s", line 902: error: statement syntax
/usr/ccs/bin/as: "/var/tmp/ccy5n06u.s", line 910: error: unknown opcode
".previous"
/usr/ccs/bin/as: "/var/tmp/ccy5n06u.s", line 910: error: statement syntax
*** Error code 1
make: Fatal error: Command failed for target `ar.o'
Current working directory /usr/export/home/root/make-3.79.1
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
Current working directory /usr/export/home/root/make-3.79.1
*** Error code 1
make: Fatal error: Command failed for target `all-recursive-am'
---------

openssh problems:
---------
# make
(cd openbsd-compat; make)
gcc -g -O2 -Wall -Wpointer-arith -Wno-uninitialized -I. -I.. -I. -I./..
-I/usr/local/ssl/include -I/usr/local/include -DHAVE_CONFIG_H -c inet_aton.c
inet_aton.c: In function `inet_aton':
inet_aton.c:117: warning: subscript has type `char'
inet_aton.c:128: warning: subscript has type `char'
inet_aton.c:131: warning: subscript has type `char'
inet_aton.c:133: warning: subscript has type `char'
inet_aton.c:155: warning: subscript has type `char'
/usr/ccs/bin/as: "/var/tmp/cc3qpt5M.s", line 941: error: unknown opcode
".subsection"
/usr/ccs/bin/as: "/var/tmp/cc3qpt5M.s", line 941: error: statement syntax
/usr/ccs/bin/as: "/var/tmp/cc3qpt5M.s", line 949: error: unknown opcode
".previous"
/usr/ccs/bin/as: "/var/tmp/cc3qpt5M.s", line 949: error: statement syntax
*** Error code 1
make: Fatal error: Command failed for target `inet_aton.o'
Current working directory /usr/export/home/root/openssh-2.9.9p2/openbsd-compat
*** Error code 1
make: Fatal error: Command failed for target
`openbsd-compat/libopenbsd-compat.a'
--------------
Forum Sponsor
  #2 (permalink)  
Old 11-04-2001
Registered User
 

Join Date: Oct 2001
Location: nyc
Posts: 1
Lightbulb gnu-make maybe?

i dunno if this will solve your specific problem, but i do remeber some software has problems compiling with the version of make shipped with Solaris 8. according to a some README's i think installing gnu-make fix's most of these problems. www.sunfreeware.com should have binary versions available.

good luck
__________________
nothing is true, everything is
permitted
  #3 (permalink)  
Old 11-04-2001
Registered User
 

Join Date: Sep 2001
Posts: 114
thanks for the reply...

what you said is true... alot of these source packages recommend using GNU's make.

but the problem is still there after I installed the latest make build.

someone mentioned something about "as"...

I am totally new at this so please bear with me if I sound like an idiot... but are there any issues with make and the solaris version of "as"?

this is really bogging me down... 'cause I can't compile many sources...
  #4 (permalink)  
Old 11-04-2001
Registered User
 

Join Date: Nov 2001
Posts: 60
This is not a problem with make. This is a problem with the intermediate assembler code generated by the version of gcc you are using. The assembler on Solaris (/usr/ccs/bin/as) does not understand the assembler directives generated by gcc in the intermediate code. Try loading the version of gcc that came shipped with Solaris 8. It is contained on the Software Companion CD shipped with the OS media.
  #5 (permalink)  
Old 11-05-2001
Registered User
 

Join Date: Sep 2001
Posts: 114
hmmm... that makes sense...

I'll try it...

but... is there a version of AS that will work with the version of gcc I have?
  #6 (permalink)  
Old 11-05-2001
Registered User
 

Join Date: Nov 2001
Posts: 60
The version of gcc shipped with Solaris 8 is 2.95.2. Since this is a
fairly recent version, I just use this and I haven't tried another assembler. However, if you download GNU binutils from

http://www.gnu.org/software/software...wToGetSoftware

and change all references to /usr/ccs/bin/as to the path to the GNU assembler, this should work. The problem is between the Solaris assembler and gcc. Using the GNU assembler with gcc should solve the problem. However, it will take more effort to get this working and you will only gain one bug fix level by doing it. Up to you.
Google The UNIX and Linux Forums
Closed Thread

Thread Tools
Display Modes




All times are GMT -7. The time now is 12:31 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0