Sponsored Content
Top Forums Programming Error while running C++ make file Post 302137694 by hram on Wednesday 26th of September 2007 10:32:58 AM
Old 09-26-2007
Error while running C++ make file

The problem is that the original program was compiled using v5.0 MQ client but now we are using MQ client v5.3. Had modified the "make file" options as follows but still i could see the errors.
#CLIENT_V5_LIBS = -limqb23ss -limqc23ss -lmqic -lmqmcs -lnsl -ldl
CLIENT_V5.3_LIBS = -limqb23as -limqc23as -lmqic -lmqmcs -lmqmzse -lsocket -lnsl -ldl

sldn0989dap> echo $path
/usr/bin /bin /usr/sbin /usr/etc /usr/ucb /usr/ccs/bin /usr/atria/bin /usr/openwin/bin /run/bin /sbcimp/run/tp/sybase/OpenClientServer/prod/bin /sbcimp/run/tp/sybase/OpenClientServer/prod/bin . /usr/lib /sbcimp/run/tp/sun/SUNWspro/v11/prod/bin /sbcimp/run/tp/IBM/MQSeries/v5.0/lib /opt/mqm/inc /sbcimp/run/tp/IBM/MQSeries/prod/lib /sbcimp/run/tp/IBM/MQSeries/prod /opt/mqm/lib
sldn0989dap>


sldn0989dap>
sldn0989dap> set LD_LIBRARY_PATH=/opt/mqm/lib
sldn0989dap>



sldn0989dap> !make
make -f Makefile_new
if [ ! -f mqSwift.hpp ]; then sccs get -s mqSwift.hpp -G mqSwift.hpp;fi;
if [ ! -f mqUtils.hpp ]; then sccs get -s mqUtils.hpp -G mqUtils.hpp;fi;
if [ ! -f mqTypes.hpp ]; then sccs get -s mqTypes.hpp -G mqTypes.hpp;fi;
if [ ! -f mqError.hpp ]; then sccs get -s mqError.hpp -G mqError.hpp;fi;
CC -mt -o bearAib2Mq bearAib2Mq.cpp mqUtils.o -I/sbcimp/run/tp/IBM/MQSeries/prod/inc -L/sbcimp/run/tp/IBM/MQSeries/prod/lib -limqb23as -limqc23as -lmqic -lmqmcs -lmqmzse -lsocket -lnsl -ldl -DSET_NEW_IDS -DNO_SWIFT_EOF -DALLOW_HEX_COUNT
"bearAib2Mq.cpp", line 140: Warning (Anachronism): Formal argument 2 of type extern "C" void(*)(int) in call to std::signal(int, extern "C" void(*)(int)) is being passed void(*)(int).
"bearAib2Mq.cpp", line 141: Warning (Anachronism): Formal argument 2 of type extern "C" void(*)(int) in call to std::signal(int, extern "C" void(*)(int)) is being passed void(*)(int).
"bearAib2Mq.cpp", line 142: Warning (Anachronism): Formal argument 2 of type extern "C" void(*)(int) in call to std::signal(int, extern "C" void(*)(int)) is being passed void(*)(int).
3 Warning(s) detected.
Undefined first referenced
symbol in file
xtr_FNC_retcode /lib/libimqb23as.so
xihProcessBlockIsInitialized /lib/libimqb23as.so
xihThreadKey /lib/libimqb23as.so
ld: fatal: Symbol referencing errors. No output written to bearAib2Mq
*** Error code 1
make: Fatal error: Command failed for target `bearAib2Mq'
sldn0989dap>

Can anybody pls help with the above symbol referencing errors.

Thanks.
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Error when running the make command

Hi, Not really sure whether this question should go to this forum but am giving it a shot. I have compiled a simple C program test.c. #include <stdio.h> #include <stdlib.h> #include <string.h> static int a; int test() { a=a+1; return a; } When I run a make command, I get this: ... (2 Replies)
Discussion started by: nattynatty
2 Replies

2. Shell Programming and Scripting

how to make percentage of a running script?

dear friends, does anyone know how to make the percentage of proccess of a running script? :confused: like we always see in windows, when we install a program, there is always an indicator using percent value (from 0% to 100%) i need this for my time consuming script thanks before (1 Reply)
Discussion started by: jimmbp
1 Replies

3. Programming

Error when running make

Hi , I get the following error when i run the make command. cc -Aa -DUNIX -osrcmpmn srcmpmn.c crt0: ERROR couldn't open /usr/lib/dld.sl errno:000000014 *** Error exit code 14 here the file is C program which has been modified. Please help. (1 Reply)
Discussion started by: shashidhara_01
1 Replies

4. Solaris

Gani Network Driver Won't Install - make: Fatal error: Don't know how to make targ...

I attached a README file that I will refer to. I successfully completed everything in the README file until step 4. # pwd /gani/gani-2.4.4 # ls COPYING Makefile.macros gem.c Makefile Makefile.sparc_gcc gem.h Makefile.amd64_gcc ... (1 Reply)
Discussion started by: Bradj47
1 Replies

5. Programming

Error with Make File

Hi All, I am using GNU Make and i have a peculiar kind of error, i am not able to understand, Firstly have a look at the make file used by me CFLAGS=-c -Wall CC=gcc .PHONY:clean OBJ=./obj SRC=./src INC=./inc exec: $(OBJ)/*.o $(CC) $^ -o $@ %.o: $(SRC)/*.c $(CC) $(CFLAGS)... (1 Reply)
Discussion started by: niranjanvg
1 Replies

6. Shell Programming and Scripting

Make file error

I am new to using make command and I keep getting this error time and again please help me Make file is as follows #ARCH := $(shell uname)# # ifeq ($(ARCH), SunOS) DEFINES = -KPIC -DSVR4 -DSOLARIS -DSYSV -D__svr4 -D__svr4__\ -D_REENTRANT -DSOLARIS2_5 -D_SVID_GETTOD -DXP_UNIX -UDEBUG... (1 Reply)
Discussion started by: c.operatingsys
1 Replies

7. Shell Programming and Scripting

how to make my own file as a running log file in bash

Hi, I have written a small script from that iam appending the output to a file.If multiple users invoke the same script or if i invoke the same script n number of times (using &), the output file(ZZ/OUT) contains messup information. #!/bin/bash # echo "Hello" >> /tmp/ZZ/OUT sleep 10 echo... (4 Replies)
Discussion started by: blrguest
4 Replies

8. Linux

Error when using make file.

hello, i want to execute hello world using cross compiler ppc_4xx-gcc. i have this makefile: CC= $(shell which ppc_4xx-gcc) #CC=g++ CXXFLAGS=-cpp -Wall LDFLAGS= SOURCES=main.cpp hello.h OBJECTS=$(SOURCES:.cpp=.o) EXECUTABLE=hello all: $(SOURCES)... (5 Replies)
Discussion started by: walidaydi
5 Replies

9. Shell Programming and Scripting

error while executing make file

hi i am facing a strange error... whenever i try to execute make file it gives the following error bash-3.00$ make usa0300uz1128 sh: syntax error at line 1: `end of file' unexpected mksh: Fatal error: The command `if ; then echo "${COMMON}/src/rules/rules_11.2.0.3.2012Q3"; elif... (1 Reply)
Discussion started by: aishsimplesweet
1 Replies

