Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

inferno build faiils

Programming languages, Coding, Executables, Package Creation, and Scripting.
Post Reply
Message
Author
jfmxl
Posts: 30
Joined: 2014-10-03 12:12

inferno build faiils

#1 Post by jfmxl »

Hi, I am on wheezy trying to compile inferno, but it fails ...

cc -m32 -o o.emu asm-386.o os.o kproc-pthreads.o segflush-386.o emu.root.o lock.o devmnt.o devsnarf.o devsrv.o srv.o ipif6-posix.o devmem.o devdraw.o devpipe.o devcmd.o cmd.o devssl.o devfs.o devcons.o devenv.o devprof.o devroot.o devprog.o devip.o devcap.o win-x11a.o devdup.o devpointer.o devindir.o deveia.o ipaux.o cache.o proc.o random.o error.o uqid.o qio.o discall.o inferno.o exception.o chan.o env.o devtab.o dis.o print.o dial.o exportfs.o main.o parse.o alloc.o latin1.o dev.o sysfile.o pgrp.o errstr.o emu.o /home/jfl/Downloads/inferno-os/Linux/386/lib/libinterp.a /home/jfl/Downloads/inferno-os/Linux/386/lib/libtk.a /home/jfl/Downloads/inferno-os/Linux/386/lib/libfreetype.a /home/jfl/Downloads/inferno-os/Linux/386/lib/libmath.a /home/jfl/Downloads/inferno-os/Linux/386/lib/libdraw.a /home/jfl/Downloads/inferno-os/Linux/386/lib/libmemlayer.a /home/jfl/Downloads/inferno-os/Linux/386/lib/libmemdraw.a /home/jfl/Downloads/inferno-os/Linux/386/lib/libkeyring.a /home/jfl/Downloads/inferno-os/Linux/386/lib/libsec.a /home/jfl/Downloads/inferno-os/Linux/386/lib/libmp.a /home/jfl/Downloads/inferno-os/Linux/386/lib/lib9.a -lX11 -lXext -lm -lpthread
/usr/bin/ld: cannot find -lX11
/usr/bin/ld: cannot find -lXext
collect2: error: ld returned 1 exit status
mk: cc -c -m32 ... : exit status=exit(1)
mk: echo "(cd $SYSTARG; ... : exit status=exit(1)
mk: for j in ... : exit status=exit(1)

It seems I have no 32 bit X11 libraries.

There must be a package that supplies them, right?

I've been looking but cannot locate it. Where is it? Please.

Thanks,

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: inferno build faiils

#2 Post by stevepusser »

What platform are you compiling this on? If 32-bit, you need the -dev packages for the libraries, probably libx11-dev and libxext-dev.
MX Linux packager and developer

jfmxl
Posts: 30
Joined: 2014-10-03 12:12

Re: inferno build faiils

#3 Post by jfmxl »

I'm sorry, I'm on SMP Debian 3.2.65-1+deb7u1 x86_64 GNU/Linux.

I thought I'd given that information but I see now I had not.

I have

/usr/lib/x86_64-linux-gnu/libX11.so
/usr/lib/x86_64-linux-gnu/libXext.so

I need the 32 bit version of those libraries.

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: inferno build faiils

#4 Post by stevepusser »

Simple enough, enable multiarch with

Code: Select all

su -c 'dpkg-add-architecture i386'
and install the :i386 versions of those -dev packages, such as "lib-xext-dev:i386". Note that the 32 and 64-bit runtime libraries can coexist, but not the -dev packages, so you'll have to remove the 64-bit versions (this usually is done automatically)
MX Linux packager and developer

jfmxl
Posts: 30
Joined: 2014-10-03 12:12

Re: inferno build faiils

#5 Post by jfmxl »

jfl@wsdeb:~$ dpkg --print-architecture
amd64
jfl@wsdeb:~$ dpkg --print-foreign-architectures
i386
jfl@wsdeb:~$ sudo apt-get install lib-xext-dev:i386
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package lib-xext-dev

What am I doing wrong here?

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: inferno build faiils

#6 Post by stevepusser »

Sorry, that's a typo on my part, it should have been libxext-dev. Also you would need libx11-dev:i386
MX Linux packager and developer

jfmxl
Posts: 30
Joined: 2014-10-03 12:12

Re: inferno build faiils

#7 Post by jfmxl »

Thanks. I believe I now have the requisite x libraries ...

jfl@wsdeb:~/Downloads/inferno-os$ sudo apt-get install libx11-6:i386
Reading package lists... Done
Building dependency tree
Reading state information... Done
libx11-6:i386 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

jfl@wsdeb:~/Downloads/inferno-os$ sudo apt-get install libx11-dev:i386
Reading package lists... Done
Building dependency tree
Reading state information... Done
libx11-dev:i386 is already the newest version.

jjfl@wsdeb:~/Downloads/inferno-os$ sudo apt-get install libxext-dev:i386
Reading package lists... Done
Building dependency tree
Reading state information... Done
libxext-dev:i386 is already the newest version.

but now I have another problem ...

jfl@wsdeb:~/Downloads/inferno-os$ mk install
(cd lib9; mk install)
.
.
.
In function `XCloseDisplay': (.text+0xbd): undefined reference to `xcb_disconnect'
collect2: error: ld returned 1 exit status
mk: cc -c -m32 ... : exit status=exit(1)
mk: echo "(cd $SYSTARG; ... : exit status=exit(1)
mk: for j in ... : exit status=exit(1)

