[Solved] Make'ing C++ project - multiple including error
Hi all,
I've rewritten a makefile for my project in a more "correct" way. Reason was not to recompile everything while debugging (complete rebuild takes about 10 seconds, maybe more). But it led to new troubles - now there are a lot of errors, showing that headers are included many times, despite header guards. In makefile, target "debug" is a new way build, "debug_old" - an old one which builds normally. I don't want the rules for each source file to be written manually.
Is it a problem in the makefile? How it can be corrected?
Makefile:
SOURCES=main.cpp data_types.cpp physics.cpp io.cpp
OBJECTS=$(addprefix obj/,$(SOURCES:.cpp=.o))
EXECUTABLE=bin/ThreadedParticles
DEBUG_FLAGS=-Wall -g -c
DEBUG_FLAGS_OLD=-lboost_thread-mt -Wall -g
LDFLAGS=-lboost_thread-mt
debug: $(SOURCES) $(EXECUTABLE)
$(EXECUTABLE): $(OBJECTS)
g++ $(LDFLAGS) -o $@ $(OBJECTS)
$(OBJECTS): $(SOURCES)
g++ $(DEBUG_FLAGS) -o $@ $<
debug_old:
g++ $(DEBUG_FLAGS_OLD) -o $(EXECUTABLE) $(SOURCES)
$ make -B debug
g++ -Wall -g -c -o obj/main.o main.cpp
main.cpp: In function 'int main(int, char**)':
main.cpp:32:8: warning: enumeration value 'SUCCESS' not handled in switch
main.cpp:32:8: warning: enumeration value 'LINES_LEFT' not handled in switch
main.cpp:32:8: warning: enumeration value 'WRONG_VERSION' not handled in switch
main.cpp:32:8: warning: enumeration value 'FEW_PARTICLES' not handled in switch
main.cpp:34:2: warning: label 'WRONG_VERSION' defined but not used
main.cpp:37:2: warning: label 'FEW_PARTICLES' defined but not used
main.cpp:40:2: warning: label 'LINES_LEFT' defined but not used
main.cpp:42:2: warning: label 'SUCCESS' defined but not used
g++ -Wall -g -c -o obj/data_types.o main.cpp
main.cpp: In function 'int main(int, char**)':
# same warnings as for main.o
g++ -Wall -g -c -o obj/physics.o main.cpp
main.cpp: In function 'int main(int, char**)':
# same warnings as for main.o
g++ -Wall -g -c -o obj/io.o main.cpp
main.cpp: In function 'int main(int, char**)':
# same warnings as for main.o
g++ -lboost_thread-mt -o bin/ThreadedParticles obj/main.o obj/data_types.o obj/physics.o obj/io.o
obj/data_types.o: In function `main':
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/../../../../include/c++/4.5.1/exception:64: multiple definition of `main'
obj/main.o:/mnt/data/Coding/Current Projects/ThreadedParticles/main.cpp:9: first defined here
obj/physics.o: In function `main':
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/../../../../include/c++/4.5.1/exception:64: multiple definition of `main'
obj/main.o:/mnt/data/Coding/Current Projects/ThreadedParticles/main.cpp:9: first defined here
obj/io.o: In function `main':
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/../../../../include/c++/4.5.1/exception:64: multiple definition of `main'
obj/main.o:/mnt/data/Coding/Current Projects/ThreadedParticles/main.cpp:9: first defined here
obj/main.o: In function `main':
main.cpp:(.text+0x109): undefined reference to `prepareWorld(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, int, tpPhysicsGravity**, tpOutput**)'
main.cpp:(.text+0x157): undefined reference to `tpPhysics::iterationNumber()'
main.cpp:(.text+0x171): undefined reference to `tpPhysics::startThreads()'
main.cpp:(.text+0x17d): undefined reference to `tpOutput::start()'
main.cpp:(.text+0x189): undefined reference to `tpPhysics::stopThreads()'
main.cpp:(.text+0x195): undefined reference to `tpOutput::stop()'
main.cpp:(.text+0x1b5): undefined reference to `tpOutput::start()'
main.cpp:(.text+0x1c1): undefined reference to `tpOutput::stop()'
obj/main.o: In function `tpPhysicsGravity::~tpPhysicsGravity()':
main.cpp:(.text._ZN16tpPhysicsGravityD2Ev[_ZN16tpPhysicsGravityD5Ev]+0x13): undefined reference to `vtable for tpPhysicsGravity'
obj/data_types.o: In function `main':
# same "undefined reference" as for previous
obj/physics.o: In function `main':
# same "undefined reference" as for previous
obj/io.o: In function `main':
# same "undefined reference" as for previous
collect2: ld returned 1 exit status
make: *** [bin/ThreadedParticles] Error 1
Last edited by Kosmonavt (2010-11-30 08:16:56)
Situation is the following: there are also physics.hpp, io.hpp and data_types.hpp. main() is declared only in main.cpp one time, also not used by any classes/functions. It was surprising for me, since debug_old build normally, only warnings about enum are printed.
data_types.hpp:
#ifndef DATA_TYPES_HPP_INCLUDED
#define DATA_TYPES_HPP_INCLUDED
#include <valarray>
#include <vector>
#include <cmath>
// Common typedefs and (maybe) data types
typedef std::valarray<double> vector3;
typedef std::vector<vector3> vector_array;
typedef std::vector<double> d_array;
// Defining square of vector length
double norm( vector3 v );
#endif // DATA_TYPES_HPP_INCLUDED
io.hpp:
#ifndef IO_HPP_INCLUDED
#define IO_HPP_INCLUDED
#include <fstream>
// #include <boost/thread.hpp>
#include <string>
#include <sstream>
#include "data_types.hpp"
#include "physics.hpp"
// *** Output facility ***
class tpOutput
public:
tpOutput(std::string filename, int version, int skip, tpPhysics* physsystem);
~tpOutput() { }
void start();
void stop();
private:
std::ofstream outputFile;
// boost::thread outputWorker;
int skipSize;
int versionNumber;
tpPhysics* physSystem;
void writeResults();
void writeTableHeader();
void writeVersion();
void writeSettingOverview();
// *** Input facility ***
enum prepareError { SUCCESS, LINES_LEFT, WRONG_VERSION, FEW_PARTICLES };
prepareError prepareWorld( std::string settingFileName, std::string outputFileName, int worker_num, tpPhysicsGravity** world, tpOutput** log );
namespace input
int parseSettings( std::ifstream& fin, long int& part_num, long int& iter_num, double& delta_t, int& skip, std::string& desc );
// 0 - if incompatible at all, nonzero - number of setting file ID
// for Ver2 setting file
void readParticleData_2( std::ifstream& fin, d_array& m_range, d_array& c_range, d_array& v_range );
// for coord/velocity, lower values are in 0-2,
// higher - in 3-5
// for Ver1 setting file; to be called for every particle in list
void readParticleData_1( std::ifstream& fin, double& m, vector3& c, vector3& v );
// Getting CSV key values
void getKey( std::ifstream& f, long int& result );
void getKey( std::ifstream& f, double& result );
void getKey( std::ifstream& f, int& result );
#endif // IO_HPP_INCLUDED
physics.hpp:
#ifndef PARTICLES_HPP_INCLUDED
#define PARTICLES_HPP_INCLUDED
#include <boost/thread.hpp>
#include <boost/shared_ptr.hpp>
#include <cmath>
#include <vector>
#include <valarray>
#include <cstdlib>
#include <ctime>
#include <iostream>
#include "data_types.hpp"
// General-purpose constants and types
const double G = 6.673e-11;
// *** Physics facility ***
class tpPhysics
public:
tpPhysics( long int iter_num, long int part_num, double delta_t, int worker_num );
~tpPhysics() { }
void startThreads();
void stopThreads();
void addParticle( double m, vector3 c, vector3 v );
void generateParticles(d_array m, d_array c, d_array v);
void getPreviousState( long int num, double& m, vector3& c, vector3& v );
long int iterationNumber();
long int particleNumber();
double dt();
long int showTime();
protected:
void setWorkers(int worker_number);
// 1st set of parameters
vector_array coords_1;
vector_array velocity_1;
d_array mass_1;
// 2nd set of parameters
vector_array coords_2;
vector_array velocity_2;
d_array mass_2;
void setCurrentState( long int num, vector3 c, vector3 v );
void setCurrentState( long int num, double m, vector3 c, vector3 v );
void nextStep();
// Common parameters
const long int iterNumber;
const long int partNumber;
const double deltaT;
long int current_time;
int which_set; // 1 - if 1st set is current, 2 - if 2nd set is current
// Threading data
std::vector<long int> boundaries;
std::vector<boost::shared_ptr<boost::thread> > workerArray;
int workerCount;
virtual void singleCalculator(int lower, int higher) = 0;
class tpPhysicsGravity : public tpPhysics
public:
tpPhysicsGravity( long int iter_num, long int part_num, double delta_t, int worker_num )
: tpPhysics(iter_num, part_num, delta_t, worker_num) { }
~tpPhysicsGravity() { }
protected:
void singleCalculator(int lower, int higher);
#endif // PARTICLES_HPP_INCLUDED
Similar Messages
-
"Multiple Validation errors" message when creating new project in FCPX
As a test I have now managed to change the file format from older quicktime file to .m4v and import into FCPX. I had to use Handbrake to change the file format to .m4v. If a free software can do this then why can't the $300 FCPX - and allow me to import directly? This would save me MANY hours of extra work!
But then, when I try and edit this - first trying to create a new project I get the message "Multiple validation errors occurred" The same message even if I try and custon settings rather than use the default
Does this mean that after all the work and hours it took me to tarnscode the file format, import and then render etc - I will be unable to use FCPX - to edit this footage?Update on trying to create a new project - and getting "Multiple Validation errors" message
I quit FCPX and tried to use iMovie to make a clip to send to you. Decided against this - and so I opened FCPX again
To my surprise there were now over ten projects - as every attempy had appeared! This is bizarre - why did they not show up when I tried to create them first?
So, I had to delet most and just use one. This appears to be working as a project and is allowing me to edit clips into it.
It will be a reall bummer though if I have to do this every time I need to create a new project! -
Hello,
I am getting error messages when I compile a Visual C++ 2010 project that includes the Atlcomcli.h file.
The error messages are:
Error 1 error C2338: CVarTypeInfo< char > cannot be compiled with /J or _CHAR_UNSIGNED flag enabled c:\program files\microsoft visual studio 10.0\vc\atlmfc\include\atlcomcli.h
Search and found link to download hotfix KB982517. But no download available.
https://connect.microsoft.com/VisualStudio/feedback/details/613888/i-would-like-to-receive-hotfix-kb982517-or-make-this-available-in-the-downloads-section
Please help me to resolve this issue.
Thanks,
GaganI would have to ask: why are you using _CHAR_UNSIGNED? Is this really necessary? I have to admit that the fact that by default char in C++ is signed is an annoying fact, but most of us have just gotten used to it.
Have you tried the workaround
#pragma push_macro("ATLSTATIC_ASSERT")
#undef ATLSTATIC_ASSERT
#define ATLSTATIC_ASSERT(x,y)
#include <atlcomcli.h>
#undef ATLSTATIC_ASSERT
#pragma pop_macro("ATLSTATIC_ASSERT")
that is described in the link
https://support.microsoft.com/kb/982517?wa=wsignin1.0
David Wilkinson | Visual C++ MVP -
Trying to make a dvd from a project and this error message appears .The project could not be prepared for publishing because an error occurred. (-2125)
Hi
Error -2125
OK Error code - 2125 usually indicates that the movie is to large.
It use to pop up when going to iDVD !
iDVD - DO NOT CARE ABOUT Gbs at all. I got movies on 500Mb that do not fit and 50Gb that fits nicely.
iDVD - ONLY CARES ABOUT - Duration. Duration is Movie time + MENU TIME. Choice of
menu and animation of this can take lost of "DURATION" 15 minutes or even more.
Choice of encoding method and use of SL or DL DVDs determine the DVD limit.
iDVD 08 & 09 & 11 has three levels of qualities.
iDVD 6 has the two last ones
• Professional Quality (movies + menus up to 120 min.) - BEST
• Best Performances (movies + menus less than 60 min.) - High quality on final DVD
• High Quality (in iDVD08 or 09) / Best Quality (in iDVD6) (movies + menus up to 120 min.) - slightly lower quality than above
DL DVDs can store about double of these times.
ALTERNATIVE - The Error Code can indicate that free space on Start-up (BOOT) hard disk is
less than 25Gb (my minimum)
calbe - wrote
If you are getting OSStatus error -2125, I've seen this caused by the computer display sleep settings.
Try changing the sleep settings to never and see if you are able to export.
Yours Bengt W -
[SOLVED] make: *** No rule to make target `kernelrelease'
Hi guys! My problem is similar this one Please help a newbie compile a kernel
I tried to compile kernel 2.6.33.9 by simply copying the PKGBUILD and other files into my workspace. Everything goes well but I cant make a package:
PKGBUILD:
pkgdesc="The Linux Kernel and modules with tuxonice support and rt-patchset"
depends=('coreutils' 'linux-firmware' 'module-init-tools>=3.16' 'mkinitcpio>=0,7')
optdepends=('crda: to set the correct wireless channels of your country')
pkgname=linux-rt-ice
backup=(etc/mkinitcpio.d/$pkgname.preset)
_kernelname=${pkgname#linux}
_basekernel=2.6.33
pkgver=${_basekernel}.9
#pkgver=${_basekernel}
pkgrel=1
arch=('i686' 'x86_64')
url="https://rt.wiki.kernel.org"
license=('GPL2')
install=$pkgname.install
provides=('kernel26-rt-ice')
conflicts=('kernel26-rt-ice')
replaces=('kernel26-rt-ice')
makedepends=('xmlto' 'docbook-xsl')
options=('!strip')
### User/Environment defined variables
enable_toi=${enable_toi:-0}
BFQ_IO_SCHEDULER="y"
bfs_scheduler=${bfs_scheduler:-0}
keep_source_code=${keep_source_code:-1}
gconfig=${gconfig:-0}
xconfig=${xconfig:-0}
menuconfig=${menuconfig:-1}
realtime_patch=${realtime_patch:-1}
local_patch_dir="${local_patch_dir:-}"
use_config="${use_config:-}"
use_config_gz=${use_config_gz:-0}
enable_reiser4=${enable_reiser4:-1}
### Compile time defined variables
### Files / Versions
#!file_rt="patch-3.0.14-rt31.patch.gz"
#!file_reiser4="reiser4-for-2.6.31.patch.bz2"
#file_toi="current-tuxonice-for-3.0.patch.bz2"
#file_bfs="2.6.38.3-sched-bfs-401.patch"
file_rt="patch-2.6.33.9-rt31.gz"
file_reiser4="reiser4-for-2.6.33.patch.gz"
file_bfs="2.6.33.7-sched-bfs-357.patch"
_bfqpath="http://algo.ing.unimo.it/people/paolo/disk_sched/patches/2.6.33/"
source=("ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-${_basekernel}.tar.bz2"
"ftp://ftp.kernel.org/pub/linux/kernel/v2.6/longterm/v2.6.33/patch-2.6.33.9.gz"
http://www.kernel.org/pub/linux/kernel/projects/rt/2.6.33/patch-2.6.33.9-rt31.gz
# https://tglx.de/~tglx/rt/3.0/${file_rt}
http://sourceforge.net/projects/reiser4/files/reiser4-for-linux-2.6/reiser4-for-2.6.33.patch.gz
#http://www.tuxonice.net/files/${file_toi}
http://ck.kolivas.org/patches/bfs/${_basekernel}/${file_bfs}
# the main kernel config files
'config' 'config.x86_64'
# standard config files for mkinitcpio ramdisk
"${pkgname}.preset"
'change-default-console-loglevel.patch'
'i915-fix-ghost-tv-output.patch'
#BFQ patch:
"${_bfqpath}/0001-bfq_iosched-block-prepare_IO_context_code-v1-r1.patch"
"${_bfqpath}/0002-bfq_iosched-block-add_cgroups_kconfig_and_build_bits-v1-r1.patch"
"${_bfqpath}/0003-bfq_iosched-block-introduce_BFQ-v1-r1.patch")
md5sums=('c3883760b18d50e8d78819c54d579b00'
'6594052b26f8e79c374c278f62d3329b'
'772776957913e76492e3547b304b75c2'
'96f986418d1ab9b9abdcbfb2c20fdc0d'
'3b8ef39f43a1dab60ddc703049cb8ac2'
'540318683b69e49ab5fa629cfb32dc48'
'74d172143d448a002834879d99c3992c'
'7c9725208ab6834602c8b9d645ed001d'
'9d3c56a4b999c8bfbd4018089a62f662'
'263725f20c0b9eb9c353040792d644e5'
'69adc7f64f4dc5b34ad1cb3825b7c0f4'
'4146ee711eed553c024a93c766463583'
'678c791c7df57a71cdb480fdc49aec8d')
build() {
cd "${srcdir}/linux-${_basekernel}"
# add upstream patch
patch -p1 -i "${srcdir}/patch-${pkgver}"
if [ -n "${local_patch_dir}" ] && [ -d "${local_patch_dir}" ] ; then
echo "Applying patches from ${local_patch_dir} ..."
for my_patch in "${local_patch_dir}"/* ; do
echo -e "Applying custom patch:\t'${my_patch}'" || true
patch -Np1 -i "${my_patch}" || { echo -e "Failed custom patch:\t'${my_patch}'" ; return 1 ; }
done
fi
# Applying realtime patch
if [ "$realtime_patch" = "1" ]; then
echo "Applying real time patch"
# Strip './Makefile' changes
gzip -dc ${srcdir}/${file_rt} \
| sed '/diff --git a\/Makefile b\/Makefile/,/*DOCUMENTATION*/d' \
| patch -Np1 || { echo "Failed Realtime patch '${file_rt}'"; return 1 ; }
fi
# applying reiserfs4 patch
if [ "$enable_reiser4" = "1" ]; then
echo "Applying ${file_reiser4%.gz}"
gzip -dc ${srcdir}/${file_reiser4} | patch -Np1 || { echo "Failed reiser4 patch '${file_reiser4%.gz}'"; return 1 ; }
fi
# applying tuxonice patch
if [ "${enable_toi}" = "1" ]; then
echo "Applying ${file_toi%.bz2}"
# fix to tuxonice patch to work with rt
#if [ "$realtime_patch" = "1" ]; then
#bzip2 -dck ${srcdir}/${file_toi} \
#| sed '/diff --git a\/kernel\/fork.c b\/kernel\/fork.c/,/{/d' \
#| sed 's/printk(KERN_INFO "PM: Creating hibernation image:\\n/printk(KERN_INFO "PM: Creating hibernation image: \\n/' \
#| patch -Np1 || { echo "Failed TOI w/rt" ; return 1 ; }
#else
bzip2 -dck ${srcdir}/${file_toi} \
| sed 's/printk(KERN_INFO "PM: Creating hibernation image:\\n/printk(KERN_INFO "PM: Creating hibernation image: \\n/' \
| patch -Np1 -F4 || { echo "Failed TOI"; return 1 ; }
#fi
fi
if [ "${bfs_scheduler}" = "1" ] && [ "${realtime_patch}" = "0" ]; then
# applying BFS scheduler patch
echo "BFS scheduler patch not available yet, sorry"
# echo "Applying BFS scheduler patch"
# patch -Np1 -i ${srcdir}/${file_bfs} || { echo "Failed BFS"; return 1 ; }
fi
# --> BFQ
if [ $BFQ_IO_SCHEDULER = "y" ] ; then
msg "Patching source with BFQ patches"
for i in $(ls ${srcdir}/000*.patch); do
patch -Np1 -i $i
done
fi
# Some chips detect a ghost TV output
# mailing list discussion: http://lists.freedesktop.org/archives/intel-gfx/2011-April/010371.html
# Arch Linux bug report: FS#19234
# It is unclear why this patch wasn't merged upstream, it was accepted,
# then dropped because the reasoning was unclear. However, it is clearly
# needed.
#patch -Np1 -i "${srcdir}/i915-fix-ghost-tv-output.patch"
# set DEFAULT_CONSOLE_LOGLEVEL to 4 (same value as the 'quiet' kernel param)
# remove this when a Kconfig knob is made available by upstream
# (relevant patch sent upstream: https://lkml.org/lkml/2011/7/26/227)
patch -Np1 -i "${srcdir}/change-default-console-loglevel.patch"
if [ "${CARCH}" = "x86_64" ]; then
cat "${srcdir}/config.x86_64" > ./.config
else
cat "${srcdir}/config" > ./.config
fi
# use custom config instead
if [ -n "${use_config}" ] ; then
echo "Using config: '${use_config}'"
cat "${use_config}" > ./.config
make oldconfig
fi
# use existing config.gz
if [ "$use_config_gz" = "1" ]; then
zcat /proc/config.gz > ./.config
make oldconfig
fi
if [ "${_kernelname}" != "" ]; then
sed -i "s|CONFIG_LOCALVERSION=.*|CONFIG_LOCALVERSION=\"${_kernelname}\"|g" ./.config
fi
# set extraversion to pkgrel
sed -ri "s|^(EXTRAVERSION =).*|\1 -${pkgrel}|" Makefile
# hack to prevent output kernel from being marked as dirty or git
#chmod +x ${srcdir}/linux-${_basekernel}/scripts/setlocalversion
#sed 's/head=`git rev-parse --verify --short HEAD 2>\/dev\/null`/0/' \
# ${srcdir}/linux-${_basekernel}/scripts/setlocalversion \
# > ${srcdir}/linux-${_basekernel}/scripts/setlocalversion.new
#mv ${srcdir}/linux-${_basekernel}/scripts/setlocalversion.new \
# ${srcdir}/linux-${_basekernel}/scripts/setlocalversion
# get kernel version
make prepare
# load configuration
# Configure the kernel. Replace the line below with one of your choice.
if [ "$gconfig" = "1" ]; then
make gconfig
else
if [ "$xconfig" = "1" ]; then
make xconfig
else
if [ "$menuconfig" = "1" ]; then
make menuconfig
fi
fi
fi
yes "" | make config
make prepare # Necessary in case config has been changed
# build!
make ${MAKEFLAGS} bzImage modules
package_linux-rt-ice() {
KARCH=x86
cd ${srcdir}/linux-${_basekernel}
if [ "$keep_source_code" = "1" ]; then
echo -n "Copying source code..."
# Keep the source code
cd $startdir
mkdir -p $pkgdir/usr/src || return 1
cp -a ${srcdir}/linux-${_basekernel} $pkgdir/usr/src/linux-${_kernver} || return 1
#Add a link from the modules directory
mkdir -p $pkgdir/lib/modules/${_kernver} || return 1
cd $pkgdir/lib/modules/${_kernver} || return 1
rm -f source
ln -s ../../../usr/src/linux-${_kernver} source || return 1
echo "OK"
fi
# get kernel version
_kernver="$(make kernelrelease)"
mkdir -p "${pkgdir}"/{lib/modules,lib/firmware,boot}
make INSTALL_MOD_PATH="${pkgdir}" modules_install
cp arch/$KARCH/boot/bzImage "${pkgdir}/boot/vmlinuz-${pkgname}"
# add vmlinux
install -D -m644 vmlinux "${pkgdir}/usr/src/linux-${_kernver}/vmlinux"
# install fallback mkinitcpio.conf file and preset file for kernel
install -D -m644 "${srcdir}/${pkgname}.preset" "${pkgdir}/etc/mkinitcpio.d/${pkgname}.preset"
# set correct depmod command for install
sed \
-e "s/KERNEL_NAME=.*/KERNEL_NAME=${_kernelname}/g" \
-e "s/KERNEL_VERSION=.*/KERNEL_VERSION=${_kernver}/g" \
-i "${startdir}/${pkgname}.install"
sed \
-e "s|ALL_kver=.*|ALL_kver=\"/boot/vmlinuz-${pkgname}\"|g" \
-e "s|default_image=.*|default_image=\"/boot/initramfs-${pkgname}.img\"|g" \
-e "s|fallback_image=.*|fallback_image=\"/boot/initramfs-${pkgname}-fallback.img\"|g" \
-i "${pkgdir}/etc/mkinitcpio.d/${pkgname}.preset"
echo -e "# DO NOT EDIT THIS FILE\nALL_kver='${_kernver}'" > ${pkgdir}/etc/mkinitcpio.d/${pkgname}.kver
# remove build and source links
rm -f "${pkgdir}"/lib/modules/${_kernver}/{source,build}
# remove the firmware
rm -rf "${pkgdir}/lib/firmware"
# gzip -9 all modules to save 100MB of space
find "${pkgdir}" -name '*.ko' -exec gzip -9 {} \;
# make room for external modules
ln -s "../extramodules-${_basekernel}${_kernelname:--rt-ice}" "${pkgdir}/lib/modules/${_kernver}/extramodules"
# add real version for building modules and running depmod from post_install/upgrade
mkdir -p "${pkgdir}/lib/modules/extramodules-${_basekernel}${_kernelname:--rt-ice}"
echo "${_kernver}" > "${pkgdir}/lib/modules/extramodules-${_basekernel}${_kernelname:--rt-ice}/version"
mkdir -p "${pkgdir}/lib/modules/${_kernver}"
cd "${pkgdir}/lib/modules/${_kernver}"
ln -sf ../../../usr/src/linux-${_kernver} build
cd "${srcdir}/linux-${_basekernel}"
install -D -m644 Makefile \
"${pkgdir}/usr/src/linux-${_kernver}/Makefile"
install -D -m644 kernel/Makefile \
"${pkgdir}/usr/src/linux-${_kernver}/kernel/Makefile"
install -D -m644 .config \
"${pkgdir}/usr/src/linux-${_kernver}/.config"
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/include"
for i in acpi asm-generic config crypto drm generated linux math-emu \
media net pcmcia scsi sound trace video xen; do
cp -a include/${i} "${pkgdir}/usr/src/linux-${_kernver}/include/"
done
# copy arch includes for external modules
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/arch/x86"
cp -a arch/x86/include "${pkgdir}/usr/src/linux-${_kernver}/arch/x86/"
# copy files necessary for later builds, like nvidia and vmware
cp Module.symvers "${pkgdir}/usr/src/linux-${_kernver}"
cp -a scripts "${pkgdir}/usr/src/linux-${_kernver}"
# fix permissions on scripts dir
chmod og-w -R "${pkgdir}/usr/src/linux-${_kernver}/scripts"
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/.tmp_versions"
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/arch/${KARCH}/kernel"
cp arch/${KARCH}/Makefile "${pkgdir}/usr/src/linux-${_kernver}/arch/${KARCH}/"
if [ "${CARCH}" = "i686" ]; then
cp arch/${KARCH}/Makefile_32.cpu "${pkgdir}/usr/src/linux-${_kernver}/arch/${KARCH}/"
fi
cp arch/${KARCH}/kernel/asm-offsets.s "${pkgdir}/usr/src/linux-${_kernver}/arch/${KARCH}/kernel/"
# add headers for lirc package
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video"
cp drivers/media/video/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video/"
for i in bt8xx cpia2 cx25840 cx88 em28xx et61x251 pwc saa7134 sn9c102; do
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video/${i}"
cp -a drivers/media/video/${i}/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video/${i}"
done
# add docbook makefile
install -D -m644 Documentation/DocBook/Makefile \
"${pkgdir}/usr/src/linux-${_kernver}/Documentation/DocBook/Makefile"
# add dm headers
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/md"
cp drivers/md/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/md"
# add inotify.h
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/include/linux"
cp include/linux/inotify.h "${pkgdir}/usr/src/linux-${_kernver}/include/linux/"
# add wireless headers
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/net/mac80211/"
cp net/mac80211/*.h "${pkgdir}/usr/src/linux-${_kernver}/net/mac80211/"
# add dvb headers for external modules
# in reference to:
# http://bugs.archlinux.org/task/9912
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/dvb-core"
cp drivers/media/dvb/dvb-core/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/dvb-core/"
# and...
# http://bugs.archlinux.org/task/11194
#mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/include/config/dvb/"
#cp include/config/dvb/*.h "${pkgdir}/usr/src/linux-${_kernver}/include/config/dvb/"
# add dvb headers for http://mcentral.de/hg/~mrec/em28xx-new
# in reference to:
# http://bugs.archlinux.org/task/13146
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends/"
cp drivers/media/dvb/frontends/lgdt330x.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends/"
cp drivers/media/video/msp3400-driver.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends/"
# add dvb headers
# in reference to:
# http://bugs.archlinux.org/task/20402
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/dvb-usb"
cp drivers/media/dvb/dvb-usb/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/dvb-usb/"
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends"
cp drivers/media/dvb/frontends/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends/"
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/common/tuners"
cp drivers/media/common/tuners/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/common/tuners/"
# add xfs and shmem for aufs building
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/fs/xfs"
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/mm"
cp fs/xfs/xfs_sb.h "${pkgdir}/usr/src/linux-${_kernver}/fs/xfs/xfs_sb.h"
# copy in Kconfig files
for i in `find . -name "Kconfig*"`; do
mkdir -p "${pkgdir}"/usr/src/linux-${_kernver}/`echo ${i} | sed 's|/Kconfig.*||'`
cp ${i} "${pkgdir}/usr/src/linux-${_kernver}/${i}"
done
chown -R root.root "${pkgdir}/usr/src/linux-${_kernver}"
find "${pkgdir}/usr/src/linux-${_kernver}" -type d -exec chmod 755 {} \;
# strip scripts directory
find "${pkgdir}/usr/src/linux-${_kernver}/scripts" -type f -perm -u+w 2>/dev/null | while read binary ; do
case "$(file -bi "${binary}")" in
*application/x-sharedlib*) # Libraries (.so)
/usr/bin/strip ${STRIP_SHARED} "${binary}";;
*application/x-archive*) # Libraries (.a)
/usr/bin/strip ${STRIP_STATIC} "${binary}";;
*application/x-executable*) # Binaries
/usr/bin/strip ${STRIP_BINARIES} "${binary}";;
esac
done
# remove unneeded architectures
if [ "$keep_source_code" = "0" ]; then
rm -rf ${pkgdir}/usr/src/linux-${_kernver}/arch/{alpha,arm,arm26,avr32,blackfin,cris,frv,h8300,ia64,m32r,m68k,m68knommu,mips,microblaze,mn10300,parisc,powerpc,ppc,s390,sh,sh64,sparc,sparc64,um,v850,xtensa}
fi
[ku@ku-la linux-rt-ice]$ makepkg -R
==> Making package: linux-rt-ice 2.6.33.9-1 (Sat Jan 21 13:33:09 NOVT 2012)
==> Removing existing pkg/ directory...
==> Entering fakeroot environment...
==> Starting package_linux-rt-ice()...
Copying source code...OK
make: *** No rule to make target `kernelrelease'. Stop.
==> ERROR: A failure occurred in package_linux-rt-ice().
Aborting...
I remounted it with defaults options as stressed above topic and try again makepkg -R but still no joy
I looked at kernel.release
2.6.33-1-rt-ice
Any ideas?
Last edited by noMaster (2012-01-21 15:35:54)I suggested to build package again. And finally I got it. I guess the problem was in mounting options so was needed to began from the very start
-
Recently I tried adding disc menu to my project and an error occurs and system shuts down using pre9
Recently I tried adding disc menu to my project and an error occurs and system shuts down using pre elements 9 on mac how can this be repaired
From the Premiere Elements Information FAQ http://forums.adobe.com/thread/1042180
•What version of Premiere Elements? Include the minor version number (e.g., Premiere Elements 9 with the 9.0.1 update).
•What operating system? This should include specific minor version numbers, like "Mac OSX v10.6.8"---not just "Mac".
•Have you installed any recent program or OS updates? (If not, you should. They fix a lot of problems.)
•What kind(s) of image file(s)? When talking about camera raw files, include the model of camera.
•If you are getting error message(s), what is the full text of the error message(s)?
•What were you doing when the problem occurred?
•What other software are you running?
•Tell us about your computer hardware. How much RAM is installed? How much free space is on your system (C:) drive?
•Has this ever worked before? If so, do you recall any changes you made to Premiere Elements, such as adding Plug-ins, brushes, etc.? Did you make any changes to your system, such as updating hardware, printers or drivers; or installing/uninstalling any programs?
And some other questions...
•What are you editing, and does your video have a red line over it BEFORE you do any work?
•Have you viewed the tutorial links at http://forums.adobe.com/thread/1275830 page?
•Which version of Quicktime do you have installed? -
Undocumented problem solved with 16-bit pcmcia and irq error
I am having the exact same problem as described in the following post:
"Undocumented problem solved with 16-bit pcmcia and irq error."
"I'm using a DAQ Card (AI-16E-4), which didn't work properly in MAX. MAX complained that the card didn't respond to an interrupt request.
I've had this issue for a while, but dropped it, since NI support told me nothing could be done about it. Meanwhile, a seemingly unrelated problem with a wireless pcmcia network card arose. Cisco had no clue what was wrong with their card either, but I found Microsoft Knowledge Base Article Q327947. It seems that Win2k (they claim SP3 and up) disables ISA to PCI routing, which is what causes this problem.
To fix it, open regedit
and navigate to "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\Pcmcia\Parameters"
edit or create the DWORD value "DisableIsaToPciRouting" and set the value data to 0.
See Microsoft's article for further details: http://support.microsoft.com/default. aspx?scid=kb;en-us;327947"
The difference is that I am using WinXP and the Regedit fix does not solve the problem. Does anybody know how he was able to continue to use the card before he solved the problem? The card works fine in MAX, but errors out in LabVIEW.Hey Willy,
Here some additional suggestions that have corrected some PCMCIA difficulties in the past besides the registry edit you suggested.
1. General Troubleshooting to Verify Correct Hardware and Software Installation
Uninstall the PC Card hardware through Device Manager
Remove the PC Card from the laptop
Uninstall the NI-DAQ software
Follow the normal installation instructions (the most important step to remember for Plug-n-Play Operating Systems is to install the software first)
Try the latest service packs for Win 2000 or Win XP
Try the PC Card in a different laptop
Try a different slot in the laptop. On certain laptops PC Cards have been successfully installed in the top PCMCIA slot instead of the bottom.
2. Additional Troubleshootin
g for PC Cards that Return IRQ Conflicts
For E-Series DAQCards:
Update to NI-DAQ 6.9.3 first and then update NI-PAL to version 1.6.1 (included exe file).
Download the attached NI-PAL (ni-cdu1610.exe), and run the installer. When receiving the error "The device is not responding to the first IRQ Level" in Measurement and Automation Explorer, try this method of upgrading NI-PAL
3. Additional Troubleshooting Steps
Try disabling the 3COM adapter, and any other extraneous (for now) devices like any built in serial and parallel ports. The best way to do this is probably to disable them in the BIOS. If the PCMCIA card works properly then try to reconfigure disabled devices one at a time.
Make sure the latest BIOS is installed.
Check for any unusual PCMCIA drivers or other software that might interfere with the PCMCIA driver.
I hope this helps.
Ron
Applications Engineering
National Instruments
Attachments:
ni-cdu1610.exe 1557 KB -
Error writing the project file. Error loading type library / dll
Hi all,
I am trying to create a new portal project in PDK.NET. But I am getting this error- "Error writing the project file. Error loading type library / dll". Can anyone tell me how to solve this error.
rgdsI get this same error. Was working fine until I installed the SAP .Net Connector 2.0. Now it does not work even after it was uninstalled. Please help.
-
ERM5.3 - Is it possible to make Sub Process & Project/Release non-mandatory
Hi All.
I would like to know whether it is possible to make Sub Process & Project/Release in Create Role Definition section non-mandatory fields?
If so where would I be able to change the config?
Thank you.
Mike HannieDear Mike Hannie,
It is not possible. Project/Release ID and Subprocess are required fields.
The Project or Release ID field allows you to track and filter roles by project or release based on your organizationu2018s requirements.
When you create a role in Enterprise Role Management, the business process you assign to the role is one of the roleu2018s defining attributes and determines which subprocesses you can assign to that role. During the role creation process, the subprocesses available for you to select as role attributes are determined by the business process to which the subprocess is mapped.
Condition group:
A condition group is defined from a set of role attributes (such as a business process, subprocess, functional area, role type, or role name) and is based on role values and conditions. After you create a condition group, the system applies it to a role creation process to override the default role creation process when the criteria from the condition group are met. You can apply multiple condition groups in one role creation process, but you cannot associate multiple processes to one condition group.
Regards,
Naveen -
unable to resolve Multiple-feed error, printer picks-up large stacks of paper & jams. Difficulty opening rear cover (sticks), however, once open the bunch-up paper requires pliers to remove. In an earlier warranty calls to tech. support in India, I was instructed to return the printer for replacement. But I was diagnosed with cancer, in 2009 unable to follow through & comply due to medical complications, was discharged from Memphis Hospital in 2014 . What are my present options? Is there a manual paper feed option, bypassing paper tray? Thank You!
Hi , I understand that you are having issues with the printer pulling in multiple pages at the same time. I will certainly do my best to help you. I am very happy to see that you are doing better. Best of luck with your recovery. Unfortunately this model doesn't have a priority tray for single sheets. Please try these solutions:
1. Remove the stack of paper from the tray and flex it, rotate it 180 degrees, and flip it over. Do not fan the paper. Return the stack of paper to the tray.
2. Use only paper that meets HP specifications for this product.
3. Use paper that is not wrinkled, folded, or damaged. If necessary, use paper from a different package.
4. Make sure the tray is not overfilled. If it is, remove the entire stack of paper from the tray, straighten
the stack, and then return some of the paper to the tray.
5. Make sure the paper guides in the tray are adjusted correctly for the size of paper. Adjust the guides
so they are touching the paper stack without bending. I checked out the Laserjet Color Pro CM1415fnw printer in our lab. Try these steps to see if it may help.Turn off the printer and disconnect the power cable. Remove the paper tray and flip up the jam access door. Look inside where the paper tray was, at the back area, in the middle. You will see two little white rollers. Make sure they are moving freely and I would clean them with a damp cloth and then dry them off again. Open the back access door and check for any rollers also need to be cleaned. Try running a cleaning page through the printer.From the Home screen, touch the Setup icon.
Touch Service.
Touch Cleaning Page. What type of paper are you using? You may Contact HP Support to inquire about the trade in options or service. Fill in the model number and the form to receive a case number for quicker assistance. If you appreciate my efforts, please click the 'Thumbs up' button below. Please let me know the outcome. Thank You.
-
General Workflow is receiving multiple workflow errors
Dear Team,
i have working in production system facing problem with workflow.
General Workflow is receiving multiple workflow errors
Resulting in confusion for business users to resolve.
Old Workflow errors that have been resolved appear to have been resent and sent to the wrong people. Claims Workflow messages are being sent to Customer Service, etc. only thing is we know the user who had changed.
please guide me how to achive this problem?Hello,
How are emails being sent to users about errors in already processed workflows?
Not by the workflows, they've already been completed. Do you have a custom job running periodically that looks for errors?
Check SM37. Also make sure these mails aren't coming from a Test system.
Could you give an example of one of these mails.
When you find the solution to your problem, please post it here.
regards
Rick Bakker
hanabi technology -
Hi
Is it possible to have multiple include files in asp page?
e.g -
<!--#include file="../test/file1.asp" -->
<!--#include file="../test/file2.asp" -->
I've tried this but keep getting an error.
Thanks
GaryJust FYI, what I do is name the recordsets with a page-name
pre-name (sigh,
i'm going home).
what i mean is this. I have a recordset for users on my
cookie script, so it
looks like this:
cpUsers (for cookie permissions)
while my main body looks like this:
mcUsers (for my domain name, general users info)
"woodywyatt" <[email protected]> wrote in
message
news:e6a0uf$q7b$[email protected]..
> Hi, Sorted the prob.
> I had two recordsets with the same name. Doh.
> Thanks for your time
> Gary
>
> "woodywyatt" <[email protected]> wrote
in message
> news:e6a0dr$pho$[email protected]..
>> Hi (sorry Crash, think I just mailed this to
directly to you too)
>>
>> It cant be anything wrong with the includes as I've
just created a basic
>> simple test page for each include.
>>
>> The error I get is -
>>
>> Name redefined
>>
>>
E:\DOMAINS\F\FUERTEVENTURA.COM\USER\HTDOCS\ACCOMMODATION\../classifieds/file2.asp,
>> line 4
>>
>> Dim Recordset1
>>
>> "crash" <[email protected]> wrote in
message
>> news:e69vug$oss$[email protected]..
>>> what error?
>>>
>>
>>
>
> -
I am trying to connect a Macbook Pro to a projector for a Powerpoint presentation. When I use a VGA cable, the color of the projected images are not good. When I use a USB cable, the projected image includes the presenter notes on my computer screen?
To move an iPhoto Library to a new machine:
Link the two Macs together: there are several ways to do this: Wireless Network,Firewire Target Disk Mode, Ethernet, or even just copy the Library to an external HD and then on to the new machine...
But however you do choose to link the two machines...
Simply copy the iPhoto Library from the Pictures Folder on the old Machine to the Pictures Folder on the new Machine.
Then hold down the option (or alt) key key and launch iPhoto. From the resulting menu select 'Choose Library'
and select the Library that you moved. That's it.
This moves photos, events, albums, books, keywords, slideshows and everything else.
Your first option didn't work because you imported one Library to another. Every version and thumbnail is imported like a distinct photo, you lose all your Albums, Keywords etc., the link between Original and Previews is destroyed, the non-destructive editing feature is ruined and so on. In summary: it's mess.
Your second option didn't work because you simply referenced her library on the old machine.
Regards
TD -
Thanks so much for the offer of help. I'm using 10.9.2 OSX. I have Numbers 2.3 (554). I tried the new version but it was "dumbed down" so much (to make it usable on multiple platforms) that it was of no use on iMac.
I still can't get my contacts to open in Numbers like they used to do. I have a group of five addresses in a test folder in Mail called "untitled group." But no amount of pasting, dragging, etc can get them to open up in Numbers. My "real" folder has almost 100 addresses so I can't do it one by one.
Thoughts?
Thanks again.
BobBob,
You can place contacts in a table In Numbers by the following methods:
Numbers 2.3:
drag from contacts
Numbers 3.2
copy from contacts, then paste into Numbers
In both cases you need to open System preferences, then select the "Security & Privacy panel and allow Numbers aaccess your contacts information. -
3-1674105521 Multiple Paths error while using Bridge Table
https://support.us.oracle.com/oip/faces/secure/srm/srview/SRViewStandalone.jspx?sr=3-1674105521
Customer Smiths Medical International Limited
Description: Multiple Paths error while using Bridge Table
1. I have a urgent customer encounterd a design issue and customer was trying to add 3 logical joins between SDI_GPOUP_MEMBERSHIP and these 3 tables (FACT_HOSPITAL_FINANCE_DTLS, FACT_HOSPITAL_BEDS_UTILZN and FACT_HOSPITAL_ATRIBUTES)
2. They found found out by adding these 3 joins, they ended with circular error.
[nQSError: 15001] Could not load navigation space for subject area GXODS.
[nQSError: 15009] Multiple paths exist to table DIM_SDI_CUSTOMER_DEMOGRAPHICS. Circular logical schemas are not supported.
In response to this circular error, the developer was able to bypass the error using aliases, but this is not desired by client.
3. They want to know how to avoid this error totally without using alias table and suggest a way to resolve the circular join(Multiple Path) error.
Appreciated if someone can give some pointer or suggestion as the customer is in stiff deadline.
Thanks
TeikThe strange thing compared to your output is that I get an error when I have table prefix in the query block:
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Master table "SYSTEM"."SYS_IMPORT_FULL_01" successfully loaded/unloaded
Starting "SYSTEM"."SYS_IMPORT_FULL_01": system/******** DUMPFILE=TMP1.dmp LOGFILE=imp.log PARALLEL=8 QUERY=SYSADM.TMP1:"WHERE TMP1.A = 2" REMAP_TABLE=SYSADM.TMP1:TMP3 CONTENT=DATA_ONLY
Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
ORA-31693: Table data object "SYSADM"."TMP3" failed to load/unload and is being skipped due to error:
ORA-38500: Unsupported operation: Oracle XML DB not present
Job "SYSTEM"."SYS_IMPORT_FULL_01" completed with 1 error(s) at Fri Dec 13 10:39:11 2013 elapsed 0 00:00:03
And if I remove it, it works:
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Master table "SYSTEM"."SYS_IMPORT_FULL_01" successfully loaded/unloaded
Starting "SYSTEM"."SYS_IMPORT_FULL_01": system/******** DUMPFILE=TMP1.dmp LOGFILE=imp.log PARALLEL=8 QUERY=SYSADM.TMP1:"WHERE A = 2" REMAP_TABLE=SYSADM.TMP1:TMP3 CONTENT=DATA_ONLY
Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
. . imported "SYSADM"."TMP3" 5.406 KB 1 out of 2 rows
Job "SYSTEM"."SYS_IMPORT_FULL_01" successfully completed at Fri Dec 13 10:36:50 2013 elapsed 0 00:00:01
Nicolas.
PS: as you can see, I'm on 11.2.0.4, I do not have 11.2.0.1 that you seem to use.
Maybe you are looking for
-
IS it possible to share external hard drive Mac To Mac, over a PC network,
I would like to explain this situation in it's own post so it's clear. I am at my brother's house (PC user) and both my wife and I are Mac users who are on the network. I have an external hard drive which is plugged directly into my wife's Macbook. I
-
Enhancement Request: Viewlink based on an Association
Hi, one highly repetitive task is creating associations and then creating a view link which in 99% of cases is an exact representation of the association. An enhancement that I would find useful is a create Viewlink from association context menu. Ie.
-
How to localize labels in WhiteBoard component
Hello, I would need to localize some labels in the whiteboard components. Looking at the source code, it looks like you are using a private class "com.adobe.coreUI.localization.Localization". How can I work around it to set my own resource bundle? Ch
-
With Leopard, iPhoto6 will no longer print captions in books
Now that I've upgraded to Leopard, iPhoto6 (6.0.6) will no longer print the captions in books when I send them to my desktop printer (Epson Stylus Photo R300). It does print the titles on the front covers. For calendars, it'll print the lines but not
-
Lost sound - win2K MSI KT3 Ultra2
My PC lost sound suddenly, either Monday or Yesterday. I did not install any aoftware during this period, as a matter a fact for a while. I built this PC about a year ago and never had any problem. Now I reinstalled sound drive which came with mother