Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 275318 - net-libs/libproxy-0.2.3-r1 compilation fails
Summary: net-libs/libproxy-0.2.3-r1 compilation fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL: http://code.google.com/p/libproxy/iss...
Whiteboard:
Keywords:
: 275118 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-06-24 19:32 UTC by Lars Wendler (Polynomial-C) (RETIRED)
Modified: 2010-05-20 09:08 UTC (History)
12 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,81.76 KB, text/plain)
2009-06-24 19:33 UTC, Lars Wendler (Polynomial-C) (RETIRED)
Details
successful build log from ~amd64 (build.log,69.85 KB, text/plain)
2009-06-25 13:01 UTC, Chad A. Simmons
Details
libproxy-0.2.3-r2.ebuild (libproxy-0.2.3-r2.ebuild,2.68 KB, text/plain)
2009-06-26 04:11 UTC, Mart Raudsepp
Details
files/libproxy-0.2.3-improve-mozjs-pkgconfig.patch (libproxy-0.2.3-improve-mozjs-pkgconfig.patch,2.46 KB, text/plain)
2009-06-26 04:14 UTC, Mart Raudsepp
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-06-24 19:32:54 UTC
net-libs/libproxy-0.2.3-r1 fails to compile on my machine. See attached build.log file.

# emerge -pqv libproxy
[ebuild     U ] net-libs/libproxy-0.2.3-r1 [0.2.3] USE="-gnome kde -networkmanager -python -webkit xulrunner"

Reproducible: Always

Steps to Reproduce:




# emerge --info
Portage 2.2_rc33 (default/linux/amd64/2008.0/desktop, gcc-4.3.3, glibc-2.8_p20080602-r1, 2.6.27.25 x86_64)
=================================================================
System uname: Linux-2.6.27.25-x86_64-Quad-Core_AMD_Opteron-tm-_Processor_2380-with-gentoo-2.0.1
Timestamp of tree: Wed, 24 Jun 2009 18:45:01 +0000
app-shells/bash:     4.0_p24
dev-java/java-config: 2.1.8-r1
dev-lang/python:     2.6.2-r1
dev-util/cmake:      2.6.4
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r3
sys-apps/sandbox:    2.0
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=barcelona -mtune=barcelona -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/X11/Sessions /etc/X11/app-defaults /etc/X11/xinit /etc/adobe /etc/bonobo-activation /etc/ca-certificates /etc/ca-certificates.conf /etc/dbus-1 /etc/env.d /etc/env.d/java/ /etc/fonts /etc/fonts/fonts.conf /etc/foomatic /etc/games /etc/gconf /etc/gentoo-release /etc/gimp /etc/gnome-vfs-2.0 /etc/gre.d /etc/gtk-2.0 /etc/hp /etc/hsqldb /etc/htdig /etc/init.d /etc/iproute2 /etc/java-config-2 /etc/lftp /etc/logrotate.d /etc/ntop /etc/opt /etc/pango /etc/profile.d /etc/qt4 /etc/revdep-rebuild /etc/sandbox.d /etc/sasl2 /etc/sensors.d /etc/sgml /etc/sound /etc/ssl /etc/ssmtp /etc/t1lib /etc/terminfo /etc/udev/rules.d /etc/vbox /etc/xdg /etc/xinetd.d /etc/xml"
CXXFLAGS="-march=barcelona -mtune=barcelona -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--alphabetical --with-bdeps=y"
FEATURES="collision-protect distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LDFLAGS="-Wl,-O1,--hash-style=gnu,--sort-common,--as-needed"
LINGUAS="de en"
MAKEOPTS="-j7"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acpi alsa amd64 berkdb branding bzip2 cairo cdda cdr cli cracklib crypt cups dbus dri dvd dvdr dvdread emboss encode evo fam ffmpeg firefox flac gdbm gif gnutls gtk iconv idn isdnlog jpeg jpeg2k kde lame libnotify mad midi mikmod mmap mmx mmxext mp3 mp4 mpeg mudflap multilib ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pcre pdf png ppds pppd qt3 qt3support qt4 quicktime readline reflection sdl session slang spell spl sse sse2 ssl startup-notification svg sysfs theora threads tiff truetype unicode usb vcd vorbis x264 xml xorg xulrunner xv xvid zlib" ALSA_CARDS="emu10k1 hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LINGUAS="de en" USERLAND="GNU" VIDEO_CARDS="nv nvidia"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-06-24 19:33:11 UTC
Created attachment 195684 [details]
build.log
Comment 2 Jory A. Pratt gentoo-dev 2009-06-24 21:46:49 UTC
(In reply to comment #1)
> Created an attachment (id=195684) [edit]
> build.log
> 

I have reviewed the log, I know what the problem is and how to fix it. It will be later tonight that I am able to fully work on this, once I get it ready I will have nirbheek commit it to the tree.
Comment 3 Jory A. Pratt gentoo-dev 2009-06-25 03:20:38 UTC
Lars, if you could please tell me what version of xulrunner you had libproxy compiled against, what version of xulrunner you currently have. I have been unable to duplicate this bug on three different machines.
Comment 4 Rémi Cardona (RETIRED) gentoo-dev 2009-06-25 06:16:59 UTC
I can reproduce too with xulrunner 1.9.0.11 on ~x86

Thanks
Comment 5 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-06-25 06:32:18 UTC
# emerge -qpv xulrunner
[ebuild   R   ] net-libs/xulrunner-1.9.0.11  USE="-custom-optimization dbus -gnome java startup-notification"
Comment 6 Wilbur Pan 2009-06-25 11:49:53 UTC
I have the same bug, with this version of xulrunner on my box.


$ sudo emerge -pv xulrunner

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] net-libs/xulrunner-1.9.0.11  USE="dbus gnome java startup-notification -custom-optimization" 0 kB
Comment 7 Romain Perier (RETIRED) gentoo-dev 2009-06-25 11:51:52 UTC
Same problem here with xulrunner 1.9.0.11 on ~amd64, currently I fixed this
error due to missing '#define XP_UNIX' before '#include <jsapi.h>' (see
jstype.h), but an other error happens :  undefined reference to dl* functions
(dlopen, dlclose and so on) due to missing -ldl CFLAGS.

