make command failure


 
Thread Tools Search this Thread
Operating Systems Solaris make command failure
# 1  
Old 03-01-2009
make command failure

Hi
After downloading and compiling new ntp source for Solaris 10 I used the make command on the ntp directory.
I received the following output:

bash-3.00# make
(bk version) >/dev/null 2>&1 && \
cd . && \
x=`bk -R prs -hr+ -nd:I: ChangeSet` && \
y=`cat version 2>/dev/null` || true && \
case "$x" in ''|$y) ;; *) echo $x > version ;; esac
make all-recursive
Making all in libopts
/bin/bash ../libtool --tag=CC --mode=link gcc -g -O2 -Wall -Wcast-qual -Wmissing-prototypes -Wpointer-arith -Wshadow -Wstrict-prototypes -L/usr/sfw/lib -R/usr/sfw/lib -o libopts.la -version-info 29:0:4 libopts_la-libopts.lo -lkvm -lelf -lxnet -lsocket -lrt -lmd5 -lnsl -lgen
libtool: link: warning: `-version-info/-version-number' is ignored for convenience libraries
false cru .libs/libopts.a libopts_la-libopts.o
*** Error code 1
make: Fatal error: Command failed for target `libopts.la'
Current working directory /opt/ntp-4.2.4p6/libopts
*** Error code 1
The following command caused the error:
failcom='exit 1'; \
for f in x $MAKEFLAGS; do \
case $f in \
*=* | --[!k]*);; \
*k*) failcom='fail=yes';; \
esac; \
done; \
dot_seen=no; \
target=`echo all-recursive | sed s/-recursive//`; \
list='libopts scripts include ElectricFence libntp libparse ntpd ntpdate ntpdc ntpq parseutil adjtimed clockstuff kernel sntp util '; for subdir in $list; do \
echo "Making $target in $subdir"; \
if test "$subdir" = "."; then \
dot_seen=yes; \
local_target="$target-am"; \
else \
local_target="$target"; \
fi; \
(cd $subdir && make $local_target) \
|| eval $failcom; \
done; \
if test "$dot_seen" = "no"; then \
make "$target-am" || exit 1; \
fi; test -z "$fail"
make: Fatal error: Command failed for target `all-recursive'
Current working directory /opt/ntp-4.2.4p6
*** Error code 1
make: Fatal error: Command failed for target `all'
bash-3.00# make: Fatal error: Command failed for target `all-recursive'

Does anyone know what to do ?

Thanks
Shai
# 2  
Old 03-01-2009
try using GNU make. download at sunfreeware.com and make sure the GNU make path is before /usr/ccs/bin/make in $PATH. obviously run `which make` so that you can verify which make is being used.
# 3  
Old 03-02-2009
There should be gmake installed already in /usr/sfw/bin.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

How to make df command?

in RHEL 6.10, how can we make the the df -k return the output without wrapping. And wihout using the df -Pk option. After we patched a Linux server from 6.5 to 6.10: The df -k on RHAT 6.10 it wraps the line for ex: 6.10: /dev/mapper/vgapp01-vendor ... (2 Replies)
Discussion started by: mrn6430
2 Replies

2. Homework & Coursework Questions

Utilizing the Make Command

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: ]Compile cpp2html.c to produce cpp2html.o. ( Important: the source code in these files is C, not C++, and so... (1 Reply)
Discussion started by: bgnaranjo1
1 Replies

3. UNIX for Dummies Questions & Answers

boot up failure unix sco after power failure

hi power went out. next day unix sco wont boot up error code 303. any help appreciated as we are clueless. (11 Replies)
Discussion started by: fredthayer
11 Replies

4. Homework & Coursework Questions

Using the Make command

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: File hello.h #include <stdio.h> File main.c #include "hello.h" main() { printhello(); ... (4 Replies)
Discussion started by: lilbo4231
4 Replies

5. Solaris

how to make all of this in one command

dears what i need to make is cp -irp file_name filename tar cvf filename.tar filename gzip filename.tar in one commane using exec it that prossible and how can i do that (4 Replies)
Discussion started by: xxmasrawy
4 Replies

6. UNIX and Linux Applications

How to automatically detect command failure

I have a shell script. In this script I executes various command and my requirement is such that if any command fails I've to terminate the shell script. To achieve this objective I'm checking the value of $? after each command and if its value is greater thaen I 'exit' the script. Is there... (2 Replies)
Discussion started by: ashok2008
2 Replies

7. Shell Programming and Scripting

copy command failure

A cp command failure occured on our production system. A shell script copies a source file to a temporary directory - cp <source file on mount point 1> <dest path on mount point 2> The same script ran successfully for another file, about 3mins after the failure. The script did not have a... (1 Reply)
Discussion started by: mynix
1 Replies

8. UNIX for Dummies Questions & Answers

make command

hi i tried to search for the "make" command but to no avail. this is what happens: when i try to type the "make" command, it prompt me the error " csh:make:not found ***error code 1 make:Fatal error: command fail for target 'all' " i have just freshly install solaris 9 on my server.... (8 Replies)
Discussion started by: legato
8 Replies

9. UNIX for Dummies Questions & Answers

failure of at command

This is my first posting. I am not a very sophisticated UNIX user. I am trying to have an existing control string trigger another process at 4:00 p.m. My command looks like this on System V.4 UNIX. at -f /scriptname 16:00 I have added the users to /etc/cron.d/at.allow and at.deny is... (5 Replies)
Discussion started by: DKuester
5 Replies

10. UNIX for Dummies Questions & Answers

make command

Dear Guys , Kindly note that i have sun solaries 8 intel machine . i installed apache and it is working fine . i am installing perl5 , MD5 and CGI . but whenever i execute the commands , make , make test and make install i get error message : not found # make make: not found also i... (2 Replies)
Discussion started by: tamemi
2 Replies
Login or Register to Ask a Question