Problems with xfs-1.0.5,1 port.

Rene Ladan r.c.ladan at gmail.com
Fri Oct 12 01:29:54 PDT 2007


[moving from ports@ to x11@ ]

2007/10/12, Jeffrey H. Johnson <trnsz at pobox.com>:
> Here is a full dump:
>
> --->  Upgrading 'xfs-1.0.4_4,1' to 'xfs-1.0.5,1' (x11-fonts/xfs)
> --->  Building '/usr/ports/x11-fonts/xfs'
> ===>  Cleaning for xfs-1.0.5,1
> ===>  Extracting for xfs-1.0.5,1
> => MD5 Checksum OK for xorg/app/xfs-1.0.5.tar.bz2.
> => SHA256 Checksum OK for xorg/app/xfs-1.0.5.tar.bz2.
> ===>  Patching for xfs-1.0.5,1
> ===>  Applying FreeBSD patches for xfs-1.0.5,1
> ===>   xfs-1.0.5,1 depends on file:
> /usr/local/libdata/pkgconfig/fontcacheproto.pc - found
> ===>   xfs-1.0.5,1 depends on file: /usr/local/libdata/pkgconfig/libfs.pc -
> found
> ===>   xfs-1.0.5,1 depends on file: /usr/local/libdata/pkgconfig/xfont.pc -
> found
> ===>   xfs-1.0.5,1 depends on file: /usr/local/libdata/pkgconfig/xtrans.pc -
> found
> ===>   xfs-1.0.5,1 depends on file: /usr/local/libdata/pkgconfig/x11.pc -
> found
> ===>   xfs-1.0.5,1 depends on executable: pkg-config - found
> ===>  Configuring for xfs-1.0.5,1
> configure: WARNING: you should use --build, --host, --target
> checking for a BSD-compatible install... /usr/bin/install -c -o root -g wheel
> checking whether build environment is sane... yes
> checking for a thread-safe mkdir -p... ./install-sh -c -d
> checking for gawk... gawk
> checking whether make sets $(MAKE)... yes
> checking whether to enable maintainer-specific portions of Makefiles... no
> checking for i386-portbld-freebsd6.2-gcc... cc
> checking for C compiler default output file name... a.out
> checking whether the C compiler works... yes
> checking whether we are cross compiling... no
> checking for suffix of executables...
> checking for suffix of object files... o
> checking whether we are using the GNU C compiler... yes
> checking whether cc accepts -g... yes
> checking for cc option to accept ISO C89... none needed
> checking for style of include used by make... GNU
> checking dependency style of cc... gcc3
> checking for a BSD-compatible install... /usr/bin/install -c -o root -g wheel
> checking build system type... i386-portbld-freebsd6.2
> checking host system type... i386-portbld-freebsd6.2
> checking how to run the C preprocessor... cc -E
> checking for grep that handles long lines and -e... /usr/bin/grep
> checking for egrep... /usr/bin/grep -E
> checking for ANSI C header files... yes
> checking for sys/types.h... yes
> checking for sys/stat.h... yes
> checking for stdlib.h... yes
> checking for string.h... yes
> checking for memory.h... yes
> checking for strings.h... yes
> checking for inttypes.h... yes
> checking for stdint.h... yes
> checking for unistd.h... yes
> checking for stdint.h... (cached) yes
> checking for i386-portbld-freebsd6.2-pkg-config... no
> checking for pkg-config... /usr/local/bin/pkg-config
> checking pkg-config is at least version 0.9.0... yes
> checking for XFS... yes
> checking return type of signal handlers... void
> checking if Xtrans should support UNIX socket connections... yes
> checking if Xtrans should support TCP socket connections... yes
> checking for library containing socket... none required
> 8_0/lib/obj_r/x880.o
> /usr/ports/net/openh323/work/openh323_v1_18_0/lib/obj_r/h4501.o
> /usr/ports/net/openh323/work/openh323_v1_18_0/lib/obj_r/h4502checking for
> library containing gethostbyname... none required
> checking for getaddrinfo... yes
> checking if IPv6 support should be built... yes
> checking for struct sockaddr_in.sin_len... yes
> checking if Xtrans should support os-specific local connections... no
> configure: creating ./config.status
> config.status: creating Makefile
> config.status: creating config.h
> config.status: executing depfiles commands
> ===>  Building for xfs-1.0.5,1
> make  all-am
> cc -DHAVE_CONFIG_H -I.    -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT
> -I/usr/local/include -I/usr/local/include/freetype2 -I./include
> -DXFSPIDDIR=\"/var/run\"
> -DDEFAULT_CONFIG_FILE=\"/usr/local/lib/X11/fs/config\" -DFONT_PCF -DFONT_FS
> -DFONT_SPEEDO  -D_BSD_SOURCE -DFONT_t -DTRANS_SERVER -DTRANS_REOPEN -O2
> -fno-strict-aliasing -pipe  -DFONTCACHE -MT atom.o -MD -MP -MF .deps/atom.Tpo
> -c -o atom.o `test -f 'difs/atom.c' || echo './'`difs/atom.c
> In file included from ./include/access.h:58,
>                  from ./include/accstr.h:64,
>                  from ./include/difsutils.h:36,
>                  from ./include/client.h:110,
>                  from ./include/os.h:60,
>                  from ./include/misc.h:74,
>                  from difs/atom.c:55:
> /usr/local/include/client.h:14: error: syntax error before "user_list"
> /usr/local/include/client.h:14: warning: data definition has no type or
> storage class
> /usr/local/include/client.h:15: error: syntax error before "oper_list"
> /usr/local/include/client.h:15: warning: data definition has no type or
> storage class
> /usr/local/include/client.h:16: error: syntax error before "server_list"
> /usr/local/include/client.h:16: warning: data definition has no type or
> storage class
> /usr/local/include/client.h:17: error: syntax error before "exited_list"
> /usr/local/include/client.h:17: warning: data definition has no type or
> storage class
> /usr/local/include/client.h:36: error: syntax error before "dlink_node"
> /usr/local/include/client.h:50: error: syntax error before "time_t"
> /usr/local/include/client.h:53: error: syntax error before "time_t"
> /usr/local/include/client.h:59: error: syntax error before "dlink_list"
> /usr/local/include/client.h:68: error: syntax error before "dlink_list"
> /usr/local/include/client.h:78: error: `NICKLEN' undeclared here (not in a
> function)
> /usr/local/include/client.h:82: error: syntax error before "dlink_list"
> /usr/local/include/client.h:101: error: syntax error before "dlink_list"
> /usr/local/include/client.h:114: error: syntax error before "time_t"
> /usr/local/include/client.h:116: error: syntax error before "time_t"
> /usr/local/include/client.h:118: error: syntax error before "time_t"
> *** Error code 1
>
> Stop in /usr/ports/x11-fonts/xfs/work/xfs-1.0.5.
> *** Error code 1
>
> Stop in /usr/ports/x11-fonts/xfs/work/xfs-1.0.5.
> *** Error code 1
>
> Stop in /usr/ports/x11-fonts/xfs.

The problem seems to be that the compiler first looks in
/usr/local/include, before it looks in the include directory of the
port source.  Both have a client.h, your build picks up the wrong one.
 Without ratbox-services installed, the port builds fine.

Rene

> --On Friday, October 12, 2007 9:20 AM +0200 Rene Ladan <r.c.ladan at gmail.com>
> wrote:
>
> > 2007/10/12, Jeffrey H. Johnson <trnsz at pobox.com>:
> >> $ pkg_info -W /usr/local/include/client.h
> >> /usr/local/include/client.h was installed by package
> >> ratbox-services-1.1.2_1
> >>
> >> This file seems to be included by xfs-1.0.5,1 and causes a build failure.
> >>
> > 'grep client *' in /usr/ports/x11-fonts/xfs yields nothing here.
> >
> > Also 'pkg_info -L /var/db/pkg/xfs-1.0.5,1' does not mention client.h
> >
> > Rene
> > --
> > GPG fingerprint = E738 5471 D185 7013 0EE0  4FC8 3C1D 6F83 12E1 84F6
> > (subkeys.pgp.net)
> >
> > "It won't fit on the line."
> >               -- me, 2001
>
>
>
> --
> Jeffrey H. Johnson
> trnsz at pobox.com
>


-- 
GPG fingerprint = E738 5471 D185 7013 0EE0  4FC8 3C1D 6F83 12E1 84F6
(subkeys.pgp.net)

"It won't fit on the line."
		-- me, 2001


More information about the freebsd-x11 mailing list