Build issue for gv 3.6.7 under Mac OS X

View: New views
2 Messages — Rating Filter:   Alert me  

Build issue for gv 3.6.7 under Mac OS X

by Marius Schamschula-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi there,

I saw the update for gv on Freshmeat. So I went off to build it under Mac OS X. I get the following error (both for Mac OS X 10.4.11 and 10.5.6 PPC/Intel):

gcc -DHAVE_CONFIG_H -I.  -DNON_BLOCKING_IO -DGV_CODE -DGV_LIBDIR=\"/usr/local/share/gv\" -I../lib -I../lib -g -DUSE_SETENV_CODE  -I/usr/X11R6/include -g -O2 -MT callbacks.o -MD -MP -MF .deps/callbacks.Tpo -c -o callbacks.o callbacks.c
callbacks.c: In function 'cb_presentation':
callbacks.c:960: error: 'SIGCLD' undeclared (first use in this function)
callbacks.c:960: error: (Each undeclared identifier is reported only once
callbacks.c:960: error: for each function it appears in.)
make[2]: *** [callbacks.o] Error 1
make[2]: Leaving directory `/private/tmp/gv-3.6.7/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/private/tmp/gv-3.6.7/src'
make: *** [all-recursive] Error 1

Are we missing a header file?

Marius

--

Marius Schamschula

Webmaster


The Huntsville Macintosh Users Group

www.hmug.org


webmaster at hmug dot org

marius at schamschula dot com





Re: Build issue for gv 3.6.7 under Mac OS X

by Markus Steinborn-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Marius Schamschula wrote:
> Are we missing a header file?

Hi Marius,

thank you for reporting this bug. The following forwarded mail will
explain you how to solve this bug.

Greetings from Germany

Markus Steinborn



Ryan Schmidt wrote:

> I'm the maintainer of gv in MacPorts. Apologies for not testing
> 3.6.6.90 or 3.6.6.91, but while updating the gv port to 3.6.7 (on Mac
> OS X 10.4.11 with Xcode 2.5) I got this error:
>
>
> /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I.  -DNON_BLOCKING_IO -DGV_CODE
> -DGV_LIBDIR=\"/mp/share/gv\" -I../lib -I../lib -g -DUSE_SETENV_CODE
> -I/mp/include -I/mp/include -O2 -MT confirm.o -MD -MP -MF
> .deps/confirm.Tpo -c -o confirm.o confirm.c
> callbacks.c: In function 'cb_presentation':
> callbacks.c:960: error: 'SIGCLD' undeclared (first use in this function)
> callbacks.c:960: error: (Each undeclared identifier is reported only once
> callbacks.c:960: error: for each function it appears in.)
> make[2]: *** [callbacks.o] Error 1
>
>
> Googling for this error, I see other projects have run into it:
>
>
> http://markmail.org/message/xpfwof4bu44moxbo#query:SIGCLD%20mac+page:1+mid:w5vb76meovpbe2ys+state:results 
>
>
>
> The above suggests that for Mac OS X and FreeBSD this should be added:
>
>
> #ifndef SIGCLD
> #   define SIGCLD SIGCHLD
> #endif
>
>
> Adding that near the top of src/callbacks.c did allow it to compile.
> So I just wanted to let you know.