[ZBX-4314] Compile error on Redhat Created: 2011 Nov 03  Updated: 2017 May 30  Resolved: 2011 Nov 25

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Installation (I)
Affects Version/s: 1.9.6 (beta), 1.9.7 (beta)
Fix Version/s: None

Type: Incident report Priority: Critical
Reporter: Guoyu Li Assignee: Unassigned
Resolution: Cannot Reproduce Votes: 0
Labels: compilation
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

OS

Red Hat Enterprise Linux Server release 5.3 (Tikanga)
Linux 2.6.18-128.4.1.el5 #1 SMP Thu Jul 23 19:59:19 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux

GCC

Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure -prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c+,objc,obj-c+,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=x86_64-redhat-linux
Thread model: posix
gcc version 4.1.2 20080704 (Red Hat 4.1.2-48)



 Description   

I got an compile error when I tried to compile it with "configure --enable-agent":

...
gcc -DHAVE_CONFIG_H -I. -I../../../include     -g -O2   -MT comms.o -MD -MP -MF .deps/comms.Tpo -c -o comms.o comms.c
/tmp/ccKyOdt8.s: Assembler messages:
/tmp/ccKyOdt8.s:12: Error: Incorrect register `%rax' used with `l' suffix
/tmp/ccKyOdt8.s:120: Error: Incorrect register `%rdx' used with `l' suffix
/tmp/ccKyOdt8.s:120: Error: Incorrect register `%rax' used with `l' suffix
...


 Comments   
Comment by Aleksandrs Saveljevs [ 2011 Nov 04 ]

It is highly unlikely that this is a Zabbix problem. The only place where we do something low-level is src/libs/zbxnix/fatal.c, but even there it is just portable C. Please check your compiler and build environment.

Comment by Igor Danoshaites (Inactive) [ 2011 Nov 25 ]

Hi,

Can not reproduce the same problem on our test env (RedHat EL 5.3, x64) when using "./configure --enable-agent" command for zabbix-1.9.7.

As Aleksandrs wrote you on 2011 Nov 04 09:01, you should check your build environment and used compiler.

Closing this issue with resolution "Can not reproduce".

Generated at Wed Apr 24 00:33:13 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.