Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mDNSResponder compile error
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
andrewwalker27
l33t
l33t


Joined: 27 Jun 2005
Posts: 660

PostPosted: Fri Aug 13, 2010 8:36 am    Post subject: mDNSResponder compile error Reply with quote

I'm having a problem with 2 machines updating mDNSResponder to 212.1-r1 on ~x86_64
The error I get is as follows

make: *** [build/prod/libjdns_sd.so] Error 1
* ERROR: net-misc/mDNSResponder-212.1-r1 failed:
* make mDNSPosix java failed
*
* Call stack:
* ebuild.sh, line 54: Called src_compile
* environment, line 4539: Called die
* The specific snippet of code:
* mdnsmake Java || die "make mDNSPosix java failed";
*
* If you need support, post the output of 'emerge --info =net-misc/mDNSResponder-212.1-r1',
* the complete build log and the output of 'emerge -pqv =net-misc/mDNSResponder-212.1-r1'.
!!! When you file a bug report, please include the following information:
GENTOO_VM=sun-jdk-1.6 CLASSPATH="" JAVA_HOME="/opt/sun-jdk-1.6.0.21"
JAVACFLAGS="-source 1.4 -target 1.4" COMPILER=""
and of course, the output of emerge --info
* The complete build log is located at '/var/tmp/portage/net-misc/mDNSResponder-212.1-r1/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/net-misc/mDNSResponder-212.1-r1/temp/environment'.
* S: '/var/tmp/portage/net-misc/mDNSResponder-212.1-r1/work/mDNSResponder-212.1'

>>> Failed to emerge net-misc/mDNSResponder-212.1-r1, Log file:

>>> '/var/tmp/portage/net-misc/mDNSResponder-212.1-r1/temp/build.log'

* Messages for package net-misc/mDNSResponder-212.1-r1:

* ERROR: net-misc/mDNSResponder-212.1-r1 failed:
* make mDNSPosix java failed
*
* Call stack:
* ebuild.sh, line 54: Called src_compile
* environment, line 4539: Called die
* The specific snippet of code:
* mdnsmake Java || die "make mDNSPosix java failed";
*


I think the real problem may be here

Client library done
x86_64-pc-linux-gnu-gcc -o build/prod/libjdns_sd.so ../mDNSShared/Java/JNISupport.c -source 1.4 -target 1.4 -Iobjects/prod -Lbuild/prod
x86_64-pc-linux-gnu-gcc: 1.4: No such file or directory
x86_64-pc-linux-gnu-gcc: 1.4: No such file or directory
x86_64-pc-linux-gnu-gcc: unrecognized option '-source'
x86_64-pc-linux-gnu-gcc: unrecognized option '-target'
In file included from ../mDNSShared/Java/JNISupport.c:135:
objects/prod/DNSSD.java.h:2:17: error: jni.h: No such file or directory
In file included from ../mDNSShared/Java/JNISupport.c:135:
objects/prod/DNSSD.java.h:35: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'jint'

Can anyone confirm this problem? I'd file a bug report if I had any idea what the problem was!
Back to top
View user's profile Send private message
xenon
Guru
Guru


Joined: 25 Dec 2002
Posts: 432
Location: Europe

PostPosted: Fri Aug 13, 2010 12:59 pm    Post subject: Reply with quote

I think you're right, this should be the source of the problem (it's the only difference between the 212.1 and 212.1-r1 ebuilds):

Code:

 src_prepare() {
       # Respect CFLAGS,LDFLAGS everywhere
       sed -i "/\$(CFLAGS_DEBUG)$/s: = : & ${CFLAGS} ${LDFLAGS} :" "${S}"/mDNSPosix/Makefile
       sed -i "s:cc:$(tc-getCC) ${CFLAGS} ${LDFLAGS} :" "${S}"/Clients/Makefile
       java-pkg-opt-2_src_prepare
 }
Back to top
View user's profile Send private message
SamuliSuominen
Retired Dev
Retired Dev


Joined: 30 Sep 2005
Posts: 2133
Location: Finland

PostPosted: Fri Aug 13, 2010 1:45 pm    Post subject: Reply with quote

Please open a bug at https://bugs.gentoo.org/
Back to top
View user's profile Send private message
Hwoarang
Retired Dev
Retired Dev


Joined: 24 Feb 2007
Posts: 701
Location: Leeds, UK

PostPosted: Fri Aug 13, 2010 2:08 pm    Post subject: Reply with quote

+ 13 Aug 2010; Markos Chandras <hwoarang@gentoo.org>
+ mDNSResponder-212.1-r1.ebuild:
+ Applied missing patch. Bug reported on Gentoo forums:
+ https://forums.gentoo.org/viewtopic-t-839948-highlight-.html
+
Back to top
View user's profile Send private message
xenon
Guru
Guru


Joined: 25 Dec 2002
Posts: 432
Location: Europe

PostPosted: Fri Aug 13, 2010 4:28 pm    Post subject: Reply with quote

That was fast. :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum