[ZBX-9873] compile error trying to build 3.0 server on AIX Created: 2015 Sep 14  Updated: 2017 May 30  Resolved: 2015 Sep 14

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Server (S)
Affects Version/s: 3.0.0alpha2
Fix Version/s: None

Type: Incident report Priority: Minor
Reporter: Michael Gray Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

AIX 7.1, DB2 10.5, /opt/freeware (gcc etc.) from perzl.org


Issue Links:
Duplicate
duplicates ZBX-7043 make fails on AIX when compiling sms.... Need info

 Description   

After installing gcc and required devel packages from perzl.org and issuing the following:
./configure --prefix=/opt/zabbix3 --enable-server --enable-agent --with-ibm-db2=/home/db2inst1/sqllib --enable-ipv6 --with-net-snmp --with-libcurl --with-libxml2

Make stops in zbxmedia:

Making all in zbxmedia
gcc -DHAVE_CONFIG_H -I. -I../../../include -g -O2 -I/home/db2inst1/sqllib/include -I/opt/freeware/include/libxml2 -I/opt/freeware/include -I. -I/opt/freeware/include -MT email.o -MD -MP -MF .deps/email.Tpo -c -o email.o email.c
mv -f .deps/email.Tpo .deps/email.Po
gcc -DHAVE_CONFIG_H -I. -I../../../include -g -O2 -I/home/db2inst1/sqllib/include -I/opt/freeware/include/libxml2 -I/opt/freeware/include -I. -I/opt/freeware/include -MT eztexting.o -MD -MP -MF .deps/eztexting.Tpo -c -o eztexting.o eztexting.c
mv -f .deps/eztexting.Tpo .deps/eztexting.Po
gcc -DHAVE_CONFIG_H -I. -I../../../include -g -O2 -I/home/db2inst1/sqllib/include -I/opt/freeware/include/libxml2 -I/opt/freeware/include -I. -I/opt/freeware/include -MT sms.o -MD -MP -MF .deps/sms.Tpo -c -o sms.o sms.c
sms.c: In function 'send_sms':
sms.c:257:42: error: 'CRTSCTS' undeclared (first use in this function)
options.c_cflag = old_options.c_cflag | CRTSCTS | CS8 | CLOCAL | CREAD;
^
sms.c:257:42: note: each undeclared identifier is reported only once for each function it appears in
make: 1254-004 The error code from the last command is 1.

Stop.
make: 1254-004 The error code from the last command is 1.

Stop.
make: 1254-004 The error code from the last command is 1.

Stop.
make: 1254-004 The error code from the last command is 1.

Stop.

As a workaround, I removed CRTSCTS and was able to compile:

*** src/libs/zbxmedia/sms.c.dist        Wed Sep  9 10:07:13 2015
--- src/libs/zbxmedia/sms.c     Mon Sep 14 11:24:27 2015
***************
*** 254,260 ****
  #ifdef ONOCR
        options.c_oflag = ONOCR;
  #endif
!       options.c_cflag = old_options.c_cflag | CRTSCTS | CS8 | CLOCAL | CREAD;
        options.c_lflag &= ~(ICANON | ECHO | ECHOE | ISIG);
        options.c_cc[VMIN] = 0;
        options.c_cc[VTIME] = 1;
--- 254,260 ----
  #ifdef ONOCR
        options.c_oflag = ONOCR;
  #endif
!       options.c_cflag = old_options.c_cflag | CS8 | CLOCAL | CREAD;
        options.c_lflag &= ~(ICANON | ECHO | ECHOE | ISIG);
        options.c_cc[VMIN] = 0;
        options.c_cc[VTIME] = 1;


 Comments   
Comment by Volker Fröhlich [ 2015 Sep 14 ]

Apparently doesn't exist in AIX: https://www-01.ibm.com/support/knowledgecenter/ssw_aix_71/com.ibm.aix.files/termio.h.htm

Comment by richlv [ 2015 Sep 14 ]

closing as a duplicate of ZBX-7043

Generated at Sun May 25 08:15:19 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.