Build fails no /etc/profile.d/gnome.sh
I am trying to build gnome-system-tools and I keep failing here:
[root@localhost system-tools]# makepkg -i
==> Making package: system-tools-backends 1.2.0-1 (Fri Sep 21 12:26:10 EDT 2007)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
-> Found system-tools-backends-1.2.0.tar.bz2 in build dir
-> Found archsupport.patch in build dir
==> Validating source files with md5sums
system-tools-backends-1.2.0.tar.bz2 ... Passed
archsupport.patch ... Passed
==> Extracting Sources...
-> tar -xf system-tools-backends-1.2.0.tar.bz2
==> Removing existing pkg/ directory...
==> Starting build()...
PKGBUILD: line 20: /etc/profile.d/gnome.sh: No such file or directory
What am I missing? Why no /etc/profile.d/gnome.sh?
I am running Gnome 2.18.3 and starting it with gdm. Totally lost at this point.
Thanks
The output in your post says you're trying to build system-tools-backends, not gnome-system-tools. According to the relevant AUR page, that package was submitted over two years ago, and hasn't been updated since. The upstream release date for system-tools-backends 1.2.0 was 08 March 2005.
Find a more recent release, and see if that builds correctly for you.
Similar Messages
-
When I create an EJB Transport Business Service, after selecting the jar that has the EJB 2.1 artefacts (Remote, Home, etc) the oepe plugin fails and can't continue.
As I understand it seems that there is a problem with the classpath of ant build.xml that oepe creates inside folder /tmp/alsbejbtransport/ to compile the bs and generate the wsdl. I checked if tools.jar is in the classpath (in eclipse) and is included, so I can't figure out wich is the problem.
I found this in Oracle, but not helps solve the problem:
BEA-398120
Error: The WSDL for the typed transport endpoint could not be accessed.
Description
There was a problem retrieving the WSDL from the typed transport service endpoint at the time of service registration
Action
Contact technical support
This is the the full stacktrace that shows eclipse.
Generate : Error during generation of the WSDL:
BUILD FAILED
java.lang.NoClassDefFoundError: com/sun/javadoc/Type
at com.bea.util.jam.provider.JamServiceFactoryImpl.createSourceBuilder(JamServiceFactoryImpl.java:205)
at com.bea.util.jam.provider.JamServiceFactoryImpl.createBuilder(JamServiceFactoryImpl.java:158)
at com.bea.util.jam.provider.JamServiceFactoryImpl.createClassLoader(JamServiceFactoryImpl.java:137)
at com.bea.util.jam.provider.JamServiceFactoryImpl.createService(JamServiceFactoryImpl.java:78)
at weblogic.wsee.util.JamUtil.parseSource(JamUtil.java:152)
at weblogic.wsee.tools.anttasks.JwsLoader.loadJClasses(JwsLoader.java:186)
at weblogic.wsee.tools.anttasks.JwsLoader.load(JwsLoader.java:75)
at weblogic.wsee.tools.anttasks.JwsModule.loadWebServices(JwsModule.java:569)
at weblogic.wsee.tools.anttasks.JwsModule.generate(JwsModule.java:369)
at weblogic.wsee.tools.anttasks.JwsModule.build(JwsModule.java:256)
at weblogic.wsee.tools.anttasks.JwscTask.execute(JwscTask.java:184)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
at org.apache.tools.ant.Main.runBuild(Main.java:758)
at org.apache.tools.ant.Main.startAnt(Main.java:217)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
Caused by: java.lang.ClassNotFoundException: com.sun.javadoc.Type
at org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoader.java:1400)
at org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:1341)
at org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:1088)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
... 27 more
Total time: 0 seconds
Eclipse Installation details:
*** System properties:
eclipse.application=org.eclipse.ui.ide.workbench
eclipse.buildId=M20110909-1335
eclipse.commands=-os
linux
-ws
gtk
-arch
x86_64
-showsplash
-launcher
{home}/Development/oepe-indigo/eclipse
-name
Eclipse
--launcher.library
{home}/Development/oepe-indigo//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.100.v20110505/eclipse_1407.so
-startup
{home}/Development/oepe-indigo//plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.overrideVmargs
-exitdata
1e418010
-vm
/usr/bin/java
eclipse.home.location=file:{home}/Development/oepe-indigo/
eclipse.launcher={home}/Development/oepe-indigo/eclipse
eclipse.launcher.name=Eclipse
[email protected]/../p2/
eclipse.p2.profile=PlatformProfile
eclipse.product=org.eclipse.platform.ide
eclipse.startTime=1374623921455
eclipse.vm=/usr/bin/java
eclipse.vmargs=-Xms256m
-Xmx768m
-XX:MaxPermSize=512m
-Dsun.lang.ClassLoader.allowArraySyntax=true
-Dweblogic.home={home}/Oracle/Middleware/wlserver_10.3
-Dharvester.home={home}/Oracle/Middleware/Oracle_OSB1/harvester
-Dosb.home={home}/Oracle/Middleware/Oracle_OSB1
-Dosgi.bundlefile.limit=750
-Dosgi.nl=en_US
-Dmiddleware.home={home}/Oracle/Middleware
-jar
{home}/Development/oepe-indigo//plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
equinox.use.ds=true
file.encoding=UTF-8
file.encoding.pkg=sun.io
file.separator=/
guice.disable.misplaced.annotation.check=true
harvester.home={home}/Oracle/Middleware/Oracle_OSB1/harvester
http.nonProxyHosts=localhost
java.awt.graphicsenv=sun.awt.X11GraphicsEnvironment
java.awt.printerjob=sun.print.PSPrinterJob
java.class.path={home}/Development/oepe-indigo//plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
java.class.version=50.0
java.endorsed.dirs=/usr/lib/jvm/jdk1.6.0_45/jre/lib/endorsed
java.ext.dirs=/usr/lib/jvm/jdk1.6.0_45/jre/lib/ext:/usr/java/packages/lib/ext
java.home=/usr/lib/jvm/jdk1.6.0_45/jre
java.io.tmpdir=/tmp
java.library.path=/usr/lib/jvm/jdk1.6.0_45/jre/lib/amd64/server:/usr/lib/jvm/jdk1.6.0_45/jre/lib/amd64:/usr/lib/jvm/jdk1.6.0_45/jre/../lib/amd64:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
java.protocol.handler.pkgs=null|com.bea.wli.sb.resources.url|com.bea.wli.sb.resources.jca.upgrade.url|weblogic.utils|weblogic.utils|weblogic.utils|weblogic.net|weblogic.net
java.runtime.name=Java(TM) SE Runtime Environment
java.runtime.version=1.6.0_45-b06
java.specification.name=Java Platform API Specification
java.specification.vendor=Sun Microsystems Inc.
java.specification.version=1.6
java.vendor=Sun Microsystems Inc.
java.vendor.url=http://java.sun.com/
java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi
java.version=1.6.0_45
java.vm.info=mixed mode
java.vm.name=Java HotSpot(TM) 64-Bit Server VM
java.vm.specification.name=Java Virtual Machine Specification
java.vm.specification.vendor=Sun Microsystems Inc.
java.vm.specification.version=1.0
java.vm.vendor=Sun Microsystems Inc.
java.vm.version=20.45-b01
javax.rmi.CORBA.PortableRemoteObjectClass=weblogic.iiop.PortableRemoteObjectDelegateImpl
javax.rmi.CORBA.UtilClass=weblogic.iiop.UtilDelegateImpl
jna.platform.library.path=/usr/lib/x86_64-linux-gnu:/lib/x86_64-linux-gnu:/lib64:/usr/lib:/lib
line.separator=
middleware.home={home}/Oracle/Middleware
oracle.eclipse.tools.weblogic.ui.isWebLogicServer=true
org.apache.commons.logging.Log=org.apache.commons.logging.impl.NoOpLog
org.eclipse.equinox.launcher.splash.location={home}/Development/oepe-indigo/plugins/org.eclipse.platform_3.7.1.v201109091335/splash.bmp
org.eclipse.equinox.simpleconfigurator.configUrl=file:org.eclipse.equinox.simpleconfigurator/bundles.info
org.eclipse.m2e.log.dir={home}/workspace/pragma/.metadata/.plugins/org.eclipse.m2e.logback.configuration
org.eclipse.update.reconcile=false
org.omg.CORBA.ORBClass=weblogic.corba.orb.ORB
org.omg.CORBA.ORBSingletonClass=weblogic.corba.orb.ORB
org.osgi.framework.executionenvironment=OSGi/Minimum-1.0,OSGi/Minimum-1.1,OSGi/Minimum-1.2,JRE-1.1,J2SE-1.2,J2SE-1.3,J2SE-1.4,J2SE-1.5,JavaSE-1.6
org.osgi.framework.language=en
org.osgi.framework.os.name=Linux
org.osgi.framework.os.version=3.8.0
org.osgi.framework.processor=x86-64
org.osgi.framework.system.capabilities=osgi.ee; osgi.ee="OSGi/Minimum"; version:List<Version>="1.0, 1.1, 1.2",osgi.ee; osgi.ee="JavaSE"; version:List<Version>="1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6"
org.osgi.framework.system.packages=javax.accessibility,javax.activation,javax.activity,javax.annotation,javax.annotation.processing,javax.crypto,javax.crypto.interfaces,javax.crypto.spec,javax.imageio,javax.imageio.event,javax.imageio.metadata,javax.imageio.plugins.bmp,javax.imageio.plugins.jpeg,javax.imageio.spi,javax.imageio.stream,javax.jws,javax.jws.soap,javax.lang.model,javax.lang.model.element,javax.lang.model.type,javax.lang.model.util,javax.management,javax.management.loading,javax.management.modelmbean,javax.management.monitor,javax.management.openmbean,javax.management.relation,javax.management.remote,javax.management.remote.rmi,javax.management.timer,javax.naming,javax.naming.directory,javax.naming.event,javax.naming.ldap,javax.naming.spi,javax.net,javax.net.ssl,javax.print,javax.print.attribute,javax.print.attribute.standard,javax.print.event,javax.rmi,javax.rmi.CORBA,javax.rmi.ssl,javax.script,javax.security.auth,javax.security.auth.callback,javax.security.auth.kerberos,javax.security.auth.login,javax.security.auth.spi,javax.security.auth.x500,javax.security.cert,javax.security.sasl,javax.sound.midi,javax.sound.midi.spi,javax.sound.sampled,javax.sound.sampled.spi,javax.sql,javax.sql.rowset,javax.sql.rowset.serial,javax.sql.rowset.spi,javax.swing,javax.swing.border,javax.swing.colorchooser,javax.swing.event,javax.swing.filechooser,javax.swing.plaf,javax.swing.plaf.basic,javax.swing.plaf.metal,javax.swing.plaf.multi,javax.swing.plaf.synth,javax.swing.table,javax.swing.text,javax.swing.text.html,javax.swing.text.html.parser,javax.swing.text.rtf,javax.swing.tree,javax.swing.undo,javax.tools,javax.transaction,javax.transaction.xa,javax.xml,javax.xml.bind,javax.xml.bind.annotation,javax.xml.bind.annotation.adapters,javax.xml.bind.attachment,javax.xml.bind.helpers,javax.xml.bind.util,javax.xml.crypto,javax.xml.crypto.dom,javax.xml.crypto.dsig,javax.xml.crypto.dsig.dom,javax.xml.crypto.dsig.keyinfo,javax.xml.crypto.dsig.spec,javax.xml.datatype,javax.xml.namespace,javax.xml.parsers,javax.xml.soap,javax.xml.stream,javax.xml.stream.events,javax.xml.stream.util,javax.xml.transform,javax.xml.transform.dom,javax.xml.transform.sax,javax.xml.transform.stax,javax.xml.transform.stream,javax.xml.validation,javax.xml.ws,javax.xml.ws.handler,javax.xml.ws.handler.soap,javax.xml.ws.http,javax.xml.ws.soap,javax.xml.ws.spi,javax.xml.ws.wsaddressing,javax.xml.xpath,org.ietf.jgss,org.omg.CORBA,org.omg.CORBA_2_3,org.omg.CORBA_2_3.portable,org.omg.CORBA.DynAnyPackage,org.omg.CORBA.ORBPackage,org.omg.CORBA.portable,org.omg.CORBA.TypeCodePackage,org.omg.CosNaming,org.omg.CosNaming.NamingContextExtPackage,org.omg.CosNaming.NamingContextPackage,org.omg.Dynamic,org.omg.DynamicAny,org.omg.DynamicAny.DynAnyFactoryPackage,org.omg.DynamicAny.DynAnyPackage,org.omg.IOP,org.omg.IOP.CodecFactoryPackage,org.omg.IOP.CodecPackage,org.omg.Messaging,org.omg.PortableInterceptor,org.omg.PortableInterceptor.ORBInitInfoPackage,org.omg.PortableServer,org.omg.PortableServer.CurrentPackage,org.omg.PortableServer.POAManagerPackage,org.omg.PortableServer.POAPackage,org.omg.PortableServer.portable,org.omg.PortableServer.ServantLocatorPackage,org.omg.SendingContext,org.omg.stub.java.rmi,org.w3c.dom,org.w3c.dom.bootstrap,org.w3c.dom.css,org.w3c.dom.events,org.w3c.dom.html,org.w3c.dom.ls,org.w3c.dom.ranges,org.w3c.dom.stylesheets,org.w3c.dom.traversal,org.w3c.dom.views,org.w3c.dom.xpath,org.xml.sax,org.xml.sax.ext,org.xml.sax.helpers
org.osgi.framework.uuid=901615cd-f3f3-0012-11b6-a3bca4d97ac1
org.osgi.framework.vendor=Eclipse
org.osgi.framework.version=1.6.0
org.osgi.supports.framework.extension=true
org.osgi.supports.framework.fragment=true
org.osgi.supports.framework.requirebundle=true
os.arch=amd64
os.name=Linux
os.version=3.8.0-26-generic
osb.home={home}/Oracle/Middleware/Oracle_OSB1
osgi.arch=x86_64
osgi.bundlefile.limit=750
osgi.bundles=reference:file:javax.transaction_1.1.1.v201105210645.jar,reference:file:org.eclipse.equinox.simpleconfigurator_1.0.200.v20110502-1955.jar@1:start
osgi.bundles.defaultStartLevel=4
osgi.bundlestore={home}/Development/oepe-indigo/configuration/org.eclipse.osgi/bundles
osgi.configuration.area=file:{home}/Development/oepe-indigo/configuration/
osgi.framework=file:{home}/Development/oepe-indigo/plugins/org.eclipse.osgi_3.7.1.R37x_v20110808-1106.jar
osgi.framework.extensions=reference:file:javax.transaction_1.1.1.v201105210645.jar
osgi.framework.shape=jar
osgi.framework.version=3.7.1.R37x_v20110808-1106
osgi.frameworkClassPath=., file:{home}/Development/oepe-indigo/plugins/javax.transaction_1.1.1.v201105210645.jar
osgi.install.area=file:{home}/Development/oepe-indigo/
osgi.instance.area=file:{home}/workspace/pragma/
osgi.instance.area.default=file:{home}/workspace/
osgi.logfile={home}/workspace/pragma/.metadata/.log
osgi.manifest.cache={home}/Development/oepe-indigo/configuration/org.eclipse.osgi/manifests
osgi.nl=en_US
osgi.nl.user=en_US
osgi.os=linux
osgi.splashLocation={home}/Development/oepe-indigo/plugins/org.eclipse.platform_3.7.1.v201109091335/splash.bmp
osgi.splashPath=platform:/base/plugins/org.eclipse.platform
osgi.syspath={home}/Development/oepe-indigo/plugins
osgi.tracefile={home}/workspace/pragma/.metadata/trace.log
osgi.ws=gtk
path.separator=:
securerandom.source=file:/dev/./urandom
socksNonProxyHost=localhost
sun.arch.data.model=64
sun.boot.class.path=/usr/lib/jvm/jdk1.6.0_45/jre/lib/resources.jar:/usr/lib/jvm/jdk1.6.0_45/jre/lib/rt.jar:/usr/lib/jvm/jdk1.6.0_45/jre/lib/sunrsasign.jar:/usr/lib/jvm/jdk1.6.0_45/jre/lib/jsse.jar:/usr/lib/jvm/jdk1.6.0_45/jre/lib/jce.jar:/usr/lib/jvm/jdk1.6.0_45/jre/lib/charsets.jar:/usr/lib/jvm/jdk1.6.0_45/jre/lib/modules/jdk.boot.jar:/usr/lib/jvm/jdk1.6.0_45/jre/classes
sun.boot.library.path=/usr/lib/jvm/jdk1.6.0_45/jre/lib/amd64
sun.cpu.endian=little
sun.cpu.isalist=
sun.desktop=gnome
sun.io.unicode.encoding=UnicodeLittle
sun.java.command={home}/Development/oepe-indigo//plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar -os linux -ws gtk -arch x86_64 -showsplash -launcher {home}/Development/oepe-indigo/eclipse -name Eclipse --launcher.library {home}/Development/oepe-indigo//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.100.v20110505/eclipse_1407.so -startup {home}/Development/oepe-indigo//plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar --launcher.overrideVmargs -exitdata 1e418010 -vm /usr/bin/java -vmargs -Xms256m -Xmx768m -XX:MaxPermSize=512m -Dsun.lang.ClassLoader.allowArraySyntax=true -Dweblogic.home={home}/Oracle/Middleware/wlserver_10.3 -Dharvester.home={home}/Oracle/Middleware/Oracle_OSB1/harvester -Dosb.home={home}/Oracle/Middleware/Oracle_OSB1 -Dosgi.bundlefile.limit=750 -Dosgi.nl=en_US -Dmiddleware.home={home}/Oracle/Middleware -jar {home}/Development/oepe-indigo//plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
sun.java.launcher=SUN_STANDARD
sun.jnu.encoding=UTF-8
sun.lang.ClassLoader.allowArraySyntax=true
sun.management.compiler=HotSpot 64-Bit Tiered Compilers
sun.os.patch.level=unknown
svnkit.http.methods=Basic
svnkit.library.gnome-keyring.enabled=false
user.country=AR
user.dir={home}/Development/oepe-indigo
user.home={home}
user.language=es
user.name={username}
user.timezone=America/Argentina/Buenos_Aires
weblogic.home={home}/Oracle/Middleware/wlserver_10.3
Thanks!!run this one in command prompt and then convert the applet using converter tool
JC_HOME = C:\java_card_kit-2_2_2\bin\
set CLASSES=%JCHOME%\lib\apduio.jar;%JC_HOME%\lib\apdutool.jar;%JC_HOME%\lib\jcwde.jar;%JC_HOME%\lib\converter.jar;%JC_HOME%\lib\scriptgen.jar;%JC_HOME%\lib\offcardverifier.jar;%JC_HOME%\lib\api.jar;%JC_HOME%\lib\installer.jar;%JC_HOME%\lib\capdump.jar;
D:\NareshPalle\jcardRE\Smart\src>java -classpath %_CLASSES% com.sun.javacard.con
verter.Converter -out EXP JCA CAP -exportpath .\exp -applet 0x0a:0x00:0x00:0x00:0x0e:0x01:0x02:
0x03:0x04:0x05:0x06 PackageName appletName 0x01:0x02:0x03:0x04:0x05:0x0
6:0x07:0x08 1.0
or
go to following directory and run the converter tool in command prompt
step 1: cd C:\java_card_kit-2_2_2\bin\
then run this command under the above directory
step 2:converter -classdir E:\Pathof Your applet class file -out EXP JCA CAP -exportpath E:\path of exp files folder -applet AID PackageName AppletName PackAID major.minor no
For more doubts mail me....
*[removed by moderator]*
Thanks and Regards
NareshPalle
Edited by: EJP on 31/03/2012 20:09: removed your email address. Unless you like spam and unless you think these forums are provided for your personal benefit only, posting an email address here serves no useful purpose whatsoever. -
Cannot source /etc/profile from within the PKGBUILD anymore
Hi,
Short story: the command
source /etc/profile
within the build() section of my PKGBUILD now returns a build() error. It used to work before, is there a reason for this? Should it be executed in another section than build()? (Note source /etc/profile works properly in console, within the build directory)
Long story:
I need to use $JAVA_HOME in my PKGBUILD (to patch a lua source file with the current JDK path, which can be detected with $JAVA_HOME. Patching is done with a sed command). However, if java-environment is installed for the first time (as a makedepends) along with my package, then I need to source /etc/profile first to set the $JAVA_HOME environment variable, before being able to use it within my build() section. Otherwise it is not set yet and building fails.
Many thanks for your help.
Last edited by zebulon (2012-12-28 14:57:23)Hi,
Many thanks for the advice. I was unclear though: I maintain the aacskeys package in AUR, not the lua package. However, the file I am patching in aacskeys is named premake.lua, used for the project file generator premake.sourceforge.net.
I'll try your first suggestion, since this is the only one which may work without touching the system. Another alternative would be to directly source the /etc/profile.d/jdk.sh file. EDIT: nope, because there could be openjdk6.sh instead. I really need to be able to source the correct file. The maintainer of opencascade uses:
if [ -z $JAVA_HOME ]; then
[ -e /etc/profile.d/openjdk6.sh ] && source /etc/profile.d/openjdk6.sh
[ -e /etc/profile.d/jdk.sh ] && source /etc/profile.d/jdk.sh
fi
which is efficacious but less generic.
Besides, is it normal that we get this error code, since the Arch documentation only recommends to set LANG in /etc/locale.conf? SHould I report it as a bug or request a design change for /etc/profile.d/locale.sh there (as suggested in your (b) entry)? I am asking this because my PKGBUILD is not the only one to use this trick, and this problem breaks them all.
Thanks.
Last edited by zebulon (2012-12-30 06:14:58) -
/etc/profile doesn't get sourced at start of session
Hello to everyone :D. I've been using Windows my entire life until January when someone recommended me Ubuntu. I tried (and loved it) for some months but got sick of the lack of control, the pre-installed packages and the incorporation of Unity in 11.04, so went all out for Arch.
It took me 2-whole-days to install everything correctly (because of issues related with the PC rather than Arch itself) and I've been configuring it bit by bit in the last two weeks (wasted my whole winter vacations on it, but it was worth it :P), ran through a lot of trouble which I've been (somehow) able to overcome almost completely by just using the Wikia (and Googling through old forum posts). I also learned a whole lot about Linux in that time and I'm very happy with my new system :D. So a thanks a lot to all the community for the great documentation you've developed, it really made a complete Linux-newbie (with a whole lot of patience :P) get a working system all by himself which is saying a lot.
------------------------------------------------------------------START READING HERE TO SKIP PERSONAL INTRO :P ---------------------------------------------------------------------
However right now I'm having a couple of minor issues which don't prevent me from enjoying the system but I would rather fix in order to have a clean system (and avoid further trouble in the future). I have LXDE installed with Slim as a login manager which I start through inittab in run level 5 to start X (relevant files attached at the end of the post). The system was working perfectly but I noticed that my session wasn't being registered by ConsoleKit (it didn't appear in the "who" command which was a problem for some scripts I was building) so I read the wikia and added the following lines at "slim.conf":
sessionstart_cmd /usr/bin/sessreg -a -l $DISPLAY %user
sessionstop_cmd /usr/bin/sessreg -d -l $DISPLAY %user
Which happily made the session appear at the "who" command as I needed. However some days after that, for no apparent reason (actually me touching config files probably), my PATH environment variable was wrong after booting (just had the /bin and /usr/bin on it, not /sbin or /usr/sbin). This just happens when I boot directly to X, when booting from a terminal the variable value was correct.
After some research (and adding debugging commands in the initialization scripts) I concluded that my "/etc/profile" script wasn't getting ran when I boot directly to X. In order to bypass this problem temporally I made a (absolutely horrible and temporal) patch by adding the line "source /etc/profile" at ".xinitrc" which sourced the file and gave me the right value for the PATH variable. However by doing it seems I ruined the former problem and my session doesn't appear at the "who" command again :S (by removing it again, the session appears again but the PATH variable is wrong). So I've been searching exactly when /etc/profile is sourced and, apparently, it's when the "login" command is executed (which I guess is done by either the LXDE session or Slim itself).
Since none of these packages got updates when the problem appeared I'm pretty sure it must have been one of my editions of the config files. So I leave the ones I think are relevant to the issue (and the ones that I tinkered it with the most).
If anyone has the time to point me in the right direction I would greatly appreciate it:
/etc/rc.conf: http://pastebin.com/qd5xYYsT
/etc/inittab: http://pastebin.com/M1h60Hym
/etc/slim.conf: http://pastebin.com/iaRqya07
/etc/profile: http://pastebin.com/JLtNCMtn
~/.xinitrc: http://pastebin.com/XGrNuhpv
My rc.local file is completely blank and rc.sysinit and rc.multi haven't been modified from their default values. If you need any more files, logs or any kind of experiment to gather more info just let me know and I'll post it as soon as I read it.
Thanks a lot in advance :-).
Last edited by facucosta (2011-07-27 08:29:50)There is quite some confusion about the different startup files For real terminal work you can check the bash manual. Graphical login managers however do not always follow these rules even though Slim should read /etc/profile as /etc/slim.conf seems to invoke bash with --login... You could try to put the settings in /etc/environment (see the arch wiki). There might also be a slim specific bug
--edit--
On second look line 35 seems odd in your slim.conf. You could try to change it to:
login_cmd exec /bin/sh --login ~/.xinitrc %session
Last edited by FarmerF (2011-07-27 11:10:15) -
Preverification failed with error code 1. BUILD FAILED
Hallo Oracle,
Am learning my first J2me application and when i build it am getting this error. can some one help me understand what it means
Created dir: C:\Users\Dell\Documents\NetBeansProjects\watsdownapp\build\preverifysrc
Copying 1957 files to C:\Users\Dell\Documents\NetBeansProjects\watsdownapp\build\preverifysrc
Created dir: C:\Users\Dell\Documents\NetBeansProjects\watsdownapp\build\preverified
Preverifying 1957 file(s) into C:\Users\Dell\Documents\NetBeansProjects\watsdownapp\build\preverified directory.
Error preverifying class com.sun.activation.registries.MailcapFile
VERIFIER ERROR com/sun/activation/registries/MailcapFile
.<init>(Ljava/lang/String;)V:
Cannot find class java/util/Map
C:\Users\Dell\Documents\NetBeansProjects\watsdownapp\nbproject\build-impl.xml:431: Preverification failed with error code 1.
BUILD FAILED (total time: 25 seconds)
this is the contents of build-impx.xml
<?xml version="1.0" encoding="UTF-8"?>
<!-- *** GENERATED FROM project.xml - DO NOT EDIT *** -->
<project name="watsdownapp-impl" default="jar" basedir="..">
<!--load-properties-->
<target name="pre-load-properties">
<property file="nbproject/private/private.properties"/>
<property name="user.properties.file" location="${netbeans.user}/build.properties"/>
<available property="user.properties.file.exists" file="${user.properties.file}"/>
</target>
<target name="exists.config.active" unless="config.active">
<echo level="warning" message="Active configuration (config.active property) is not set - using default."/>
<property value="" name="config.active"/>
</target>
<target name="exists.netbeans.user" unless="netbeans.user">
<echo level="warning" message="NetBeans IDE user directory (netbeans.user property) is not set. By specifying this property many properties required by the project will be automatically evaluated (e.g.: ant-ext library home, ...). You could also open this project in the NetBeans IDE - in this case this property would be set automatically."/>
</target>
<target name="exists.user.properties.file" unless="user.properties.file.exists">
<echo level="warning" message="User properties file (user.properties.file) property is not set. By specifying this property many properties required by the project will be automatically evaluated (e.g.: libraries, platforms, ...)."/>
</target>
<target name="load-properties" depends="pre-load-properties,exists.config.active,exists.netbeans.user,exists.user.properties.file">
<loadproperties srcfile="nbproject/project.properties">
<filterchain>
<containsregex pattern="^configs\.${config.active}\.(.*)" replace="\1"/>
<concatfilter prepend="nbproject/project.properties"/>
<containsregex pattern="^platform.active=|^deployment.method=|^deployment.instance="/>
</filterchain>
</loadproperties>
<property name="deployment.instance" value="default"/>
<loadproperties srcfile="${user.properties.file}">
<filterchain>
<replaceregex pattern="^platforms\.${platform.active}\." replace="platform."/>
<replaceregex pattern="^deployment\.${deployment.method}\.scriptfile=" replace="deployment.scriptfile="/>
<replaceregex pattern="^deployments\.${deployment.method}\.${deployment.instance}\.([^=]+)=" replace="\1="/>
</filterchain>
</loadproperties>
<loadproperties srcfile="nbproject/project.properties">
<filterchain>
<containsregex pattern="^configs\.${config.active}\.(.*)" replace="\1"/>
<concatfilter prepend="nbproject/project.properties"/>
</filterchain>
</loadproperties>
</target>
<!--basic-init-->
<target name="exists.platform.active" unless="platform.active">
<echo level="warning" message="Active platform (platform.active property) in not set. If you set this and user.properties.file property, many properties required by the project will be automatically evaluated (e.g.: platform home, platform classpath, ...)."/>
</target>
<target name="exists.platform.configuration" unless="platform.configuration">
<echo level="warning" message="Platform configuration (platform.configuration) is not set. Using default (CLDC-1.0) configuration."/>
<property name="platform.configuration" value="CLDC-1.0"/>
</target>
<target name="exists.platform.profile" unless="platform.profile">
<echo level="warning" message="Platform profile (platform.profile) is not set. Using default (MIDP-1.0) profile."/>
<property name="platform.profile" value="MIDP-1.0"/>
</target>
<target name="basic-init" depends="exists.platform.active,exists.platform.configuration,exists.platform.profile">
<fail unless="libs.j2me_ant_ext.classpath">Classpath to J2ME Ant extension library (libs.j2me_ant_ext.classpath property) is not set. For example: location of mobility/modules/org-netbeans-mobility-antext.jar file in the IDE installation directory.</fail>
<fail unless="platform.home">Platform home (platform.home property) is not set. Value of this property should be ${platform.active.description} emulator home directory location.</fail>
<fail unless="platform.bootclasspath">Platform boot classpath (platform.bootclasspath property) is not set. Value of this property should be ${platform.active.description} emulator boot classpath containing all J2ME classes provided by emulator.</fail>
<fail unless="src.dir">Must set src.dir</fail>
<fail unless="build.dir">Must set build.dir</fail>
<fail unless="dist.dir">Must set dist.dir</fail>
<fail unless="dist.jar">Must set dist.jar</fail>
<property name="javac.source" value="1.3"/>
<property name="javac.target" value="1.1"/>
<property name="javac.encoding" value="${file.encoding}"/>
<property name="deployment.number" value="0.0.1"/>
<property name="deployment.counter" value="000002"/>
<condition property="no.deps">
<istrue value="${no.dependencies}"/>
</condition>
<condition property="no.preprocess">
<isfalse value="${use.preprocessor}"/>
</condition>
<condition property="no.javadoc.preview">
<isfalse value="${javadoc.preview}"/>
</condition>
<condition property="filter.excludes.evaluated" value="${filter.excludes},${filter.more.excludes},**/*Test.java,**/test,**/test/**">
<istrue value="${filter.exclude.tests}"/>
</condition>
<property name="filter.excludes.evaluated" value="${filter.excludes},${filter.more.excludes}"/>
<condition property="deployment.do.override.jarurl" value="">
<istrue value="${deployment.override.jarurl}"/>
</condition>
<condition property="config.active.name" value="DefaultConfiguration">
<length string="${config.active}" trim="true" length="0"/>
</condition>
<property name="config.active.name" value="${config.active}"/>
<taskdef resource="org/netbeans/mobility/antext/defs.properties">
<classpath>
<pathelement path="${libs.j2me_ant_ext.classpath}"/>
</classpath>
</taskdef>
<condition property="skip.deployment">
<equals arg1="${deployment.method}" arg2="NONE" casesensitive="false" trim="true"/>
</condition>
<condition property="app-version.autoincrement.trigger">
<istrue value="${app-version.autoincrement}"/>
</condition>
<condition property="debug.timeout" value="30000">
<or>
<equals arg1="${debugger.timeout}" arg2="" trim="true"/>
<not>
<isset property="debugger.timeout"/>
</not>
</or>
</condition>
<property name="debug.timeout" value="${debugger.timeout}"/>
<nb-overrideproperty name="buildsystem.baton" value="${src.dir}"/>
</target>
<!--cldc-init-->
<target name="cldc-pre-init">
<condition property="cldc-platform.trigger">
<equals arg1="CLDC" arg2="${platform.trigger}" casesensitive="false"/>
</condition>
</target>
<target name="cldc-init" depends="cldc-pre-init" if="cldc-platform.trigger">
<property name="preverify.sources.dir" location="${build.dir}/preverifysrc"/>
<property name="manifest.build.file" location="${build.dir}/manifest.mf"/>
<property name="platform.device" value=""/>
<property name="dist.jad.url" value="file://"/>
<property name="run.cmd.options" value=""/>
<condition property="evaluated.run.security.domain" value="">
<isfalse value="${run.use.security.domain}"/>
</condition>
<property name="evaluated.run.security.domain" value="${run.security.domain}"/>
<condition property="override.jarurl.trigger">
<and>
<istrue value="${cldc-platform.trigger}"/>
<istrue value="${deployment.override.jarurl}"/>
</and>
</condition>
<property name="deployment.jad" location="${dist.dir}/${dist.jad}"/>
<property name="deployment.jar" location="${dist.dir}/${dist.jar}"/>
<property name="deployment.dir" location="${dist.dir}"/>
<patternset id="deployment.patternset">
<include name="${dist.jad}"/>
<include name="${dist.jar}"/>
</patternset>
</target>
<!--cdc-init-->
<target name="cdc-init">
<condition property="cdc-platform.trigger">
<equals arg1="CDC" arg2="${platform.trigger}" casesensitive="false"/>
</condition>
<available file="${manifest.file}" property="manifest.available"/>
<condition property="main.class.applet">
<equals arg1="${main.class.class}" arg2="applet" casesensitive="false"/>
</condition>
<condition property="main.class.xlet">
<equals arg1="${main.class.class}" arg2="xlet" casesensitive="false"/>
</condition>
<condition property="manifest.available+main.class+fat.jar">
<and>
<isset property="manifest.available"/>
<isset property="main.class"/>
<istrue value="${platform.fat.jar}"/>
<not>
<equals arg1="${main.class}" arg2="" trim="true"/>
</not>
</and>
</condition>
<condition property="manifest.available+main.class">
<and>
<isset property="manifest.available"/>
<isset property="main.class"/>
<isfalse value="${platform.fat.jar}"/>
<not>
<equals arg1="${main.class}" arg2="" trim="true"/>
</not>
</and>
</condition>
<condition property="application.version.invalid" value="true">
<equals arg1="${deployment.number}" arg2="" trim="true"/>
</condition>
<fail if="application.version.invalid" message="Property deployment.number must not be empty and must contain version in format %d.%d.%d!"/>
<condition property="sign.jar.trigger" value="true">
<and>
<isset property="cdc-platform.trigger"/>
<istrue value="${sign.enabled}"/>
</and>
</condition>
</target>
<!--semc-init-->
<target name="semc-pre-init" if="cdc-platform.trigger">
<condition property="semc-platform.trigger">
<equals arg1="semc" arg2="${platform.type}" casesensitive="false"/>
</condition>
</target>
<target name="semc-init" depends="semc-pre-init" if="semc-platform.trigger">
<condition property="semc.icon.invalid" value="true">
<or>
<contains string="${semc.application.icon}" substring="$${"/>
<equals arg1="${semc.application.icon}" arg2="" trim="true"/>
</or>
</condition>
<condition property="no.certificateorkey" value="true">
<or>
<isset property="no.application.uid"/>
<equals arg1="${semc.certificate.path}" arg2="" trim="true"/>
<contains string="${semc.certificate.path}" substring="$${semc.certificate.path"/>
<equals arg1="${semc.private.key.path}" arg2="" trim="true"/>
<contains string="${semc.private.key.path}" substring="$${semc.private.key.path"/>
</or>
</condition>
<property name="j9.dist" location="${build.dir}/j9/${semc.application.uid}.j9"/>
<taskdef resource="org/netbeans/modules/j2me/cdc/project/defs.properties">
<classpath>
<pathelement path="${libs.cdc-ant-utils.classpath}"/>
</classpath>
</taskdef>
<taskdef resource="org/netbeans/modules/j2me/cdc/project/semc/defs.properties">
<classpath>
<pathelement path="${libs.semc-ant-utils.classpath}"/>
</classpath>
</taskdef>
<property name="deployment.dir" location="${dist.dir}"/>
<patternset id="deployment.patternset">
<include name="*.sis"/>
<include name="*.SIS"/>
</patternset>
</target>
<!--savaje-init-->
<target name="savaje-pre-init" if="cdc-platform.trigger">
<condition property="savaje-platform.trigger">
<equals arg1="savaje" arg2="${platform.type}" casesensitive="false"/>
</condition>
</target>
<target name="savaje-init" depends="savaje-pre-init" if="savaje-platform.trigger">
<property name="savaje.application.uid" value="TBD"/>
<condition property="savaje.bundle.base.invalid" value="true">
<or>
<equals arg1="${savaje.bundle.base}" arg2="" trim="true"/>
<contains string="${savaje.bundle.base}" substring="$${savaje.bundle.base"/>
</or>
</condition>
<condition property="savaje.unsupported.main" value="true">
<or>
<equals arg1="${main.class.applet}" arg2="true"/>
</or>
</condition>
<condition property="savaje.icon.invalid" value="true">
<or>
<isset property="no.application.uid"/>
<contains string="${savaje.application.icon}" substring="$${"/>
<equals arg1="${savaje.application.icon}" arg2="" trim="true"/>
</or>
</condition>
<property name="jnlp.dist" value="${build.dir}/jnlp/bundle.jnlp"/>
<property name="deployment.dir" location="${dist.dir}"/>
<patternset id="deployment.patternset">
<include name="bundle.jnlp"/>
<include name="bundle.policy"/>
<include name="lib/*"/>
</patternset>
</target>
<!--sjmc-init-->
<target name="sjmc-pre-init" if="cdc-platform.trigger">
<condition property="sjmc-platform.trigger">
<equals arg1="sjmc" arg2="${platform.type}" casesensitive="false"/>
</condition>
</target>
<target name="sjmc-init" depends="sjmc-pre-init" if="sjmc-platform.trigger"/>
<!--ojec-init-->
<target name="ojec-pre-init" if="cdc-platform.trigger">
<condition property="ojec-platform.trigger">
<equals arg1="ojec" arg2="${platform.type}" casesensitive="false"/>
</condition>
</target>
<target name="ojec-init" depends="ojec-pre-init" if="ojec-platform.trigger"/>
<!--cdc-hi-init-->
<target name="cdc-hi-pre-init" if="cdc-platform.trigger">
<condition property="cdc-hi-platform.trigger">
<equals arg1="cdc-hi" arg2="${platform.type}" casesensitive="false"/>
</condition>
</target>
<target name="cdc-hi-init" depends="cdc-hi-pre-init" if="cdc-hi-platform.trigger"/>
<!--nokiaS80-init-->
<target name="nokiaS80-pre-init" if="cdc-platform.trigger">
<condition property="nokiaS80-platform.trigger">
<equals arg1="nokiaS80" arg2="${platform.type}" casesensitive="false"/>
</condition>
</target>
<target name="nokiaS80-init" depends="nokiaS80-pre-init" if="nokiaS80-platform.trigger">
<property name="j9.dist" location="${build.dir}/j9/NOKIA.j9"/>
<property name="manifest.build.file" location="${build.dir}/manifest.mf"/>
<condition property="nokia.icon.invalid">
<or>
<contains string="${nokiaS80.application.icon}" substring="$${"/>
<equals arg1="${nokiaS80.application.icon}" arg2="" trim="true"/>
</or>
</condition>
<property name="deployment.dir" location="${dist.dir}"/>
<patternset id="deployment.patternset">
<include name="${dist.jar}"/>
</patternset>
</target>
<!--init-->
<target name="pre-init"/>
<target name="post-init"/>
<target name="init" depends="pre-init,load-properties,basic-init,cldc-init,cdc-init,semc-init,savaje-init,sjmc-init,ojec-init,cdc-hi-init,nokiaS80-init,post-init"/>
<!--conditional clean-->
<target name="conditional-clean-init">
<uptodate property="no.clean.before.build" targetfile="${build.dir}/.timestamp">
<srcfiles dir="nbproject">
<include name="project.properties"/>
<include name="build-impl.xml"/>
</srcfiles>
</uptodate>
</target>
<target name="conditional-clean" depends="init,conditional-clean-init" unless="no.clean.before.build" description="Clean project in case its meta information has changed.">
<antcall target="do-clean" inheritall="true" inheritrefs="true"/>
</target>
<!--deps-jar-->
<target name="deps-jar" depends="conditional-clean" unless="no.deps"/>
<!--preprocess-->
<target name="pre-preprocess"/>
<target name="do-preprocess" unless="no.preprocess">
<fail unless="preprocessed.dir">Must set preprocessed.dir</fail>
<property name="abilities" value=""/>
<property name="debug.level" value="debug"/>
<mkdir dir="${preprocessed.dir}"/>
<echo message="ignore me" file="${build.dir}/.timestamp"/>
<nb-prep destdir="${preprocessed.dir}" preprocessfor="${config.active.name},${abilities},DebugLevel=${debug.level}" encoding="${javac.encoding}">
<fileset dir="${buildsystem.baton}" defaultexcludes="${filter.use.standard}" excludes="${filter.excludes.evaluated}"/>
</nb-prep>
<copy todir="${preprocessed.dir}">
<fileset dir="${buildsystem.baton}" defaultexcludes="${filter.use.standard}" excludes="${filter.excludes.evaluated},${build.classes.excludes}"/>
</copy>
<nb-overrideproperty name="buildsystem.baton" value="${preprocessed.dir}"/>
</target>
<target name="post-preprocess"/>
<target name="preprocess" depends="deps-jar,pre-preprocess,do-preprocess,post-preprocess" description="Preprocess project sources."/>
<!--compile-->
<target name="pre-compile"/>
<target name="do-compile">
<fail unless="build.classes.dir">Must set build.classes.dir</fail>
<mkdir dir="${build.classes.dir}"/>
<javac includeantruntime="false" source="${javac.source}" target="${javac.target}" deprecation="${javac.deprecation}" optimize="${javac.optimize}" debug="${javac.debug}" destdir="${build.classes.dir}" srcdir="${buildsystem.baton}" bootclasspath="${platform.bootclasspath}" encoding="${javac.encoding}">
<classpath>
<path path="${libs.classpath}"/>
</classpath>
</javac>
<copy todir="${build.classes.dir}">
<fileset dir="${buildsystem.baton}" defaultexcludes="${filter.use.standard}" excludes="${filter.excludes.evaluated},${build.classes.excludes}"/>
</copy>
<nb-overrideproperty name="buildsystem.baton" value="${build.classes.dir}"/>
</target>
<target name="extract-libs" description="Extracts all bundled libraries.">
<mkdir dir="${build.classes.dir}"/>
<nb-extract dir="${build.classes.dir}" excludeManifest="true" classpath="${libs.classpath}" excludeclasspath="${extra.classpath}"/>
</target>
<target name="post-compile"/>
<target name="compile" depends="preprocess,pre-compile,extract-libs,do-compile,post-compile" description="Compile project classes."/>
<!--compile-single-->
<target name="pre-compile-single"/>
<target name="do-compile-single">
<fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
<mkdir dir="${build.classes.dir}"/>
<javac includeantruntime="false" source="${javac.source}" target="${javac.target}" deprecation="${javac.deprecation}" optimize="${javac.optimize}" debug="${javac.debug}" srcdir="${buildsystem.baton}" destdir="${build.classes.dir}" bootclasspath="${platform.bootclasspath}" includes="${javac.includes}" encoding="${javac.encoding}">
<classpath>
<path path="${libs.classpath}"/>
</classpath>
</javac>
</target>
<target name="post-compile-single"/>
<target name="compile-single" depends="preprocess,pre-compile-single,do-compile-single,post-compile-single" description="Compile selected project classes."/>
<!--proguard-->
<target name="proguard-init" description="Up-to-date check before obfuscation.">
<property name="obfuscation.level" value="0"/>
<condition property="no.obfusc">
<or>
<equals arg1="${obfuscation.level}" arg2="0"/>
<uptodate targetfile="${obfuscator.destjar}">
<srcfiles dir="${buildsystem.baton}"/>
</uptodate>
</or>
</condition>
<uptodate property="obfuscation.up-to-date" targetfile="${obfuscator.destjar}">
<srcfiles dir="${buildsystem.baton}"/>
</uptodate>
</target>
<target name="skip-obfuscation" depends="proguard-init" if="obfuscation.up-to-date">
<fail unless="obfuscated.classes.dir">Must set obfuscated.classes.dir</fail>
<nb-overrideproperty name="buildsystem.baton" value="${obfuscated.classes.dir}"/>
</target>
<target name="proguard" depends="skip-obfuscation" description="Obfuscate project classes." unless="no.obfusc">
<fail unless="obfuscated.classes.dir">Must set obfuscated.classes.dir</fail>
<fail unless="obfuscator.srcjar">Must set obfuscator.srcjar</fail>
<fail unless="obfuscator.destjar">Must set obfuscator.destjar</fail>
<property name="obfuscator.classpath" value=""/>
<dirname file="${obfuscator.srcjar}" property="obfuscator.srcjar.dir"/>
<dirname file="${obfuscator.destjar}" property="obfuscator.destjar.dir"/>
<mkdir dir="${obfuscator.srcjar.dir}"/>
<mkdir dir="${obfuscator.destjar.dir}"/>
<jar jarfile="${obfuscator.srcjar}" basedir="${buildsystem.baton}"/>
<property name="obfuscation.custom" value=""/>
<nb-obfuscate srcjar="${obfuscator.srcjar}" destjar="${obfuscator.destjar}" obfuscatorclasspath="${obfuscator.classpath}" classpath="${platform.bootclasspath}:${extra.classpath}" obfuscationLevel="${obfuscation.level}" extraScript="${obfuscation.custom}"/>
<mkdir dir="${obfuscated.classes.dir}"/>
<unjar src="${obfuscator.destjar}" dest="${obfuscated.classes.dir}"/>
<nb-overrideproperty name="buildsystem.baton" value="${obfuscated.classes.dir}"/>
</target>
<!--obfuscate-->
<target name="pre-obfuscate"/>
<target name="post-obfuscate"/>
<target name="obfuscate" depends="compile,pre-obfuscate,proguard,post-obfuscate" description="Obfuscate project classes."/>
<!--lwuit-build-->
<import file="lwuit.xml" optional="true"/>
<target name="-lwuit-check">
<condition property="lwuit.allowed">
<and>
<available file="nbproject/lwuit.xml"/>
<isset property="is.mesdk_lwuit"/>
</and>
</condition>
</target>
<target name="-pre-lwuit-build" depends="-lwuit-check" if="lwuit.allowed"/>
<target name="-lwuit-build" depends="-lwuit-check" if="lwuit.allowed">
<antcall target="lwuit_build"/>
</target>
<target name="-post-lwuit-build" depends="-lwuit-check" if="lwuit.allowed"/>
<target name="lwuit-build" depends="-lwuit-check,-pre-lwuit-build, -lwuit-build, -post-lwuit-build" if="lwuit.allowed"/>
<!--preverify-->
<target name="pre-preverify"/>
<target name="do-preverify" if="cldc-platform.trigger">
<fail unless="preverify.classes.dir">Must set preverify.classes.dir</fail>
<mkdir dir="${preverify.sources.dir}"/>
<copy todir="${preverify.sources.dir}">
<fileset dir="${buildsystem.baton}" includes="**/*.class"/>
</copy>
<mkdir dir="${preverify.classes.dir}"/>
<nb-preverify srcdir="${preverify.sources.dir}" destdir="${preverify.classes.dir}" classpath="${platform.bootclasspath}:${extra.classpath}" configuration="${platform.configuration}" platformhome="${platform.home}" platformtype="${platform.type}" commandline="${platform.preverifycommandline}"/>
<copy todir="${preverify.classes.dir}">
<fileset dir="${buildsystem.baton}" defaultexcludes="${filter.use.standard}" excludes="${filter.excludes.evaluated},${build.classes.excludes}"/>
</copy>
<nb-overrideproperty name="buildsystem.baton" value="${preverify.classes.dir}"/>
</target>
<target name="post-preverify"/>
<target name="preverify" depends="obfuscate,lwuit-build,pre-preverify,do-preverify,post-preverify" description="Preverify project classes."/>
<!--set-password-->
<target name="set-password-init">
<property name="sign.enabled" value="false"/>
<condition property="skip-sign-keystore-password-input">
<or>
<isfalse value="${sign.enabled}"/>
<and>
<isset property="sign.keystore"/>
<isset property="sign.keystore.password"/>
<not>
<equals arg1="${sign.keystore}" arg2="" trim="true"/>
</not>
<not>
<equals arg1="${sign.keystore.password}" arg2="" trim="true"/>
</not>
</and>
</or>
</condition>
<condition property="skip-sign-alias-password-input">
<or>
<isfalse value="${sign.enabled}"/>
<and>
<isset property="sign.keystore"/>
<isset property="sign.alias"/>
<isset property="sign.alias.password"/>
<not>
<equals arg1="${sign.keystore}" arg2="" trim="true"/>
</not>
<not>
<equals arg1="${sign.alias}" arg2="" trim="true"/>
</not>
<not>
<equals arg1="${sign.alias.password}" arg2="" trim="true"/>
</not>
</and>
</or>
</condition>
</target>
<target name="set-keystore-password" if="netbeans.home" unless="skip-sign-keystore-password-input">
<nb-enter-password keystore="${sign.keystore}" passwordproperty="sign.keystore.password"/>
</target>
<target name="set-alias-password" if="netbeans.home" unless="skip-sign-alias-password-input">
<nb-enter-password keystore="${sign.keystore}" keyalias="${sign.alias}" passwordproperty="sign.alias.password"/>
</target>
<target name="set-password" depends="set-password-init,set-keystore-password,set-alias-password"/>
<!--create JAD-->
<target name="add-configuration" unless="contains.manifest.configuration">
<nb-output file="${dist.dir}/${dist.jad}" encoding="UTF-8" append="true">MicroEdition-Configuration: ${platform.configuration}
</nb-output>
<nb-output file="${manifest.build.file}" encoding="UTF-8" append="true">MicroEdition-Configuration: ${platform.configuration}
</nb-output>
</target>
<target name="add-profile" unless="contains.manifest.profile">
<nb-output file="${dist.dir}/${dist.jad}" encoding="UTF-8" append="true">MicroEdition-Profile: ${platform.profile}
</nb-output>
<nb-output file="${manifest.build.file}" encoding="UTF-8" append="true">MicroEdition-Profile: ${platform.profile}
</nb-output>
</target>
<target name="create-jad" if="cldc-platform.trigger">
<fail unless="dist.jad">Must set dist.jad</fail>
<mkdir dir="${build.dir}"/>
<dirname file="${dist.dir}/${dist.jad}" property="dist.jad.dir"/>
<mkdir dir="${dist.jad.dir}"/>
<condition property="evaluated.manifest.apipermissions" value="${manifest.apipermissions}">
<not>
<equals arg1="${platform.profile}" arg2="MIDP-1.0"/>
</not>
</condition>
<condition property="evaluated.manifest.pushregistry" value="${manifest.pushregistry}">
<not>
<equals arg1="${platform.profile}" arg2="MIDP-1.0"/>
</not>
</condition>
<condition property="contains.manifest.configuration">
<contains substring="MicroEdition-Configuration: " string="${manifest.others}"/>
</condition>
<condition property="contains.manifest.profile">
<contains substring="MicroEdition-Profile: " string="${manifest.others}"/>
</condition>
<property value="" name="evaluated.manifest.apipermissions"/>
<property value="" name="evaluated.manifest.pushregistry"/>
<property name="manifest.jad" value=""/>
<property name="manifest.manifest" value=""/>
<nb-output file="${dist.dir}/${dist.jad}" encoding="UTF-8">${manifest.midlets}${evaluated.manifest.apipermissions}${evaluated.manifest.pushregistry}${manifest.others}${manifest.jad}</nb-output>
<nb-output file="${manifest.build.file}" encoding="UTF-8">${manifest.midlets}${evaluated.manifest.apipermissions}${evaluated.manifest.pushregistry}${manifest.others}${manifest.manifest}</nb-output>
<antcall target="add-configuration" inheritall="true" inheritrefs="true"/>
<antcall target="add-profile" inheritall="true" inheritrefs="true"/>
<property name="manifest.available" value="true"/>
</target>
<!--do-extra-libs-->
<target name="do-extra-libs" if="extra.classpath">
<property name="dist.lib.dir" value="${dist.dir}/lib"/>
<mkdir dir="${dist.lib.dir}"/>
<copy todir="${dist.lib.dir}">
<path path="${extra.classpath}"/>
<flattenmapper/>
</copy>
</target>
<!--nokiaS80-manifest-->
<target name="nokiaS80-prepare-j9" if="nokiaS80-platform.trigger">
<fail message="Main class is not set!">
<condition>
<equals arg1="${main.class}" arg2="" trim="true"/>
</condition>
</fail>
<mkdir dir="${build.dir}/j9"/>
<taskdef name="j9builder" classname="org.netbeans.modules.j2me.cdc.project.J9Builder" classpath="${libs.cdc-ant-utils.classpath}"/>
<j9builder jvmargs="${run.jvmargs}" mainclass="${main.class}" args="${application.args}" home="${platform.home}" dist="${j9.dist}" id="NOKIA" platform="${platform.type}" xlet="${main.class.xlet}" applet="${main.class.applet}" jarname="${dist.jar}"/>
<copy file="${manifest.file}" tofile="${manifest.build.file}" failonerror="false"/>
<property name="manifest.available" value="true"/>
<loadfile property="nokia.manifest.j9" srcFile="${j9.dist}"/>
</target>
<target name="nokiaS80-prepare-manifest" depends="nokiaS80-prepare-j9" if="nokiaS80-platform.trigger" unless="nokia.icon.invalid">
<pathconvert property="logo.icon.name" pathsep=" ">
<path path="${nokiaS80.application.icon}"/>
<chainedmapper>
<flattenmapper/>
<globmapper from="*" to="*"/>
</chainedmapper>
The error says class file is missing, you can try to clean and build.
-
Building Native Mobile App for Android: error message, build fail
Hi,
I'm trying RH10 on a Win 8 x64 system, trying to get the generate for mobile devices, Android to work. I've installed the Android SDK (part of the complete ADT) in a "Development" folder in the C drive, installed JDK for Win 64, added the PhoneGap and ANT unzipped folders to the "Development" folder and then in the RH10 dialog to generate the Android APK, I've pointed set the correct paths to these tools. (All installed tools are correct for my OS, Win 8 x64.)
No matter what I try, using a sample file (EmployeeCare, Salesbuilder), I get an error message at the very end of the build process. Please see the screenshot showing the error message and the relevant part of the log which looks like the ANT path is not working correctly. The build fails every time. I've tried to do some troubleshooting online and for example, came across setting the environment variables for the ANT folder, which I did, but with no success in fixing the problem. The Eclipse installation connects with the JDK and runs OK if I simply boot it up.
My path settings are in a second screenshot below.
(I've tried the ANT path with different values, for example "C:\Development\apache-ant-1.9.0-bin" etc. Doesn't prevent error message and build failure.)
I am not sure what else to do. Any help would be appreciated. At this point, I would be happy to simply be able to build one APK then test it on an Android device.
Thank you for your help.
Kind Regards,
saratogacoach@saratogacoach
Not much on the forums yet about creating an app but I notice you are using Windows 8 which is not officially supported yet. Can you try on a Windows 7 machine to rule out the OS being the problem?
See www.grainge.org for RoboHelp and Authoring tips
@petergrainge -
[build failed] meterbridge (hence jack_capture)
Hi,
I tried to install jack_capture, who depends on meterbridge.
Alas, bukd of meterbridge fails :
main.o: In function `main':
/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src/main.c:137: undefined reference to `SDL_Init'
/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src/main.c:138: undefined reference to `SDL_GetError'
/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src/main.c:176: undefined reference to `SDL_SetVideoMode'
..... etc etc. (full copy paste below)
I do have SDL and SDL_image installed
(I have early any SDL "extra" package)
I googled bit, found http://www.gamedev.net/community/forums … _id=260057
bot no solution
sdl-config --libs answers : "-L/usr/lib -lSDL -lpthread"
I tried to download original meterbridge tarball, but the result is not better (even worse I'd say, as compilation fails telling :
"vu_meters.c:11: error: static declaration of 'buf_rect' follows non-static declaration").
Any tip/help would be appreciated !
As promised, here's the full output :
==> Entering fakeroot environment...
==> Starting build()...
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for pthread_self in -lpthread... yes
checking for sqrt in -lm... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for sdl-config... /usr/bin/sdl-config
checking for SDL - version >= 1.2.0... yes
checking for pkg-config... /usr/bin/pkg-config
checking for jack... yes
checking JACK_CFLAGS...
checking JACK_LIBS... -ljack -lpthread -lrt
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for atexit... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating graphics/Makefile
config.status: creating src/Makefile
config.status: creating src/config.h
config.status: src/config.h is unchanged
config.status: executing depfiles commands
Making all in src
make[1]: Entering directory `/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src'
make all-am
make[2]: Entering directory `/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src'
source='main.c' object='main.o' libtool=no \
depfile='.deps/main.Po' tmpdepfile='.deps/main.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I. -Wall -g -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DPKG_DATA_DIR=\"/usr/share/meterbridge\" -c `test -f 'main.c' || echo './'`main.c
source='vu_meters.c' object='vu_meters.o' libtool=no \
depfile='.deps/vu_meters.Po' tmpdepfile='.deps/vu_meters.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I. -Wall -g -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DPKG_DATA_DIR=\"/usr/share/meterbridge\" -c `test -f 'vu_meters.c' || echo './'`vu_meters.c
source='ppm_meters.c' object='ppm_meters.o' libtool=no \
depfile='.deps/ppm_meters.Po' tmpdepfile='.deps/ppm_meters.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I. -Wall -g -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DPKG_DATA_DIR=\"/usr/share/meterbridge\" -c `test -f 'ppm_meters.c' || echo './'`ppm_meters.c
source='dpm_meters.c' object='dpm_meters.o' libtool=no \
depfile='.deps/dpm_meters.Po' tmpdepfile='.deps/dpm_meters.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I. -Wall -g -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DPKG_DATA_DIR=\"/usr/share/meterbridge\" -c `test -f 'dpm_meters.c' || echo './'`dpm_meters.c
source='jf_meters.c' object='jf_meters.o' libtool=no \
depfile='.deps/jf_meters.Po' tmpdepfile='.deps/jf_meters.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I. -Wall -g -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DPKG_DATA_DIR=\"/usr/share/meterbridge\" -c `test -f 'jf_meters.c' || echo './'`jf_meters.c
source='scope.c' object='scope.o' libtool=no \
depfile='.deps/scope.Po' tmpdepfile='.deps/scope.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I. -Wall -g -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DPKG_DATA_DIR=\"/usr/share/meterbridge\" -c `test -f 'scope.c' || echo './'`scope.c
source='envelopes.c' object='envelopes.o' libtool=no \
depfile='.deps/envelopes.Po' tmpdepfile='.deps/envelopes.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I. -Wall -g -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DPKG_DATA_DIR=\"/usr/share/meterbridge\" -c `test -f 'envelopes.c' || echo './'`envelopes.c
gcc -Wall -g -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DPKG_DATA_DIR=\"/usr/share/meterbridge\" -Wl,--hash-style=gnu -Wl,--as-needed -o meterbridge -lm -ljack -lpthread -lrt -L/usr/lib -lSDL -lpthread -lSDL_image main.o linedraw.o vu_meters.o ppm_meters.o dpm_meters.o jf_meters.o scope.o envelopes.o find_image.o -lm -lpthread
main.o: In function `main':
/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src/main.c:137: undefined reference to `SDL_Init'
/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src/main.c:138: undefined reference to `SDL_GetError'
/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src/main.c:176: undefined reference to `SDL_SetVideoMode'
/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src/main.c:178: undefined reference to `SDL_GetError'
/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src/main.c:191: undefined reference to `SDL_UpperBlit'
/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src/main.c:201: undefined reference to `SDL_UpperBlit'
/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src/main.c:208: undefined reference to `SDL_UpdateRects'
/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src/main.c:216: undefined reference to `jack_client_new'
/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src/main.c:222: undefined reference to `SDL_WM_SetCaption'
/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src/main.c:227: undefined reference to `SDL_CreateThread'
/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src/main.c:230: undefined reference to `SDL_CreateThread'
/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src/main.c:233: undefined reference to `SDL_CreateThread'
/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src/main.c:236: undefined reference to `SDL_CreateThread'
/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src/main.c:239: undefined reference to `SDL_CreateThread'
/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src/main.c:246: undefined reference to `jack_set_process_callback'
/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src/main.c:248: undefined reference to `jack_set_process_callback'
/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src/main.c:250: undefined reference to `jack_set_process_callback'
/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src/main.c:256: undefined reference to `jack_activate'
/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src/main.c:266: undefined reference to `SDL_WaitEvent'
main.o: In function `make_channel':
/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src/main.c:299: undefined reference to `jack_port_register'
/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src/main.c:306: undefined reference to `jack_port_register'
/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src/main.c:316: undefined reference to `jack_port_by_name'
/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src/main.c:321: undefined reference to `jack_port_flags'
/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src/main.c:327: undefined reference to `jack_port_get_all_connections'
/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src/main.c:329: undefined reference to `jack_disconnect'
/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src/main.c:331: undefined reference to `jack_connect'
/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src/main.c:341: undefined reference to `jack_connect'
/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src/main.c:343: undefined reference to `jack_port_name'
/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src/main.c:343: undefined reference to `jack_connect'
main.o: In function `cleanup':
/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src/main.c:361: undefined reference to `jack_port_get_all_connections'
/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src/main.c:363: undefined reference to `jack_port_get_all_connections'
/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src/main.c:367: undefined reference to `jack_port_name'
/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src/main.c:367: undefined reference to `jack_disconnect'
/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src/main.c:371: undefined reference to `jack_port_name'
/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src/main.c:371: undefined reference to `jack_disconnect'
/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src/main.c:373: undefined reference to `jack_connect'
/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src/main.c:379: undefined reference to `jack_client_close'
/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src/main.c:382: undefined reference to `SDL_KillThread'
/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src/main.c:383: undefined reference to `SDL_Quit'
linedraw.o: In function `draw_line':
/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src/linedraw.c:59: undefined reference to `SDL_LockSurface'
/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src/linedraw.c:75: undefined reference to `SDL_UnlockSurface'
linedraw.o: In function `draw_ptr':
/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src/linedraw.c:126: undefined reference to `SDL_LockSurface'
/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src/linedraw.c:145: undefined reference to `SDL_UnlockSurface'
vu_meters.o: In function `gfx_thread_vu':
/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src/vu_meters.c:26: undefined reference to `SDL_MapRGB'
/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src/vu_meters.c:27: undefined reference to `SDL_MapRGB'
/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src/vu_meters.c:51: undefined reference to `SDL_UpperBlit'
/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src/vu_meters.c:54: undefined reference to `SDL_UpperBlit'
/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src/vu_meters.c:56: undefined reference to `SDL_UpdateRects'
/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src/vu_meters.c:57: undefined reference to `SDL_Delay'
ppm_meters.o: In function `gfx_thread_ppm':
/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src/ppm_meters.c:26: undefined reference to `SDL_MapRGB'
/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src/ppm_meters.c:27: undefined reference to `SDL_MapRGB'
/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src/ppm_meters.c:51: undefined reference to `SDL_UpperBlit'
/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src/ppm_meters.c:53: undefined reference to `SDL_UpperBlit'
/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src/ppm_meters.c:55: undefined reference to `SDL_UpdateRects'
/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src/ppm_meters.c:56: undefined reference to `SDL_Delay'
dpm_meters.o: In function `gfx_thread_dpm':
/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src/dpm_meters.c:57: undefined reference to `SDL_MapRGB'
/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src/dpm_meters.c:58: undefined reference to `SDL_MapRGB'
/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src/dpm_meters.c:59: undefined reference to `SDL_MapRGB'
/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src/dpm_meters.c:69: undefined reference to `SDL_FillRect'
/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src/dpm_meters.c:73: undefined reference to `SDL_FillRect'
/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src/dpm_meters.c:86: undefined reference to `SDL_FillRect'
/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src/dpm_meters.c:88: undefined reference to `SDL_UpdateRects'
/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src/dpm_meters.c:89: undefined reference to `SDL_Delay'
jf_meters.o: In function `gfx_thread_jf':
/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src/jf_meters.c:52: undefined reference to `SDL_MapRGB'
/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src/jf_meters.c:53: undefined reference to `SDL_MapRGB'
/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src/jf_meters.c:54: undefined reference to `SDL_MapRGB'
/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src/jf_meters.c:72: undefined reference to `SDL_FillRect'
/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src/jf_meters.c:73: undefined reference to `SDL_UpperBlit'
/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src/jf_meters.c:120: undefined reference to `SDL_FillRect'
/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src/jf_meters.c:124: undefined reference to `SDL_FillRect'
/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src/jf_meters.c:128: undefined reference to `SDL_UpdateRects'
/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src/jf_meters.c:129: undefined reference to `SDL_Delay'
scope.o: In function `gfx_thread_scope':
/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src/scope.c:22: undefined reference to `SDL_MapRGB'
/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src/scope.c:35: undefined reference to `SDL_UpperBlit'
/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src/scope.c:60: undefined reference to `SDL_UpdateRects'
/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src/scope.c:61: undefined reference to `SDL_Delay'
envelopes.o: In function `process_peak':
/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src/envelopes.c:36: undefined reference to `jack_port_get_buffer'
/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src/envelopes.c:37: undefined reference to `jack_port_get_buffer'
envelopes.o: In function `process_rms':
/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src/envelopes.c:79: undefined reference to `jack_port_get_buffer'
/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src/envelopes.c:80: undefined reference to `jack_port_get_buffer'
envelopes.o: In function `process_ring':
/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src/envelopes.c:118: undefined reference to `jack_port_get_buffer'
envelopes.o:/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src/envelopes.c:119: more undefined references to `jack_port_get_buffer' follow
find_image.o: In function `find_image':
/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src/find_image.c:15: undefined reference to `IMG_Load'
/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src/find_image.c:19: undefined reference to `IMG_Load'
collect2: ld returned 1 exit status
make[2]: *** [meterbridge] Error 1
make[2]: Leaving directory `/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/tmp/yaourt-tmp-calou/aur-meterbridge/meterbridge/src/meterbridge-0.9.2/src'
make: *** [all-recursive] Error 1
==> ERROR: Build Failed.
Aborting...
Error: Makepkg was unable to build meterbridge package.I had it work but.. I don't know what I did
I commented out the line in /etc/makepkg.conf :
#LDFLAGS="-Wl,--hash-style=gnu -Wl,--as-needed"
because it's the origin of the only differences between the config.log resulting of a "manual ./configure" and the makepkg one.
(to tell the truth I copied makepkg.conf, edited it, and used makepkg --config)
now that's weird... but works
Last edited by skai (2009-10-04 09:26:29) -
Mesa 7.0.3 build fails
Hey everyone,
Recently I acquired a new system and installed arch on it (as a linux-only gaming box), and built everything from the ground up using makeworld at first and then building my necessary packages (minimal X install and libs, etc). However I've run into a little problem while trying to build mesa from the main ABS tree.
Here is what happens during the compile:
make[2]: Leaving directory `/var/abs/extra/mesa/src/Mesa-7.0.3/src/glw'
make[1]: Leaving directory `/var/abs/extra/mesa/src/Mesa-7.0.3/src'
make[1]: Entering directory `/var/abs/extra/mesa/src/Mesa-7.0.3/progs'
make[1]: Nothing to be done for `install'.
make[1]: Leaving directory `/var/abs/extra/mesa/src/Mesa-7.0.3/progs'
gcc -march=native -mtune=generic -O2 -pipe -I/var/abs/extra/mesa/pkg/usr/include -I../../include glxinfo.c -L../../lib -L../../lib64 -lGL -lGLU -o glxinfo
gcc -march=native -mtune=generic -O2 -pipe -I/var/abs/extra/mesa/pkg/usr/include glxgears.c -lGL -o glxgears
/tmp/cc8iuPJg.o: In function `gear':
glxgears.c:(.text+0x11c): undefined reference to `sincos'
glxgears.c:(.text+0x1ed): undefined reference to `sincos'
glxgears.c:(.text+0x2b8): undefined reference to `sincos'
glxgears.c:(.text+0x2fc): undefined reference to `sincos'
glxgears.c:(.text+0x340): undefined reference to `sincos'
/tmp/cc8iuPJg.o:glxgears.c:(.text+0x384): more undefined references to `sincos' follow
/tmp/cc8iuPJg.o: In function `gear':
glxgears.c:(.text+0x735): undefined reference to `sincosf'
glxgears.c:(.text+0x757): undefined reference to `sincos'
glxgears.c:(.text+0x7e3): undefined reference to `sincos'
glxgears.c:(.text+0x8d9): undefined reference to `sincos'
glxgears.c:(.text+0x950): undefined reference to `sincos'
glxgears.c:(.text+0xaae): undefined reference to `sincosf'
glxgears.c:(.text+0xadf): undefined reference to `sincos'
collect2: ld returned 1 exit status
make: *** [glxgears] Error 1
make: *** Waiting for unfinished jobs....
==> ERROR: Build Failed.
Aborting...
I'm building mesa on a completely fresh system, and doing so exclusively using ABS/makepkg from the main abs tree - I don't know what I'm doing wrong. Your help would be appreciated
Thanks@Snowman, thanks for the response. Unfortunately, I tried your suggestion and tried to build the package from the PKGBUILD but it still does not build - it stops compiling at the very same place as it originally stopped.
-
[SOLVED]Building in a Clean Chroot error: Build failed, check ~/build
Hello everyone
I am trying to build qt4 and qtwebkit in clean chroot but when I run makechrootpkg (according to DeveloperWiki:Building in a Clean Chroot) I get an error message:
$ sudo makechrootpkg -c -r /home/zuargo/chroot/
==> Creating clean working copy...done
==> ERROR: Build failed, check /home/zuargo/chroot/zuargo/build
As you see chroot directory is contained in my home folder.
I have checked /home/zuargo/chroot/zuargo/build and I see just the PKGBUILD and another random file (it depends on the package to build). No useful information.
I have made twice the chroot directory and in both times I get the same error.
Does somebody have any idea on how to solve this trouble or how to get information related to the error?
Thanks in advance
Last edited by zuargo (2013-04-19 14:12:53)Thank you
I have new information.
Searching for information on the forum (this one) I have found this thread: https://bbs.archlinux.org/viewtopic.php?pid=1260353
The user that started the topic, had (or have) a very similar issue. At the first post, he says has fixed the problem by downgrading the package devtools to the version 20120720. So then, I did the same thing.
I had installed devtools 20130408 and in the cache of Pacman, I have the version 20130127, 20130122, 20121115, 20121027, 20121013, 20120720 of this package. I have downgraded to all these versions of devtools, one by one. In some cases, after downgrading and by creating the chroot directory I got errors, either with the package systemd or with the package filesystem. In the first case, the error did not affect the creation fo the chroot directory. In the second case (with filesystem), creating the directory was not successful, getting an error message (see below).
I proceed to list each devtool package (its version) and the error I have got, when I tried to create the chroot directory:
> devtools-20120720-1-any.pkg.tar.xz
systemd's error:
( 38/130) installing systemd [##########################################] 100%
Initializing machine ID from random generator.
ln -s '/usr/lib/systemd/system/[email protected]' '/etc/systemd/system/getty.target.wants/[email protected]'
:: Append 'init=/usr/lib/systemd/systemd' to your kernel command line in your
bootloader to replace sysvinit with systemd, or install systemd-sysvcompat
Also an error with lacale-gen:
chroot: failed to run command '/usr/sbin/locale-gen': No such file or directory
Creating chroot directory successful
No error by building packages with makechrootpkg into the chroot directory.
> devtools-20121013-1-any.pkg.tar.xz
filesystem's error:
( 4/130) installing filesystem [##########################################] 100%
error: could not rename /home/zuargo/chroot/root/etc/resolv.conf to /home/zuargo/chroot/root/etc/resolv.conf.pacorig (Device or resource busy)
error: problem occurred while installing filesystem
error: could not commit transaction
error: failed to commit transaction (transaction aborted)
Errors occurred, no packages were upgraded.
==> ERROR: Failed to install packages to new root
==> ERROR: Failed to install all packages
Creating chroot directory was not successful
> devtools-20121027-1-any.pkg.tar.xz
filesystem's error:
( 4/130) installing filesystem [##########################################] 100%
error: could not rename /home/zuargo/chroot/root/etc/resolv.conf to /home/zuargo/chroot/root/etc/resolv.conf.pacorig (Device or resource busy)
error: problem occurred while installing filesystem
error: could not commit transaction
error: failed to commit transaction (transaction aborted)
Errors occurred, no packages were upgraded.
==> ERROR: Failed to install packages to new root
==> ERROR: Failed to install all packages
Creating chroot directory was not successful
> devtools-20121115-1-any.pkg.tar.xz
filesystem's error:
( 4/130) installing filesystem [##########################################] 100%
error: could not rename /home/zuargo/chroot/root/etc/resolv.conf to /home/zuargo/chroot/root/etc/resolv.conf.pacorig (Device or resource busy)
error: problem occurred while installing filesystem
error: could not commit transaction
error: failed to commit transaction (transaction aborted)
Errors occurred, no packages were upgraded.
==> ERROR: Failed to install packages to new root
==> ERROR: Failed to install all packages
Creating chroot directory was not successful
> devtools-20130122-1-any.pkg.tar.xz
systemd's error:
( 38/130) installing systemd [##########################################] 100%
Initializing machine ID from random generator.
ln -s '/usr/lib/systemd/system/[email protected]' '/etc/systemd/system/getty.target.wants/[email protected]'
:: Append 'init=/usr/lib/systemd/systemd' to your kernel command line in your
bootloader to replace sysvinit with systemd, or install systemd-sysvcompat
Error by building packages with makechrootpkg into the chroot directory:
==> Creating clean working copy...done
==> ERROR: Build failed, check /home/zuargo/chroot/zuargo/build
> devtools-20130127-1-any.pkg.tar.xz
systemd's error:
( 38/130) installing systemd [##########################################] 100%
Initializing machine ID from random generator.
ln -s '/usr/lib/systemd/system/[email protected]' '/etc/systemd/system/getty.target.wants/[email protected]'
:: Append 'init=/usr/lib/systemd/systemd' to your kernel command line in your
bootloader to replace sysvinit with systemd, or install systemd-sysvcompat
Error by building packages with makechrootpkg into the chroot directory:
==> Creating clean working copy...done
==> ERROR: Build failed, check /home/zuargo/chroot/zuargo/build
> devtools-20130408-1-any.pkg.tar.xz
systemd's error:
( 38/130) installing systemd [##########################################] 100%
Initializing machine ID from random generator.
ln -s '/usr/lib/systemd/system/[email protected]' '/etc/systemd/system/getty.target.wants/[email protected]'
:: Append 'init=/usr/lib/systemd/systemd' to your kernel command line in your
bootloader to replace sysvinit with systemd, or install systemd-sysvcompat
Error by building packages with makechrootpkg into the chroot directory:
==> Creating clean working copy...done
==> ERROR: Build failed, check /home/zuargo/chroot/zuargo/build
As see, the only one package that allows me to build into chroot directory with no errors is devtools-20120720.
Now I can build packages into a clean chroot directory. But I can't update devtools. -
Something similar to /etc/profile in LDAP?
My /etc/profile contains a logging feature which tracks the history of a local user. It doesn't work for ldap users though since I don't think LDAP looks at this file when ldap users login to a client.
Is there some way to make ldap users use this file as the initial login profile or is there some way to setup something similar in LDAP? ldapaddent won't add this file. The only thing I can think of is to make some sort of change on cn=default,ou=profile,dc=example,dc=com but I'm unsure as to whether that will work or how exactly to set it up.
Any help on this would be appreciated. Thanks.Hi Liam. Thanks for your reply. When I used the Update Credit Card option and tested the form, I got the error message "Credit Card Payment Failed….Invoice Number Not Found". But after search for that error message in this forum, I found out that I should be using the "Credit Cards (existing orders)" option. This has worked, ie payment was successfully processed and was applied to the existing order; a new invoice was not created. I have received a receipt from the payment gateway (eWay) but not one from BC. Also, upon successfully submitting the form, I was then taken to a totally blank page. I'll have to do some more testing to see whether the blank page was just a one off. If not, I'll try adding code in the Action part of the form to redirect to specific page.
So thanks for your help. Though it didn't give me the correct answer, it l led me to it. -
[solved] vim build failed
Hi
I am trying to build vim because the version in the repo lacks a couple of options I need (x11...). The build fails without a clear error message, below are the last lines before the makepkg -s fails:
patching file src/cleanlint.vim
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file src/cleanlint.vim.rej
patching file src/diff.c
patching file src/edit.c
patching file src/ex_cmds.c
patching file src/ex_cmds2.c
patching file src/ex_docmd.c
patching file src/proto/ex_cmds.pro
patching file src/proto/spell.pro
patching file src/quickfix.c
patching file src/spell.c
patching file src/structs.h
patching file src/term.h
patching file src/vim.h
patching file src/version.c
==> ERROR: Build Failed.
Aborting...
If the reason is the failed patch is there a way to correct things manually?
This it the (slightly modified) PKGBUILD I am using:
# $Id: PKGBUILD 53395 2009-09-30 20:20:00Z francois $
# Maintainer: tobias [ tobias at archlinux org ]
pkgname=vim
_srcver=7.2
_patchlevel=267
pkgver=${_srcver}.${_patchlevel}
pkgrel=1
pkgdesc='Vi Improved, a highly configurable, improved version of the vi text editor'
arch=(i686 x86_64)
license=('custom:vim')
url="http://www.vim.org"
depends=('gpm' 'coreutils')
makedepends=('wget' 'sed' 'grep' 'gettext' 'perl')
optdepends=('perl: the runtime provides a view useful perl scripts')
backup=(etc/vimrc)
install=${pkgname}.install
# we need the extra-stuff to get all patches applied smoothly
source=(ftp://ftp.vim.org/pub/vim/unix/vim-${_srcver}.tar.bz2 \
ftp://ftp.vim.org/pub/vim/extra/vim-${_srcver}-extra.tar.gz \
ftp://ftp.vim.org/pub/vim/extra/vim-${_srcver}-lang.tar.gz \
fetch_patches.sh fetch_runtime.sh vimrc archlinux.vim)
md5sums=('f0901284b338e448bfd79ccca0041254' '35e04482f07c57221c9a751aaa3b8dac' \
'd8884786979e0e520c112faf2e176f05' '6d7e8d7868e8bfaa9a5880cd9c439320' \
'45c1c3c6aff7de0d8fc2a9d8cd5cec7d' '29125bedc96f2a58c772ee0455a333bc' \
'10353a61aadc3f276692d0e17db1478e')
build()
_versiondir="vim"$(echo ${_srcver} | sed "s/\.//")
# pull in patches from vim.org (or the src cache alternatively)
. ${srcdir}/fetch_patches.sh
. ${srcdir}/fetch_runtime.sh
get_patches || return 1
cd ${srcdir}/${_versiondir}
sed -i 's|^.*\(#define SYS_.*VIMRC_FILE.*"\) .*$|\1|' src/feature.h
sed -i 's|^.*\(#define VIMRC_FILE.*"\) .*$|\1|' src/feature.h
# build party
./configure --prefix=/usr --localstatedir=/var/lib/vim --mandir=/usr/share/man \
--with-compiledby=Arian --with-features=huge \
--enable-gpm --enable-acl --with-x=yes \
--enable-multibyte --enable-cscope \
--enable-perlinterp --enable-pythoninterpr \
--enable-fontset
#--with-global-runtime=/usr/share/vim --with-vim-name=vim \
make || return 1
make VIMRCLOC=/etc DESTDIR=${pkgdir} install
cd ${pkgdir}/usr/bin
rm ex view # provided by (n)vi in core
mv vim vim-normal # we create a vim-symlink on post_install
ln -sf vim-normal vim
# ... make g* related symlinks point directly to the actual binary
ln -sf vim-normal rview
ln -sf vim-normal rvim
ln -sf vim-normal vimdiff
# delete some manpages
find ${pkgdir}/usr/share/man -type d -name 'man1' 2> /dev/null | \
while read mandir; do
cd ${mandir}
rm -f ex.1 view.1 # provided by (n)vi
rm -f evim.1 # this does not make sense in the console version
done
_runtimedir="${pkgdir}/usr/share/vim/${_versiondir}/"
update_runtime
cd ${srcdir}/${_versiondir}
install -Dm644 ${srcdir}/vimrc ${pkgdir}/etc/vimrc
install -Dm644 ${srcdir}/archlinux.vim \
${pkgdir}/usr/share/vim/vimfiles/archlinux.vim
install -dm755 ${pkgdir}/usr/share/licenses/vim
cd ${pkgdir}/usr/share/licenses/vim
ln -s ../../vim/${_versiondir}/doc/uganda.txt license.txt
Any help appreciated.
Last edited by akuschki (2009-10-22 16:43:34)thanks, that solved it. Sorry I didn't try that obvious solution myself, I didn't realise that installing gvim would also change the features of the console vim version. I thought those two packages are independent.
Cheers -
Help! -sh: /etc/profile: is a directory!
My PowerBook was locked, so I hold down the power button to reboot and this come up:
-sh: /etc/profile: is a directory
-sh-2.05b#
I have read some posts on this forum, I got to the part where I type fsck -y, showed:
/dev/rdisk0s5
Root file system
Checking HFS Plus volume.
fsck_hfs: Volume is journaled. No checking performed.
fsck_hfs: Use the -f option to force checking.
so I typed fsk -f, this showed:
/dev/rdisk0s5
Root file system
Checking HFS Plus volume.
Checking Extents Overflow file.
Checking Catalog file.
Invalid record count
(4, 12)
Volume check failed.
Can anyone help? any help will be appreciated...
Message was edited by: lxxlHello and thanks for replying so quickly,
Well I got an install disk and I rebooted with C holding down, but here comes another problem, I got the panic:
panic(cpu 0 caller 0x002E0BF4): Unable to find driver for this platform: "PowerBook3,5".
Latest stack backtrace for cpu 0:
Backtrace:
0x00099EA4 0x0009A860 0x00027A28 0x002E0BF4 0x002BCC60 0x002BDDB0 0x002BFC28 0x002BED3C
0x000ADE14
Procedding back via exception chain:
Exception state (sv=0x0125EA00)
PC=0x00000000; MSR=0x0000D030; DAR=0x00000000; DSISR=0x00000000; LR=0x00000000; R1=0x00000000; XCP=0x00000000 (Unknown)
Kernel version:
Darwin Kernel Version 8.6.2: Thu Apr 13 18:51:54 PDT 2006; root:xnu-792.9.59.obj~1/RELEASE_PPC
No debugger configured - dumping debug information
MSR=00001030
Lastest stack backtrace for cpu 0:
Backtrace:
0x00099EA4 0x0009AA58 0x00027A28 0x002E0BF4 0x002BCC60 0x002BDDB0 0x002BFC28 0x002BED3C
0x000ADE14
Procedding back via exception chain:
Exception state (sv=0x0125EA00)
PC=0x00000000; MSR=0x0000D030; DAR=0x00000000; DSISR=0x00000000; LR=0x00000000; R1=0x00000000; XCP=0x00000000 (Unknown)
Kernel version:
Darwin Kernel Version 8.6.2: Thu Apr 13 18:51:54 PDT 2006; root:xnu-792.9.59.obj~1/RELEASE_PPC
panic: We are hanging here...
Message was edited by: lxxl -
ABS noob: kernel26 build failed
Hi,
I'm trying to build kernel26 for the first time, using ABS, and I keep running in to this:
patching file sound/pci/hda/hda_intel.c
patching file sound/pci/hda/patch_analog.c
patching file sound/pci/trident/trident_main.c
patching file virt/kvm/kvm_main.c
==> ERROR: Build Failed.
Aborting...
Here's my PKGBUILD, unchanged from the default except for names:
# $Id: PKGBUILD 8703 2008-08-16 03:57:55Z eric $
# Maintainer: Tobias Powalowski <[email protected]>
# Maintainer: Thomas Baechler <[email protected]>
pkgname=kernel26
_basekernel=2.6.26
pkgver=2.6.26.2
pkgrel=1
#_patchname="patch-${pkgver}-${pkgrel}-ARCH"
_patchname="patch-${pkgver}-1-ARCH"
pkgdesc="My first ABS kernel build"
arch=(i686 x86_64)
license=('GPL2')
groups=('base')
url="http://www.kernel.org"
backup=(etc/mkinitcpio.d/${pkgname}.preset)
depends=('coreutils' 'module-init-tools' 'mkinitcpio>=0.5.18')
# pwc, ieee80211 and hostap-driver26 modules are included in kernel26 now
# nforce package support was abandoned by nvidia, kernel modules should cover everything now.
# kernel24 support is dropped since glibc24
replaces=('kernel24' 'kernel24-scsi' 'kernel26-scsi'
'alsa-driver' 'ieee80211' 'hostap-driver26'
'pwc' 'nforce' 'squashfs' 'unionfs' 'ivtv'
'zd1211' 'kvm-modules' 'iwlwifi' 'rt2x00-cvs')
install=kernel26.install
source=(ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-$_basekernel.tar.bz2
ftp://ftp.archlinux.org/other/kernel26/${_patchname}.bz2
# the main kernel config files
config config.x86_64
# standard config files for mkinitcpio ramdisk
kernel26.preset)
md5sums=('5169d01c405bc3f866c59338e217968c'
'436672584c4ada6e2751402558551c7e'
'91fc9a963c27225b9e6cc92c891bf680'
'4a6fbcd51f05ef7c1e8853b1ebf2085a'
'25584700a0a679542929c4bed31433b6')
build() {
KARCH=x86
cd $startdir/src/linux-$_basekernel
# Add -ARCH patches
# See http://projects.archlinux.org/git/?p=linux-2.6-ARCH.git;a=summary
patch -Np1 -i $startdir/src/${_patchname} || return 1
if [ "$CARCH" = "x86_64" ]; then
cat ../config.x86_64 >./.config
else
cat ../config >./.config
fi
# build the full kernel version to use in pathnames
. ./.config
### next line is only needed for rc kernels
#_kernver="2.6.25${CONFIG_LOCALVERSION}"
_kernver="${_basekernel}${CONFIG_LOCALVERSION}"
# load configuration
yes "" | make config
# build!
# stop here
# this is useful to configure the kernel
#msg "Stopping build"
#return 1
make bzImage modules || return 1
mkdir -p $startdir/pkg/{lib/modules,boot}
make INSTALL_MOD_PATH=$startdir/pkg modules_install || return 1
cp System.map $startdir/pkg/boot/System.map26
cp arch/$KARCH/boot/bzImage $startdir/pkg/boot/vmlinuz26
install -D -m644 Makefile \
$startdir/pkg/usr/src/linux-${_kernver}/Makefile
install -D -m644 kernel/Makefile \
$startdir/pkg/usr/src/linux-${_kernver}/kernel/Makefile
install -D -m644 .config \
$startdir/pkg/usr/src/linux-${_kernver}/.config
mkdir -p $startdir/pkg/usr/src/linux-${_kernver}/include
for i in acpi asm-{generic,x86} config linux math-emu media net pcmcia scsi sound video; do
cp -a include/$i $startdir/pkg/usr/src/linux-${_kernver}/include/
done
# copy files necessary for later builds, like nvidia and vmware
cp Module.symvers $startdir/pkg/usr/src/linux-${_kernver}
cp -a scripts $startdir/pkg/usr/src/linux-${_kernver}
# fix permissions on scripts dir
chmod og-w -R $startdir/pkg/usr/src/linux-${_kernver}/scripts
#mkdir -p $startdir/pkg/usr/src/linux-${_kernver}/.tmp_versions
mkdir -p $startdir/pkg/usr/src/linux-${_kernver}/arch/$KARCH/kernel
cp arch/$KARCH/Makefile $startdir/pkg/usr/src/linux-${_kernver}/arch/$KARCH/
if [ "$CARCH" = "i686" ]; then
cp arch/$KARCH/Makefile_32.cpu $startdir/pkg/usr/src/linux-${_kernver}/arch/$KARCH/
fi
cp arch/$KARCH/kernel/asm-offsets.s $startdir/pkg/usr/src/linux-${_kernver}/arch/$KARCH/kernel/
# add headers for lirc package
mkdir -p $startdir/pkg/usr/src/linux-${_kernver}/drivers/media/video
cp drivers/media/video/*.h $startdir/pkg/usr/src/linux-${_kernver}/drivers/media/video/
for i in bt8xx cpia2 cx25840 cx88 em28xx et61x251 pwc saa7134 sn9c102 usbvideo zc0301; do
mkdir -p $startdir/pkg/usr/src/linux-${_kernver}/drivers/media/video/$i
cp -a drivers/media/video/$i/*.h $startdir/pkg/usr/src/linux-${_kernver}/drivers/media/video/$i
done
# add dm headers
mkdir -p $startdir/pkg/usr/src/linux-${_kernver}/drivers/md
cp drivers/md/*.h $startdir/pkg/usr/src/linux-${_kernver}/drivers/md
# add inotify.h
mkdir -p $startdir/pkg/usr/src/linux-${_kernver}/include/linux
cp include/linux/inotify.h $startdir/pkg/usr/src/linux-${_kernver}/include/linux/
# add CLUSTERIP file for iptables
mkdir -p $startdir/pkg/usr/src/linux-${_kernver}/net/ipv4/netfilter/
# add wireless headers
mkdir -p $startdir/pkg/usr/src/linux-${_kernver}/net/mac80211/
cp net/mac80211/*.h $startdir/pkg/usr/src/linux-${_kernver}/net/mac80211/
# add dvb headers for external modules
# in reference to:
# http://bugs.archlinux.org/task/9912
mkdir -p $startdir/pkg/usr/src/linux-${_kernver}/drivers/media/dvb/dvb-core
cp drivers/media/dvb/dvb-core/*.h $startdir/pkg/usr/src/linux-${_kernver}/drivers/media/dvb/dvb-core/
# add xfs and shmem for aufs building
mkdir -p $startdir/pkg/usr/src/linux-${_kernver}/fs/xfs
mkdir -p $startdir/pkg/usr/src/linux-${_kernver}/mm
cp fs/xfs/xfs_sb.h $startdir/pkg/usr/src/linux-${_kernver}/fs/xfs/xfs_sb.h
# add vmlinux
cp vmlinux $startdir/pkg/usr/src/linux-${_kernver}
# copy in Kconfig files
for i in `find . -name "Kconfig*"`; do
mkdir -p $startdir/pkg/usr/src/linux-${_kernver}/`echo $i | sed 's|/Kconfig.*||'`
cp $i $startdir/pkg/usr/src/linux-${_kernver}/$i
done
cd $startdir/pkg/usr/src/linux-${_kernver}/include && ln -s asm-$KARCH asm
chown -R root.root $startdir/pkg/usr/src/linux-${_kernver}
find $startdir/pkg/usr/src/linux-${_kernver} -type d -exec chmod 755 {} \;
cd $startdir/pkg/lib/modules/${_kernver} && \
(rm -f source build; ln -sf ../../../usr/src/linux-${_kernver} build)
# install fallback mkinitcpio.conf file and preset file for kernel
install -m644 -D $startdir/src/${pkgname}.preset $startdir/pkg/etc/mkinitcpio.d/${pkgname}.preset || return 1
# set correct depmod command for install
sed -i -e "s/KERNEL_VERSION=.*/KERNEL_VERSION=${_kernver}/g" $startdir/kernel26.install
echo -e "# DO NOT EDIT THIS FILE\nALL_kver='${_kernver}'" > ${startdir}/pkg/etc/mkinitcpio.d/${pkgname}.kver
# remove unneeded architectures
rm -rf $startdir/pkg/usr/src/linux-${_kernver}/arch/{alpha,arm,arm26,avr32,blackfin,cris,frv,h8300,ia64,m32r,m68k,m68knommu,mips,parisc,powerpc,ppc,s390,sh,sh64,sparc,sparc64,um,v850,xtensa}
Is there anything obvious I'm doing wrong? ThanksI didn't include a patch tarball - since this is my first time attempting to build a kernel, I haven't done anything outside of the most basic directions in the wiki. Hopefully I'll have the luxury of messing up my kernel builds with custom patches some day
-
I am new to Java Sun Studio Enterprise 8. I have a large java project. There are 3409 files. When compiling I get the following message.
The system is out of resources.
Consult the following stack trace for details.
java.lang.OutOfMemoryError
BUILD FAILED (total time: 15 seconds)
How do I configure Sun Studio Enterprise such that it can compile?Increase the heap size of the Java Studio Enterprise 8. This can be done by modifying the options in jstudio.conf located in nbbuild/netbeans/etc directory. In the following property - default_options="-J-Xms56m -J-Xmx256m -J-XX:PermSize=32m -J-XX:MaxPermSize=96m -J-Dnetbeans.logger.console=true -J-ea", change the value of -JXmx256m in my case to something higher say 512m.
Also, try setting the ANT_OPTS property in the environment variable to -mx512m -
BUILD FAILED java.lang.ExceptionInInitializerError in Jdeveloper
When I try to deploy a BPEL process from JDeveloper 10.1.3.2.0 by right clicking on projectname and selecting deploy, I get following error.
Buildfile: D:\OracleJDeveloper\jdev\mywork\Application_DGA_Second\DGA_HelloAppendProcess\build.xml
validateTask:
[echo]
| Validating workflow
[validateTask] Validation of workflow task definitions is completed without errors
deployProcess:
[echo]
| Deploying bpel process DGA_HelloAppendProcess on punib.mycompany.com, port 7777
[deployProcess] Deploying process D:\OracleJDeveloper\jdev\mywork\Application_DGA_Second\DGA_HelloAppendProcess\output\bpel_DGA_HelloAppendProcess_1.0.jar
BUILD FAILED
java.lang.ExceptionInInitializerError
Total time: 6 seconds
When i follow same procedure from another system it works fine.
I am stuck here, please help to resolve this problem.James,
While the upgrade of JDeveloper to 10.1.3.4 will take some time, let me clarify the situation.
We have SOA suite and Oracle application server installed on a server machine and two client machines (one of which I am using) have Jdev installed on them. When I deploy the BPEL from Jdev running on my colleague's machine it works fine but fails when I try the same from Jdev running on my machine.
The versions of Jdev are exactly the same on the two machines. And versions of SOA suite, Oracle application server etc are naturally same as it is being deployed on same server. Appreciate your valuable guidance.
Thanks and Regards,
Dhiraj.
Maybe you are looking for
-
Generate SSRS Report and save as PDF in SharePoint
Hi, I am working on a SharePoint 2010 Visual WebPart that lets a user click a button to generata a SSRS report and save the report in a SharePoint Library as a PDF file. Code is mentioned below: try string siteContext = SPContext.Current.Web.Url; st
-
Adobe Flash CS4 Installation Error Windows 8
I have a masters collection CS4 and have had no problems. I recently upgraded my system and now have Windows 8 installed. However, the entire creative suite was installed with no issues except Flash. I am unsure what would be causing this error. I se
-
Hi I had a problem : OID Configuration
Hi, Version: 9.2 windows 2003 server. cn=oraclecontext dc=com I had created OID, when i Configure from net manager if I add directory net service name oracle.net.config.ServiceAliasException at java.lang.Throwable.<init>(Compiled Code) at java.lang.E
-
All but CONTACTS restored. Help!
this is strange. i had synced my phone monday night. on tuesday my phone died and i had to get it replaced with apple they gave me an activated and blank phone, i went home and went to restore it from the backup and after all was said and done it was
-
I'm trying to build B2G for alcatel one touch fire. after cloning B2G I ran BRANCH=v2.0 ./config.sh hamachi and then on running ./build.sh I get the following: Pulling "libOmxWmaDec.so" cp: cannot stat '../../../backup-hamachi/system/lib/libOmxWmaDec