View previous topic :: View next topic |
Author |
Message |
andrewwalker27 l33t
Joined: 27 Jun 2005 Posts: 660
|
Posted: Fri Aug 13, 2010 8:36 am Post subject: mDNSResponder compile error |
|
|
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 |
|
|
xenon Guru
Joined: 25 Dec 2002 Posts: 432 Location: Europe
|
Posted: Fri Aug 13, 2010 12:59 pm Post subject: |
|
|
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 |
|
|
SamuliSuominen Retired Dev
Joined: 30 Sep 2005 Posts: 2133 Location: Finland
|
|
Back to top |
|
|
Hwoarang Retired Dev
Joined: 24 Feb 2007 Posts: 701 Location: Leeds, UK
|
|
Back to top |
|
|
xenon Guru
Joined: 25 Dec 2002 Posts: 432 Location: Europe
|
Posted: Fri Aug 13, 2010 4:28 pm Post subject: |
|
|
That was fast. |
|
Back to top |
|
|
|