Ticket #3835 (closed merge: fixed)

Opened 3 years ago

Last modified 3 years ago

unpleasant linker warning

Reported by: maeder Owned by: igloo
Priority: high Milestone: 6.12.2
Component: Runtime System Version: 6.12.1
Keywords: Cc:
Operating System: Solaris Architecture: x86
Type of failure: None/Unknown Difficulty:
Test Case: Blocked By:
Blocking: Related Tickets:

Description

When linking any binary (i.e. cabal) that uses the network package I get the following warning:

ld: warning: symbol `store' has differing types:
        (file /usr/lib/libnsl.so type=FUNC; file /home/pub-bkb/pc-solaris/ghc/ghc-6.12.1/lib/ghc-6.12.1/libHSrts_thr.a(Globals.thr_o) type=OBJT);
        /home/pub-bkb/pc-solaris/ghc/ghc-6.12.1/lib/ghc-6.12.1/libHSrts_thr.a(Globals.thr_o) definition taken
ld: warning: symbol `store' has differing types:
        (file /usr/lib/libnsl.so type=FUNC; file /home/pub-bkb/pc-solaris/ghc/ghc-6.12.1/lib/ghc-6.12.1/libHSrts_thr.a(Globals.thr_o) type=OBJT);

I've got network-2.2.1.7 that as extra-libraries: nsl socket

Change History

Changed 3 years ago by simonmar

  • owner set to simonmar
  • priority changed from normal to high
  • status changed from new to assigned
  • component changed from Compiler to Runtime System
  • milestone set to 6.12.2

store should be static; I'll fix. Thanks for the report.

Changed 3 years ago by maeder

Without "-threaded" this also applies to lib/ghc-6.12.1/libHSrts.a(Globals.o) type=OBJT. (I hope the corresponding code is shared)

Changed 3 years ago by simonmar

  • owner changed from simonmar to igloo
  • status changed from assigned to new
  • type changed from bug to merge

Fixed (I believe, I don't have a Solaris box to reproduce):

Fri Jan 22 16:48:34 GMT 2010  Simon Marlow <marlowsd@gmail.com>
  * 'store' should be static (#3835)

Changed 3 years ago by igloo

  • status changed from new to closed
  • resolution set to fixed

Merged

Note: See TracTickets for help on using tickets.