'make' problems (compliation problems?)

Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users 'make' problems (compliation problems?)
# 1  
Old 11-03-2001
'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
/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
/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
/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
/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
# 2  
Old 11-04-2001
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
# 3  
Old 11-04-2001
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  
Old 11-05-2001
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  
Old 11-05-2001
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  
Old 11-05-2001
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


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.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

What are the differences between 'bash' and 'sh'

Hopefully this doesn't come off as too much of a "newbie" question or a flamebait. But I have recently begun working with a Sun Solaris box after having spent the past five years working with RedHat. From what i can tell, thing look fairly similar and the 'man' command is some help. But I've... (7 Replies)
Discussion started by: deckard
7 Replies

2. UNIX for Advanced & Expert Users

How to remove a file with a leading dash '-' in it's name?

Somehow someone created a file named '-ov' in the root directory. Given the name, the how was probably the result of some cpio command they bozo'ed. I've tried a number of different ways to get rid of it using * and ? wildcards, '\' escape patterns etc.. They all fail with " illegal option --... (3 Replies)
Discussion started by: GSalisbury
3 Replies

3. Cybersecurity

D'oh! More SSH problems

But this time it's not the implementation, it's the protocol. Check this out for a description: http://lasecwww.epfl.ch/memo_ssl.shtml There's a little more general information found in links on Slashdot's story here. Don't rush out and replace your sshd, though. This attack apparently only... (1 Reply)
Discussion started by: LivinFree
1 Replies

4. Email Antispam Techniques and Email Filtering

Procmail recipe: blocking 'unsubscribe and opt-out' messages....

Here is a crude procmail recipe that I quickly created (NOT a procmail recipe expert, btw) that has been catching lots of spam (current second after the charset_spam recipe posted earlier): :0B * .*If.you.do.not.wish.to.receive...* more_spam :0B * You.requested.to.receive.this.mailing... (0 Replies)
Discussion started by: Neo
0 Replies

5. IP Networking


Hey all, I've bought a few bits from Belkin who seem quite happy to support FreeBSD! Last time I bought a UPS from them and it's still going well :D I saw this on their website that the 16bit PCMCIA card was supported under FreeBSD: http://www.belkin.com/network/F5D5020.html I went to my... (0 Replies)
Discussion started by: WIntellect
0 Replies

6. UNIX for Dummies Questions & Answers

quoting echo 'it's friday'

echo 'it's friday' why appear the > (3 Replies)
Discussion started by: yls177
3 Replies

7. IP Networking

TCP Programming problems with 'recv'

Hey, I am learning to program a TCP server and managed to get it up and running (I am using Windows 98SE). I can use the send function to send information to the client and I can use the recv function to ask the user to pass information through, but when I do so it only allows the client to... (1 Reply)
Discussion started by: KrazyGuyPaul
1 Replies

8. Shell Programming and Scripting

Clearify what it means under 'WHAT' when hit the 'w'-command

I wonder how I shall read the result below, especially 'what' shown below. The result was shown when I entered 'w'. E.g what is TOP? What is gosh ( what does selmgr mean?)? login@ idle JCPU PCPU what 6:15am 7:04 39 39 TOP 6:34am 6:45 45 45 TOP 6:41am ... (1 Reply)
Discussion started by: Aelgen
1 Replies

9. Programming

i can't use 'make' in my computer?

I need to compile a file,but 'make' does not work.please tell me how to use it or need which tools? (3 Replies)
Discussion started by: dsun5
3 Replies

10. UNIX for Dummies Questions & Answers

How to subtract 2 hours from 'date' in shell ( /bin/sh ) script ?

I write a sh script that zip and copy to tape all files that older then 2 hours. 1. The way I choose is - touch a file with "now - 2 hours", then use fine with '! -newer' 2. Do you have any other idea to do it ? tnx. (1 Reply)
Discussion started by: yairon
1 Replies
Login or Register to Ask a Question