aRts-1.5.10 compile problem

Bruce Dubbs bruce.dubbs at gmail.com
Mon Mar 2 18:46:27 PST 2009


Dr. Edgar Alwers wrote:
> Following svn-20090302 I am trying to compile aRts-1.5.10, with the error 
> result:
> 	'PATH_MAX' was not declared..
> .
> I compiled as preparation all required and recommended dependencies but none 
> of the optionals.
> Googling I found exactly my problem described, but the only advice was 
> quote
> -----------------
> Far as I know this is not a dependency issue with GLib or friends... Can you 
> add BUILD_ARGS = "$(BUILD_ARGS) -j1" to the Makefile in libs/arts? 
> -----------------
> unquote
> 
> I frankly do not know what to do with this: I don't have a directory libs, 
> there is not a Makefile in a libs directory in the aRts directory and so on. 
> And nobody has reported that this problem has been solved.

I downloaded a fresh copy of aRts-1.5.10 and do a configure && make.  Everything 
was fine.  Doing a grep on the source shows that 'PATH_MAX' come up in

admin/ltmain.sh
flow/gsl/gslglib.h
libtool
mcop/mcoputils.cc
soundserver/artsplay.cc

If I do

g++ -DHAVE_CONFIG_H -I. -I.. -I../mcop -I../artsc -I../mcop -I../mcop -I../flow 
-I../flow -DEXECUTE=\"/usr/local/kde/bin/artsd\" -I/usr/local/kde/include 
-I/opt/qt/include -I/usr/X11R6/include  -I../libltdl  -DQT_THREAD_SUPPORT 
-D_REENTRANT -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
-Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align 
-Wchar-subscripts -Wall -W -Wpointer-arith -O2 -Wformat-security 
-Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new 
-fno-common  -ftemplate-depth-99  -MT artsplay.o -MD -MP -MF .deps/artsplay.Tpo 
-E -o artsplay.E artsplay.cc

and look at artsplay.E, I see that PATH_MAX is replaced by 4096.  My conclusion 
is that it is in one of the system include files, but I don't know which one.

Tracing the include files, I see:

/usr/include/sys/param.h
   #define MAXPATHLEN   PATH_MAX
and in
/usr/include/linux/limits.h
  #define PATH_MAX        4096  /* # chars in a path name including nul */

It sounds like you didn't install the linux headers.  See LFS 6.7. 
Linux-2.6.27.8 API Headers

   -- Bruce




More information about the blfs-support mailing list