http://werc.cat-v.org/docs/tips
The 9l line is now more exotic, and
Changed the existing 9l and ran INSTALL again:
*Linux*)
ld="${CC9:-gcc} -static"
/usr/local/plan9/src/lib9/_p9dir.c:170: warning: Using 'getgrgid' in
statically linked applications requires at runtime the shared
libraries from the glibc version used for linking
/usr/local/plan9/src/cmd/9660/unix.c:76: warning: Using 'getgrnam' in
statically linked applications requires at runtime the shared
libraries from the glibc version used for linking
/usr/local/plan9/src/cmd/9660/unix.c:60: warning: Using 'getpwnam' in
statically linked applications requires at runtime the shared
libraries from the glibc version used for linking
/usr/local/plan9/src/lib9/_p9dir.c:147: warning: Using 'getpwuid' in
statically linked applications requires at runtime the shared
libraries from the glibc version used for linking
>>> cd /usr/local/plan9/src/cmd/9660srv; mk all
9l -o o.9660srv main.o 9660srv.o xfile.o iobuf.o data.o
/usr/bin/ld: errno: TLS reference in /usr/lib/gcc/i686-pc-linux-gnu/
4.5.0/../../../libpthread.a(ptw-fcntl.o) mismatches non-TLS reference
in main.o
/usr/lib/gcc/i686-pc-linux-gnu/4.5.0/../../../libpthread.a: could not
read symbols: Bad value
collect2: ld returned 1 exit status
mk: 9l -o o.9660srv ... : exit status=exit(1)
mk: for i in ... : exit status=exit(1)
mk: for i in ... : exit status=exit(1)
again but slightly different:
*Linux*)
ld=${CC9:-"gcc -static"}
/usr/local/plan9/src/lib9/_p9dir.c:170: warning: Using 'getgrgid' in
statically linked applications requires at runtime the shared
libraries from the glibc version used for linking
/usr/local/plan9/src/lib9/_p9dir.c:147: warning: Using 'getpwuid' in
statically linked applications requires at runtime the shared
libraries from the glibc version used for linking
/usr/local/plan9/src/lib9/_p9dialparse.c:134: warning: Using
'gethostbyname' in statically linked applications requires at runtime
the shared libraries from the glibc version used for linking
/usr/local/plan9/src/lib9/_p9dialparse.c:144: warning: Using
'getservbyname' in statically linked applications requires at runtime
the shared libraries from the glibc version used for linking
>>> cd /usr/local/plan9/src/cmd; mk all
9l -o o.tail tail.o
/usr/local/plan9/src/lib9/_p9dir.c:170: warning: Using 'getgrgid' in
statically linked applications requires at runtime the shared
libraries from the glibc version used for linking
/usr/local/plan9/src/lib9/_p9dir.c:147: warning: Using 'getpwuid' in
statically linked applications requires at runtime the shared
libraries from the glibc version used for linking
>>> cd /usr/local/plan9/src/cmd; mk all
9l -o o.tar tar.o
/usr/local/plan9/src/lib9/_p9dir.c:170: warning: Using 'getgrgid' in
statically linked applications requires at runtime the shared
libraries from the glibc version used for linking
/usr/local/plan9/src/lib9/_p9dir.c:147: warning: Using 'getpwuid' in
statically linked applications requires at runtime the shared
libraries from the glibc version used for linking
>>> cd /usr/local/plan9/src/cmd; mk all
9l -o o.test test.o
/usr/local/plan9/src/lib9/_p9dir.c:170: warning: Using 'getgrgid' in
statically linked applications requires at runtime the shared
libraries from the glibc version used for linking
/usr/local/plan9/src/lib9/_p9dir.c:147: warning: Using 'getpwuid' in
statically linked applications requires at runtime the shared
libraries from the glibc version used for linking
>>> cd /usr/local/plan9/src/cmd/9660; mk all
9l -o o.dump9660 boot.o cdrdwr.o conform.o direc.o dump.o dump9660.o
ichar.o jchar.o path.o unix.o rune.o sysuse.o util.o write.o
/usr/local/plan9/src/lib9/_p9dir.c:170: warning: Using 'getgrgid' in
statically linked applications requires at runtime the shared
libraries from the glibc version used for linking
/usr/local/plan9/src/cmd/9660/unix.c:76: warning: Using 'getgrnam' in
statically linked applications requires at runtime the shared
libraries from the glibc version used for linking
/usr/local/plan9/src/cmd/9660/unix.c:60: warning: Using 'getpwnam' in
statically linked applications requires at runtime the shared
libraries from the glibc version used for linking
/usr/local/plan9/src/lib9/_p9dir.c:147: warning: Using 'getpwuid' in
statically linked applications requires at runtime the shared
libraries from the glibc version used for linking
>>> cd /usr/local/plan9/src/cmd/9660srv; mk all
9l -o o.9660srv main.o 9660srv.o xfile.o iobuf.o data.o
/usr/bin/ld: errno: TLS reference in /usr/lib/gcc/i686-pc-linux-gnu/
4.5.0/../../../libpthread.a(ptw-fcntl.o) mismatches non-TLS reference
in main.o
/usr/lib/gcc/i686-pc-linux-gnu/4.5.0/../../../libpthread.a: could not
read symbols: Bad value
collect2: ld returned 1 exit status
mk: 9l -o o.9660srv ... : exit status=exit(1)
mk: for i in ... : exit status=exit(1)
mk: for i in ... : exit status=exit(1)
Please let me know if there is a workaround.