Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 225611

Summary: linux-atm-2.5.0 fails with glibc-2.8
Product: Gentoo Linux Reporter: nixnut (RETIRED) <nixnut>
Component: Current packagesAssignee: Gentoo Dialup Developers <net-dialup>
Status: RESOLVED FIXED    
Severity: normal CC: bsd, gentoo
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 225459    
Attachments: Modified PATH_MAX patch

Description nixnut (RETIRED) gentoo-dev 2008-06-09 17:34:57 UTC
powerpc-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../..     -I../../src/includ
e -O2 -mtune=G4 -maltivec -mabi=altivec -Wstrict-aliasing -pipe -msecure-plt -fn
o-strict-aliasing -Wall -Wshadow -Wpointer-arith -Wwrite-strings -Wstrict-protot
ypes -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o main.c
main.c: In function ‘main’:
main.c:205: error: ‘PATH_MAX’ undeclared (first use in this function)
main.c:205: error: (Each undeclared identifier is reported only once
main.c:205: error: for each function it appears in.)

builds with patch from http://developer.momonga-linux.org/viewvc/trunk/pkgs/linux-atm/linux-atm-2.5.0-PATH_MAX.patch?revision=24636&view=markup&pathrev=24636:
diff -up linux-atm-2.5.0/src/led/main.c.path_max linux-atm-2.5.0/src/led/main.c
--- linux-atm-2.5.0/src/led/main.c.path_max	2008-05-19 02:47:40.000000000 +0900
+++ linux-atm-2.5.0/src/led/main.c	2008-05-19 02:47:52.000000000 +0900
@@ -41,6 +41,7 @@
 #include <getopt.h>
 #include <errno.h>
 #include <fcntl.h>
+#include <limits.h>
 
 #include <atm.h>
 #include <atmd.h>
Comment 1 Bandan 2008-06-10 15:23:04 UTC
Created attachment 156253 [details, diff]
Modified PATH_MAX patch

Apply this instead of the original patch
Comment 2 Alin Năstac (RETIRED) gentoo-dev 2008-06-10 17:23:32 UTC
Attached patch has been submitted to cvs.
Fixed without revision bump.
Comment 3 Alin Năstac (RETIRED) gentoo-dev 2008-06-10 23:09:10 UTC
*** Bug 225803 has been marked as a duplicate of this bug. ***