[Haskell-cafe] Parse error in a package file

2005-02-13 Thread Dmitri Pissarenko
Hello!

I'm building the haskell-jvm-bridge (http://sourceforge.net/projects/jvm-
bridge/).

The final step of the building procedure is to install the package of haskell-
jvm-bridge.

When I enter ghc-pkg -a -f javavm.ghc-pkg I'm getting the error

javavm.ghc-pkg: parse error in package config file

The original file looks as shown below.

original-file
Package
{
name = javavm,
import_dirs  = [c:/Programme/haskell-jvm-bridge-0.3-
RC1/imports/],
source_dirs  = [],
library_dirs =
[
c:/Programme/haskell-jvm-bridge-0.3-RC1/lib/-L
],
hs_libraries = [],
extra_libraries  =
[stdc++,JVMBridge,JVMInvocation,HaskellJVMBridge-L,jvm_imp],
include_dirs = [],
c_includes   = [],
package_deps = [lang,concurrent,haskell98],
extra_ghc_opts   = [-fglasgow-exts,-fallow-undecidable-instances],
extra_cc_opts= [],
extra_frameworks = [-L ],
extra_ld_opts=
[
-Wl,-rpath,c:/Programme/haskell-jvm-bridge-0.3-RC1/lib/-L
]
}
/original-file

I noted that some package files have the form [ Package, Package, ... ], and
changed the original file:

original-file
[Package
{
name = javavm,
import_dirs  = [c:/Programme/haskell-jvm-bridge-0.3-
RC1/imports/],
source_dirs  = [],
library_dirs =
[
c:/Programme/haskell-jvm-bridge-0.3-RC1/lib/-L
],
hs_libraries = [],
extra_libraries  =
[stdc++,JVMBridge,JVMInvocation,HaskellJVMBridge-L,jvm_imp],
include_dirs = [],
c_includes   = [],
package_deps = [lang,concurrent,haskell98],
extra_ghc_opts   = [-fglasgow-exts,-fallow-undecidable-instances],
extra_cc_opts= [],
extra_frameworks = [-L ],
extra_ld_opts=
[
-Wl,-rpath,c:/Programme/haskell-jvm-bridge-0.3-RC1/lib/-L
]
}]
/original-file

This didn't help me, I got the same error message.

Please tell me what's wrong with this package file.

Thanks in advance

Dmitri Pissarenko
--
Dmitri Pissarenko
Software Engineer
http://dapissarenko.com
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Parse error in a package file

2005-02-13 Thread Isaac Jones
Dmitri Pissarenko [EMAIL PROTECTED] writes:

 Hello!

 I'm building the haskell-jvm-bridge (http://sourceforge.net/projects/jvm-
 bridge/).

 The final step of the building procedure is to install the package of haskell-
 jvm-bridge.

 When I enter ghc-pkg -a -f javavm.ghc-pkg I'm getting the error

 javavm.ghc-pkg: parse error in package config file

(snip)

 Please tell me what's wrong with this package file.

Looks like there are a bunch of mis-placed -Ls in the file.  Maybe
they need to be quoted?


peace,

  isaac
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe