Dear Axton:
Here is a listing of my Makefile (same as out-of-the-box), the run,
and a directory listing after the run.
Thorin
remedy75{xxremedy}57: more Makefile
#
# Parameters.
PROGRAM = driver
SOURCES = api.c get.c main.c print.c util.c
OBJECTS = api.o get.o main.o print.o util.o
# Compiler flags.
CC = cc
CFLAGS = -m32 -g -DDEBUG -D_REENTRANT -malign-double
CPPFLAGS = -I../include -I../../include
LDFLAGS = -L../lib -L../../lib
LDLIBS = -lar -lnsl -lpthread -lcurses -ldl
# Standard targets.
all: $(PROGRAM)
objects: $(OBJECTS)
$(PROGRAM): $(OBJECTS)
$(CC) -o $(PROGRAM) $(OBJECTS) $(LDFLAGS) $(LDLIBS)
clean:
$(RM) $(PROGRAM) $(OBJECTS) core
_______________________________________________________________________
remedy75{xxremedy}58: make
cc -o driver api.o get.o main.o print.o util.o -L../lib -L../../lib -lar
-lnsl -lpthread -lcurses -ldl
/usr/bin/ld: skipping incompatible ../../lib/libar.so when searching for
-lar
/usr/bin/ld: skipping incompatible ../../lib/libar.a when searching for
-lar
/usr/bin/ld: cannot find -lar
collect2: ld returned 1 exit status
make: *** [driver] Error 1
_______________________________________________________________________
remedy75{xxremedy}59: ls -l
total 1880
-rwxr-xr-x 1 xxremedy ftp 411821 Mar 10 04:03 api.c*
-rwxr-xr-x 1 xxremedy ftp 5906 Mar 10 04:03 api.h*
-rw-r--r-- 1 xxremedy ftp 314412 Aug 21 11:22 api.o
-rwxr-xr-x 1 xxremedy ftp 210747 Mar 10 04:03 get.c*
-rwxr-xr-x 1 xxremedy ftp 6902 Aug 7 15:08 get.h*
-rw-r--r-- 1 xxremedy ftp 153016 Aug 21 11:22 get.o
-rwxr-xr-x 1 xxremedy ftp 5727 Mar 10 04:03 globals.h*
-rwxr-xr-x 1 xxremedy ftp 65161 Aug 17 13:30 main.c*
-rwxr-xr-x 1 xxremedy ftp 19440 Mar 10 04:03 main.h*
-rw-r--r-- 1 xxremedy ftp 47636 Aug 21 11:22 main.o
-rwxr-xr-x 1 xxremedy ftp 509 Aug 21 11:22 Makefile*
-rwxr-xr-x 1 xxremedy ftp 282759 Mar 10 04:03 print.c*
-rwxr-xr-x 1 xxremedy ftp 7934 Mar 10 04:03 print.h*
-rw-r--r-- 1 xxremedy ftp 200340 Aug 21 11:22 print.o
-rwxr-xr-x 1 xxremedy ftp 46470 Aug 14 19:24 util.c*
-rwxr-xr-x 1 xxremedy ftp 2054 Mar 10 04:03 util.h*
-rw-r--r-- 1 xxremedy ftp 31184 Aug 21 11:22 util.o
-rw-r--r-- 1 xxremedy ftp 1674 Aug 14 19:21 wfd_shared.h
rmdy-papr02.comp.wepco.com{xxremedy}60:
________________________________
From: Axton [mailto:[email protected]]
Sent: Thursday, August 20, 2009 7:27 PM
Subject: Re: Remedy API and gcc on Redhat Linux
** I'm not sure why you would need 4.4.1. Why don't you post the
compiler/linker output and the build options.
Axton Grams
The opinions, statements, and/or suggested courses of action expressed
in this E-mail do not necessarily reflect those of BMC Software, Inc. My
voluntary participation in this forum is not intended to convey a role
as a spokesperson, liaison or public relations representative for BMC
Software, Inc.
On Thu, Aug 20, 2009 at 4:24 PM, Marty.Thorin
<[email protected]> wrote:
**
Good afternoon:
I tried to compile the out-of-the-box program 'driver'.
It compiled but would not link. When I asked BMC I was informed my copy
of gcc (3.4.6) is too old and I need to upgrade to 4.4.1.
I downloaded 4.4.1 today but it looks like I need to build the
gcc compiler!?! This is not a small task. So I figure I must have done
something wrong. Does anyone know where to download gcc 4.4.1 for
Redhat in a tar or zip file?
Thank you,
Thorin
_Platinum Sponsor: [email protected] ARSlist: "Where the
Answers Are"_
_Platinum Sponsor: [email protected] ARSlist: "Where the Answers
Are"_
_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
Platinum Sponsor:[email protected] ARSlist: "Where the Answers Are"