Opened 9 years ago

Closed 9 years ago

#2765 closed bug (fixed)

unsetenv not found under Solaris 8 when building ghc-6.10.1

Reported by: maeder Owned by:
Priority: normal Milestone: 6.12.1
Component: Compiler Version: 6.10.1
Keywords: Cc:
Operating System: Solaris Architecture: sparc
Type of failure: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:


Which library provides unsetenv?

Building ghc-bin-6.10.1...
[1 of 1] Compiling Main             ( Main.hs, dist-stage2/build/ghc/ghc-tmp/Main.o )
Linking dist-stage2/build/ghc/ghc ...
/home/maeder/haskell/solaris/ghc-6.10.1/libraries/unix/dist/build/libHSunix- In function `__hsunix_unsetenv':
HsUnix.c:(.text+0x138): undefined reference to `unsetenv'
collect2: ld returned 1 exit status
gmake[3]: *** [build.stage.2] Error 1
gmake[3]: Leaving directory `/home/maeder/haskell/solaris/ghc-6.10.1/ghc'
gmake[2]: *** [build.stage.2] Error 2
gmake[2]: Leaving directory `/home/maeder/haskell/solaris/ghc-6.10.1/compiler'
gmake[1]: *** [stage2] Error 2
gmake[1]: Leaving directory `/home/maeder/haskell/solaris/ghc-6.10.1'
gmake: *** [bootstrap2] Error 2
SunOS 5.8 Generic_117350-57 sun4u sparc SUNW,Ultra-4

-bash-3.00$ gcc -v
Using built-in specs.
Target: sparc-sun-solaris2.8
Configured with: ../gcc-4.0.3/configure --prefix=/usr/local/lang -program-suffix=_4.0.3 --with-gnu-as --with-as=/usr/local/bin/gnu-as --with-gnu-ld --with-ld=/usr/local/bin/gnu-ld --enable-version-specific-runtime-libs --enable-languages=c,c++
Thread model: posix
gcc version 4.0.3

Change History (4)

comment:1 Changed 9 years ago by igloo

difficulty: Unknown
Milestone: 6.10.2

It's in libc on Linux. My manpage says CONFORMING TO 4.3BSD, POSIX.1-2001.

comment:2 Changed 9 years ago by igloo


Does the fact that more people haven't seen this mean that it's only a problem on old versions of Solaris? If so, should we just close it, or is there a simple workaround?

comment:3 Changed 9 years ago by maeder

I think, it is only a problem under our old Solaris 8. I did not find a work around, but simple gave up using Solaris 8 and switched to using Solaris 10 machines which don't have this problem:

comment:4 Changed 9 years ago by igloo

Resolution: fixed
Status: newclosed

OK, I'll close this ticket then. And thanks for the bindist; I've added it to the 6.10.2 download page.

Note: See TracTickets for help on using tickets.