Bug 157167 - port x11/xrx build fails when www/libxul is installed
Summary: port x11/xrx build fails when www/libxul is installed
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-x11 (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-18 21:20 UTC by Edward.Sanford.Sutton, III
Modified: 2011-08-07 10:40 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Edward.Sanford.Sutton, III 2011-05-18 21:20:09 UTC
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

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.
How-To-Repeat: install www/libxul then try to build x11/xrx
Comment 1 Edwin Groothuis freebsd_committer 2011-05-18 21:20:19 UTC
Responsible Changed
From-To: freebsd-ports-bugs->freebsd-x11

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer 2011-08-07 10:35:37 UTC
kwm         2011-08-07 09:35:29 UTC

  FreeBSD ports repository

  Modified files:
    x11/xrx              Makefile 
  Log:
  Disable detection of libxul, this fixes the build if libxul is installed.
  
  PR:             ports/157167
  Reported by:    "Edward.Sanford.Sutton, III" <mirror176@hotmail.com>
  With hat:       x11@
  
  Revision  Changes    Path
  1.8       +4 -0      ports/x11/xrx/Makefile
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 3 Koop Mast freebsd_committer 2011-08-07 10:35:46 UTC
State Changed
From-To: open->closed

Committed a fix for this problem, Thanks for reporting.