port gv (leopard): compile-time bug in setenv.c
William Davis
frstan at bellsouth.net
Thu Dec 13 10:43:46 PST 2007
On Dec 13, 2007, at 12:29 PM, Larry Snyder wrote:
>
>
> 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
>
> _______________________________________________
> macports-users mailing list
> macports-users at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo/macports-users
I cant access the gv source server so I cant test this, but you might
try the upgrade X11 2.1.1 pkg at
[URL]http://trac.macosforge.org/projects/xquartz/wiki/X112.1.1[/URL]
William Davis
frstanATbellsouthDOTnet
Mac OS X.5.1 Darwin 9.1.0
X11.app 2.1.1 - (xorg-server 1.3.0-apple5)
Mac Mini Intel Duo @ 1.86 GHz
Mundus vult decepi, ego non
More information about the macports-users
mailing list