Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 161314 - net-analyzer/net-snmp-5.2.1.2-r fails to compile with gcc-4.1.x
Summary: net-analyzer/net-snmp-5.2.1.2-r fails to compile with gcc-4.1.x
Status: RESOLVED DUPLICATE of bug 156178
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-10 13:07 UTC by Jaco Kroon
Modified: 2007-01-10 13:09 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jaco Kroon 2007-01-10 13:07:20 UTC
I've received this error on at least two machines now, gcc-4.1.1-r3 on a partially ~amd64 system and gcc-4.1.1 (upgrade to gcc-4.1.1-r1 fails) on a completely amd64 (No ~packages) machine.  The only use flag I use for snmp is ssl.

Since I do have it installed on my desktop (gcc-4.1.1-r3) machine I assume it's something that changed in the compiler, can't remember when I've merged it but it could well be before the days of gcc-4.1.x.

x86_64-pc-linux-gnu-gcc -I../../include -I. -I../../agent -I../../agent/mibgroup -I../../snmplib -march=k8 -O2 -pipe -Dlinux -c ucd-snmp/disk.c  -fPIC -DPIC -o ucd-snmp/.libs/disk.lo
ucd-snmp/disk.c:233:36: error: operator '||' has no right operand
ucd-snmp/disk.c:281:36: error: operator '||' has no right operand
ucd-snmp/disk.c:377:19: error: #if with no expression
ucd-snmp/disk.c:400:36: error: operator '||' has no right operand
ucd-snmp/disk.c:471:19: error: #if with no expression
ucd-snmp/disk.c:497:36: error: operator '||' has no right operand
make[2]: *** [ucd-snmp/disk.lo] Error 1

All of these errors are in #if statements that seem to rely on undefined macros, for example, line 377:

#if HAVE_GETMNTENT

would indeed give that error.  The #if should read #ifdef ... I need this asap so I'll create a patch and attach in a bit.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-01-10 13:09:33 UTC

*** This bug has been marked as a duplicate of bug 156178 ***