Description of problem:I can no longer link against the X11 library. It finds the library all right, but rejectes it as incompatible. Typical text is: g77 -fno-backslash -fPIC -o pgdemo1 /data/src/pgplot/pgplot/examples/pgdemo1.f -L`pwd` -lpgplot -lpng -lz -L/usr/X11R6/lib -lX11 /usr/bin/ld: skipping incompatible /usr/X11R6/lib/libX11.so when searching for -lX11 /usr/bin/ld: cannot find -lX11 collect2: ld returned 1 exit status The other libraries indicated were all compiled with the -fPIC option. I tried this with and without. I should say this is the new version of Fedora.Core 1 for the AMD-64 bit processor. I'm running it on a Compaq Presario R3000Z. Version-Release number of selected component (if applicable): gcc -v Reading specs from /usr/lib/gcc-lib/x86_64-redhat-linux/3.3.2/specs Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --host=x86_64-redhat-linux Thread model: posix gcc version 3.3.2 20031022 (Red Hat Linux 3.3.2-1) How reproducible: I have other makefiles that also fail. They all use the pgplot package (which I recompiled here, fresh) which is why I need Xll. Steps to Reproduce: 1. shown above 2. 3. Actual results: above Expected results: clean complication and an executable Additional info:
If this is on x86-64 and you're not using -m32 option to create a 32-bit program, then you obviously have to use -L/usr/X11R6/lib64/ instead of -L/usr/X11R6/lib/.