[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.4

Pro*C compilation uder IBM AIX OS

Asked by folvo in C Programming Language, IBM AIX Unix, Oracle Database, Unix Operating Systems

Tags: C/C++, Pro*C, Oracle, AIX

Hi,

I am trying to find reasonable solution for problem with compilation of program using pro*C.
When I am trying to compile program I am receiving following error:
gcc -lstdc++ -L/geneva_prog/DV1/dev/archive -L/oracle/product/home0/rdbms/lib -L/usr/lib -L./ -L/oracle/product/home0/sqlplus/lib -L/oracle/product/home0/ctx/lib -L/oracle/product/home0/network/lib -L/oracle/product/home0/lib -lclntsh -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE gnvprgrun.o  /geneva_prog/DV1/dev/archive/gnvlogin.a /geneva_prog/DV1/dev/archive/logs.a -o gnvprgrun
ld: 0711-317 ERROR: Undefined symbol: .sqlcxt
ld: 0711-317 ERROR: Undefined symbol: .sqlglm
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
collect2: ld returned 8 exit status
make: The error code from the last command is 1.


Stop.


Compilation is performed under IBM AIX OS.
Environment variabled are set as follow:
SHLIB_PATH=/oracle/product/home0/lib:/oracle/product/home0/lib32:/lib:/usr/lib:/usr/local/lib
LIBPATH=/oracle/product/home0/lib:/oracle/product/home0/lib32:/lib:/usr/lib:/usr/local/lib
LD_LIBRARY_PATH=/oracle/product/home0/lib:/lib:/usr/lib:/usr/local/lib

For compilation I have used following makefile:
PROC = proc
PROCFLAGS = include=$(GENEVA_HOME)/dev/include select_error=yes ltype=none def_sqlcode=yes mode=ansi code=ansi_c parse=partial
 lines=no sqlcheck=semantics select_error=no userid=geneva_admin/geneva_admin code=ansi_c

CC = gcc
CCFLAGS = -I$(GENEVA_HOME)/dev/include -I/usr/include -I$(ORACLE_HOME)/rdbms/demo -I$(ORACLE_HOME)/rdbms/public -I$(ORACLE_HOM
E)/precomp/public/ -I$(ORACLE_HOME)/network/public -g -DUSE_HEAP_STATS

CXX = gcc
CXXFLAGS = -lstdc++ -L${GENEVA_HOME}/dev/archive -L$(ORACLE_HOME)/rdbms/lib -L/usr/lib -L./ -L$(ORACLE_HOME)/sqlplus/lib -L$(ORACLE_HOME)/ctx/lib -L$(ORACLE_HOME)/network/lib -L$(ORACLE_HOME)/lib -lclntsh -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE

PCSRC = gnvprgrun.pc
SRC = $(PCSRC:.pc=.c)
OBJ = $(SRC:%.c=%.o)
LIB = $(GENEVA_HOME)/dev/archive/gnvlogin.a $(GENEVA_HOME)/dev/archive/logs.a
EXE = gnvprgrun

all: $(EXE)

clean:
        rm -f $(SRC) $(OBJ) $(EXE)

$(SRC) : $(PCSRC)
        $(PROC) $(PROCFLAGS) iname=$(PCSRC)
$(OBJ) : $(SRC)
        $(CC) $(CCFLAGS) $(SRC) -c

$(EXE) : $(OBJ)
        $(CXX) $(CXXFLAGS) $(OBJ) $(LIB) -o $(EXE)

Could be someone so kind and help me with this problem as I am not skilled in C/C++ compilation under unix IMB AIX environment.

Thank you

FOLVO
[+][-]11/07/09 04:37 PM, ID: 25768834Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zones: C Programming Language, IBM AIX Unix, Oracle Database, Unix Operating Systems
Tags: C/C++, Pro*C, Oracle, AIX
Sign Up Now!
Solution Provided By: woolmilkporc
Participating Experts: 1
Solution Grade: A
 
[+][-]11/06/09 04:23 PM, ID: 25764291Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/06/09 04:40 PM, ID: 25764370Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/06/09 05:08 PM, ID: 25764467Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/06/09 05:15 PM, ID: 25764496Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/06/09 11:25 PM, ID: 25765301Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/07/09 09:10 AM, ID: 25767102Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/07/09 10:45 AM, ID: 25767500Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/07/09 12:41 PM, ID: 25767946Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/07/09 02:28 PM, ID: 25768358Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/07/09 03:12 PM, ID: 25768527Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/07/09 03:42 PM, ID: 25768652Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/07/09 03:55 PM, ID: 25768695Administrative Comment

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]11/07/09 04:04 PM, ID: 25768735Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/07/09 05:03 PM, ID: 25768895Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/08/09 03:49 AM, ID: 25770182Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-92 - Hierarchy / EE_QW_3_20080625