Re: building libgnomeprint2 on Mac OS X

Jody Goldberg <[email protected]>
Newsgroups gmane.comp.gnome.print
Message-ID <[email protected]>
On Thu, Oct 30, 2003 at 03:58:27PM -0600, Skip Montanaro wrote:
> (I'm not subscribed to this list.  Please cc me on any replies.)
> 
> I'm trying to install gnumeric 1.2.1 on a Mac OS X system with fink.  There
> are several packages which are either not present in fink or are not recent
> enough versions.  Libgnomeprint2 is one of them.  I'm trying to build 2.4.0
> and encountered an error compiling gnome-print.c.  I configured like so:
> 
>     PKG_CONFIG_PATH="/Users/skip/local/lib/pkgconfig:/sw/lib/pkgconfig"
>     LDFLAGS='-L/Users/skip/local/lib -L/sw/lib'
>     CPPFLAGS='-I/Users/skip/local/include -I/sw/include -no-cpp-precomp'
>     export PKG_CONFIG_PATH LDFLAGS CPPFLAGS
>     ./configure --prefix=$HOME/local
> 
> That went fine.  during make I get this output (wrapped for readability):
> 
>     ...
>     gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/Users/skip/local/include \
>         -I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/include \
>         -I/sw/include/libart-2.0 -I/sw/include/pango-1.0 \
>         -I/sw/include/libxml2 -I/sw/include -I/sw/include/freetype2 \
>         -I/sw/include -DG_LOG_DOMAIN=\"GnomePrint\" 
>         -DGNOMELOCALEDIR=\"/Users/skip/local/share/locale\" \
>         -DBINDIR=\"/Users/skip/local/bin\" \
>         -DDATADIR=\"/Users/skip/local/share\" \
>         -DGNOME_PRINT_MODULES_DIR=\"/Users/skip/local/lib/libgnomeprint/2.4.0/modules\" \
>         -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED \
>         -DGTK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED \
>         -DGNOME_DISABLE_DEPRECATED -I/Users/skip/local/include \
>         -I/sw/include -no-cpp-precomp -g -O2 -Wall -Wmissing-prototypes \
>         -Wnested-externs -Wpointer-arith -Wno-sign-compare \
>         -c gnome-print.c -Wp,-MD,.deps/gnome-print.TPlo  -fno-common \
>         -DPIC -o .libs/gnome-print.o
>     In file included from gnome-print.c:41:
>     /usr/include/sys/mman.h:158: parse error before "off_t"
>     /usr/include/sys/mman.h:170: parse error before "caddr_t"
>     /usr/include/sys/mman.h:171: parse error before '*' token
>     make[3]: *** [gnome-print.lo] Error 1
>     make[2]: *** [all-recursive] Error 1
>     make[1]: *** [all-recursive] Error 1
>     make: *** [all] Error 2
 
Looks like sys/mman.h requires some extra headers.
Possibly #include <unistd.h> ?

man mmap and see what it says
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.