Compiling withing a package
Hello !
For the following I have defined a package pack1 folder/directory.
The problem is that the Super class gets compiled but not the sub classes. All the files are located within the package pack1. Why do I get this problem ?
God bless you for your help.
package pack1 ;
public class Protection {
int n = 1 ;
private int nPri = 2 ;
protected int nPro = 3 ;
public int nPub = 4 ;
public Protection() {
System.out.println("Base Constructor ");
System.out.println("Private n :" + nPri);
System.out.println("Protected n :" + nPro);
System.out.println("Public n :" + nPub);
package pack1 ;
class Derived extends Protection {
Derived() {
System.out.println("Derived Constructor");
System.out.println("n = " + n);
// class only
// System.out.println("Private n = " + nPri);
System.out.println("Protected n = " + nPro);
System.out.println("Public n = " + nPub);
You will get better answers if you post the error messages and the command you entered.
So, let's say you have Windows and c:\myjava\pack1\Protection.class. To compile Derived, you must have c:\myjava in your Classpath. For example, javac -classpath c:\myjava Derived.javawith Derived.java in your current directory.
http://java.sun.com/docs/books/tutorial/java/interpack/packages.html
Similar Messages
-
Compiling with nested packages
Hello, I have a problem trying to compile packages. Let's assume the following:
- The classpath variable is set to include ..jdkxxx\lib\dt.jar;..jdkxxx\lib\tools.jar
- I have a directory called 'd:\com\mycompany\mainpackage'
- Inside dir mainpackage, are two more dir. called 'subpack1' and 'subpack2'
- Dir subpack1 contains some classes, and all classes contain the statement 'package com.mycompany.mainpackage.subpack1'
- subpack1 is independent of all packages, except the java.lang
- Dir subpack2 contains some classes, and all classes contain the statement 'package com.mycompany.mainpackage.subpack2'
- subpack2 is dependent on some classes of subpack1
How would I go about compiling the 'mainpackage'? I have managed to compile the subpack1 classes, but when I try to compile the subpack2 classes, I get 'cannot resolve symbol' error messages, pointing to classes in subpack1, which are already compiled, but not found.
My classpath variable (at compile time) includes 'd:\com\mycompany\mainpackage', 'd:\com\mycompany\mainpackage\subpack1', and 'd:\com\mycompany\mainpackage\subpack2'
Any reply will be greatly appreciated!You need to have the directory that contains the com directory in your Classpath when you compile (d:\ according to your post).
Classes that are in com.mycompany.mainpackage.subpack2 will need to import any classes they need from com.mycompany.mainpackage.subpack1, unless you use the fully qualified class name each time.
Note that there is no such thing as "nested packages" in Java. For example, you can not use a line like "import com.mycompany.mainpackage.*;" to try to import all classes in subpack1 and subpack2.
http://java.sun.com/docs/books/tutorial/java/interpack/packages.html -
How to compile class and package
I am trying to compile the following 3 files.
http://www.cs.umbc.edu/~stephens/crypto/CIPHERS/ElGamal.java
http://www.cs.umbc.edu/~stephens/crypto/CIPHERS/BinaryHeap.java
http://www.cs.umbc.edu/~stephens/crypto/CIPHERS/DLP.java
I tried compiling them with a variety of ways but still cannot figure out the correct way of doing it.I finally figured out how to compile them. I had to change files so that I don't have to compile with a package.
Message was edited by:
webweaver -
How to compile with packages created by me
I have created two packages:
one is called agui and one is called agui.event.
agui is located at c:\agui\src\a\agui and
agui.event is located at c:\agui\src\a\agui\event.
My class file is called HelloWorld and it is located at
c:\agui\example.
What should be the command line to compile my class file?
is it
c:\agui\example>javac -classpath c:\agui\src\a\agui *.java?
I tried it, but it doesn't work!
Thanks.Hi,
When you are compiling a java file with a package you must use the -d option.
Just for simplicity, if you change directory to the source file e.g. c:\test and the files have package name pack1 and filename File1.java -
If you run javac File1.java it will compile fine but leave the class file in the default directory i.e. c:\test
If you run javac -d File1.java the package name will be noted and new sub-directory for pack1 will be created with the new File1.class in it.
Check it out using the -d option and not using to see the difference.
bet kev -
Packages compiled with debug info
Hi,
How do we check if a package has been compiled with DEBUG information or not?
The package could have been compiled like this:
ALTER PACKAGE pk1 COMPILE DEBUG
Is there any table that I can check?
Thanks in advance.
Sanal KrishnanIs this a 10g feature?It seems only user_plsql_object_settings is new in 10g.
all_plsql_object_settings is available in 9i:
michaels> select * from dict where table_name like '%PLSQL%'
TABLE_NAME COMMENTS
ALL_PLSQL_OBJECT_SETTINGS Compiler settings of stored objects acce
ssible to the user
1 row selected.
michaels> select name, type,plsql_debug from sys.all_plsql_object_settings where owner = 'SYSTEM'
NAME TYPE P
DEF$_PROPAGATOR_TRIG TRIGGER
REPCATLOGTRIG TRIGGER
michaels> select * from v$version
BANNER
Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production
PL/SQL Release 9.2.0.8.0 - Production
CORE 9.2.0.8.0 Production
TNS for HPUX: Version 9.2.0.8.0 - Production
NLSRTL Version 9.2.0.8.0 - Production -
Problems compiling with packages
Hi,
I wonder if anyone could help me.
I have had problems compiling using a package. I have altered the classpath in autoexec.bat with:
SET CLASSPATH=%classpath%;C:\jdk1.3.1_02\classes;.
the package class files are stored in C:\jdk1.3.1_02\classes\helliker\id3
and I have imported the class with:
import helliker.id3.*;
I am getting the following error:
C:\My Documents\Uni work\mp3 project\test\Driver.java:1: package helliker.id3 does not exist
import helliker.id3.*;
^
Can anybody help?
Thanks,
DavePerhaps the version of Windows you are using does not use autoexec.bat. For example, in NT and XP, you set Classpath using ControlPanel/System/Advanced/Environment Variables.
Perhaps there is a typo in your Classpath, for example an extra space.
On a command line, try this:
javac -classpath C:\jdk1.3.1_02\classes C:\My Documents\Uni work\mp3 project\test\Driver.java
If that works, then definitely Classpath is not set as you think it is. -
PHP5 package compiled with LDAP support?
When I check phpinfo() it appears the PHP5 package was compiled with LDAP support but for some reason when I try a ldap_connect function in php it errors with 'Fatal error: Call to undefined function ldap_connect() in ...'
Anybody have any idea what the problem is?
Thanks,
CraigI'm not sure about the php.ini thing, I've combed through it looking for idea's as well, but the only ldap string in the whole file is this 'extension=php_ldap.dll' and that doesn't apply to Arch.
Also at http://www.php.net/ldap it talks about requirements etc and I'm almost thinking that the php5 package is not compiled with ldap even though when I do a phpinfo() it does show '--with-ldap' in the compile settings. -
Command Line Compilation of a Project with different packages
Hi,
I am trying to compile a project through command line, which has different packages with many classes in it. Now If I try to compile package by package It's complaining about other referenced classes of different packages. So I created .bat file, which includes all the packages, but it's complaining input line is too long.
D:\jdk1.3.1\bin>app.bat
My bat file is
javac -d d:\Application\build d:\Application\source\com\ibc\rules\login\*.java d:\Application\source\com\ibc\rules\lookup\*.java .................d:\Application\source\com\ibc\wid\events\*.java d:\Application\source\com\ibc\wid\frames\cust\*.java ...
and so on............
Is there any solution for this problem?
Thanks in advance....I think the prefered and more elegant way to compile project including packages should be writing makefiles including their compilation, installation, deploying - rules ..
Make is really powerful, the maybe only weak-point is that there are some distribution of them, gnu-make, microsoft nmake .. which are slightly different, that made porting among platforms difficult.
The jakarta-ant was a new approach to this which uses xml parser to proof the dependencies, etc ..
Because I'm not familiar yet with xml & ant and as a in-blooded unix user, "make" is still my prefered way to do roject.
The easiest way to get unix environment required for using make in Windows platforms is to download the "unxutils". It includes make, bzip2, diff, ... and other unix-tools. Refer to this (found from search by google) :
http://www.weihenstephan.de/~syring/win32/
http://www.weihenstephan.de/~syring/win32/UnxUtils.zip
http://sourceforge.net/projects/unxutils/
For more documentation on how to write makefile, use make -tool, see
http://www.gnu.org/manual/
http://www.gnu.org/manual/make-3.79.1/html_mono/make.html -
Compilation with packages is different in J2SE 1.4.1 ?
Hi there !
I've just installed J2SE 1.4.1_01 in my Win NT 4.0 computer.
Some of the files that belong to packages compiled just fine with JDK 1.2.2 but don't compile with J2SE 1.4.1_01.
The same is true when I try to compile Java2D in the demo\jfc directory.
In project NumberFormatTest I have the following classes:
=====================================================================
d:\MyPrograms\Java\NumberFormatTest\NumberFormatTestFrame.java
package NumberFormatTest;
import java.awt.*;
import java.awt.event.*;
import java.sql.*;
import java.text.*;
import java.util.*;
import tools.*;
public class NumberFormatTestFrame extends Frame
implements ActionListener, KeyListener, WindowListener
=====================================================================
d:\MyPrograms\Java\Tools\JCTextField.java
package tools;
import java.awt.*;
public class JCTextField extends TextField
=====================================================================
d:\MyPrograms\Java\Tools\JCDecimalTextField.java
package tools;
import java.text.*;
import java.util.*;
public class JCDecimalTextField extends JCTextField
d:\MyPrograms\Java>javac Tools\JCTextField.java
compiles OK
d:\MyPrograms\Java>javac Tools\JCDecimalTextField.java
does not compile successfully with the error,
Tools\JCDecimalTextField.java:67: cannot resolve symbol
symbol : class JCTextField
location: class tools.JCDecimalTextField
public class JCDecimalTextField extends JCTextField
pointing to the J in JCTextField
d:\MyPrograms\Java>javac NumberFormatTest\NumberFormatTestFrame.java
also doesn't compile with with "cannot resolve symbol" errors, when it tries to use JCDecimalTextField.
It seems to me that classes defined by me to extend another class defined by me (JCDecimalTextField) and inside a package (tools) aren't being found by javac.
However JCTextField is defined by me, extends TextField (from java.awt.*), is inside package tools and compiles OK.
This stuff didn't happen in JDK 1.2.2.
What the hell has changed with J2SE 1.4.1 ???
My PATH has C:\Program Files\jdk\bin (among other directories)
My CLASSPATH is
D:\MyPrograms\Java;C:\Program Files\jdk\lib\tools.jar;C:\Program Files\Java\j2re1.4.1_01\lib\rt.jar;.;
I strongly suspect that something has changed after JDK 1.2.2 in the way packages are handled by javac. I've tried searching in forums and other sun java documentation but couldn't find an answer to my problem.
Can anyone please help me ?
Any hint, suggestion or Internet site with appropriate documentation, would be highly appreciated as a means to end this 2 day nightmare.
Thanks in advance,
MGoncalvThis issue has already been solved.
J2SE 1.4.1 is case sensitive with regard to package directories.
My tools package files must in subdirectory tools (but not Tools).
This problem didn't happened with JDK 1.2.2
For more details please take a look at
Cannot resolve symbol
from Feb 10, 2003 11:46
by MGoncalv -
Critical Error while compiling with AIR16 (*.ipa export)
Hey,
my application crashed while compiling with AIR16. (Flex 4.13.0-AIR 16.0)
With AIR15 it works well.
First I thougt, the reason might be the included ANE, but it isnt. The ANE works fine with another project.
In fact other projects also work with AIR16.
Any ideas?
Error message:
Error occurred while packaging the application:
Undefined symbols for architecture armv7:
"_traits:AOTBuildOutput-0000000101_6:234::Span", referenced from:
_AOTBuildOutput-0000000101_6:9729:Edge in AOTBuildOutput-0000000101_6.o
"_traits:AOTBuildOutput-0000000101_6:234::Edge", referenced from:
_AOTBuildOutput-0000000101_6:9706:flashx.textLayout.compose::Parcel/allocateEdge in AOTBuildOutput-0000000101_6.o
"_traits:AOTBuildOutput-0000000100_5:18::LocaleID", referenced from:
_AOTBuildOutput-0000000100_5:265:mx.resources::LocaleSorter$/sortLocalesByPreference in AOTBuildOutput-0000000100_5.o
ld: symbol(s) not found for architecture armv7
Compilation failed while executing : ld64
EDIT:
I tried it also with Flex 4.14.0-AIR 16.0. Got this message:
Error occurred while packaging the application:
Undefined symbols for architecture armv7:
"_traits:AOTBuildOutput-0000000101_6:248::Span", referenced from:
_AOTBuildOutput-0000000101_6:11261:Edge in AOTBuildOutput-0000000101_6_1.o
"_traits:AOTBuildOutput-0000000101_6:248::Edge", referenced from:
_AOTBuildOutput-0000000101_6:11238:flashx.textLayout.compose::Parcel/allocateEdge in AOTBuildOutput-0000000101_6_1.o
"_traits:AOTBuildOutput-0000000101_6:207::CellCoords", referenced from:
_AOTBuildOutput-0000000101_6:8073:flashx.textLayout.elements::TableElement/normalizeCells in AOTBuildOutput-0000000101_6.o
_AOTBuildOutput-0000000101_6:8072:flashx.textLayout.elements::TableElement/getBlockedCoor ds in AOTBuildOutput-0000000101_6.o
"_traits:AOTBuildOutput-0000000100_5:18::LocaleID", referenced from:
_AOTBuildOutput-0000000100_5:340:mx.resources::LocaleSorter$/sortLocalesByPreference in AOTBuildOutput-0000000100_5.o
ld: symbol(s) not found for architecture armv7
Compilation failed while executing : ld64We've built a lot of test-apps including the same components and libraries as in this app, but we are not able to reproduce this crash in other projects.
The project works fine in the Simulator without any crashes or compile errors! -
PCC-S-02014 error while compiling with in Sun Solaris
We are porting our application from HP-UX to Sun Solaris and as part of that I am trying the compile a Pro*C program in Sun Solaris using SUNWspro C++ compiler. Precompiling is failing with following error.
PRECOMP set: /u01/app/oracle/product/10.2.0/bin/proc dbms=native code=cpp mode=ansi include=/u01/app/oracle/product/10.2.0/precomp
ireclen=255 oreclen=255
define=__sparc define=__SUNPRO_C include=/usr/include include=. include=/u01/app/SUNWspro/prod/include/CC/stlport4 include=/u01/app/oracle/product/10.2.0/rdbms/public/ include=/u01/app/oracle/product/10.2.0/network/public/ include=/u01/app/oracle/product/10.2.0/rdbms/demo/ errors=yes select_error=no
sqlcheck=limited ltype=NONE
release_cursor=no hold_cursor=no
Pro*C/C++: Release 10.2.0.3.0 - Production on Thu Dec 18 03:09:59 2008
Copyright (c) 1982, 2005, Oracle. All rights reserved.
System default option values taken from: /u01/app/oracle/product/10.2.0/precomp/admin/pcscfg.cfg
Syntax error at line 44, column 30, file /u01/app/SUNWspro/prod/include/CC/stlport4/algorithm:
Error at line 44, column 30 in file /u01/app/SUNWspro/prod/include/CC/stlport4/a
lgorithm
# include STLPNATIVE_HEADER(algorithm)
.............................1
PCC-S-02014, Encountered the symbol "(" when expecting one of the following:
: [ ] + / . .. an identifier, a numeric constant, newline,
define, elif, else, endif, error, if, ifdef, ifndef, include,
line, pragma, undef, exec, sql, begin, end, var, type,
oracle, an immediate preprocessor command, a C token, create,
function, package, procedure, trigger, or, replace,
Normal C++ files are getting compiled with out eny issues. This particular file is having functions written in C fashion. Any idea what is missing in the compiler option.
regards
VinuHi Vinu,
I'm not sure if this is still an issue for you. When I have encountered issues like this with Pro*C I have ended up specifying parse=none to the proc command and then putting all declarations between "EXEC SQL BEGIN DECLARE SECTION" and "EXEC SQL END DECLARE SECTION" markers. I have also moved any "special" declarations into a specific header file and then placed the "#include <special header file>" inside the declare section as well.
Perhaps that will help a bit,
Regards,
Mark -
PL/SQL will compile with warnings but will not run
I have a pl/sql package that will compile with warnings but no errors but when i try to run it I get an ORA-6508 error telling me there is an error somewhere in the package but I can't find it.
I have two user schemas that use 2 slightly different versions of the package. I had to make slight code changes to one of the versions and when I made those changes it stopped running. The second version compiles and runs correctly.
After going through a line by line comparison the first copy was still not running. I copied the second version of the code into the broken schema and commented out the additional lines of code that are not needed in this version.
When I tried to compile and run this version it still fails with the same error.
I am using Oracle XE and the databases are small.
I can send on the code if necessary.
Can anyone point me in the right direction?
Thanks
SusanI tried doing what you suggested but there are no errors as it is compiling correctly.
It is only when I run the package through the debugger that I get the error. I have posted it below
Connecting to the database Hess S3.
Executing PL/SQL: ALTER SESSION SET PLSQL_DEBUG=TRUE
Executing PL/SQL: CALL DBMS_DEBUG_JDWP.CONNECT_TCP( '127.0.0.1', '2086' )
Debugger accepted connection from database on port 2086.
Processing 59 classes that have already been prepared...
Finished processing prepared classes.
Exception breakpoint occurred at line 10 of BnmSkOTQ3jz5I52ZOxC4QNw.pls.
$Oracle.EXCEPTION_ORA_6508:
ORA-04063: package body "SHIPPING.LIFTINGSCHEDULE" has errors
ORA-06508: PL/SQL: could not find program unit being called: "SHIPPING.LIFTINGSCHEDULE"
ORA-06512: at line 10
Process exited.
Disconnecting from the database Hess S3.
Debugger disconnected from database.
Regards
susan -
Just Starting out with java packages
Hello,
I'm a beginner and I'm starting out with java packages.
I wrote two simple .java files, one test program and one containing a simple class.
Both files are compiling without errors but When I run the program I get an error NoClassDeffoundError.
I use the import <package> statement And I think I'm using the CLASSPATH variable correctly.
SET CLASSPATH=d:\nopol
path for the .java containing the test class is:
d:\nopol\utilities \myapp.
In the test file I use "import utilities.myapp.*.
I would be very happy if anyone could help me
Thanks beforehand
Nopol.The test file should be in d:\nopol, if it's not a part of your package utilities.myapp. Everything should be compiled from d:\nopol, the test class with "javac ClassName.java" and the class in the package with "javac utilities/myapp/ClassName.java".
Your classpath seems fine for now, though. But yes, do add the period there, otherwise you could run into problems later. -
Kernel26-icc compiled with Intel's compiler instead of gcc
I'm working on kernel26-icc, it's the kernel26 but compiled with Intel's compiler. Can't seem to upload it to AUR ("Invalid name: only lowercase letters are allowed.")
http://www.linuxdna.com/
So far I've this:
PKGBUILD
# Maintainer: Mathias Burén <[email protected]>
pkgname=('kernel26-icc' 'kernel26-icc-firmware' 'kernel26-icc-headers') # Build icc kernel
_kernelname=${pkgname#kernel26-icc}
_basekernel=2.6.33
pkgver=${_basekernel}
pkgrel=1
arch=(x86_64)
license=('GPL2')
url="http://www.linuxdna.com/"
source=(ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-$_basekernel.tar.bz2
# the main kernel config files
config.x86_64
# standard config files for mkinitcpio ramdisk
kernel26-icc.preset
http://www.linuxdna.com/dna-2.6.33-intel64.patch)
makedepends=('icc')
md5sums=('c3883760b18d50e8d78819c54d579b00'
'5c91374d56f115ba4324978d5b002711'
'a4fd3c59751194bc118c70d1348436ab'
'a307beb562eb7e68a6f3e2fb5fc216a3')
build() {
cd ${srcdir}/linux-$_basekernel
cat ../config.x86_64 >./.config
patch -p1 < ../dna-2.6.33-intel64.patch || return 1
if [ "${_kernelname}" != "" ]; then
sed -i "s|CONFIG_LOCALVERSION=.*|CONFIG_LOCALVERSION=\"${_kernelname}\"|g" ./.config
fi
# get kernel version
make prepare
# load configuration
# Configure the kernel. Replace the line below with one of your choice.
make menuconfig # CLI menu for configuration
#make xconfig # X-based configuration
#make oldconfig # using old config from previous kernel version
# ... or manually edit .config
# stop here
# this is useful to configure the kernel
#msg "Stopping build"
#return 1
yes "" | make config
# build!
make bzImage modules || return 1
package_kernel26-icc() {
pkgdesc="The Linux Kernel and modules built with ICC"
backup=(etc/mkinitcpio.d/${pkgname}.preset)
depends=('coreutils' 'kernel26-icc-firmware>=2.6.33' 'module-init-tools' 'mkinitcpio>=0.5.20')
install=kernel26-icc.install
optdepends=('crda: to set the correct wireless channels of your country')
KARCH=x86
cd ${srcdir}/linux-$_basekernel
# get kernel version
_kernver="$(make kernelrelease)"
mkdir -p ${pkgdir}/{lib/modules,boot}
make INSTALL_MOD_PATH=${pkgdir} modules_install || return 1
cp System.map ${pkgdir}/boot/System.map26${_kernelname}
cp arch/$KARCH/boot/bzImage ${pkgdir}/boot/vmlinuz26${_kernelname}
# # add vmlinux
install -m644 -D vmlinux ${pkgdir}/usr/src/linux-${_kernver}/vmlinux
# install fallback mkinitcpio.conf file and preset file for kernel
install -m644 -D ${srcdir}/kernel26.preset ${pkgdir}/etc/mkinitcpio.d/${pkgname}.preset || return 1
# 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/kernel26.install
sed \
-e "s|source .*|source /etc/mkinitcpio.d/kernel26${_kernelname}.kver|g" \
-e "s|default_image=.*|default_image=\"/boot/${pkgname}.img\"|g" \
-e "s|fallback_image=.*|fallback_image=\"/boot/${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
package_kernel26-icc-headers() {
pkgdesc="Header files and scripts for building modules for kernel26-icc"
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,x86} config linux math-emu media net pcmcia scsi sound trace video; 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 usbvideo zc0301; 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/
# add dvb headers for external modules
# in reference to:
# 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 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
# add headers vor virtualbox
# in reference to:
# http://bugs.archlinux.org/task/14568
cp -a include/drm $pkgdir/usr/src/linux-${_kernver}/include/
# add headers for broadcom wl
# in reference to:
# http://bugs.archlinux.org/task/14568
cp -a include/trace $pkgdir/usr/src/linux-${_kernver}/include/
# 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
cd ${pkgdir}/usr/src/linux-${_kernver}/include && ln -s asm-$KARCH asm
# add header for aufs2-util
cp -a ${srcdir}/linux-$_basekernel/include/asm-generic/bitsperlong.h ${pkgdir}/usr/src/linux-${_kernver}/include/asm/
chown -R root.root ${pkgdir}/usr/src/linux-${_kernver}
find ${pkgdir}/usr/src/linux-${_kernver} -type d -exec chmod 755 {} \;
# remove unneeded architectures
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}
package_kernel26-icc-firmware() {
pkgdesc="The included firmware files of kernel26-icc"
cd ${srcdir}/linux-$_basekernel
make firmware || return 1
make INSTALL_MOD_PATH=${pkgdir} firmware_install || return 1
kernel26-icc.preset
# mkinitcpio preset file for kernel26-icc
# DO NOT EDIT THIS LINE:
source /etc/mkinitcpio.d/kernel26-icc.kver
ALL_config="/etc/mkinitcpio.conf"
PRESETS=('default' 'fallback')
#default_config="/etc/mkinitcpio.conf"
default_image="/boot/kernel26-icc.img"
#default_options=""
#fallback_config="/etc/mkinitcpio.conf"
fallback_image="/boot/kernel26-icc-fallback.img"
fallback_options="-S autodetect"
kernel26-icc.install
# arg 1: the new package version
# arg 2: the old package version
KERNEL_NAME=-icc
KERNEL_VERSION=2.6.33-icc
post_install () {
# updating module dependencies
echo ">>> Updating module dependencies. Please wait ..."
depmod $KERNEL_VERSION
# generate init ramdisks
echo ">>> MKINITCPIO SETUP"
echo ">>> ----------------"
echo ">>> If you use LVM2, Encrypted root or software RAID,"
echo ">>> Ensure you enable support in /etc/mkinitcpio.conf ."
echo ">>> More information about mkinitcpio setup can be found here:"
echo ">>> http://wiki.archlinux.org/index.php/Mkinitcpio"
echo ""
echo ">>> Generating initial ramdisk, using mkinitcpio. Please wait..."
/sbin/mkinitcpio -p kernel26${KERNEL_NAME}
post_upgrade() {
pacman -Q grub &>/dev/null
hasgrub=$?
pacman -Q grub2 &>/dev/null
hasgrub2=$?
pacman -Q lilo &>/dev/null
haslilo=$?
# reminder notices
if [ $haslilo -eq 0 ]; then
echo ">>>"
if [ $hasgrub -eq 0 -o $hasgrub2 -eq 0 ]; then
echo ">>> If you use the LILO bootloader, you should run 'lilo' before rebooting."
else
echo ">>> You appear to be using the LILO bootloader. You should run"
echo ">>> 'lilo' before rebooting."
fi
echo ">>>"
fi
if grep "^[^#]*/boot" /etc/fstab 2>&1 >/dev/null; then
if ! grep "/boot" /etc/mtab 2>&1 >/dev/null; then
echo "WARNING: /boot appears to be a seperate partition but is not mounted"
echo " This is most likely not what you want. Please mount your /boot"
echo " partition and reinstall the kernel unless you are sure this is OK"
fi
fi
if [ "`vercmp $2 2.6.13`" -lt 0 ]; then
# important upgrade notice
echo ">>>"
echo ">>> IMPORTANT KERNEL UPGRADE NOTICE"
echo ">>> -------------------------------"
echo ">>> As of kernel 2.6.13, DevFS is NO LONGER AVAILABLE!"
echo ">>> If you still use DevFS, please make the transition to uDev before"
echo ">>> rebooting. If you really need to stay with DevFS for some reason,"
echo ">>> then you can manually downgrade to an older version:"
echo ">>>"
echo ">>> # pacman -U http://archlinux.org/~judd/kernel/kernel26-scsi-2.6.12.2-1.pkg.tar.gz"
echo ">>>"
echo ">>> If you choose to downgrade, don't forget to add kernel26-scsi to your"
echo ">>> IgnorePkg list in /etc/pacman.conf"
echo ">>>"
echo ">>> (NOTE: The following portion applies to uDev users as well!)"
echo ">>>"
echo ">>> If you use any DevFS paths in your GRUB menu.lst, then you will not"
echo ">>> be able to boot! Change your root= parameter to use the classic"
echo ">>> naming scheme."
echo ">>>"
echo ">>> EXAMPLES:"
echo ">>> - change root=/dev/discs/disc0/part3 to root=/dev/sda3"
echo ">>> - change root=/dev/md/0 to root=/dev/md0"
echo ">>>"
fi
# generate new init ramdisk
if [ "`vercmp $2 2.6.18`" -lt 0 ]; then
echo ">>> --------------------------------------------------------------"
echo ">>> | WARNING: |"
echo ">>> |mkinitrd is not supported anymore in kernel >=2.6.18 series!|"
echo ">>> | Please change to Mkinitcpio setup. |"
echo ">>> --------------------------------------------------------------"
echo ">>>"
fi
# updating module dependencies
echo ">>> Updating module dependencies. Please wait ..."
depmod $KERNEL_VERSION
echo ">>> MKINITCPIO SETUP"
echo ">>> ----------------"
if [ "`vercmp $2 2.6.18`" -lt 0 ]; then
echo ">>> Please change your bootloader config files:"
echo ">>> Grub: /boot/grub/menu.lst | Lilo: /etc/lilo.conf"
echo "------------------------------------------------"
echo "| - initrd26.img to kernel26${KERNEL_NAME}.img |"
echo "| - initrd26-full.img to kernel26${KERNEL_NAME}-fallback.img |"
echo "------------------------------------------------"
fi
if [ "`vercmp $2 2.6.19`" -lt 0 ]; then
echo ""
echo ">>> New PATA/IDE subsystem - EXPERIMENTAL"
echo ">>> ----------"
echo ">>> To use the new pata drivers, change the 'ide' hook "
echo ">>> to 'pata' in /etc/mkinicpio.conf HOOKS="
echo ">>> The new system changes: /dev/hd? to /dev/sd?"
echo ">>> Don't forget to modify GRUB, LILO and fstab to the"
echo ">>> new naming system. "
echo ">>> eg: hda3 --> sda3, hdc8 --> sdc8"
echo ""
echo ">>> piix/ata_piix (Intel chipsets) - IMPORTANT"
echo "----------"
echo ">>> If you have enabled ide/pata/sata HOOKs in /etc/mkinitcpio.conf"
echo ">>> the 'ata_piix' module will be used."
echo ">>> This may cause your devices to shift names, eg:"
echo ">>> - IDE: devices from hd? to sd?"
echo ">>> - SATA: sda might shift to sdc if you have 2 other disks on a PIIX IDE port."
echo ">>> To check if this will affect you, check 'mkinitcpio -M' for piix/ata_piix"
echo ""
fi
echo ">>> If you use LVM2, Encrypted root or software RAID,"
echo ">>> Ensure you enable support in /etc/mkinitcpio.conf ."
echo ">>> More information about mkinitcpio setup can be found here:"
echo ">>> http://wiki.archlinux.org/index.php/Mkinitcpio"
echo ""
echo ">>> Generating initial ramdisk, using mkinitcpio. Please wait..."
if [ "`vercmp $2 2.6.19`" -lt 0 ]; then
/sbin/mkinitcpio -p kernel26${KERNEL_NAME} -m "ATTENTION:\nIf you get a kernel panic below
and are using an Intel chipset, append 'earlymodules=piix' to the
kernel commandline"
else
/sbin/mkinitcpio -p kernel26${KERNEL_NAME}
fi
if [ "`vercmp $2 2.6.21`" -lt 0 ]; then
echo ""
echo "Important ACPI Information:"
echo ">>> Since 2.6.20.7 all possible ACPI parts are modularized."
echo ">>> The modules are located at:"
echo ">>> /lib/modules/$(uname -r)/kernel/drivers/acpi"
echo ">>> For more information about ACPI modules check this wiki page:"
echo ">>> 'http://wiki.archlinux.org/index.php/ACPI_modules'"
fi
post_remove() {
rm -f /boot/kernel26${KERNEL_NAME}.img
rm -f /boot/kernel26${KERNEL_NAME}-fallback.img
Then there's of course the config, it's based on kernel26 at the moment,.
I'm building it now, to test. I had to install icc manually because the AUR package for icc didn't work for me. I had to install icc manually (run the installer), but that wasn't enough. Before makepkg, you have to add the icc to $PATH e.g.
PATH=$PATH:/opt/intel/Compiler/11.1/064/bin/intel64
and execute iccvars_intel64.sh which is in that folder.
Last edited by Fackamato (2010-02-25 23:43:38)Ashren wrote:So there is a significant performance gain with ICC? Compilation time wise or?
icc kernel compiles in similar time as gcc kernel, or if there any differences these may be negligible. To be honest I was not really interested in compiling times (was doing somethig else as it takes ~12 min on my system to finish kernel compilation), but rather with overall kernel performance. This is not the same as OS performance, but I am planning to compile firefox with icc and maybe some other stuff (if I am bored enough).
If you have 32-bit OS (I have no idea how it will work on 64-bit), try it. I can't post PKGBUILD for 32-bit icc kernel because I don't use PKGBUILD for kernels or nvidia as I have found it limiting/cumbersome/unnecessary (while PKGBUILDs work great for anything else on Arch).
The only part really annoying is intel server speed. Downloading icc sources (710MB for 32-bit only) tahes two hours. If you try to get 32/64bit sources even longer (1GB download).
32-bit icc PKGBUILD package requires only one modification related to Release Notes otherwise makepkg will fail. Once installed export icc path, edit kernel Makefile and change one line related to compiler: change gcc to icc. You can also add some compiling optimizations.
Pretty easy if you did compile kernel before.
note added:
actually combination of icc and zen seems to have nice effect on desktop responsiveness (this is 2.6.33)
Last edited by broch (2010-02-26 19:54:57) -
SOLVED: SQL Developer Code Compilation with warnings
Hi, I think I found one bug in sql developer.
I have one pl/sql package, that contains a lot of code. In the previous SQL Developer releases (prior to 1.2) when you compile the code, first appears the errors and then the warnings. Because of some type conversion in my sql statements i have more than 20 warnings, and now i cannot see the errors (i think that they will appear if i'm able to increase this "20 messages" limit). I was searching for some option in SQL Developer to increase the number of displayed warnings or errors (or turn off the warnings) but i cannot find such parameter.
Is this a bug, or i'm missing something ?
PS: because of this, i'm not able to compile my package with sql developer, and i'm compiling via sqlplus.
nullYes, you're missing something: the forum's search feature.
See:
compile with many warnings causes compiler dont show errors correctly
Compiling an invalid packagebody without errormessage
SQL Developer says Compile sucessful but it is not
K.
Maybe you are looking for
-
How would YOU retype these old XM08 types for use in an ABAP OO method?
The XM08 function group has the following type declarations: TYPES: BEGIN OF mmcr_drseg_co. INCLUDE STRUCTURE cobl_mrm_d. TYPES: cr LIKE drseg_cr OCCURS 0, unpl_refwr TYPE refwr, END OF mmcr_drseg_co. TYPES: mmcr_tdrseg TYPE
-
Read PDF files in Safari on 10.5 --- HELP PLEASE!
I accidently deleted the Internet Plug-in to read PDF files in 10.5. The plug in is located in /Macintosh HD/Library/Internet Plug-Ins/ I believe it is called "Adobe Acrobat ???" (or something like this) If someone could post it or e-mail it to me, I
-
Unable to hook up my ipod to a television with av cables
How can I hook up my ipod to a television with av cables. I am hooking it up to an older tv and can get audio but no video.
-
When I edit music info it is not saved.
I've formated my mac a few weeks ago. I've imported my lybrary with Time Machine and it works perfectly. The only problem is that I can not edit any song's info. Nor title, artist, lyric, front cover..nothing! When I press OK all the new data I've wr
-
Re;ease strategy defination
Hello iam trying to set up a release procedure and my conditions are based on some value of the po say for example 10,000 dollar by a certain buyer should go to release blck i am not sure what should be the charecteristics and values for that can som