Opened 21 years ago

Closed 21 years ago

Last modified 20 years ago

#1454 closed defect (fixed)

impossible to build py-ogg-1.3

Reported by: stb@… Owned by: mww@…
Priority: Normal Milestone:
Component: ports Version: 1.0
Keywords: Cc:
Port:

Description

When trying to run python setup.py build, the different modules seem to compile fine, but at link stage, the error "ld: multiple definitions of symbol _Py_OggError" is produced. It looks like _Py_OggError is defined in every module. The behaviour is the same when building from the source downloaded from vorbis.com.

Change History (4)

comment:1 Changed 21 years ago by mww@…

Owner: changed from darwinports-bugs@… to mww@…

could you please tell me: -which version of OS-X do you use? -which version of Python do you use? [the one that gets involved when you type python at the prompt]

it works here for me on 10.3 with Python 2.3 (from DarwinPorts)

comment:2 Changed 21 years ago by blb@…

I can reproduce this, on 10.3.2, gcc 3.3, python 2.3 (with the OS, not DP). It dies when trying to build _ogg.so:

gcc -Wl,-F. -Wl,-F. -bundle -framework Python build/temp.darwin-7.2.0-Power_Macintosh-2.3/ src/_oggmodule.o build/temp.darwin-7.2.0-Power_Macintosh-2.3/src/pyoggpacket.o build/ temp.darwin-7.2.0-Power_Macintosh-2.3/src/pyoggstreamstate.o build/temp.darwin-7.2.0- Power_Macintosh-2.3/src/pyoggpage.o build/temp.darwin-7.2.0-Power_Macintosh-2.3/src/ pyoggpackbuff.o build/temp.darwin-7.2.0-Power_Macintosh-2.3/src/pyoggsyncstate.o build/ temp.darwin-7.2.0-Power_Macintosh-2.3/src/general.o -L/opt/local/lib -logg -o build/ lib.darwin-7.2.0-Power_Macintosh-2.3/ogg/_ogg.so ld: multiple definitions of symbol _Py_OggError build/temp.darwin-7.2.0-Power_Macintosh-2.3/src/_oggmodule.o definition of _Py_OggError in section (DATA,common) build/temp.darwin-7.2.0-Power_Macintosh-2.3/src/pyoggstreamstate.o definition of _Py_OggError in section (DATA,common) build/temp.darwin-7.2.0-Power_Macintosh-2.3/src/pyoggpage.o definition of _Py_OggError in section (DATA,common) build/temp.darwin-7.2.0-Power_Macintosh-2.3/src/pyoggpackbuff.o definition of _Py_OggError in section (DATA,common) build/temp.darwin-7.2.0-Power_Macintosh-2.3/src/pyoggsyncstate.o definition of _Py_OggError in section (DATA,common) error: command 'gcc' failed with exit status 1 Warning: the following items did not execute (for py-ogg): com.apple.destroot com.apple.build

comment:3 Changed 21 years ago by mww@…

Rats. I can't find any duplicate declarations of *OggError in the .c files nor multiple declarations by implicite includes. As it won't make much sense installing the python modules outside site-packages dir of the Python used, I'll change the dep. of all py- modules to path:${prefix}/bin/python, so that a DP Python will be needed.

comment:4 Changed 21 years ago by mww@…

Resolution: fixed
Status: newclosed

commited patch submitted by blb@ - THANKS!

Note: See TracTickets for help on using tickets.