Russ Cox is sharing code with you

Bitbucket is a code hosting site. Unlimited public and private repositories. Free for small teams.

Don't show this again

rsc / plan9port http://swtch.com/plan9port/

Plan 9 from User Space (aka plan9port) is a port of many Plan 9 programs from their native Plan 9 environment to Unix-like operating systems. See the web site http://swtch.com/plan9port/ for details.

Clone this repository (size: 58.2 MB): HTTPS / SSH
hg clone https://bitbucket.org/rsc/plan9port
hg clone ssh://hg@bitbucket.org/rsc/plan9port

Issues

#83 INSTALL and warnings errors on OS X 10.7.1

Reported by gcatlin

Running /usr/local/plan9/INSTALL results in the following output:

+ Mailing list: http://groups.google.com/group/plan9port-dev
+ Issue tracker: http://code.swtch.com/plan9port/issues/
+ Submitting changes: http://swtch.com/go/codereview
 
* Resetting /usr/local/plan9/config
* Compiler version:
	gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)
* Running on Darwin: checking architecture...
	x86-64 found.
* Building mk...
* Building everything (be patient)...
>>> cd /usr/local/plan9/src/cmd; mk all                   
9c  dd.c
dd.c:301: warning: no return statement in function returning non-void
>>> cd /usr/local/plan9/src/cmd/devdraw; mk all   
9c -DMULTITOUCH -o osx-screen-carbon-objc.o osx-screen-carbon.m
osx-screen-carbon.m:437: warning: implicit declaration of function ‘InitCursor’
osx-screen-carbon.m:440: warning: implicit declaration of function ‘ClearMenuBar’
osx-screen-carbon.m:441: warning: implicit declaration of function ‘CreateStandardWindowMenu’
osx-screen-carbon.m:442: warning: implicit declaration of function ‘InsertMenu’
osx-screen-carbon.m:444: warning: implicit declaration of function ‘CreateNewMenu’
osx-screen-carbon.m:445: warning: implicit declaration of function ‘SetMenuTitleWithCFString’
osx-screen-carbon.m:446: warning: implicit declaration of function ‘AppendMenuItemTextWithCFString’
osx-screen-carbon.m:448: warning: implicit declaration of function ‘SetMenuItemCommandKey’
osx-screen-carbon.m:452: warning: implicit declaration of function ‘GetMenuID’
osx-screen-carbon.m:453: warning: implicit declaration of function ‘DrawMenuBar’
osx-screen-carbon.m:468: warning: implicit declaration of function ‘CreateNewWindow’
osx-screen-carbon.m:484: error: ‘kEventWindowDrawContent’ undeclared
osx-screen-carbon.m:512: warning: implicit declaration of function ‘GetWindowEventTarget’
osx-screen-carbon.m:512: warning: passing argument 1 of ‘InstallEventHandler’ makes pointer from integer without a cast
osx-screen-carbon.m:517: warning: implicit declaration of function ‘ShowWindow’
osx-screen-carbon.m:518: warning: implicit declaration of function ‘ShowMenuBar’
osx-screen-carbon.m:520: warning: implicit declaration of function ‘SelectWindow’
osx-screen-carbon.m:555: warning: implicit declaration of function ‘RunApplicationEventLoop’
osx-screen-carbon.m:635: error: ‘kEventWindowDrawContent’ undeclared
osx-screen-carbon.m:907: warning: implicit declaration of function ‘GetWindowBounds’
osx-screen-carbon.m:948: warning: implicit declaration of function ‘QDEndCGContext’
osx-screen-carbon.m:948: warning: implicit declaration of function ‘GetWindowPort’
osx-screen-carbon.m:977: warning: implicit declaration of function ‘QDBeginCGContext’
osx-screen-carbon.m:1029: warning: implicit declaration of function ‘GetWindowGreatestAreaDevice’
osx-screen-carbon.m:1033: warning: implicit declaration of function ‘HideMenuBar’
osx-screen-carbon.m:1035: warning: implicit declaration of function ‘ChangeWindowAttributes’
osx-screen-carbon.m:1038: warning: implicit declaration of function ‘MoveWindow’
osx-screen-carbon.m:1040: warning: implicit declaration of function ‘SizeWindow’
osx-screen-carbon.m:1072: error: ‘OSXCursor’ undeclared
osx-screen-carbon.m:1072: warning: statement with no effect
osx-screen-carbon.m:1072: error: expected ‘;’ before ‘oc’
osx-screen-carbon.m:1082: error: ‘oc’ undeclared
osx-screen-carbon.m:1082: error: request for member ‘data’ in something not a structure or union
osx-screen-carbon.m:1082: error: assignment of read-only location
osx-screen-carbon.m:1082: warning: statement with no effect
osx-screen-carbon.m:1083: error: request for member ‘mask’ in something not a structure or union
osx-screen-carbon.m:1083: error: request for member ‘data’ in something not a structure or union
osx-screen-carbon.m:1083: error: invalid operands to binary | (have ‘struct EventTypeSpec’ and ‘int’)
osx-screen-carbon.m:1083: error: assignment of read-only location
osx-screen-carbon.m:1083: warning: statement with no effect
osx-screen-carbon.m:1085: error: request for member ‘hotSpot’ in something not a structure or union
osx-screen-carbon.m:1085: error: request for member ‘h’ in something not a structure or union
osx-screen-carbon.m:1085: warning: statement with no effect
osx-screen-carbon.m:1086: error: request for member ‘hotSpot’ in something not a structure or union
osx-screen-carbon.m:1086: error: request for member ‘v’ in something not a structure or union
osx-screen-carbon.m:1086: warning: statement with no effect
osx-screen-carbon.m:1087: warning: implicit declaration of function ‘SetCursor’
osx-screen-carbon.m:1265: warning: implicit declaration of function ‘SetWindowTitleWithCFString’
osx-screen-carbon.m:1297: warning: implicit declaration of function ‘SetApplicationDockTileImage’
mk: 9c -DMULTITOUCH -o ...  : exit status=exit(1)
>>> cd ../map/libmap; mk                                
9l -o o.scat scat.o bitinput.o desc.o display.o dssread.o header.o hinv.o image.o patch.o plot.o posn.o prose.o qtree.o util.o ../map/libmap/libmap.a 
ld: in ../map/libmap/libmap.a, malformed archive TOC entry for _invert, offset 538981428 is beyond end of file 241916
 for architecture x86_64
