gcc unrecognized option ‘-rpath=usrlib’ cics_mqget.c6023 error cmqc.h No such file or directory

[root@cics WMQ]# make -f cics_mq_sample.mk  CLIENT

echo “building program and switchload with WebSphere Extended transactional client library.”

building program and switchload with WebSphere Extended transactional client library.

make -f cics_mq_sample.mk OPTION=CLIENT all

make[1]: Entering directory `/opt/ibm/cics/examples/RM_support/WMQ’

cicstran -l C cics_mqsamp.ccs

ERZ004060I/5015: cicstran translation ended: 0 error(s), 0 warning(s).

CCFLAGS=”-m32 -shared -I/opt/mqm/inc -Wl,-rpath=/opt/mqm/lib -Wl, -rpath=/usr/lib” LDFLAGS=”-lmqm_r -shared -L/opt/mqm/lib -L/opt/mqm/lib -lmqm_r” cicstcl -l C cics_mqget.ccs

ERZ004047I/9005: Running the translation step: ‘cicstran -lC cics_mqget.ccs’

ERZ004060I/5015: cicstran translation ended: 0 error(s), 0 warning(s).

ERZ004049I/0096: Running the compile and link step: ‘gcc -I/opt/ibm/cics/include -m32  -m32 -shared -I/opt/mqm/inc -Wl,-rpath=/opt/mqm/lib -Wl, -rpath=/usr/lib -ansi -fPIC -c cics_mqget.c’

gcc: unrecognized option ‘-rpath=/usr/lib’

cics_mqget.c:60:23: error: cmqc.h: No such file or directory

cics_mqget.c: In function ‘main’:

cics_mqget.c:71: error: ‘MQHCONN’ undeclared (first use in this function)

cics_mqget.c:71: error: (Each undeclared identifier is reported only once

cics_mqget.c:71: error: for each function it appears in.)

cics_mqget.c:71: error: expected ‘;’ before ‘ConnHandle’

cics_mqget.c:72: error: ‘MQHOBJ’ undeclared (first use in this function)

cics_mqget.c:72: error: expected ‘;’ before ‘QHandle’

cics_mqget.c:73: error: ‘MQLONG’ undeclared (first use in this function)

cics_mqget.c:73: error: expected ‘;’ before ‘Open_Options’

cics_mqget.c:74: error: expected ‘;’ before ‘Close_Options’

cics_mqget.c:75: error: ‘MQCHAR’ undeclared (first use in this function)

cics_mqget.c:75: error: expected ‘;’ before ‘QmgrName’

cics_mqget.c:76: error: expected ‘;’ before ‘QueueName’

cics_mqget.c:78: error: expected ‘;’ before ‘QueueHandle’

[root@cics WMQ]#  cp cics_mq_sample.mk cics_mq_sample.mk.bak

[root@cics WMQ]# vi cics_mq_sample.mk

all: cics_mqget cics_mqput switchload

cics_mqget: cics_mqget.ccs

cicstran -l C cics_mqsamp.ccs

CCFLAGS=”-m32 -shared -I$(MQM_ROOT)/inc -Wl,-rpath=/opt/mqm/lib -Wl, -rpath=/usr/lib” LDFLAGS=”-lmqm_r -shared $(MQM_LDFLAGS) $(MQM_LDLIBS)” cicstcl -l C cics_mqget.ccs

cics_mqput: cics_mqput.ccs

cicstran -l C cics_mqsamp.ccs

CCFLAGS=”-m32 -shared -I$(MQM_ROOT)/inc -Wl,-rpath=/opt/mqm/lib -Wl, -rpath=/usr/lib” LDFLAGS=”-lmqm_r -shared  $(MQM_LDFLAGS) $(MQM_LDLIBS)” cicstcl -l C cics_mqput.ccs

ERZ004060I/5015: cicstran translation ended: 0 error(s), 0 warning(s).

CCFLAGS=”-m32 -shared -I/opt/mqm/inc -Wl,-rpath=/opt/mqm/lib -Wl,-rpath=/usr/lib” LDFLAGS=”-lmqm_r -shared -L/opt/mqm/lib -L/opt/mqm/lib -lmqm_r” cicstcl -l C cics_mqget.ccs

ERZ004047I/9005: Running the translation step: ‘cicstran -lC cics_mqget.ccs’

ERZ004060I/5015: cicstran translation ended: 0 error(s), 0 warning(s).

ERZ004049I/0096: Running the compile and link step: ‘gcc -I/opt/ibm/cics/include -m32  -m32 -shared -I/opt/mqm/inc -Wl,-rpath=/opt/mqm/lib -Wl,-rpath=/usr/lib -ansi -fPIC -c cics_mqget.c’

cics_mqget.c:60:23: error: cmqc.h: No such file or directory

cics_mqget.c: In function ‘main’:

cics_mqget.c:71: error: ‘MQHCONN’ undeclared (first use in this function)

cics_mqget.c:71: error: (Each undeclared identifier is reported only once

cics_mqget.c:71: error: for each function it appears in.)

cics_mqget.c:71: error: expected ‘;’ before ‘ConnHandle’

cics_mqget.c:72: error: ‘MQHOBJ’ undeclared (first use in this function)

cics_mqget.c:72: error: expected ‘;’ before ‘QHandle’

cics_mqget.c:73: error: ‘MQLONG’ undeclared (first use in this function)

cics_mqget.c:73: error: expected ‘;’ before ‘Open_Options’

cics_mqget.c:74: error: expected ‘;’ before ‘Close_Options’

[root@cics ~]# find / -name  cics_mqget.c

/opt/ibm/cics/examples/RM_support/WMQ/cics_mqget.c

[root@cics ~]# find / -name cmqc.h

[root@cics ~]# more /opt/ibm/cics/examples/RM_support/WMQ/cics_mqget.c

[root@cics ~]# more /opt/ibm/cics/examples/RM_support/WMQ/cics_mqget.c

#include      <stdio.h>

#include      <stdlib.h>

#include      <string.h>

/* MQ APIs */

#include      <cmqc.h>

/* CICS APIs*/

#include      <dfhaid.h>

#include      “cics_mqsamp.c”

[root@cics ~]# cd /setup

[root@cics setup]# ls

cics9  ctg9  mq8

[root@cics setup]# cd mq8

[root@cics mq8]# ls

MQServer  WS_MQ_V8.0.0.4_LINUX_ON_X86_64_IM.tar.gz

[root@cics mq8]# cd MQServer/

[root@cics MQServer]# ls

[root@cics MQServer]# yum localinstall *.rpm

Installed:

MQSeriesAMQP.x86_64 0:8.0.0-4            MQSeriesAMS.x86_64 0:8.0.0-4             MQSeriesExplorer.x86_64 0:8.0.0-4        MQSeriesFTAgent.x86_64 0:8.0.0-4

MQSeriesFTBase.x86_64 0:8.0.0-4          MQSeriesFTLogger.x86_64 0:8.0.0-4        MQSeriesFTService.x86_64 0:8.0.0-4       MQSeriesFTTools.x86_64 0:8.0.0-4

MQSeriesGSKit.x86_64 0:8.0.0-4           MQSeriesJRE.x86_64 0:8.0.0-4             MQSeriesJava.x86_64 0:8.0.0-4            MQSeriesMan.x86_64 0:8.0.0-4

MQSeriesMsg_Zh_CN.x86_64 0:8.0.0-4       MQSeriesMsg_Zh_TW.x86_64 0:8.0.0-4       MQSeriesMsg_cs.x86_64 0:8.0.0-4          MQSeriesMsg_de.x86_64 0:8.0.0-4

MQSeriesMsg_es.x86_64 0:8.0.0-4          MQSeriesMsg_fr.x86_64 0:8.0.0-4          MQSeriesMsg_hu.x86_64 0:8.0.0-4          MQSeriesMsg_it.x86_64 0:8.0.0-4

MQSeriesMsg_ja.x86_64 0:8.0.0-4          MQSeriesMsg_ko.x86_64 0:8.0.0-4          MQSeriesMsg_pl.x86_64 0:8.0.0-4          MQSeriesMsg_pt.x86_64 0:8.0.0-4

MQSeriesMsg_ru.x86_64 0:8.0.0-4          MQSeriesSDK.x86_64 0:8.0.0-4             MQSeriesSamples.x86_64 0:8.0.0-4         MQSeriesServer.x86_64 0:8.0.0-4

MQSeriesXRService.x86_64 0:8.0.0-4

Complete!

[root@cics MQServer]#

root@cics ~]# find / -name cmqc.h

/opt/mqm/inc/cmqc.h

[root@cics WMQ]# make -f cics_mq_sample.mk  CLIENT

echo “building program and switchload with WebSphere Extended transactional client library.”

building program and switchload with WebSphere Extended transactional client library.

make -f cics_mq_sample.mk OPTION=CLIENT all

make[1]: Entering directory `/opt/ibm/cics/examples/RM_support/WMQ’

cicstran -l C cics_mqsamp.ccs

ERZ004060I/5015: cicstran translation ended: 0 error(s), 0 warning(s).

CCFLAGS=”-m32 -shared -I/opt/mqm/inc -Wl,-rpath=/opt/mqm/lib -Wl,-rpath=/usr/lib” LDFLAGS=”-lmqm_r -shared -L/opt/mqm/lib -L/opt/mqm/lib -lmqm_r” cicstcl -l C cics_mqget.ccs

ERZ004047I/9005: Running the translation step: ‘cicstran -lC cics_mqget.ccs’

ERZ004060I/5015: cicstran translation ended: 0 error(s), 0 warning(s).

ERZ004049I/0096: Running the compile and link step: ‘gcc -I/opt/ibm/cics/include -m32  -m32 -shared -I/opt/mqm/inc -Wl,-rpath=/opt/mqm/lib -Wl,-rpath=/usr/lib -ansi -fPIC -c cics_mqget.c’

ld -G -e main -o cics_mqget cics_mqget.o -L/opt/ibm/cics/lib -m elf_i386  -lmqm_r -shared -L/opt/mqm/lib -L/opt/mqm/lib -lmqm_r

cicstran -l C cics_mqsamp.ccs

ERZ004060I/5015: cicstran translation ended: 0 error(s), 0 warning(s).

CCFLAGS=”-m32 -shared -I/opt/mqm/inc -Wl,-rpath=/opt/mqm/lib -Wl,-rpath=/usr/lib” LDFLAGS=”-lmqm_r -shared -L/opt/mqm/lib -L/opt/mqm/lib -lmqm_r” cicstcl -l C cics_mqput.ccs

ERZ004047I/9005: Running the translation step: ‘cicstran -lC cics_mqput.ccs’

ERZ004060I/5015: cicstran translation ended: 0 error(s), 0 warning(s).

ERZ004049I/0096: Running the compile and link step: ‘gcc -I/opt/ibm/cics/include -m32  -m32 -shared -I/opt/mqm/inc -Wl,-rpath=/opt/mqm/lib -Wl,-rpath=/usr/lib -ansi -fPIC -c cics_mqput.c’

ld -G -e main -o cics_mqput cics_mqput.o -L/opt/ibm/cics/lib -m elf_i386  -lmqm_r -shared -L/opt/mqm/lib -L/opt/mqm/lib -lmqm_r

echo “amqzscix” > tmp.exp

gcc  -fPIC -shared -m32 -DUSE_SARPC  /opt/mqm/samp/amqzscix.c -I/opt/ibm/cics/include -I/opt/mqm/inc -o amqzscix /opt/ibm/cics/lib/regxa_swxa.o -L/opt/mqm/lib -L/opt/ibm/cics/lib  -lc -lnsl -ldl -L/opt/mqm/lib -lmqccics_r -lmqcxa_r -lmqiz_r

rm tmp.exp

make[1]: Leaving directory `/opt/ibm/cics/examples/RM_support/WMQ’

[root@cics WMQ]#

以下文章点击率最高

Loading…

发表评论