Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#13095 closed defect (fixed)

gv-3.5.8 fails to build on Mac OS X 10.5 Leopard

Reported by: shirose@… Owned by: macports-tickets@…
Priority: High Milestone:
Component: ports Version: 1.5.2
Keywords: Cc: vlado@…, larry@…
Port: gv

Description (last modified by ryandesign (Ryan Carsten Schmidt))

--->  Fetching gv
--->  Verifying checksum(s) for gv
--->  Extracting gv
--->  Applying patches to gv
--->  Configuring gv
--->  Building gv with target all
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_Users_shirose_src_macports-trunk_dports_print_gv/work/gv-3.5.8" && make all " returned error 2
Command output: creating gv_class.ad
creating gv_class.h
creating gv_intern_res_unix.h
creating gv_spartan.h
/usr/bin/cc -Os -Wall -Wpointer-arith -no-cpp-precomp     -I/usr/X11/include    -D__powerpc__ -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 resource.o resource.c
/usr/bin/cc -Os -Wall -Wpointer-arith -no-cpp-precomp     -I/usr/X11/include    -D__powerpc__ -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 save.o save.c
/usr/bin/cc -Os -Wall -Wpointer-arith -no-cpp-precomp     -I/usr/X11/include    -D__powerpc__ -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 scale.o scale.c
/usr/bin/cc -Os -Wall -Wpointer-arith -no-cpp-precomp     -I/usr/X11/include    -D__powerpc__ -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 signal.o signal.c
signal.c: In function 'signal_sh_terminate':
signal.c:128: warning: implicit declaration of function 'exit'
signal.c:128: warning: incompatible implicit declaration of built-in function 'exit'
signal.c: In function 'signal_sh_updateFile':
signal.c:174: warning: incompatible implicit declaration of built-in function 'exit'
/usr/bin/cc -Os -Wall -Wpointer-arith -no-cpp-precomp     -I/usr/X11/include    -D__powerpc__ -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 version.o version.c
/usr/bin/cc -Os -Wall -Wpointer-arith -no-cpp-precomp     -I/usr/X11/include    -D__powerpc__ -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 widgets_misc.o widgets_misc.c
/usr/bin/cc -Os -Wall -Wpointer-arith -no-cpp-precomp     -I/usr/X11/include    -D__powerpc__ -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 zoom.o zoom.c
/usr/bin/cc -Os -Wall -Wpointer-arith -no-cpp-precomp     -I/usr/X11/include    -D__powerpc__ -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
setenv.c: In function 'setenv':
setenv.c:57: warning: implicit declaration of function 'strlen'
setenv.c:57: warning: incompatible implicit declaration of built-in function 'strlen'
setenv.c:62: warning: suggest parentheses around assignment used as truth value
setenv.c:83: warning: implicit declaration of function 'memcpy'
setenv.c:83: warning: incompatible implicit declaration of built-in function 'memcpy'
setenv.c:89: warning: assignment discards qualifiers from pointer target type
setenv.c:94: warning: suggest parentheses around assignment used as truth value
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
make[1]: *** [setenv.o] Error 1
make: *** [all] Error 2

Error: Status 1 encountered during processing.

Attachments (1)

patch-setenv.c (761 bytes) - added by troy@… 16 years ago.

Download all attachments as: .zip

Change History (12)

comment:1 Changed 16 years ago by cabanela@…

I can confirm the same error message appear on my computer under 10.5.1 when attempting to install gv 3.5.8.

comment:2 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: vlado@… added
Summary: gv-3.5.8 fails to build on Leopardgv-3.5.8 fails to build on Mac OS X 10.5 Leopard

Has duplicate #13538.

comment:3 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)

I sent an email to the gv project's bug reporting address. Let's see what they say.

comment:4 Changed 16 years ago by michael.maechtel@…

Since the function unsetenv() is already set in stdlib.h, commenting out unsetenv() in setenv.c did the trick for me.

comment:5 Changed 16 years ago by vlado@…

This works for me too. Thanks for posting that solution!

comment:6 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: larry@… added

Changed 16 years ago by troy@…

Attachment: patch-setenv.c added

comment:7 Changed 16 years ago by troy@…

the tarball address appears to have changed as well, appears to be

ftp://ftpthep.physik.uni-mainz.de/pub/gv/unix/gv-3.5.8.tar.gz

comment:8 Changed 16 years ago by troy@…

patch-setenv.c above also gets things building.

comment:9 Changed 16 years ago by tenomoto (Takeshi Enomoto)

Resolution: fixed
Status: newclosed

Updated to 3.6.3.

comment:10 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Port: gv added

comment:11 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.