collect2: ld returned 1 exit status
mk: 9l -o o.scat ...  : exit status=exit(1)
>>> cd /usr/local/plan9/src/cmd/snarfer; mk all
9l -o o.snarfer osx-snarfer.o -F/System/Library/PrivateFrameworks
ld: warning: directory not found for option '-L/usr/X11R6/lib64'
* Installing everything in /usr/local/plan9/bin...
>>> cd /usr/local/plan9/src/cmd; mk install       
9l -o o.bc bc.o 
ld: in /usr/local/plan9/lib/lib9.a, malformed archive TOC entry for _utfutf, offset 137720260 is beyond end of file 784204
 for architecture x86_64
collect2: ld returned 1 exit status
mk: 9l -o o.bc ...  : exit status=exit(1)
mk: for i in ...  : exit status=exit(1)
mk: for i in ...  : exit status=exit(1)

Status: resolved Responsible: nobody Type: bug Priority: major
Milestone: none Component: none Version: none

Attachments

No attachments added for this issue yet.

Comments and changes

  1. #1 Anonymous

    written

    I'm also getting errors, mostly from `ld`:

    $ grep 'ld:' install.log | uniq | sort
    ld: in ../map/libmap/libmap.a, malformed archive TOC entry for _invert, offset 538981428 is beyond end of file 241824
    ld: in ../map/libmap/libmap.a, malformed archive TOC entry for _invert, offset 538981428 is beyond end of file 241824
    ld: in /usr/local/plan9/lib/lib9.a, malformed archive TOC entry for _utfutf, offset 79000004 is beyond end of file 784716
    ld: in /usr/local/plan9/lib/lib9.a, malformed archive TOC entry for _utfutf, offset 79000004 is beyond end of file 784716
    ld: in /usr/local/plan9/lib/lib9.a, malformed archive TOC entry for _utfutf, offset 79000004 is beyond end of file 784716
    ld: in /usr/local/plan9/lib/lib9.a, malformed archive TOC entry for _utfutf, offset 79000004 is beyond end of file 784716
    ld: in /usr/local/plan9/lib/lib9.a, malformed archive TOC entry for _utfutf, offset 79000004 is beyond end of file 784716
    ld: in /usr/local/plan9/lib/lib9.a, malformed archive TOC entry for _utfutf, offset 79000004 is beyond end of file 784716
    ld: in /usr/local/plan9/lib/lib9.a, malformed archive TOC entry for _utfutf, offset 79000004 is beyond end of file 784716
    ld: in /usr/local/plan9/lib/lib9.a, malformed archive TOC entry for _utfutf, offset 79000004 is beyond end of file 784716
    ld: in /usr/local/plan9/lib/lib9pclient.a, malformed archive TOC entry for _fsvprint, offset 1600061560 is beyond end of file 148448
    ld: in /usr/local/plan9/lib/libbio.a, malformed archive TOC entry for _Bwrite, offset 538981428 is beyond end of file 80520
    ld: in /usr/local/plan9/lib/libbio.a, malformed archive TOC entry for _Bwrite, offset 538981428 is beyond end of file 80520
    ld: in /usr/local/plan9/lib/libbio.a, malformed archive TOC entry for _Bwrite, offset 538981428 is beyond end of file 80520
    ld: in /usr/local/plan9/lib/libbio.a, malformed archive TOC entry for _Bwrite, offset 538981428 is beyond end of file 80520
    ld: in /usr/local/plan9/lib/libbio.a, malformed archive TOC entry for _Bwrite, offset 538981428 is beyond end of file 80520
    ld: in /usr/local/plan9/lib/libbio.a, malformed archive TOC entry for _Bwrite, offset 538981428 is beyond end of file 80520
    ld: in /usr/local/plan9/lib/libbio.a, malformed archive TOC entry for _Bwrite, offset 538981428 is beyond end of file 80520
    ld: in /usr/local/plan9/lib/libbio.a, malformed archive TOC entry for _Bwrite, offset 538981428 is beyond end of file 80520
    ld: in /usr/local/plan9/lib/libbio.a, malformed archive TOC entry for _Bwrite, offset 538981428 is beyond end of file 80520
    ld: in /usr/local/plan9/lib/libbio.a, malformed archive TOC entry for _Bwrite, offset 538981428 is beyond end of file 80520
    ld: in /usr/local/plan9/lib/libbio.a, malformed archive TOC entry for _Bwrite, offset 538981428 is beyond end of file 80520
    ld: in /usr/local/plan9/lib/libbio.a, malformed archive TOC entry for _Bwrite, offset 538981428 is beyond end of file 80520
    ld: in /usr/local/plan9/lib/libdraw.a, malformed archive TOC entry for ___p9l_autolib_draw, offset 1868722785 is beyond end of file 613228
    ld: in /usr/local/plan9/lib/libdraw.a, malformed archive TOC entry for ___p9l_autolib_draw, offset 1868722785 is beyond end of file 613228
    ld: in /usr/local/plan9/lib/libdraw.a, malformed archive TOC entry for ___p9l_autolib_draw, offset 1868722785 is beyond end of file 613228
    ld: in /usr/local/plan9/lib/libdraw.a, malformed archive TOC entry for ___p9l_autolib_draw, offset 1868722785 is beyond end of file 613228
    ld: in /usr/local/plan9/lib/libdraw.a, malformed archive TOC entry for ___p9l_autolib_draw, offset 1868722785 is beyond end of file 613228
    ld: in /usr/local/plan9/lib/libdraw.a, malformed archive TOC entry for ___p9l_autolib_draw, offset 1868722785 is beyond end of file 613228
    ld: in /usr/local/plan9/lib/libndb.a, malformed archive TOC entry for ___p9l_autolib_ndb, offset 538981428 is beyond end of file 126292
    ld: in /usr/local/plan9/lib/libndb.a, malformed archive TOC entry for ___p9l_autolib_ndb, offset 538981428 is beyond end of file 126292
    ld: in /usr/local/plan9/lib/libndb.a, malformed archive TOC entry for ___p9l_autolib_ndb, offset 538981428 is beyond end of file 126292
    ld: in /usr/local/plan9/lib/libplumb.a, malformed archive TOC entry for _plumbrecvfid, offset 1600928112 is beyond end of file 41408
    ld: in /usr/local/plan9/lib/libplumb.a, malformed archive TOC entry for _plumbrecvfid, offset 1600928112 is beyond end of file 41408
    ld: in /usr/local/plan9/lib/libplumb.a, malformed archive TOC entry for _plumbrecvfid, offset 1600928112 is beyond end of file 41408
    ld: in /usr/local/plan9/lib/libplumb.a, malformed archive TOC entry for _plumbrecvfid, offset 1600928112 is beyond end of file 41408
    ld: in /usr/local/plan9/lib/libsec.a, malformed archive TOC entry for _rc4, offset 1969502512 is beyond end of file 634888
    ld: in /usr/local/plan9/lib/libsec.a, malformed archive TOC entry for _rc4, offset 1969502512 is beyond end of file 634888
    ld: in /usr/local/plan9/lib/libventi.a, malformed archive TOC entry for _vtlogremove, offset 1633643577 is beyond end of file 331172
    ld: warning: directory not found for option '-L/usr/X11R6/lib64'
    
  2. #2 Anonymous

    written

    My mistake; I should have simplified the preceding output to:

    $ grep ld: install.log | sort | uniq
    ld: in ../map/libmap/libmap.a, malformed archive TOC entry for _invert, offset 538981428 is beyond end of file 241824
    ld: in /usr/local/plan9/lib/lib9.a, malformed archive TOC entry for _utfutf, offset 79000004 is beyond end of file 784716
    ld: in /usr/local/plan9/lib/lib9pclient.a, malformed archive TOC entry for _fsvprint, offset 1600061560 is beyond end of file 148448
    ld: in /usr/local/plan9/lib/libbio.a, malformed archive TOC entry for _Bwrite, offset 538981428 is beyond end of file 80520
    ld: in /usr/local/plan9/lib/libdraw.a, malformed archive TOC entry for ___p9l_autolib_draw, offset 1868722785 is beyond end of file 613228
    ld: in /usr/local/plan9/lib/libndb.a, malformed archive TOC entry for ___p9l_autolib_ndb, offset 538981428 is beyond end of file 126292
    ld: in /usr/local/plan9/lib/libplumb.a, malformed archive TOC entry for _plumbrecvfid, offset 1600928112 is beyond end of file 41408
    ld: in /usr/local/plan9/lib/libsec.a, malformed archive TOC entry for _rc4, offset 1969502512 is beyond end of file 634888
    ld: in /usr/local/plan9/lib/libventi.a, malformed archive TOC entry for _vtlogremove, offset 1633643577 is beyond end of file 331172
    ld: warning: directory not found for option '-L/usr/X11R6/lib64'
    
  3. #3 Russ Cox

    written

    • Changed status from new to resolved.

    I think the build on Lion is finally fixed. Many thanks to David Jeannot for much of the work.

  4. #4 Anonymous

    written

    I've tried removing the source tree and rebuilding several times in the past few months, but am still getting a lot of "malformed archive TOC" errors from ld. Some other messages I noticed:

    ranlib: can't open file: ../lib/*.a (No such file or directory) mk: no recipe to make 'osx-cocoa.o' ld: warning: directory not found for option '-L/usr/X11R6/lib64'

    Am I building this wrong somehow?

  5. #5 Anonymous

    written

    I'm having the same problem as #4. Full instal.log here: http://pastebin.com/ZywK2E4d

Add comment / attachment

Verification: Please write the text from the image in the box (letters only)

captcha

Is that you, Humanoid? Is this me?