pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/29393



The following reply was made to PR pkg/29393; it has been noted by GNATS.

From: sigsegv%rambler.ru@localhost
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: pkg/29393
Date: Wed, 16 Feb 2005 12:17:08 +0000

 I found what the problem is:
 
 Under zip-2.3 source tree, unix/configure is not intelligent enough and 
 sets wrong CPP variable. I had to comment out the following lines to get 
 it compile:
 
 echo Check for the C preprocessor
 # on SVR4, cc -E does not produce correct assembler files. Need /lib/cpp.
 CPP="${CC} -E"
 # solaris as(1) needs -P, maybe others as well ?
 #[ -f /usr/ccs/lib/cpp ] && CPP="/usr/ccs/lib/cpp -P"
 #[ -f /usr/lib/cpp ] && CPP=/usr/lib/cpp
 #[ -f /lib/cpp ] && CPP=/lib/cpp
 #[ -f /usr/bin/cpp ] && CPP=/usr/bin/cpp
 #[ -f /xenix ] && CPP="${CC} -E"
 #[ -f /lynx.os ] && CPP="${CC} -E"
 
 Because I don't have Sun's cc installed, instead I'm using gcc from 
 pkgsrc and CPP should be set to something like "gcc -E" otherwise the 
 following tests fail and configure script appends -DNO_STDLIB_H 
 -DNO_STDDEF_H -DNO_UNISTD_H and various others to CFLAGS, which breaks 
 things.
 
 Below is a snip from configure script, which shows how -DNO_ flags get set
 
 echo Check for non existent include files
 for inc in stdlib.h stddef.h unistd.h fcntl.h string.h
 do
     echo "#include <$inc>" > conftest.c
     $CPP conftest.c >/dev/null 2>/dev/null
     [ $? -ne 0 ] && CFLAGS="${CFLAGS} -DNO_`echo $inc | tr '[a-z]./' 
 '[A-Z]__'`"
 done
 



Home | Main Index | Thread Index | Old Index