ibm-messaging / mq-golang

Calling IBM MQ from Go applications
Apache License 2.0
167 stars 60 forks source link

Unable to get the code compiled in Redhat Linux 9 #211

Closed abhilashkar closed 4 months ago

abhilashkar commented 4 months ago

Please include the following information in your ticket.

1) MQ : 9.2.0.0-IBM-MQC-Redist-LinuxX64.tar.gz installed in /opt/mqm 2) go version go1.20.10 linux/amd64 3) Installed: cpp-11.4.1-3.el9.x86_64 gcc-11.4.1-3.el9.x86_64 glibc-devel-2.34-100.el9_4.2.x86_64 glibc-headers-2.34-100.el9_4.2.x86_64 kernel-headers-5.14.0-427.22.1.el9_4.x86_64 libmpc-1.2.1-4.el9.x86_64 libpkgconf-1.7.3-10.el9.x86_64 libxcrypt-devel-4.4.18-3.el9.x86_64 make-1:4.3-8.el9.x86_64 pkgconf-1.7.3-10.el9.x86_64 pkgconf-m4-1.7.3-10.el9.noarch pkgconf-pkg-config-1.7.3-10.el9.x86_64 4) pwd : /tmp/mqsample/src/github.com/ibm-messaging/mq-golang/samples

5) [ec2-user@xx samples]$ go build -o /tmp/mqitest mqitest/*.go

command-line-arguments

mqitest/mqitest.go:53:23: undefined: ibmmq.MQObject mqitest/mqitest.go:54:20: undefined: ibmmq.MQObject mqitest/mqitest.go:55:27: undefined: ibmmq.MQObject mqitest/mqitest.go:56:22: undefined: ibmmq.MQObject mqitest/mqitest.go:68:21: undefined: ibmmq.Conn mqitest/mqitest.go:78:17: undefined: ibmmq.NewMQOD mqitest/mqitest.go:100:20: undefined: ibmmq.NewMQMD mqitest/mqitest.go:101:16: undefined: ibmmq.NewMQPMO mqitest/mqitest.go:135:21: undefined: ibmmq.NewMQMD mqitest/mqitest.go:136:17: undefined: ibmmq.NewMQGMO mqitest/mqitest.go:136:17: too many errors

Appreciate your help here.

We are using ibm mq container in EKS and need to have prometheus metrics enabled to monitor the queue depths and other stats, the default one provided with the container isnt helping. So we are trying to get this program working as a service inside the container.