Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 May 2011 20:12:10 GMT
From:      Edward.Sanford.Sutton@FreeBSD.org, III <mirror176@hotmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/157167: port x11/xrx build fails when www/libxul is installed
Message-ID:  <201105182012.p4IKCAm2051766@red.freebsd.org>
Resent-Message-ID: <201105182020.p4IKKAje091888@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         157167
>Category:       ports
>Synopsis:       port x11/xrx build fails when www/libxul is installed
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed May 18 20:20:09 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Edward Sanford Sutton, III
>Release:        8.2-i386 and a newer stable on amd64
>Organization:
>Environment:
FreeBSD blackhole.local 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Fri Feb 18 02:24:46 UTC 2011     root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386

>Description:
xrx-1.0.3 fails to build with libxul-1.9.2.17 installed. The output of configure changes in the presence of /usr/local/include/libxul/npapi.h from no to yes:

checking npfunctions.h usability... yes
checking npfunctions.h presence... yes
checking for npfunctions.h... yes

moving the file aside makes the build succeed. While the header is present, The warnings appear during compile earlier in the build in addition to right with the error:
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I../rx -DNETSCAPE_PLUGIN -DXP_UNIX -DMOZ_X11 -DOJI -DXP_UNIX -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -D_THREAD_SAFE -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -I/usr/local/include -D_THREAD_SAFE -I/usr/local/include -DXP_UNIX -I/usr/local/include/libxul -g -O2 -MT XDpyName.lo -MD -MP -MF .deps/XDpyName.Tpo -c ../rx/XDpyName.c  -fPIC -DPIC -o .libs/XDpyName.o
In file included from ./RxPlugin.h:57,
                 from ../rx/XDpyName.c:32:
/usr/local/include/libxul/npapi.h:622: warning: function declaration isn't a prototype
/usr/local/include/libxul/npapi.h:625: warning: function declaration isn't a prototype
/usr/local/include/libxul/npapi.h:626: warning: function declaration isn't a prototype
In file included from ../rx/XDpyName.c:32:
./RxPlugin.h:96: error: expected specifier-qualifier-list before 'int16'
gmake[3]: *** [XDpyName.lo] Error 1
gmake[3]: Leaving directory `/usr/tmp/usr/ports/x11/xrx/work/xrx-1.0.3/plugin'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/usr/tmp/usr/ports/x11/xrx/work/xrx-1.0.3/plugin'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/tmp/usr/ports/x11/xrx/work/xrx-1.0.3'
gmake: *** [all] Error 2

>How-To-Repeat:
install www/libxul then try to build x11/xrx
>Fix:
move /usr/local/include/libxul/npapi.h, configure port, move file back, build and install. I do not know how to tell configure to not see it, nor do I know how to make it just work with the file being present but either would be a fix for the ports tree. sed could edit the output of configure or configure itself to appear to not locate the file.

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201105182012.p4IKCAm2051766>