10. Shell Programming and Scripting

Make a job always running.

Hi All, i want to make a job as always running job so that whenever it recieve a input file the job should process the file. Please help me with this. (3 Replies)
Discussion started by: mahesh300182
3 Replies
GEARMAN_CLIENT_SET_EXCEPTION_FN(3)				     Gearmand					GEARMAN_CLIENT_SET_EXCEPTION_FN(3)

NAME
gearman_client_set_exception_fn - Gearmand Documentation, http://gearman.info/ SYNOPSIS
#include <libgearman/gearman.h> gearman_actions_t gearman_workload_fn gearman_created_fn gearman_data_fn gearman_warning_fn gearman_universal_status_fn gearman_exception_fn gearman_fail_fn gearman_complete_fn void gearman_client_set_workload_fn(gearman_client_st *client, gearman_workload_fn *function) void gearman_client_set_created_fn(gearman_client_st *client, gearman_created_fn *function) void gearman_client_set_data_fn(gearman_client_st *client, gearman_data_fn *function) void gearman_client_set_warning_fn(gearman_client_st *client, gearman_warning_fn *function) void gearman_client_set_status_fn(gearman_client_st *client, gearman_universal_status_fn *function) void gearman_client_set_complete_fn(gearman_client_st *client, gearman_complete_fn *function) void gearman_client_set_exception_fn(gearman_client_st *client, gearman_exception_fn *function) void gearman_client_set_fail_fn(gearman_client_st *client, gearman_fail_fn *function) void gearman_client_clear_fn(gearman_client_st *client) const char *gearman_client_do_job_handle(gearman_client_st *client) Link to -lgearman DESCRIPTION
Callbacks for client execution task states. gearman_client_set_data_fn() sets the callback function that will be called if server is to make a request to the client to provide more data. gearman_client_do_job_handle() gest the job handle for the running task. This should be used between repeated gearman_client_do() (and related) calls to get information. gearman_client_clear_fn() can be called to remove all existing gearman_actions_t that have been set. gearman_client_set_created_fn(), gearman_client_set_data_fn(), gearman_client_set_warning_fn(), gearman_client_set_status_fn(), gearman_client_set_complete_fn(), gearman_client_set_exception_fn(), and gearman_client_set_fail_fn(), set callback functions for the dif- ferent states of execution for a client request. Each request, ie a creation of gearman_task_st, keeps a copy of callbacks when it is cre- ated. RETURN VALUE
None See also gearmand(8) libgearman(3) gearman_client_error(3) or gearman_worker_error(3) AUTHOR
Data Differential http://www.datadifferential.com/ COPYRIGHT
2012, Data Differential, http://www.datadifferential.com/ 0.33 May 04, 2012 GEARMAN_CLIENT_SET_EXCEPTION_FN(3)
All times are GMT -4. The time now is 09:50 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy