id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	os	architecture	failure	difficulty	testcase	blockedby	blocking	related
174	SunOS 5.8: lib/HSunix.o: unknown symbol `sendfile'	sternhaus	simonmar	"{{{
hello. 
 
on SunOS 5.8, with a fresh compiled ghc (configure 
-prefix=/home/xxx/local && make) 
and the some for the precompiled version,  
i getting the following error.  
any ideas or help? 
 
thx in advance, klaus 
----- 
> ghci-6.0.1 -package unix 
   ___         ___ _ 
  / _ \ /\  /\/ __(_) 
 / /_\// /_/ / /  | |      GHC Interactive, version 6.0.1, for 
Haskell 98. 
/ /_\\/ __  / /___| |      http://www.haskell.org/ghc/ 
\____/\/ /_/\____/|_|      Type :? for help. 
 
Loading package base ... linking ... done. 
Loading package unix ... linking ... 
/home/xxx/local/lib/HSunix.o: unknown symbol `sendfile' 
ghc-6.0.1: panic! (the `impossible' happened, GHC version 
6.0.1): 
        can't load package `unix' 
 
 
----- 
or in the long form 
> ghci-6.0.1 -v -package unix 
   ___         ___ _ 
  / _ \ /\  /\/ __(_) 
 / /_\// /_/ / /  | |      GHC Interactive, version 6.0.1, for 
Haskell 98. 
/ /_\\/ __  / /___| |      http://www.haskell.org/ghc/ 
\____/\/ /_/\____/|_|      Type :? for help. 
 
Glasgow Haskell Compiler, Version 6.0.1, for Haskell 98, 
compiled by GHC version 6.0 
Using package config file: 
/home/xxx/local/lib/ghc-6.0.1/package.conf 
 
==================== Packages 
==================== 
Package 
   {name = ""data"", 
    auto = False, 
    import_dirs = 
      [""/home/xxx/local/lib/ghc-6.0.1/hslibs-imports/data""], 
    source_dirs = [], 
    library_dirs = [""/home/xxx/local/lib/ghc-6.0.1""], 
    hs_libraries = [""HSdata""], 
    extra_libraries = [], 
    include_dirs = [], 
    c_includes = [], 
    package_deps = [""haskell98"", ""lang"", ""util""], 
    extra_ghc_opts = [], 
    extra_cc_opts = [], 
    extra_ld_opts = [], 
    framework_dirs = [], 
    extra_frameworks = []} 
Package 
   {name = ""unix"", 
    auto = True, 
    import_dirs = [""/home/xxx/local/lib/ghc-6.0.1/imports""], 
    source_dirs = [], 
    library_dirs = [""/home/xxx/local/lib/ghc-6.0.1""], 
    hs_libraries = [""HSunix""], 
    extra_libraries = [""HSunix_cbits"", ""dl""], 
    include_dirs = [], 
    c_includes = [""HsUnix.h""], 
    package_deps = [""base""], 
    extra_ghc_opts = [], 
    extra_cc_opts = [], 
    extra_ld_opts = [], 
    framework_dirs = [], 
    extra_frameworks = []} 
Package 
   {name = ""base"", 
    auto = True, 
    import_dirs = [""/home/xxx/local/lib/ghc-6.0.1/imports""], 
    source_dirs = [], 
    library_dirs = [""/home/xxx/local/lib/ghc-6.0.1""], 
    hs_libraries = [""HSbase""], 
    extra_libraries = [""HSbase_cbits""], 
    include_dirs = [], 
    c_includes = [""HsBase.h""], 
    package_deps = [""rts""], 
    extra_ghc_opts = [], 
    extra_cc_opts = [], 
    extra_ld_opts = [], 
    framework_dirs = [], 
    extra_frameworks = []} 
Package 
   {name = ""rts"", 
    auto = False, 
    import_dirs = [], 
    source_dirs = [], 
    library_dirs = [""/home/xxx/local/lib/ghc-6.0.1""], 
    hs_libraries = [""HSrts""], 
    extra_libraries = [""m"", ""gmp"", ""dl""], 
    include_dirs = [""/home/xxx/local/lib/ghc-6.0.1/include""], 
    c_includes = [""Stg.h""], 
    package_deps = [], 
    extra_ghc_opts = [], 
    extra_cc_opts = [], 
    extra_ld_opts = 
      [""-u"", 
       ""GHCziBase_Izh_static_info"", 
       ""-u"", 
       ""GHCziBase_Czh_static_info"", 
       ""-u"", 
       ""GHCziFloat_Fzh_static_info"", 
       ""-u"", 
       ""GHCziFloat_Dzh_static_info"", 
       ""-u"", 
       ""GHCziPtr_Ptr_static_info"", 
       ""-u"", 
       ""GHCziWord_Wzh_static_info"", 
       ""-u"", 
       ""GHCziInt_I8zh_static_info"", 
       ""-u"", 
       ""GHCziInt_I16zh_static_info"", 
       ""-u"", 
       ""GHCziInt_I32zh_static_info"", 
       ""-u"", 
       ""GHCziInt_I64zh_static_info"", 
       ""-u"", 
       ""GHCziWord_W8zh_static_info"", 
       ""-u"", 
       ""GHCziWord_W16zh_static_info"", 
       ""-u"", 
       ""GHCziWord_W32zh_static_info"", 
       ""-u"", 
       ""GHCziWord_W64zh_static_info"", 
       ""-u"", 
       ""GHCziStable_StablePtr_static_info"", 
       ""-u"", 
       ""GHCziBase_Izh_con_info"", 
       ""-u"", 
       ""GHCziBase_Czh_con_info"", 
       ""-u"", 
       ""GHCziFloat_Fzh_con_info"", 
       ""-u"", 
       ""GHCziFloat_Dzh_con_info"", 
       ""-u"", 
       ""GHCziPtr_Ptr_con_info"", 
       ""-u"", 
       ""GHCziPtr_FunPtr_con_info"", 
       ""-u"", 
       ""GHCziStable_StablePtr_con_info"", 
       ""-u"", 
       ""GHCziBase_False_closure"", 
       ""-u"", 
       ""GHCziBase_True_closure"", 
       ""-u"", 
       ""GHCziPack_unpackCString_closure"", 
       ""-u"", 
       ""GHCziIOBase_stackOverflow_closure"", 
       ""-u"", 
       ""GHCziIOBase_heapOverflow_closure"", 
       ""-u"", 
       ""GHCziIOBase_NonTermination_closure"", 
       ""-u"", 
       ""GHCziIOBase_BlockedOnDeadMVar_closure"", 
       ""-u"", 
       ""GHCziIOBase_Deadlock_closure"", 
       ""-u"", 
       ""GHCziWeak_runFinalizzerBatch_closure"", 
       ""-u"", 
       ""__stginit_Prelude""], 
    framework_dirs = [], 
    extra_frameworks = []} 
Package 
   {name = ""haskell98"", 
    auto = True, 
    import_dirs = [""/home/xxx/local/lib/ghc-6.0.1/imports""], 
    source_dirs = [], 
    library_dirs = [""/home/xxx/local/lib/ghc-6.0.1""], 
    hs_libraries = [""HShaskell98""], 
    extra_libraries = [], 
    include_dirs = [], 
    c_includes = [], 
    package_deps = [""base""], 
    extra_ghc_opts = [], 
    extra_cc_opts = [], 
    extra_ld_opts = [], 
    framework_dirs = [], 
    extra_frameworks = []} 
Package 
   {name = ""network"", 
    auto = True, 
    import_dirs = [""/home/xxx/local/lib/ghc-6.0.1/imports""], 
    source_dirs = [], 
    library_dirs = [""/home/xxx/local/lib/ghc-6.0.1""], 
    hs_libraries = [""HSnetwork""], 
    extra_libraries = [""nsl"", ""socket""], 
    include_dirs = [], 
    c_includes = [""HsNet.h""], 
    package_deps = [""base""], 
    extra_ghc_opts = [], 
    extra_cc_opts = [], 
    extra_ld_opts = [], 
    framework_dirs = [], 
    extra_frameworks = []} 
Package 
   {name = ""haskell-src"", 
    auto = True, 
    import_dirs = [""/home/xxx/local/lib/ghc-6.0.1/imports""], 
    source_dirs = [], 
    library_dirs = [""/home/xxx/local/lib/ghc-6.0.1""], 
    hs_libraries = [""HShaskell-src""], 
    extra_libraries = [], 
    include_dirs = [], 
    c_includes = [], 
    package_deps = [""base"", ""haskell98""], 
    extra_ghc_opts = [], 
    extra_cc_opts = [], 
    extra_ld_opts = [], 
    framework_dirs = [], 
    extra_frameworks = []} 
Package 
   {name = ""readline"", 
    auto = True, 
    import_dirs = [""/home/xxx/local/lib/ghc-6.0.1/imports""], 
    source_dirs = [], 
    library_dirs = [""/home/xxx/local/lib/ghc-6.0.1""], 
    hs_libraries = [""HSreadline""], 
    extra_libraries = [""readline"", ""ncurses""], 
    include_dirs = [], 
    c_includes = [""HsReadline.h""], 
    package_deps = [""base""], 
    extra_ghc_opts = [], 
    extra_cc_opts = [], 
    extra_ld_opts = [], 
    framework_dirs = [], 
    extra_frameworks = []} 
Package 
   {name = ""lang"", 
    auto = False, 
    import_dirs = 
      [""/home/xxx/local/lib/ghc-6.0.1/hslibs-imports/lang""], 
    source_dirs = [], 
    library_dirs = [""/home/xxx/local/lib/ghc-6.0.1""], 
    hs_libraries = [""HSlang""], 
    extra_libraries = [""HSlang_cbits""], 
    include_dirs = [], 
    c_includes = [""HsLang.h""], 
    package_deps = [""base""], 
    extra_ghc_opts = [], 
    extra_cc_opts = [], 
    extra_ld_opts = [], 
    framework_dirs = [], 
    extra_frameworks = []} 
Package 
   {name = ""concurrent"", 
    auto = False, 
    import_dirs = 
      
[""/home/xxx/local/lib/ghc-6.0.1/hslibs-imports/concurrent""], 
    source_dirs = [], 
    library_dirs = [""/home/xxx/local/lib/ghc-6.0.1""], 
    hs_libraries = [""HSconcurrent""], 
    extra_libraries = [], 
    include_dirs = [], 
    c_includes = [], 
    package_deps = [""base""], 
    extra_ghc_opts = [], 
    extra_cc_opts = [], 
    extra_ld_opts = [], 
    framework_dirs = [], 
    extra_frameworks = []} 
Package 
   {name = ""posix"", 
    auto = False, 
    import_dirs = 
      [""/home/xxx/local/lib/ghc-6.0.1/hslibs-imports/posix""], 
    source_dirs = [], 
    library_dirs = [""/home/xxx/local/lib/ghc-6.0.1""], 
    hs_libraries = [""HSposix""], 
    extra_libraries = [""HSposix_cbits"", ""dl""], 
    include_dirs = [], 
    c_includes = [""HsPosix.h""], 
    package_deps = [""lang"", ""unix""], 
    extra_ghc_opts = [], 
    extra_cc_opts = [], 
    extra_ld_opts = [], 
    framework_dirs = [], 
    extra_frameworks = []} 
Package 
   {name = ""util"", 
    auto = False, 
    import_dirs = 
      [""/home/xxx/local/lib/ghc-6.0.1/hslibs-imports/util""], 
    source_dirs = [], 
    library_dirs = [""/home/xxx/local/lib/ghc-6.0.1""], 
    hs_libraries = [""HSutil""], 
    extra_libraries = [""HSutil_cbits""], 
    include_dirs = [], 
    c_includes = [""HsUtil.h""], 
    package_deps = [""lang"", ""concurrent"", ""readline"", 
""posix""], 
    extra_ghc_opts = [], 
    extra_cc_opts = [], 
    extra_ld_opts = [], 
    framework_dirs = [], 
    extra_frameworks = []} 
Package 
   {name = ""text"", 
    auto = False, 
    import_dirs = 
      [""/home/xxx/local/lib/ghc-6.0.1/hslibs-imports/text""], 
    source_dirs = [], 
    library_dirs = [""/home/xxx/local/lib/ghc-6.0.1""], 
    hs_libraries = [""HStext""], 
    extra_libraries = [""HStext_cbits""], 
    include_dirs = [], 
    c_includes = [""HsText.h""], 
    package_deps = [""lang""], 
    extra_ghc_opts = [], 
    extra_cc_opts = [], 
    extra_ld_opts = [], 
    framework_dirs = [], 
    extra_frameworks = []} 
Package 
   {name = ""net"", 
    auto = False, 
    import_dirs = 
[""/home/xxx/local/lib/ghc-6.0.1/hslibs-imports/net""], 
    source_dirs = [], 
    library_dirs = [""/home/xxx/local/lib/ghc-6.0.1""], 
    hs_libraries = [""HSnet""], 
    extra_libraries = [], 
    include_dirs = [], 
    c_includes = [], 
    package_deps = [""network""], 
    extra_ghc_opts = [], 
    extra_cc_opts = [], 
    extra_ld_opts = [], 
    framework_dirs = [], 
    extra_frameworks = []} 
Package 
   {name = ""hssource"", 
    auto = False, 
    import_dirs = 
      
[""/home/xxx/local/lib/ghc-6.0.1/hslibs-imports/hssource""], 
    source_dirs = [], 
    library_dirs = [""/home/xxx/local/lib/ghc-6.0.1""], 
    hs_libraries = [""HShssource""], 
    extra_libraries = [], 
    include_dirs = [], 
    c_includes = [], 
    package_deps = [""haskell-src""], 
    extra_ghc_opts = [], 
    extra_cc_opts = [], 
    extra_ld_opts = [], 
    framework_dirs = [], 
    extra_frameworks = []} 
Package 
   {name = ""HToolkit"", 
    auto = False, 
    import_dirs = [""/home/xxx/local/imports/HToolkit""], 
    source_dirs = [], 
    library_dirs = 
      [""/home/xxx/local/lib/ghc-6.0.1"", 
""/home/xxx/local/lib""], 
    hs_libraries = [""HSToolkit""], 
    extra_libraries = [""mysqlclient""], 
    include_dirs = [], 
    c_includes = [], 
    package_deps = [""base""], 
    extra_ghc_opts = [], 
    extra_cc_opts = [], 
    extra_ld_opts = [], 
    framework_dirs = [], 
    extra_frameworks = []} 
 
 
Hsc static flags: -static -fignore-interface-pragmas 
-fomit-interface-pragmas -fdo-lambda-eta-expansion 
-flet-no-escape 
*** Parser: 
*** Desugar: 
*** Simplify: 
*** CorePrep: 
*** ByteCodeGen: 
Loading package base ... linking ... done. 
Loading package unix ... linking ... 
/home/xxx/local/lib/ghc-6.0.1/HSunix.o: unknown symbol 
`sendfile' 
*** Deleting temp files 
Deleting: 
ghc-6.0.1: panic! (the `impossible' happened, GHC version 
6.0.1): 
        can't load package `unix' 
 
Please report it as a compiler bug to 
glasgow-haskell-bugs@haskell.org, 
or http://sourceforge.net/projects/ghc/. 
}}}"	bug	closed	normal		Compiler	6.0.1	Fixed										
