Thursday, November 11, 2010
error: gelf.h: No such file or directory
Q: New system, first build, hitting a series of elf and ssl compile errors:
elem_stage_get_digest.c:36:18: error: gelf.h: No such file or directory
elem_stage_get_digest.c:37:20: error: libelf.h: No such file or directory
elem_stage_get_digest.c:39:25: error: openssl/evp.h: No such file or directory
make[5]: *** [obj/native-linux-x86/elem_stage_get_digest.o] Error 1
A: You need a few more packages. Become root.
For the elf errors,
$ yum install elfutils
$ yum install elfutils-libelf-devel
to verify:
$ ll /usr/include grep elf
You should see the elf ones now.
For the ssl package:
$ yum install openssl-devel-0.9.8e (can try g also)
to verify:
$ ll /usr/include grep ssl
You should now see openssl dir.
elem_stage_get_digest.c:36:18: error: gelf.h: No such file or directory
elem_stage_get_digest.c:37:20: error: libelf.h: No such file or directory
elem_stage_get_digest.c:39:25: error: openssl/evp.h: No such file or directory
make[5]: *** [obj/native-linux-x86/elem_stage_get_digest.o] Error 1
A: You need a few more packages. Become root.
For the elf errors,
$ yum install elfutils
$ yum install elfutils-libelf-devel
to verify:
$ ll /usr/include grep elf
You should see the elf ones now.
For the ssl package:
$ yum install openssl-devel-0.9.8e (can try g also)
to verify:
$ ll /usr/include grep ssl
You should now see openssl dir.
expat.h: No such file or directory
Q: New system, first build, hitting this compile error for expat:
xml_utils.c:61:19: error: expat.h: No such file or directorymake[4]: *** [obj/native-linux-x86/xml_utils.o] Error 1
A: You're missing a few packages in your new system. Become root and add package expat-devel.
$ yum install expat-devel
To verify:
$ ll /usr/include/expat.h
xml_utils.c:61:19: error: expat.h: No such file or directorymake[4]: *** [obj/native-linux-x86/xml_utils.o] Error 1
A: You're missing a few packages in your new system. Become root and add package expat-devel.
$ yum install expat-devel
To verify:
$ ll /usr/include/expat.h
Monday, November 08, 2010
Build errors with kernels 2.6.27 and higher e.g. BUG_TRAP etc.
Q: Trying to build element 3.x for one of the newer linux kernels, e.g. FC9 is at 2.6.27. The build dies while building LINX. This wasn't a problem with the older kernel?
/home/jmir/SystemManager/Releases/3.1.0_2/3.1.0_sysmgr2/element_3.1.0_sysmgr2/3party/linx/linux-x86_64/linx-2.0.4/net/linx/af_linx.c: In function ‘linx_skb_store_bits’:/home/jmir/SystemManager/Releases/3.1.0_2/3.1.0_sysmgr2/element_3.1.0_sysmgr2/3party/linx/linux-x86_64/linx-2.0.4/net/linx/af_linx.c:1123: error: implicit declaration of function ‘BUG_TRAP’
A: There are several kernel changes in the newer kernels that impact LINX. These are fixed in linx-2.1.0.
- Download the tarball linx-2.1.0.tar.gz
- Place tarball into 3party/linx
- Change the build/versions.mk LINX_VERSION to point to the new release number
/home/jmir/SystemManager/Releases/3.1.0_2/3.1.0_sysmgr2/element_3.1.0_sysmgr2/3party/linx/linux-x86_64/linx-2.0.4/net/linx/af_linx.c: In function ‘linx_skb_store_bits’:/home/jmir/SystemManager/Releases/3.1.0_2/3.1.0_sysmgr2/element_3.1.0_sysmgr2/3party/linx/linux-x86_64/linx-2.0.4/net/linx/af_linx.c:1123: error: implicit declaration of function ‘BUG_TRAP’
A: There are several kernel changes in the newer kernels that impact LINX. These are fixed in linx-2.1.0.
- Download the tarball linx-2.1.0.tar.gz
- Place tarball into 3party/linx
- Change the build/versions.mk LINX_VERSION to point to the new release number
free invisible web counter