Error thrown while trying to build in AIX 5.2


 
Thread Tools Search this Thread
Operating Systems AIX Error thrown while trying to build in AIX 5.2
# 1  
Old 08-08-2008
Java Error thrown while trying to build in AIX 5.2

Hi All,
Currently my project source code is compatible with HP-UX11.0 and Sun Solaris5.8. I m trying to build the source code in AIX 5.2 using gcc 4.2.2 compiler.

Can anyone suggest me after seeing the rules file, what options do i need to specify to get rid of the cb error

I m getting the below error when i run the make file :

/projects/citisafe/users/cs35/waicref/cssslcmn.c:1229: warning: incompatible implicit declaration of built-in function 'bzero'
(cb cssslcmn.i > /projects/citisafe/users/cs35/waicref/cssslcmnx.c) || (rm -f cssslcmn.i ; exit 2)
cb: 1286-000 Cannot open the input file cssslcmn.i.
make: 1254-004 The error code from the last command is 2.

The a.out exe is seen in the mak directory. The intermediate file cssslcmnx.c file is a zero byte file present in the waicref directory. The waicref directory consists files that are soft linked to the original c files present in c directory. The intermediate files build during make are present in waicref and get deleted when build is successful.

Stop.

The rules file is as below:

# Contains Rules for making .o from .c
#
INCLUDE = `[ "${APL_INC_DIR}" = "" ] && echo "" || echo "-I${APL_INC_DIR}" ` -I$(INC_DIR) -I/usr/include -I/opt/freeware/
lib/gcc/powerpc-ibm-aix5.2.0.0/4.2.2/include -I/opt/freeware/lib/gcc/powerpc-ibm-aix5.2.0.0/4.2.2/install-tools/include -I/usr
/ccs/bin
CC = gcc -shared -Wl,-G
CXX = gcc -DPROTOTYPING -pthread
LD = ld
LDFLAGS = -b -B immediate -B verbose
LIBFLAGS = -L/usr/lib -L$(LIB_DIR) -L/opt/freeware/lib/gcc/powerpc-ibm-aix5.2.0.0/4.2.2/pthread -L/opt/freeware/lib
/gcc/powerpc-ibm-aix5.2.0.0/4.2.2 -lm
ARFLAGS = -Wl,+s -Wl,-a,shared
SLFLAGS = +Z
PRECOMPFLAGS = "-m"
LIBSLFLAGS = $(LIBFLAGS) -lpthread
DBUGFLAGS = -D_TCSERVER_ $(TCODSS_DEBUG) $(TCODSS_ITDEBUG) $(CSWEB_DEBUG) -DIDL_PROTOTYPES -D_REENTRANT -D_CSAFESDB_ -D
_CSAFESSL_ -D_NONRSA_ -D_CONNPOOL_
FLAGS = -D_WCL_ $(DBUGFLAGS) \
$(INCLUDE)
LINK.c = $(CC) $(DBUGFLAGS) $(INCLUDE) $(LIBFLAGS)
LINK.cp = $(CC) $(ANSI) $(DBUGFLAGS) $(CFLAG) $(INCLUDE) $(LIBFLAGS)
LINK.cpp = $(CXX) $(ANSI) $(SLFLAGS) $(DBUG_FLAGS) $(CFLAGS)
LINKSL = $(LD) $(LDFLAGS) $(LIBFLAGS)
LINKENTSL = $(LD) $(LDFLAGS) $(LIBSLFLAGS)

