Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

configure fails X11 options on x86_64 system #3703

Closed
vicuna opened this issue Jun 26, 2005 · 1 comment
Closed

configure fails X11 options on x86_64 system #3703

vicuna opened this issue Jun 26, 2005 · 1 comment
Labels

Comments

@vicuna
Copy link

vicuna commented Jun 26, 2005

Original bug ID: 3703
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)

Bug description

Full_Name: Sakshale eQuorian
Version: 3.08.3
OS: FC3 i86_64
Submission from: c-67-174-236-164.hsd1.ca.comcast.net (67.174.236.164)

While trying to build on an x64 system, make failed on
the X11 libraries.


make world

[snip]
gcc -I../../byterun -I/usr/X11R6/include -O -fno-defer-pop -Wall
-D_FILE_OFFSET_BITS=64 -D_REENTRANT -fPIC -c -o subwindow.o
subwindow.c
../../boot/ocamlrun ../../tools/ocamlmklib -o graphics open.o draw.o
fill.o color.o text.o image.o make_img.o dump_img.o point_col.o
sound.o events.o subwindow.o -L/usr/X11R6/lib -lX11
/usr/bin/ld: skipping incompatible /usr/X11R6/lib/libX11.so when
searching for -lX11
/usr/bin/ld: skipping incompatible /usr/X11R6/lib/libX11.a when
searching for -lX11
/usr/bin/ld: cannot find -lX11
collect2: ld returned 1 exit status
make[1]: *** [libgraphics.a] Error 2

There are two versions installed and it got the wrong ones.

/usr/X11R6/include/X11/X.h
/usr/X11R6/lib64/Server/include/X.h

/usr/X11R6/lib/libX11.a
/usr/X11R6/lib64/libX11.a

So, I corrected the issue with the following commandline


./configure --x11include /usr/X11R6/lib64/Server/include
--x11lib /usr/X11R6/lib64

That got the following results.

Configuration for the "graph" library:
options for compiling .... -I/usr/X11R6/include
options for linking ...... -L/usr/X11R6/lib64 -lX11

Now the make completes without any serious errors.

I am not sure that -I/usr/X11R6/include is correct though,
given that I told it to look in /usr/X11R6/lib64/Server/include.

Sakshale

@vicuna
Copy link
Author

vicuna commented Jul 20, 2005

Comment author: administrator

Fixed in 3.08.4 by XL, 2005-04-17 (search is done is /usr/X11R6/lib64 before
/usr/X11R6/lib).

@vicuna vicuna closed this as completed Jul 20, 2005
@vicuna vicuna added the bug label Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant