-
Notifications
You must be signed in to change notification settings - Fork 74
Description
I am trying to compile on RHEL using the steps which are listed in the link under the headline "Building a component on your system directly"
https://github.com/ibm-messaging/mq-metric-samples/blob/master/README.md
Note :- I have installed MQ Server - which has MQ Client also and set the variable also export MQ_INSTALLATION_PATH=/opt/mqm
I tried below steps and getting undefined errors
cd ./src/github.com/ibm-messaging/mq-metric-samples
export CGO_LDFLAGS_ALLOW='-Wl,-rpath.'
mkdir -p /tmp/go/bin
go build -mod=vendor -o /tmp/go/bin/mq_prometheus ./cmd/mq_prometheus/.go
[root@Kesh-R1 mq-metric-samples]# go build -mod=vendor -o /tmp/go/bin/mq_prometheus ./cmd/mq_prometheus/*.go
github.com/ibm-messaging/mq-golang/v5/ibmmq
vendor/github.com/ibm-messaging/mq-golang/v5/ibmmq/mqiPCFstr.go:27:2: undefined: MQIA_ACCOUNTING_CONN_OVERRIDE
vendor/github.com/ibm-messaging/mq-golang/v5/ibmmq/mqiPCFstr.go:28:2: undefined: MQIA_ACCOUNTING_INTERVAL
vendor/github.com/ibm-messaging/mq-golang/v5/ibmmq/mqiPCFstr.go:29:2: undefined: MQIA_ACCOUNTING_MQI
vendor/github.com/ibm-messaging/mq-golang/v5/ibmmq/mqiPCFstr.go:30:2: undefined: MQIA_ACCOUNTING_Q
vendor/github.com/ibm-messaging/mq-golang/v5/ibmmq/mqiPCFstr.go:31:2: undefined: MQIA_ACTIVE_CHANNELS
vendor/github.com/ibm-messaging/mq-golang/v5/ibmmq/mqiPCFstr.go:32:2: undefined: MQIA_ACTIVITY_CONN_OVERRIDE
vendor/github.com/ibm-messaging/mq-golang/v5/ibmmq/mqiPCFstr.go:33:2: undefined: MQIA_ACTIVITY_RECORDING
vendor/github.com/ibm-messaging/mq-golang/v5/ibmmq/mqiPCFstr.go:34:2: undefined: MQIA_ACTIVITY_TRACE
vendor/github.com/ibm-messaging/mq-golang/v5/ibmmq/mqiPCFstr.go:35:2: undefined: MQIA_ADOPT_CONTEXT
vendor/github.com/ibm-messaging/mq-golang/v5/ibmmq/mqiPCFstr.go:36:2: undefined: MQIA_ADOPTNEWMCA_CHECK
vendor/github.com/ibm-messaging/mq-golang/v5/ibmmq/mqiPCFstr.go:36:2: too many errors
Before this - there was an fatal error: gnu/stubs-32.h: No such file or directory - fixed this issue by executing below commands
sudo dnf -y install gcc binutils make and then sudo dnf -y install glibc-devel.i686
Thanks