I have an XCloseDisplay() but it calls an xcb_disconnect() but doesn't find one?

jfl@wsdeb:~/Downloads/inferno-os$ ls -l /usr/lib/i386-linux-gnu/libX11.so
lrwxrwxrwx 1 root root 15 May 22 2013 /usr/lib/i386-linux-gnu/libX11.so -> libX11.so.6.3.0
jfl@wsdeb:~/Downloads/inferno-os$ ls -l /usr/lib/i386-linux-gnu/libX11.so.6.3.0
ls: cannot access /usr/lib/i386-linux-gnu/libX11.so.6.3.0: No such file or directory

jfl@wsdeb:~/Downloads/inferno-os$ ls -l /usr/lib/i386-linux-gnu/libXext.so
lrwxrwxrwx 1 root root 16 May 14 2013 /usr/lib/i386-linux-gnu/libXext.so -> libXext.so.6.4.0
jfl@wsdeb:~/Downloads/inferno-os$ ls -l /usr/lib/i386-linux-gnu/libX11.so.6.4.0
ls: cannot access /usr/lib/i386-linux-gnu/libX11.so.6.4.0: No such file or directory

Where's he beef? Have I got the wrong library?

peter_irich
Posts: 1405
Joined: 2009-09-10 20:15
Location: Saint-Petersburg, Russian Federation
Been thanked: 11 times

Re: inferno build faiils

#8 Post by peter_irich »

In Debian testing it is libxcb1-dev. Try install as root:

Code: Select all

apt-get install libxcb1-dev
Peter.

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: inferno build faiils

#9 Post by stevepusser »

Wouldn't that be the :i386 version of that additional -dev package?
MX Linux packager and developer

jfmxl
Posts: 30
Joined: 2014-10-03 12:12

Re: inferno build faiils

#10 Post by jfmxl »

jfl@wsdeb:~t$ sudo apt-get install libxcb1-dev:i386
[sudo] password for jfl:
Reading package lists... Done
Building dependency tree
Reading state information... Done
libxcb1-dev:i386 is already the newest version.
libxcb1-dev:i386 set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.

But maybe I should try the unstable version? That sounds dangerous.
How would I do that if I decided to throw caution to the winds?

Add a line for the unstable ditribution to /etc/apt/sources.list?

deb http://http.us.debian.org/debian/ unstable

peter_irich
Posts: 1405
Joined: 2009-09-10 20:15
Location: Saint-Petersburg, Russian Federation
Been thanked: 11 times

Re: inferno build faiils

#11 Post by peter_irich »

You can to know details about your distributive from command

Code: Select all

lsb_release -a
And I'm wondering what libX11.so.6.4.0 is needed. Debian testing and next contains libX11.so.6.3.0.

Peter.

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: inferno build faiils

#12 Post by stevepusser »

'm sorry, I'm on SMP Debian 3.2.65-1+deb7u1 x86_64 GNU/Linux.
This would indicate a Wheezy kernel. It's beginning to look a bit weird for your system, especially in light of the above post:
And I'm wondering what libX11.so.6.4.0 is needed. Debian testing and next contains libX11.so.6.3.0.
You haven't mixed Debian stable and upstream repositories yet, have you? That's a sure way to break your system.
MX Linux packager and developer

jfmxl
Posts: 30
Joined: 2014-10-03 12:12

Re: inferno build faiils

#13 Post by jfmxl »

jfl@wsdeb:$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 7.8 (wheezy)
Release: 7.8
Codename: wheezy

Sorry,

jfl@wsdeb:$ ls -l /usr/lib/x86_64-linux-gnu/libX11.so
lrwxrwxrwx 1 root root 15 May 22 2013 /usr/lib/x86_64-linux-gnu/libX11.so -> libX11.so.6.3.0

jfl@wsdeb:$ ls -l /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0
-rw-r--r-- 1 root root 1289744 May 22 2013 /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0

but

jfl@wsdeb:$ ls -l /usr/lib/i386-linux-gnu/libX11.so
lrwxrwxrwx 1 root root 15 May 22 2013 /usr/lib/i386-linux-gnu/libX11.so -> libX11.so.6.3.0

jfl@wsdeb:$ ls -l /usr/lib/i386-linux-gnu/libX11.so.6.3.0
ls: cannot access /usr/lib/i386-linux-gnu/libX11.so.6.3.0: No such file or directory

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: inferno build faiils

#14 Post by stevepusser »

I'm looking at the Inferno page, and it says:
On Linux systems with a Debian base, such as Ubuntu, to compile the graphical version of the system you will need the Debian packages libxext-dev, libxpm-dev, and x11proto-xext-dev installed.
For cross-compiling, that would be the :i386 versions.
MX Linux packager and developer

jfmxl
Posts: 30
Joined: 2014-10-03 12:12

Re: inferno build faiils

#15 Post by jfmxl »

jfl@wsdeb:~/Downloads/inferno-os$ sudo apt-get install x11proto-xext-dev:i386
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'x11proto-xext-dev' instead of 'x11proto-xext-dev:i386'
x11proto-xext-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

As far as I know there is no amd64 version of inferno. Was my syntax above correct?

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: inferno build faiils

#16 Post by stevepusser »

Some programs won't compile on 64-bit, but they are rather rare. You could experiment with a 64-bit compile just to see what happens, unless the docs specifically state that it won't build.
MX Linux packager and developer

Post Reply