matplotlib-1.0.1 with Python 2.7.2 build error

Dear Users,

I am trying to add module matplotlib-1.0.1 to my Python 2.7.2 on an IBM power6 with Aix 5.3 . I get the below error when I issue the command

python setip.py build did any one faced same issue or can I get any expert suggestion for fixing this issue.

with best regards,

Sudheer

xlc++ xlc -bI:/gpfs1/sjo/pkgs/local/lib/python2.7/config/python.exp build/temp.aix-5.3-2.7/src/ft2font.o build/temp.aix-5.3-2.7/src/mplutils.o build/temp.aix-5.3-2.7/CXX/cxx_extensions.o build/temp.aix-5.3-2.7/CXX/cxxsupport.o build/temp.aix-5.3-2.7/CXX/IndirectPythonInterface.o build/temp.aix-5.3-2.7/CXX/cxxextensions.o -L/opt/freeware/lib -L/usr/local/lib -lfreetype -lz -lstdc++ -lm -o build/lib.aix-5.3-2.7/matplotlib/ft2font.so

sjo@…3811…>xlc++ -bI:/gpfs1/sjo/pkgs/local/lib/python2.7/config/python.exp build/temp.aix-5.3-2.7/src/ft2font.o build/temp.aix-5.3-2.7/src/mplutils.o build/temp.aix-5.3-2.7/CXX/cxx_extensions.o build/temp.aix-5.3-2.7/CXX/cxxsupport.o build/temp.aix-5.3-2.7/CXX/IndirectPythonInterface.o build/temp.aix-5.3-2.7/CXX/cxxextensions.o -L/opt/freeware/lib -L/usr/local/lib -lfreetype -lz -lstdc++ -lm -o build/lib.aix-5.3-2.7/matplotlib/ft2font.so

ld: 0711-317 ERROR: Undefined symbol: .main

ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.

i compiled with -bnoquiet option and get below details

(ld): setopt 64

(ld): halt 4

(ld): setfflag 4

(ld): savename build/lib.aix-5.3-2.7/matplotlib/ft2font.so

(ld): filelist 15 2

(ld): i /lib/crt0_64.o

(ld): i build/temp.aix-5.3-2.7/src/ft2font.o

(ld): i build/temp.aix-5.3-2.7/src/mplutils.o

(ld): i build/temp.aix-5.3-2.7/CXX/cxx_extensions.o

(ld): i build/temp.aix-5.3-2.7/CXX/cxxsupport.o

(ld): i build/temp.aix-5.3-2.7/CXX/IndirectPythonInterface.o

(ld): i build/temp.aix-5.3-2.7/CXX/cxxextensions.o

(ld): lib /opt/freeware/lib/libfreetype.a

(ld): lib /opt/freeware/lib/libz.a

(ld): lib /opt/freeware/lib/libstdc++.a

(ld): lib /usr/lib/libm.a

(ld): lib /usr/vac/lib/libxlopt.a

(ld): lib /usr/vac/lib/libxl.a

(ld): lib /usr/vacpp/lib/libC.a

(ld): lib /usr/lib/libc.a

LIBRARY: Shared object libfreetype.a[libfreetype.so.6]: 343 symbols imported.

LIBRARY: Shared object libz.a[libz.so.1]: 72 symbols imported.

LIBRARY: Symbols imported from import file /usr/vacpp/lib/libC.a[shr_32.imp]: 0

LIBRARY: Symbols imported from import file /usr/vacpp/lib/libC.a[shr2_32.imp]: 0

LIBRARY: Symbols imported from import file /usr/vacpp/lib/libC.a[shr3_32.imp]: 0

LIBRARY: Symbols imported from import file /usr/vacpp/lib/libC.a[ansi_32.imp]: 0

LIBRARY: Symbols imported from import file /usr/vacpp/lib/libC.a[shr_64.imp]: 383

LIBRARY: Symbols imported from import file /usr/vacpp/lib/libC.a[shr2_64.imp]: 24

LIBRARY: Symbols imported from import file /usr/vacpp/lib/libC.a[shr3_64.imp]: 27

LIBRARY: Symbols imported from import file /usr/vacpp/lib/libC.a[ansi_64.imp]: 2448

LIBRARY: Shared object libC.a[ansi_64.o]: 2658 symbols imported.

LIBRARY: Shared object libc.a[shr_64.o]: 2669 symbols imported.

LIBRARY: Shared object libc.a[posix_aio_64.o]: 20 symbols imported.

LIBRARY: Shared object libc.a[aio_64.o]: 18 symbols imported.

LIBRARY: Shared object libc.a[pse_64.o]: 5 symbols imported.

LIBRARY: Shared object libc.a[dl_64.o]: 4 symbols imported.

LIBRARY: Shared object libc.a[pty_64.o]: 1 symbols imported.

FILELIST: Number of previously inserted files processed: 15

(ld): imports /gpfs1/sjo/pkgs/local/lib/python2.7/config/python.exp

IMPORTS: Symbols imported from import file /gpfs1/sjo/pkgs/local/lib/python2.7/config/python.exp: 1206

(ld): resolve

RESOLVE: 63 of 18106 symbols were kept.

(ld): addgl /usr/lib/glink64.o

ADDGL: Glink code added for 11 symbols.

(ld): er full

ld: 0711-318 ERROR: Undefined symbols were found.

The following symbols are in error:

Symbol Inpndx TY CL Source-File(Object-File) OR Import-File{Shared-object}

RLD: Address Section Rld-type Referencing Symbol

···

.main [10] ER PR crt0_64.s(/lib/crt0_64.o)

00000098 .text R_RBR [34] .__start

ER: The return code is 8.

ld: 0711-317 ERROR: Undefined symbol: .main


with best regards

Sudheer


Sudheer Joseph
Scientist

INDIAN NATIONAL CENTRE FOR OCEAN INFORMATION SERVICES (INCOIS)
MINISTRY OF EARTH SCIENCES, GOVERNMENT OF INDIA

“OCEAN VALLEY” PRAGATHI NAGAR (BO)
OPP.JNTU, NIZAMPET SO
Andhra Pradesh, India. PIN- 500 090.
TEl:+91-40-23044600®,Tel:+91-9440832534(Mobile)

Tel:+91-40-23886047(O),Fax:+91-40-23892910(O)
E-mail: sudheer.joseph@…9…; sjo@…3813…

Web- http://oppamthadathil.tripod.com
--------------* ---------------
"The ultimate measure of a man is
not where he stands in moments of

comfort and convenience, but where
he stands at times of challenge and
controversy."
Martin Luther King, Jr.
“What we have done for ourselves alone dies with us.
What we have done for others and the world remains and is immortal.”

  • Albert Pines