I'll fix it this evening ;) 
Comment 8 Jory A. Pratt gentoo-dev 2009-06-25 12:20:12 UTC
(In reply to comment #7)
> Same problem here with xulrunner 1.9.0.11 on ~amd64, currently I fixed this
> error due to missing '#define XP_UNIX' before '#include <jsapi.h>' (see
> jstype.h), but an other error happens :  undefined reference to dl* functions
> (dlopen, dlclose and so on) due to missing -ldl CFLAGS.
> 
> I'll fix it this evening ;) 
> 

This is a temp workaround for the header issue, not a solution. It will break everyone testing xulrunner-1.9.1, I might just end up back porting the headers for 1.9.0.11
Comment 9 Chad A. Simmons 2009-06-25 12:49:33 UTC
Can't replicate here on ~amd64.

cciechad@chadgentoo ~ $ emerge -pv xulrunner

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] net-libs/xulrunner-1.9.0.11  USE="dbus gnome java startup-notification -custom-optimization" 33,415 kB

Total: 1 package (1 reinstall), Size of downloads: 33,415 kB
cciechad@chadgentoo ~ $ emerge -pv libproxy

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] net-libs/libproxy-0.2.3-r1  USE="gnome kde python webkit xulrunner -networkmanager" 0 kB
cciechad@chadgentoo ~ $ emerge --info
Portage 2.2_rc33 (default/linux/amd64/2008.0/desktop, gcc-4.3.3, glibc-2.10.1-r0, 2.6.29-gentoo-r5 x86_64)                                                                                              
=================================================================                                   
System uname: Linux-2.6.29-gentoo-r5-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_4400+-with-gentoo-2.0.1                                                                                            
Timestamp of tree: Thu, 25 Jun 2009 07:00:02 +0000                                                  
distcc 3.1 x86_64-pc-linux-gnu [disabled]                                                           
ccache version 2.4 [disabled]                                                                       
app-shells/bash:     4.0_p24                                                                        
dev-java/java-config: 1.3.7-r1, 2.1.8-r1                                                            
dev-lang/python:     2.4.6, 2.5.4-r3, 2.6.2-r1                                                      
dev-python/pycrypto: 2.0.1-r8                                                                       
dev-util/ccache:     2.4-r8                                                                         
dev-util/cmake:      2.6.4                                                                          
dev-util/confcache:  0.4.2-r1                                                                       
sys-apps/baselayout: 2.0.1                                                                          
sys-apps/openrc:     0.4.3-r3                                                                       
sys-apps/sandbox:    2.0                                                                            
sys-devel/autoconf:  2.13, 2.63-r1                                                                  
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11                 
sys-devel/binutils:  2.19.1-r1                                                                      
sys-devel/gcc-config: 1.4.1                                                                         
sys-devel/libtool:   2.2.6a                                                                         
virtual/os-headers:  2.6.29                                                                         
ACCEPT_KEYWORDS="amd64 ~amd64"                                                                      
CBUILD="x86_64-pc-linux-gnu"                                                                        
CFLAGS="-march=native -msse3 -O2 -pipe"                                                             
CHOST="x86_64-pc-linux-gnu"                                                                         
CONFIG_PROTECT="/etc /usr/NX/etc /usr/NX/home /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"                                                                       
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"          
CXXFLAGS="-march=native -msse3 -O2 -pipe"                                                           
DISTDIR="/usr/portage/distfiles"                                                                    
FEATURES="distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"                                                                            
GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://www.gtlib.gatech.edu/pub/gentoo ftp://mirror.iawnet.sandia.gov/pub/gentoo/ ftp://ftp.ussg.iu.edu/pub/linux/gentoo http://gentoo.mirrors.pair.com/ http://mirror.mcs.anl.gov/pub/gentoo/ http://lug.mtu.edu/gentoo/"                                                                                  
LANG="en_US.utf-8"                                                                                  
LDFLAGS="-Wl,-O1"                                                                                   
LINGUAS="en_US en"                                                                                  
PKGDIR="/usr/portage/packages"                                                                      
PORTAGE_CONFIGROOT="/"                                                                              
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"          
PORTAGE_TMPDIR="/var/tmp"                                                                           
PORTDIR="/usr/portage"                                                                              
PORTDIR_OVERLAY="/usr/portage/local/layman/kde-testing /usr/portage/local/layman/sunrise /usr/portage/local/layman/games"                                                                               
SYNC="rsync://rsync.gentoo.org/gentoo-portage"                                                      
USE="3dnow 3dnowext X Xaw3d a52 aac aalib acct acl acpi adns aften aio alsa amd64 amr amrnb amrwb apache2 apm archive ares asf athena avahi bash-completion berkdb binary-drivers blas blender-game branding bullet bzip2 cairo caps cblas ccache cdaudio cdda cddb cdparanoia cdr cgi chroot cli color-console commercial connectionstatus consolekit cracklib crypt css cups curl cvs daap dbus divx djbfft dnd dri dts dvd dvdnav dvdr dvdread eds emboss emerald encode escreen esd evo exif extensions extrafilters fam fame fat ffmpeg fftw firefox firefox3 flac fortran gcrypt gd gdbm geoip gif git glitz glx gmedia gnome gnutls gpm graphviz gstreamer gtk hal hddtemp hdri hpn httpd iconv ieee1394 imagemagick inotify ipod isdnlog java joystick jpeg kde kdeenablefinal kdehiddenvisibility kdenablefinal lame lcms ldap libcaca libnotify lm_sensors logitech-mouse lzo mad md5sum mdnsresponder-compat midi mikmod mjpeg mmap mmx mmxext mng moonlight mp2 mp3 mp4 mpeg mpeg2 mpi mplayer mplayer-bin mpm-worker mudflap multilib mysql ncurses netmeeting network network-cron nls nptl nptlonly nsplugin nvidia nxclient ocaml offensive ogg openal openexr opengl openmp pam passwdqc pcre pdf perl php pic player plugins png ppds pppd python qmmm-tinker qt3 qt3support qt4 quicktime quotes rdesktop readline realmedia reflection reiserfs rtc rtsp schroedinger sdl session sftplogging shout smi smp sms snmp spell spl sqlite3 sse sse2 ssh ssl startup-notification stream subversion svg sysfs tcpd theora threads thumbnail tiff tk toolbar truetype unicode upnp usb vdpau visualization vlm vorbis wad webkit winpopup wmp x264 xcb xcomposite xml xml2 xorg xprint xscreensaver xulrunner xv xvid xvmc yv12 zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev mouse keyboard joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_US en" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 10 Chad A. Simmons 2009-06-25 13:01:57 UTC
Created attachment 195748 [details]
successful build log from ~amd64
Comment 11 Jory A. Pratt gentoo-dev 2009-06-25 13:03:43 UTC
(In reply to comment #7)
> Same problem here with xulrunner 1.9.0.11 on ~amd64, currently I fixed this
> error due to missing '#define XP_UNIX' before '#include <jsapi.h>' (see
> jstype.h), but an other error happens :  undefined reference to dl* functions
> (dlopen, dlclose and so on) due to missing -ldl CFLAGS.
> 
> I'll fix it this evening ;) 
> 

MOZJS_CFLAGS should pick up nspr support which would give you -ldl support in the build. Please attach your complete build log.
Comment 12 Dmitry Karasik 2009-06-25 15:36:47 UTC
The build fails when pkg-config doesn't have xulrunner-js and the configure script uses --cflags from libxul-unstable which doesn't have a definition for XP_UNIX.
Comment 13 Romain Perier (RETIRED) gentoo-dev 2009-06-25 20:55:51 UTC
Dmitry: xulrunner-js is available only for xulrunner-1.8.

Fixed into the tree without a revision bump, anyone can test it ?
Comment 14 Robert Förster 2009-06-25 21:40:30 UTC
no it still fails for me with the same error that is already attached here
Comment 15 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-06-25 21:52:51 UTC
(In reply to comment #13)
> Dmitry: xulrunner-js is available only for xulrunner-1.8.
> 
> Fixed into the tree without a revision bump, anyone can test it ?

Problem is fixed. Thank you :)

(In reply to comment #14)
> no it still fails for me with the same error that is already attached here

Re-sync your portage-tree and try again...
Comment 16 Robert Förster 2009-06-25 21:57:37 UTC
yea, i failed at pulling the patch from cvs, since my rsync mirror wasn't up to date, sorry about that, works here now too
Comment 17 Jory A. Pratt gentoo-dev 2009-06-26 00:38:32 UTC
(In reply to comment #13)
> Dmitry: xulrunner-js is available only for xulrunner-1.8.
> 
> Fixed into the tree without a revision bump, anyone can test it ?
> 

This is not a fix at all, this is crazy. You can not mix stable and unstable api without serious consequences.
Comment 18 Mart Raudsepp gentoo-dev 2009-06-26 01:26:34 UTC
There would be no mixing if we had a way to include what we want - just mozjs. Because we are forced to use libxul-unstable package to get an include path to the place mozilla-js headers are, we get -lxul in the linker line and $DEITY knows what else, while we didn't want them.

If mozilla-js.pc would actually give us an include path that matched what's needed to build something linking against the Libs it advertises, we could simply ask for mozilla-js and have everything work and no stable/unstable mixing up.
Comment 19 Mart Raudsepp gentoo-dev 2009-06-26 04:11:20 UTC
Created attachment 195789 [details]
libproxy-0.2.3-r2.ebuild

Ebuild that uses the new patch (attached next) and tweaks
everything for it.
The net result as far as the ebuild is concerned is that
xulrunner:1.9 and seamonkey aren't automagical anymore,
and xulrunner:1.8 won't be automagically picked instead of
1.9 when 1.8 is installed on users system
Comment 20 Mart Raudsepp gentoo-dev 2009-06-26 04:14:11 UTC
Created attachment 195790 [details]
files/libproxy-0.2.3-improve-mozjs-pkgconfig.patch

Patch that adds argument support for --with-mozjs to be able to specify
which MOZJS provider to use.

It also has a workaround (a bash substitution towards the end) for the
gentoo install dir patch caused problem, where mozilla-js.pc points at
stable headers, but javascript headers are all in unstable on gentoo.

This substitution should be changed to something that is POSIX compliant
(some sed magic from variables maybe possible?), preferably before
committing. Even more ideally it wouldn't be necessary at all if xulrunner
would have a fix (but I doubt it will be able to propagate fast enough
to not need this kind of workaround in libproxy)
Comment 21 Mart Raudsepp gentoo-dev 2009-06-26 04:17:28 UTC
Attached a new configure.ac patch and a new ebuild.
It adds an IUSE=seamonkey too, and with the temporary dirty workaround should work on all systems. Theoretically anyway. Too sleepy to test thoroughly.

Nirbheek wanted me to do it like that instead of straight committing to check it out first, so I expect him to review, fully test, and find a proper POSIX compatible way for the "/stable" => "/unstable" replace and then commit. I'll be mostly unavailable until Sunday.

/me expects to earn some autotools creds from this.. ;p
Comment 22 Mart Raudsepp gentoo-dev 2009-06-26 04:26:50 UTC
So to summarize the user visible problems here and their causes:

* If you had xulrunner-1.8 SLOT still installed, libproxy was always building against xulrunner-1.8 and everything compiled fine and probably worked fine, but 1.8 was silently used instead of 1.9, despite RDEPEND asking for 1.9. Not sure if there are any compatibility problems if used together with some other xul using thing that uses 1.9 javascript.

* If you built libproxy-0.2.3-r1 after comment #13 you might experience some spurious crashes (reported by comment #17), from what I can only assume would be libxul.so and related higher level libraries (than mozjs) getting used wrongly, while we didn't really want them at all for dynamic linking -- all the -r1 patches made libproxy ask for the full libxul-unstable package, which includes libxul, nspr and the whole lot.

* I forgot point 3.

Oh and the patch replaces the configure.ac patch used in -r1.
And if you modify the patch through "ebuild libproxy*-r2 prepare", make sure you don't let it run the subsequent patches or especially the FBSD compatibility sed if you intend to retake the diff. That sed wasted me some time (had other patches commented out but didn't notice the sed at first).
Oh and that sed doesn't actually work if on the same line two "==" usages happen for test. Not sure if that matter for FBSD. FIXME comment in ebuild I believe
Comment 23 Mart Raudsepp gentoo-dev 2009-06-26 21:32:03 UTC
*** Bug 275118 has been marked as a duplicate of this bug. ***
Comment 24 Mart Raudsepp gentoo-dev 2009-06-29 08:34:53 UTC
Ok then. By my understanding our mozilla guys will have a straight to stable xulrunner revbump for us that fixes mozilla-js.pc, so we can just depend on that fixed revision to fix the build problem.
I have the patch to fix for automagic mozilla-js provider ready to go (with the cflags workaround hack removed) on my system locally, together with the dep increase and seamonkey USE flag addition, so that when you say "USE=xulrunner", you'll actually get it building and linking against xulrunner-1.9, and when you say "USE=seamonkey -xulrunner" you'll actually get it building and linking against seamonkey (someone might want to test that one deeper later...)

So as soon as we have a fixed xulrunner in-tree, I can commit the libproxy fixes when I have a chance, and then we only have the circular deps problems in bug 269747 remaining...
When xulrunner bump with the fix is ready in-tree, please ping me on IRC as I can react more promptly then (I read bugzilla e-mail relatively rarely). That xulrunner revbump is in mozilla overlay, but has another fix (gnomebreakpad stuff) that isn't wanted in the straight-to-stable portage revision but as an ~arch one after some more testing.
Comment 25 Mart Raudsepp gentoo-dev 2009-06-29 19:33:17 UTC
This should be fixed now in net-libs/libproxy-0.2.3-r2.

Changes were:

* Patch libproxy to allow choosing a certain mozjs provider (xul-1.8, xul-1.9, firefox[-xul], seamonkey)
* Add seamonkey USE flag and choose either xul-1.9, seamonkey or none as mozjs provider on Gentoo based on USE flags, this also ensures xul-1.8 won't be used, which previously always was if installed on system.
* Force >=net-libs/xulrunner-1.9.0.11-r1 as the USE=xulrunner dependency, as it has its mozilla-js.pc file fixed and we can successfully compile against it. xulrunner-1.9.0.11-r1 is stable on all architectures where -r0 was.

So I consider this bug fixed. Please reopen or file a new one in case of further mozjs related build issues (and new bugs for any other issues of course :)
Comment 26 Mart Raudsepp gentoo-dev 2009-08-03 17:47:46 UTC
Integration of my configure.ac patch is worked on the URL I added to the URL field for reference.
Comment 27 Frank Hellmuth 2010-05-20 09:08:00 UTC
Compiling 

net-libs/libproxy-0.4.1 [0.2.3-r3] USE="gnome kde perl%* python webkit xulrunner -debug% -networkmanager -vala%" 

fails with


[...]
[ 82%] [ 85%] [ 88%] Building CXX object libproxy/CMakeFiles/config_kde4.dir/modules/config_kde4.o           
Building CXX object libproxy/CMakeFiles/config_gnome.dir/modules/config_gnome.o                              
Building CXX object libproxy/CMakeFiles/pacrunner_mozjs.dir/modules/pacrunner_mozjs.o                        
In file included from /usr/lib64/xulrunner/include/js/jspubtd.h:45,                                          
                 from /usr/lib64/xulrunner/include/js/jsapi.h:47,
                 from /var/tmp/portage/net-libs/libproxy-0.4.1/work/libproxy-0.4.1/libproxy/modules/pacrunner_mozjs.cpp:34:
/usr/lib64/xulrunner/include/js/jstypes.h:248:6: error: #error "Must define one of XP_BEOS, XP_OS2, XP_WIN or XP_UNIX"
/usr/lib64/xulrunner/include/js/jstypes.h:260:5: warning: "JS_BYTES_PER_BYTE" is not defined
/usr/lib64/xulrunner/include/js/jstypes.h:264:2: error: #error No suitable type for JSInt8/JSUint8
[...]

Intalled version of xulrunner is 1.9.2.3-r1 with USE="alsa dbus gnome java libnotify startup-notification wifi -custom-optimization -debug -system-sqlite"

----------------

# emerge --info
Portage 2.2_rc67 (default/linux/amd64/10.0/desktop, gcc-4.4.3, glibc-2.11.1-r0, 2.6.34-gentoo-default x86_64)
=================================================================
System uname: Linux-2.6.34-gentoo-default-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_4200+-with-gentoo-2.0.1
Timestamp of tree: Thu, 20 May 2010 08:30:01 +0000
app-shells/bash:     4.1_p5
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r2, 3.1.2-r3
dev-util/cmake:      2.8.1-r1
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.33
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.gentoo.no/ http://trumpetti.atm.tut.fi/gentoo/ http://gentoo.blueyonder.co.uk http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en de"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/nx /usr/portage/local/layman/science /usr/portage/local/layman/sunrise /usr/portage/local/layman/gnome2-globalmenu /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow R X a52 aac aalib accessibility acl acpi akonadi alsa amazon amd64 apache2 avahi bash-completion berkdb bluetooth branding bzip2 cairo calendar cddb cdparanoia cdr cli consolekit cracklib crypt css cups cvs cxx dbus desktopglobe detex dia dirac djvu dri dssi dts dv dvb dvd dvdnav dvdr dvi2tty dvipdfm ebook eigen emacs emboss encode examples exif extras fbcon festival ffmpeg fftw firefox firefox3 flac fluidsynth fortran ftp gd gdbm gecko gif gimp ginac glut gmp gnome gnuplot gnutls gphoto2 gpm gps graphviz gsl gstreamer gtk hal iconv icq idn ieee1394 imagemagick imap inotify ipod jack jackmidi java java6 javascript jpeg kde kerberos ladspa lame lapack lash latex latex3 lcms libcaca libnotify libsamplerate lirc lm_sensors luatex lzo mad midi mikmod mime mmx mmxext mng modules mozilla mp3 mp4 mpeg mplayer mudflap multilib multimedia music musicbrainz mysql mythtv ncurses nls nntp nptl nptlonly nsplugin ocrad offensive ogg openexr opengl openmp pam pango pcre pdf perl plasma player plotutils plugins-symlink png policykit posix postscript ppds pppd preview-latex pstoedit pstricks publishers python qt3support qt4 quicktime rar raw rdesktop readline redeyes reflection reiserfs rss samba scanner sdl semantic-desktop session slang smp sms sndfile snmp sockets sound sox spell spl sse sse2 ssh ssl startup-notification subversion svg sysfs syslog tcpd tex4ht theora threads tiff timidity truetype udev unicode usb v4l v4l2 vcd videos virtualbox vnc vorbis vst wav webcam webkit wifi winetriks wmf wxwindows x264 xcb xcomposite xemacs xetex xine xinerama xml xorg xosd xpm xscreensaver xulrunner xv xvid xvmc yahoo zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en de" LIRC_DEVICES="devinput" RUBY_TARGETS="ruby18" SANE_BACKENDS="hp" USERLAND="GNU" VIDEO_CARDS="nvidia vesa fbdev" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS