x11 on os x 10.5.x
Barry Smith
bsmith at mcs.anl.gov
Sun Jun 22 11:25:06 CDT 2008
Please try editing python/PETSc/packages/X11.py and locate the line
for ext in ['.a', '.so', '.sl', '.dll.a']:
replace with
for ext in ['.a', '.so', '.sl', '.dll.a','.dylib']:
Barry
Why this is not a PETSc patch I have no clue!
On Jun 22, 2008, at 12:17 AM, Gideon Simpson wrote:
> Does anyone know what flags to feed petsc 2.3.3 to get x11
> functionality working with OS X 10.5.x? The following error shows
> up in my configure log:
>
> TEST configureLibrary from PETSc.packages.X11(/opt/petsc-2.3.3-p13/
> python/PETSc/packages/X11.py:93)
> TESTING: configureLibrary from PETSc.packages.X11(python/PETSc/
> packages/X11.py:93)
> Checks for X windows, sets PETSC_HAVE_X11 if found, and defines
> X_CFLAGS, X_PRE_LIBS, X_LIBS, and X_EXTRA_LIBS
> sh: xmkmf
> Executing: xmkmf
> sh: imake -DUseInstalled -I/usr/X11/lib/X11/config
>
> sh: /usr/bin/make acfindx
> Executing: /usr/bin/make acfindx
> sh: X_INCLUDE_ROOT = /usr/X11/include
> X_USR_LIB_DIR = /usr/X11/lib
> X_LIB_DIR = /usr/X11/lib/X11
>
> Pushing language C
> sh: /opt/bin/mpicc -c -o conftest.o -fPIC -Wall -Wwrite-strings -
> Wno-strict-aliasing -g3 conftest.c
> Executing: /opt/bin/mpicc -c -o conftest.o -fPIC -Wall -Wwrite-
> strings -Wno-strict-aliasing -g3 conftest.c
> sh:
> Possible ERROR while running compiler: error message = {conftest.c:
> In function ‘main’:
> conftest.c:5: warning: implicit declaration of function ‘XSetWMName’
> }
> Source:
> #include "confdefs.h"
> #include "conffix.h"
>
> int main() {
> XSetWMName();
> ;
> return 0;
> }
> Pushing language C
> Popping language C
> sh: /opt/bin/mpicc -o conftest -Wl,-multiply_defined,suppress -Wl,-
> multiply_defined -Wl,suppress -Wl,-multiply_defined,suppress -Wl,-
> multiply_defined -Wl,suppress -Wl,-multiply_defined,suppress -Wl,-
> multiply_defined -Wl,suppress -fPIC -Wall -Wwrite-strings -Wno-
> strict-aliasing -g3 conftest.o -Wl,-rpath,/usr/lib/i686-apple-
> darwin9/4.2.1 -Wl,-rpath,/Library/Frameworks/Intel_MKL.framework/
> Versions/10.0.2.018/lib/32 -Wl,-rpath,. -Wl,-rpath,/usr/lib/gcc/i686-
> apple-darwin9/4.2.1 -Wl,-rpath,/usr/lib/gcc/i686-apple-
> darwin9/4.2.1/../../../i686-apple-darwin9/4.2.1 -Wl,-rpath,/usr/lib/
> gcc/i686-apple-darwin9/4.2.1/../../.. -lstdc++ -lcrt1.10.5.o -Wl,-
> rpath,/usr/lib/i686-apple-darwin9/4.2.1 -L/usr/lib/i686-apple-
> darwin9/4.2.1 -Wl,-rpath,/Library/Frameworks/Intel_MKL.framework/
> Versions/10.0.2.018/lib/32 -L/Library/Frameworks/Intel_MKL.framework/
> Versions/10.0.2.018/lib/32 -Wl,-rpath,. -L. -Wl,-rpath,/usr/lib/gcc/
> i686-apple-darwin9/4.2.1 -L/usr/lib/gcc/i686-apple-darwin9/4.2.1 -
> Wl,-rpath,/usr/lib/gcc/i686-apple-darwin9/4.2.1/../../../i686-apple-
> darwin9/4.2.1 -L/usr/lib/gcc/i686-apple-darwin9/4.2.1/../../../i686-
> apple-darwin9/4.2.1 -Wl,-rpath,/usr/lib/gcc/i686-apple-
> darwin9/4.2.1/../../.. -L/usr/lib/gcc/i686-apple-
> darwin9/4.2.1/../../.. -ldl -lgcc_s.10.5 -lSystem -ldl -lX11
> Executing: /opt/bin/mpicc -o conftest -Wl,-
> multiply_defined,suppress -Wl,-multiply_defined -Wl,suppress -Wl,-
> multiply_defined,suppress -Wl,-multiply_defined -Wl,suppress -Wl,-
> multiply_defined,suppress -Wl,-multiply_defined -Wl,suppress -fPIC -
> Wall -Wwrite-strings -Wno-strict-aliasing -g3 conftest.o -Wl,-
> rpath,/usr/lib/i686-apple-darwin9/4.2.1 -Wl,-rpath,/Library/
> Frameworks/Intel_MKL.framework/Versions/10.0.2.018/lib/32 -Wl,-
> rpath,. -Wl,-rpath,/usr/lib/gcc/i686-apple-darwin9/4.2.1 -Wl,-rpath,/
> usr/lib/gcc/i686-apple-darwin9/4.2.1/../../../i686-apple-
> darwin9/4.2.1 -Wl,-rpath,/usr/lib/gcc/i686-apple-
> darwin9/4.2.1/../../.. -lstdc++ -lcrt1.10.5.o -Wl,-rpath,/usr/lib/
> i686-apple-darwin9/4.2.1 -L/usr/lib/i686-apple-darwin9/4.2.1 -Wl,-
> rpath,/Library/Frameworks/Intel_MKL.framework/Versions/10.0.2.018/
> lib/32 -L/Library/Frameworks/Intel_MKL.framework/Versions/10.0.2.018/
> lib/32 -Wl,-rpath,. -L. -Wl,-rpath,/usr/lib/gcc/i686-apple-
> darwin9/4.2.1 -L/usr/lib/gcc/i686-apple-darwin9/4.2.1 -Wl,-rpath,/
> usr/lib/gcc/i686-apple-darwin9/4.2.1/../../../i686-apple-
> darwin9/4.2.1 -L/usr/lib/gcc/i686-apple-darwin9/4.2.1/../../../i686-
> apple-darwin9/4.2.1 -Wl,-rpath,/usr/lib/gcc/i686-apple-
> darwin9/4.2.1/../../.. -L/usr/lib/gcc/i686-apple-
> darwin9/4.2.1/../../.. -ldl -lgcc_s.10.5 -lSystem -ldl -lX11
> sh:
> Possible ERROR while running linker: ld: library not found for -lX11
> collect2: ld returned 1 exit status
> output: ret = 256
> error message = {ld: library not found for -lX11
> collect2: ld returned 1 exit status
> }
> Pushing language C
> Popping language C
> in /opt/bin/mpicc -o conftest -Wl,-multiply_defined,suppress -Wl,-
> multiply_defined -Wl,suppress -Wl,-multiply_defined,suppress -Wl,-
> multiply_defined -Wl,suppress -Wl,-multiply_defined,suppress -Wl,-
> multiply_defined -Wl,suppress -fPIC -Wall -Wwrite-strings -Wno-
> strict-aliasing -g3 conftest.o -Wl,-rpath,/usr/lib/i686-apple-
> darwin9/4.2.1 -Wl,-rpath,/Library/Frameworks/Intel_MKL.framework/
> Versions/10.0.2.018/lib/32 -Wl,-rpath,. -Wl,-rpath,/usr/lib/gcc/i686-
> apple-darwin9/4.2.1 -Wl,-rpath,/usr/lib/gcc/i686-apple-
> darwin9/4.2.1/../../../i686-apple-darwin9/4.2.1 -Wl,-rpath,/usr/lib/
> gcc/i686-apple-darwin9/4.2.1/../../.. -lstdc++ -lcrt1.10.5.o -Wl,-
> rpath,/usr/lib/i686-apple-darwin9/4.2.1 -L/usr/lib/i686-apple-
> darwin9/4.2.1 -Wl,-rpath,/Library/Frameworks/Intel_MKL.framework/
> Versions/10.0.2.018/lib/32 -L/Library/Frameworks/Intel_MKL.framework/
> Versions/10.0.2.018/lib/32 -Wl,-rpath,. -L. -Wl,-rpath,/usr/lib/gcc/
> i686-apple-darwin9/4.2.1 -L/usr/lib/gcc/i686-apple-darwin9/4.2.1 -
> Wl,-rpath,/usr/lib/gcc/i686-apple-darwin9/4.2.1/../../../i686-apple-
> darwin9/4.2.1 -L/usr/lib/gcc/i686-apple-darwin9/4.2.1/../../../i686-
> apple-darwin9/4.2.1 -Wl,-rpath,/usr/lib/gcc/i686-apple-
> darwin9/4.2.1/../../.. -L/usr/lib/gcc/i686-apple-
> darwin9/4.2.1/../../.. -ldl -lgcc_s.10.5 -lSystem -ldl -lX11
> Source:
> #include "confdefs.h"
> #include "conffix.h"
>
> int main() {
> XSetWMName();
> ;
> return 0;
> }
> Popping language C
> Could not find X11 libraries
>
More information about the petsc-users
mailing list