port gv (leopard): compile-time bug in setenv.c
Larry Snyder
larry at eye-hand.wustl.edu
Thu Dec 13 09:29:39 PST 2007
Hi. I'm getting a compiler error in when I try to install 'gv':
Command output: making all in ./source...
/usr/bin/cc -Os -Wall -Wpointer-arith -no-cpp-precomp -I/usr/X11/include
-D__i386__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DNON_BLOCKING_IO
-DUSE_SIGNAL_HANDLER -DUSER_DEFAULTS=\"~/.gv\"
-DGV_LIBDIR=\"/opt/local/lib/gv/\" -DGV_CODE
-I/opt/local/include -DUSE_FALLBACK_STYLES -c -o setenv.o setenv.c
<a number of warnings, e.g., implicit declaration of strlen and memcpy>
setenv.c: At top level:
setenv.c:105: error: conflicting types for 'unsetenv'
/usr/include/stdlib.h:247: error: previous declaration of 'unsetenv'
was here
Here's what stdlib.h looks like:
stdlib.h, lines 246-248
#if __DARWIN_UNIX03
int unsetenv(const char *) __DARWIN_ALIAS(unsetenv);
#else /* !__DARWIN_UNIX03 */
Here's the full history of what I did:
upgrade to leopard
installed X11 & developer tools from the leopard disk
port gv <failed>
port uninstall Xaw3d <ok>
port install Xaw3d <successful>
port gv <failed, but got further than the first time!>
port upgrade ghostscript <successful>
ls -lt /usr/include/stdlib.h
<returns a timestamp indicating that it is a leopard version>
Can anyone tell me what the issue is? Thanks!!
larry
More information about the macports-users
mailing list