You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4cxx-user@logging.apache.org by Alexandre Gacon <al...@masagroup.net> on 2005/07/05 11:59:42 UTC
Can not build the log4cxx CVS head
Hello,
I want to use the last version of log4cxx but when I try to build it with
ant (version 1.6.3), I got the following error:
BUILD FAILED
D:\dev\cvsgrab-2.2.2\logging-log4cxx\build.xml:617:
java.lang.NullPointerExcepti
on
at org.apache.tools.ant.Task.perform(Task.java:373)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
cutor.java:40)
$
at org.apache.tools.ant.Main.runBuild(Main.java:668)
at org.apache.tools.ant.Main.startAnt(Main.java:187)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
Caused by: java.lang.NullPointerException
at
org.apache.tools.ant.DirectoryScanner.checkIncludePatterns(DirectoryS
canner.java:875)
at
org.apache.tools.ant.DirectoryScanner.scan(DirectoryScanner.java:808)
at
org.apache.tools.ant.types.AbstractFileSet.getDirectoryScanner(Abstra
ctFileSet.java:358)
at
net.sf.antcontrib.cpptasks.types.LibrarySet.visitLibraries(LibrarySet
.java:272)
at
net.sf.antcontrib.cpptasks.LinkerDef.visitUserLibraries(LinkerDef.jav
a:518)
at
net.sf.antcontrib.cpptasks.CCTask.collectExplicitObjectFiles(CCTask.j
ava:474)
at net.sf.antcontrib.cpptasks.CCTask.execute(CCTask.java:580)
at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
... 10 more
--- Nested Exception ---
java.lang.NullPointerException
at
org.apache.tools.ant.DirectoryScanner.checkIncludePatterns(DirectoryS
canner.java:875)
at
org.apache.tools.ant.DirectoryScanner.scan(DirectoryScanner.java:808)
at
org.apache.tools.ant.types.AbstractFileSet.getDirectoryScanner(Abstra
ctFileSet.java:358)
at
net.sf.antcontrib.cpptasks.types.LibrarySet.visitLibraries(LibrarySet
.java:272)
at
net.sf.antcontrib.cpptasks.LinkerDef.visitUserLibraries(LinkerDef.jav
a:518)
at
net.sf.antcontrib.cpptasks.CCTask.collectExplicitObjectFiles(CCTask.j
ava:474)
at net.sf.antcontrib.cpptasks.CCTask.execute(CCTask.java:580)
at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
cutor.java:40)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.apache.tools.ant.Main.runBuild(Main.java:668)
at org.apache.tools.ant.Main.startAnt(Main.java:187)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
Total time: 3 seconds
Does anyone has an idea ?
Thank you,
Alexandre Gacon
RE : RE : Can not build the log4cxx CVS head
Posted by Alexandre Gacon <al...@masagroup.net>.
After further investigation, I was a name problem between the link.exe in
cygwin and the link.exe of Microsoft.
Now all works fine.
Alexandre Gacon
-----Message d'origine-----
De : Alexandre Gacon [mailto:alexandre.gacon@masagroup.net]
Envoyé : mercredi 6 juillet 2005 09:04
À : 'Log4CXX User'
Objet : RE : Can not build the log4cxx CVS head
Okay, I grab the 1.6.5 version of ant. All the files compile but then it
comes to the link step, the Visual .Net linker throws the following error:
build:
[cc] Starting dependency analysis for 140 files.
[cc] 140 files are up to date.
[cc] 0 files to be recompiled from dependency analysis.
[cc] 0 total files to be compiled.
[cc] Starting link
[cc] link: extra operand `/DLL'
[cc] Try `link --help' for more information.
BUILD FAILED
D:\dev\cvsgrab-2.2.2\logging-log4cxx\build.xml:617: link failed with return
code 1
Sincerely yours,
Alexandre Gacon
-----Message d'origine-----
De : Curt Arnold [mailto:carnold@apache.org]
Envoyé : mercredi 6 juillet 2005 06:15
À : Log4CXX User
Objet : Re: Can not build the log4cxx CVS head
On Jul 5, 2005, at 4:59 AM, Alexandre Gacon wrote:
Hello,
I want to use the last version of log4cxx but when I try to build it with
ant (version 1.6.3), I got the following error:
Problem in Ant that was fixed in version 1.6.4. Ant 1.6.3 broke cpptasks,
Clover and several other Ant plugins.
RE : Can not build the log4cxx CVS head
Posted by Alexandre Gacon <al...@masagroup.net>.
Okay, I grab the 1.6.5 version of ant. All the files compile but then it
comes to the link step, the Visual .Net linker throws the following error:
build:
[cc] Starting dependency analysis for 140 files.
[cc] 140 files are up to date.
[cc] 0 files to be recompiled from dependency analysis.
[cc] 0 total files to be compiled.
[cc] Starting link
[cc] link: extra operand `/DLL'
[cc] Try `link --help' for more information.
BUILD FAILED
D:\dev\cvsgrab-2.2.2\logging-log4cxx\build.xml:617: link failed with return
code 1
Sincerely yours,
Alexandre Gacon
-----Message d'origine-----
De : Curt Arnold [mailto:carnold@apache.org]
Envoyé : mercredi 6 juillet 2005 06:15
À : Log4CXX User
Objet : Re: Can not build the log4cxx CVS head
On Jul 5, 2005, at 4:59 AM, Alexandre Gacon wrote:
Hello,
I want to use the last version of log4cxx but when I try to build it with
ant (version 1.6.3), I got the following error:
Problem in Ant that was fixed in version 1.6.4. Ant 1.6.3 broke cpptasks,
Clover and several other Ant plugins.
Re: Can not build the log4cxx CVS head
Posted by Curt Arnold <ca...@apache.org>.
On Jul 5, 2005, at 4:59 AM, Alexandre Gacon wrote:
> Hello,
>
> I want to use the last version of log4cxx but when I try to build
> it with
> ant (version 1.6.3), I got the following error:
Problem in Ant that was fixed in version 1.6.4. Ant 1.6.3 broke
cpptasks, Clover and several other Ant plugins.