# Use shared/archive libraries
AREXT = so
MATHLIBS = -lm
OTHERLIBS = -l:libcl.a
.SUFFIXES: .cp .oz
# The follwing rules are needed since the source code
# contains macros which should be expanded into multiple lines(for debugging).
# This is done by preprocessing the original file and then running 'cb' on it.
.c.o:
($(LINK.c) -P -DTCODSS_FILENAME=\"$(*F).c\" $<) || (rm -f $(*F).i; exit 1)
(cb $(*F).i > $*x.c) || (rm -f $(*F).i ; exit 2)
($(LINK.c) -c $*x.c -o $*.o) || (rm -f $(*F).i $*.o ; exit 3)
rm -f $(*F).i
([ "${TCODSS_DEBUG}" = "-g" ]) && (mv -f $*x.c $(XDBSRC_DIR)) || (rm -f $*x.c)

.c.oz:
($(LINK.c) -P -DTCODSS_FILENAME=\"$(*F).c\" $<) || (rm -f $(*F).i; exit 1)
(cb $(*F).i > $*x.c) || (rm -f $(*F).i ; exit 2)
($(LINK.c) $(SLFLAGS) -c $*x.c -o $*.oz) || (rm -f $(*F).i $*.o ; exit 3)
rm -f $(*F).i
([ "${TCODSS_DEBUG}" = "-g" ]) && (mv -f $*x.c $(XDBSRC_DIR)) || (rm -f $*x.c)
.cpp.oz:
($(LINK.cpp) $(SLFLAGS) $(CFLAGS) -c -DTCODSS_FILENAME=\"$(*F).cpp\" -o $(CPPOBJ_DIR)/$(*F).oz $<)

#
#
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

How to build a printer in AIX?

Hi , does anyone have any document related to printer build on AIX ? thanks (1 Reply)
Discussion started by: nkchand
1 Replies

2. UNIX for Dummies Questions & Answers

Adding SDK Build on Kernel Source Build

Hi, So I downloaded this kernel source and was able to build it successfully. But I want to add this SDK source code inside, can anyone help me how to do this? Note that the SDK source can be built by itself. I added the SDK in the main Makefile: init-y := init/ #added SDK... (0 Replies)
Discussion started by: h0ujun
0 Replies

3. Programming

Build Error

I am facing a problem while building the device driver code. I am using suse linux "2.6.31.5-0.1-desktop" on my Laptop. I have copied a folder containing self written device driver files from Mandriva linux to my system having Suse Linux. I copied the entire folder in "/home/netuser/sun/".... (4 Replies)
Discussion started by: rupeshkp728
4 Replies

4. Solaris

Error at ndiswrapper build

Today I tried to generate ndis Solaris driver. Problem is when I try to compile ndiswapper following instructions on opensolaris site. ndis wrapper (Community Group laptop.ndis) - XWiki My version of Solaris $ uname -a SunOS pc001 5.10 Generic_142910-17 i86pc i386 i86pc ... (0 Replies)
Discussion started by: solaris_user
0 Replies

5. UNIX for Dummies Questions & Answers

Thrown in position, need to manage AIX 5.3

Hey Everyone, First post and I'm coming here for help. Basically, the company I work for has been put in a weird situation with staff turnover. I used to manage an application on our IBM p5 running AIX 5.3, but I am now managing the whole server itself. I have no experience, no box to test... (1 Reply)
Discussion started by: pvpkife
1 Replies

6. Shell Programming and Scripting

background image not loading in newly thrown html page by shell script

I m trying to throw back html page when a file is found.While throwing back html page, the background image is not coming. I am using Apache server.Please suggest how to resolve... #!/bin/ksh echo -e "Content-type: text/html\n\n" echo "<html><head></head><body background=\"/asc/ppp.jpg\">"... (10 Replies)
Discussion started by: ravi18s
10 Replies

7. UNIX for Dummies Questions & Answers

Build Error: error: dereferencing pointer to incomplete type

I'm getting the following Error: prepare_pcap.c: In function `prepare_pkts': prepare_pcap.c:127: error: dereferencing pointer to incomplete type prepare_pcap.c:138: error: dereferencing pointer to incomplete type ==================================== This is the part of the relevant... (8 Replies)
Discussion started by: katwala
8 Replies

8. Solaris

build error

dears i working in solaris and when i type make for report it gives me the error kindly can you help me what is the reason -bash-3.00$ make BPSEXT130 make: Warning: File `BPSEXT130.rc' has modification time 12 s in the future make BPSEXT130.c make: Entering directory... (3 Replies)
Discussion started by: murad.jaber
3 Replies

9. UNIX for Dummies Questions & Answers

Mouning a Jaz drive on a DEC Alpha? (with a little Solaris thrown in)

Hi, I'm a programmer with a bit of Linux experience who's found himself thrust into the world of out of date Unix versions and hardware. I could really use some help so I can get back to doing something productive with my work days! I have been tasked with getting some information off some Jaz... (1 Reply)
Discussion started by: Bartok
1 Replies

10. Shell Programming and Scripting

syntax error thrown

I am unable to trace the syntax error reported.... can any one help? #codefor assert9419 #rchakra18jun2004 function hextodec(hexa) { result=0; lon = length(hexa); #print "long:"lon for (i = 1; i <= lon ; i++) { k = substr(hexa, lon + 1 - i, 1); #print "k:"k j=0 if (tolower(k) ==... (2 Replies)
Discussion started by: rraajjiibb
2 Replies
Login or Register to Ask a Question