FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 01-23-2010, 08:01 PM
Mike Viau
 
Default Compilation error

Hi there,

I seem to have run into what I hope to be a common compliation error that I unfortunatly can not get past. The problem is with very basic C libraries. In the xen project Im compiling there is a crc32.c source file where zutil.h is included (this seems to link up). Then inside zutil.h file, the standard c libraries stdlib.h and string.h are inlcuded but these files can not be found.

Error output can be seen below.

I am running Debian Lenny x86_64 and have installed many pacakges in an attempt to satifiy the many dependancies for the xen-3.4.2 tar.gz which include. Also if anyone happens to have a more barebone debain dependancy list that works to compile all features of the latest version of xen, please let me know



Dependancies installed:

build-essential make gcc gcc-multilib libc6-dev libc6 module-init-tools bzip2 dpkg-dev apt-src apt-build sudo fakeroot auto-apt devscripts dh-make module-assistant rubygems zlib1g-dbg zlib1g-dev python python-dev python-twisted python-xml python-pyopenssl python-pam libncurses-dev libncurses5-dbg libncursesw5-dev libncursesw5-dbg openssl openssl-blacklist openssl-blacklist-extra libcurl4-openssl-dev libcurl3-dbg manpages-dev glibc-doc bridge-utils iproute iproute-dev libvncserver-dev libsdl-dev libjpeg62-dev x11-common libx11-dev xserver-xorg-dev bcc bin86 gawk transfig tgif texinfo pciutils-dev pciutils mercurial newlib-source



Error output:

In file included from crc32.c:29:
zutil.h:23:22: error: string.h: No such file or directory
In file included from zutil.h:24,
**************** from crc32.c:29:
/root/xen_source/xen-3.4.2/stubdom/../extras/mini-os/include/posix/stdlib.h:4:25: error: stdlib.h: No such file or directory
make[2]: *** [crc32.o] Error 1
make[2]: Leaving directory `/root/xen_source/xen-3.4.2/stubdom/zlib-x86_64'
make[1]: *** [cross-root-x86_64/x86_64-xen-elf/lib/libz.a] Error 2
make[1]: Leaving directory `/root/xen_source/xen-3.4.2/stubdom'
make: *** [install-stubdom] Error 2
root@localhost:/root/xen_source/xen-3.4.2# zutil.h:23:22: error: string.h: No such file or directory
bash: zutil.h:23:22:: command not found
*


Thank You.

-M



Windows Live Messenger makes it easier to stay in touch - learn how!
 
Old 01-23-2010, 09:20 PM
Mike Viau
 
Default Compilation error

/usr/include/string.h and

/usr/include/stdlib.h

are present.....

I also noticed these C libraries are present in the stubdom directory which is where the error is occuring (make: *** [install-stubdom] Error 2)


root@localhost:/root/xen_source/xen_root# find / -name 'string.h' | grep stubdom
/root/xen_source/xen-3.4.2/stubdom/newlib-1.16.0/newlib/libc/include/sys/string.h
/root/xen_source/xen-3.4.2/stubdom/newlib-1.16.0/newlib/libc/include/string.h
/root/xen_source/xen-3.4.2/stubdom/newlib-1.16.0/newlib/libc/sys/linux/sys/string.h

root@localhost:/root/xen_source/xen_root# find / -name 'stdlib.h' | grep stubdom
/root/xen_source/xen-3.4.2/stubdom/newlib-1.16.0/newlib/libc/include/stdlib.h
/root/xen_source/xen-3.4.2/stubdom/newlib-1.16.0/newlib/libc/include/machine/stdlib.h
/root/xen_source/xen-3.4.2/stubdom/newlib-1.16.0/newlib/libc/machine/powerpc/machine/stdlib.h


Please advise further, thanks.

*

-M




Date: Sat, 23 Jan 2010 22:07:36 +0100
From: michael.schmidt@xncore.com
To: xen-users@lists.xensource.com
Subject: Re: [Xen-users] Compilation error
CC: mike.viau@sheridanc.on.ca














In file included from crc32.c:29:

zutil.h:23:22: error: string.h: No such file or directory

In file included from zutil.h:24,

**************** from crc32.c:29:

/root/xen_source/xen-3.4.2/stubdom/../extras/mini-os/include/posix/stdlib.h:4:25:
error: stdlib.h: No such file or directory

make[2]: *** [crc32.o] Error 1

make[2]: Leaving directory
`/root/xen_source/xen-3.4.2/stubdom/zlib-x86_64'

make[1]: *** [cross-root-x86_64/x86_64-xen-elf/lib/libz.a] Error 2

make[1]: Leaving directory `/root/xen_source/xen-3.4.2/stubdom'

make: *** [install-stubdom] Error 2

root@localhost:/root/xen_source/xen-3.4.2# zutil.h:23:22: error:
string.h: No such file or directory

bash: zutil.h:23:22:: command not found




If

/usr/include/string.h does not exists, you have
to re-install libc6-dev



Hi there,

I seem to have run into what I hope to be a common
compliation error that I unfortunatly can not get past. The problem is
with very basic C libraries. In the xen project Im compiling there is a
crc32.c source file where zutil.h is included (this seems to link up).
Then inside zutil.h file, the standard c libraries stdlib.h and string.h are inlcuded but these files can not be found.

Error output can be seen below.

I
am running Debian Lenny x86_64 and have installed many pacakges in an
attempt to satifiy the many dependancies for the xen-3.4.2 tar.gz which
include. Also if anyone happens to have a more barebone debain
dependancy list that works to compile all features of the latest
version of xen, please let me know



Dependancies installed:

build-essential make gcc gcc-multilib libc6-dev libc6
module-init-tools bzip2 dpkg-dev apt-src apt-build sudo fakeroot
auto-apt devscripts dh-make module-assistant rubygems zlib1g-dbg
zlib1g-dev python python-dev python-twisted python-xml python-pyopenssl
python-pam libncurses-dev libncurses5-dbg libncursesw5-dev
libncursesw5-dbg openssl openssl-blacklist openssl-blacklist-extra
libcurl4-openssl-dev libcurl3-dbg manpages-dev glibc-doc bridge-utils
iproute iproute-dev libvncserver-dev libsdl-dev libjpeg62-dev
x11-common libx11-dev xserver-xorg-dev bcc bin86 gawk transfig tgif
texinfo pciutils-dev pciutils mercurial newlib-source

Windows Live Messenger makes it easier to stay in touch - learn how!
 
Old 10-10-2011, 07:14 PM
"mattias"
 
Default compilation error

i try to compile a application but
/usr/bin/ld can not find -lc
what librarie are i missing
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 10-10-2011, 10:30 PM
Ljubomir Ljubojevic
 
Default compilation error

Vreme: 10/10/2011 09:14 PM, mattias piše:
> i try to compile a application but
> /usr/bin/ld can not find -lc
> what librarie are i missing
> _______________________________________________
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
>
http://www.cyberciti.biz/faq/centos-rhel-redhat-usrbinld-cannot-findlc-error/:

You need to install the glibc-static package. It contains the C library
static libraries for -static linking. You don't need these, unless you
link statically, which is highly discouraged. But mini_sendmail is
specially used for chrooted setup. To install this login as root and
type the following command:
# yum install glibc-static

Does this help? It only took me 30 seconds on Google.

--

Ljubomir Ljubojevic
(Love is in the Air)
PL Computers
Serbia, Europe

Google is the Mother, Google is the Father, and traceroute is your
trusty Spiderman...
StarOS, Mikrotik and CentOS/RHEL/Linux consultant
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 

Thread Tools




All times are GMT. The time now is 12:14 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org