WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] Hi all,

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] Hi all,
From: Lakshitha Harshan <harshan.dll@xxxxxxxxx>
Date: Sat, 2 Apr 2011 11:05:14 +0530
Delivery-date: Fri, 01 Apr 2011 22:36:11 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=ZMoxPy7s9zMzA5Cb7g8knUC9WgjnaSZcAofHlrreCIs=; b=nm9aZ2dA8l9lp6Fjo9fQ4SW3eIY8nKgR4bNO9jtQ7PSBAZvJV4IgN/jY6I9R4HsljV BV8ACNH3E1mB0kKnxr+xU/0TJbcsWJJ8zl7gvhj1bQkfri9RQHUh+6fU8xQZrFsc0+Yy 6/5/YIokCn9MAseuq4JhHhl/xcitcObHLy0wE=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=H7L0gEy0NYhNODTlG2Zj9JhuXKAHLhUAzApi1aUKEHCVkP3VYSbDLCuatC/2cHXnYi tRoIEG5t/wWyYFS4y1TpnWmjUo+XmNdwckgBggZAcS1uhzKmUUcWXQj0/zYOZgNmDJiy z2E6o0In0b78sR86UQVjWbv84CxalJp4kIvEw=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
I'm trying to write the hash values of shared memory pages to a disk file. To do that i have changed mem_sharing.c code. The change includes a call to fopen function.
However when compiling the source i got the following error. I have included header files which are on "/usr/include".

make -f /home/thilakshi/Xen/Xen-4.2/xen-4.0-testing.hg/xen/Rules.mk /home/thilakshi/Xen/Xen-4.2/xen-4.0-testing.hg/xen/common/symbols-dummy.o
make[4]: Entering directory `/home/thilakshi/Xen/Xen-4.2/xen-4.0-testing.hg/xen/arch/x86'
gcc -O2 -fomit-frame-pointer -m64 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement  -DNDEBUG -nostdinc -fno-builtin -fno-common -iwithprefix include -Werror -Wno-pointer-arith -pipe -I/home/thilakshi/Xen/Xen-4.2/xen-4.0-testing.hg/xen/include  -I/home/thilakshi/Xen/Xen-4.2/xen-4.0-testing.hg/xen/include/asm-x86/mach-generic -I/home/thilakshi/Xen/Xen-4.2/xen-4.0-testing.hg/xen/include/asm-x86/mach-default -I/usr/include -msoft-float -fno-stack-protector -fno-exceptions -mno-red-zone -fpic -fno-asynchronous-unwind-tables -DGCC_HAS_VISIBILITY_ATTRIBUTE -g -D__XEN__ -MMD -MF .symbols-dummy.o.d -c /home/thilakshi/Xen/Xen-4.2/xen-4.0-testing.hg/xen/common/symbols-dummy.c -o /home/thilakshi/Xen/Xen-4.2/xen-4.0-testing.hg/xen/common/symbols-dummy.o
make[4]: Leaving directory `/home/thilakshi/Xen/Xen-4.2/xen-4.0-testing.hg/xen/arch/x86'
ld   -melf_x86_64 -L/usr/include -L/usr/include/ -T xen.lds -N /home/thilakshi/Xen/Xen-4.2/xen-4.0-testing.hg/xen/arch/x86/boot/built_in.o /home/thilakshi/Xen/Xen-4.2/xen-4.0-testing.hg/xen/common/built_in.o /home/thilakshi/Xen/Xen-4.2/xen-4.0-testing.hg/xen/drivers/built_in.o /home/thilakshi/Xen/Xen-4.2/xen-4.0-testing.hg/xen/xsm/built_in.o /home/thilakshi/Xen/Xen-4.2/xen-4.0-testing.hg/xen/arch/x86/built_in.o /home/thilakshi/Xen/Xen-4.2/xen-4.0-testing.hg/xen/crypto/built_in.o \
   /home/thilakshi/Xen/Xen-4.2/xen-4.0-testing.hg/xen/common/symbols-dummy.o -o /home/thilakshi/Xen/Xen-4.2/xen-4.0-testing.hg/xen/.xen-syms.0
/home/thilakshi/Xen/Xen-4.2/xen-4.0-testing.hg/xen/arch/x86/built_in.o: In function `mem_sharing_nominate_page':
/home/thilakshi/Xen/Xen-4.2/xen-4.0-testing.hg/xen/arch/x86/mm/mem_sharing.c:517: undefined reference to `fopen'
/home/thilakshi/Xen/Xen-4.2/xen-4.0-testing.hg/xen/arch/x86/mm/mem_sharing.c:517: relocation truncated to fit: R_X86_64_PC32 against undefined symbol `fopen'
ld: /home/thilakshi/Xen/Xen-4.2/xen-4.0-testing.hg/xen/.xen-syms.0: hidden symbol `fopen' isn't defined
ld: final link failed: Nonrepresentable section on output
make[3]: *** [/home/thilakshi/Xen/Xen-4.2/xen-4.0-testing.hg/xen/xen-syms] Error 1
make[3]: Leaving directory `/home/thilakshi/Xen/Xen-4.2/xen-4.0-testing.hg/xen/arch/x86'
make[2]: *** [/home/thilakshi/Xen/Xen-4.2/xen-4.0-testing.hg/xen/xen] Error 2
make[2]: Leaving directory `/home/thilakshi/Xen/Xen-4.2/xen-4.0-testing.hg/xen'
make[1]: *** [install] Error 2
make[1]: Leaving directory `/home/thilakshi/Xen/Xen-4.2/xen-4.0-testing.hg/xen'
make: *** [install-xen] Error 2

Can someone please check this error and tell me where to correct?

Thanks.
Harshan

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>