Installation still failing on Mac OS X 10.6.5 #19

Closed
j4mie opened this Issue Dec 29, 2010 · 6 comments

Comments

Projects
None yet
4 participants

j4mie commented Dec 29, 2010

Issue #11 doesn't seem to be fixed for me. I think I'm doing everything right:

brew install libev
mkvirtualenv bjoern
pip install bjoern

Full contents of pip.log below:

------------------------------------------------------------
/Users/jamie/.virtualenvs/bjoern/lib/python2.6/site-packages/pip-0.8.1-py2.6.egg/pip/runner.py run on Wed Dec 29 16:55:59 2010
Downloading/unpacking bjoern
  Running setup.py egg_info for package bjoern
    running egg_info
    writing pip-egg-info/bjoern.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/bjoern.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/bjoern.egg-info/dependency_links.txt
    warning: manifest_maker: standard file '-c' not found
    reading manifest file 'pip-egg-info/bjoern.egg-info/SOURCES.txt'
    writing manifest file 'pip-egg-info/bjoern.egg-info/SOURCES.txt'
Installing collected packages: bjoern
  Running setup.py install for bjoern
    Running command /Users/jamie/.virtualenvs/bjoern/bin/python -c "import setuptools;__file__='/Users/jamie/.virtualenvs/bjoern/build/bjoern/setup.py';execfile(__file__)" install --single-version-externally-managed --record /var/folders/jT/jTsZ5I2lHYODq98s5pizV++++TI/-Tmp-/pip-guk8Dz-record/install-record.txt --install-headers /Users/jamie/.virtualenvs/bjoern/bin/../include/site/python2.6
    running install
    running build
    running build_ext
    building 'bjoern' extension
    gcc-4.2 -Wl,-F. -bundle -undefined dynamic_lookup -arch i386 -arch ppc -arch x86_64 build/temp.macosx-10.6-universal-2.6/http-parser/http_parser.o build/temp.macosx-10.6-universal-2.6/bjoern/request.o build/temp.macosx-10.6-universal-2.6/bjoern/bjoernmodule.o build/temp.macosx-10.6-universal-2.6/bjoern/server.o build/temp.macosx-10.6-universal-2.6/bjoern/wsgi.o -lev -o build/lib.macosx-10.6-universal-2.6/bjoern.so
    ld: warning: in /usr/local/lib/libev.dylib, file was built for unsupported file format which is not the architecture being linked (i386)
    ld: duplicate symbol _StartResponse_Type in build/temp.macosx-10.6-universal-2.6/bjoern/server.o and build/temp.macosx-10.6-universal-2.6/bjoern/bjoernmodule.o for architecture i386
    collect2: ld returned 1 exit status
    ld: warning: in /usr/local/lib/libev.dylib, file was built for unsupported file format which is not the architecture being linked (ppc)
    ld: duplicate symbol _StartResponse_Type in build/temp.macosx-10.6-universal-2.6/bjoern/server.o and build/temp.macosx-10.6-universal-2.6/bjoern/bjoernmodule.o for architecture ppc
    collect2: ld returned 1 exit status
    ld: duplicate symbol _StartResponse_Type in build/temp.macosx-10.6-universal-2.6/bjoern/server.o and build/temp.macosx-10.6-universal-2.6/bjoern/bjoernmodule.o for architecture x86_64
    collect2: ld returned 1 exit status
    lipo: can't open input file: /var/folders/jT/jTsZ5I2lHYODq98s5pizV++++TI/-Tmp-//cchfuOFY.out (No such file or directory)
    error: command 'gcc-4.2' failed with exit status 1
    Complete output from command /Users/jamie/.virtualenvs/bjoern/bin/python -c "import setuptools;__file__='/Users/jamie/.virtualenvs/bjoern/build/bjoern/setup.py';execfile(__file__)" install --single-version-externally-managed --record /var/folders/jT/jTsZ5I2lHYODq98s5pizV++++TI/-Tmp-/pip-guk8Dz-record/install-record.txt --install-headers /Users/jamie/.virtualenvs/bjoern/bin/../include/site/python2.6:
    running install

running build

running build_ext

building 'bjoern' extension

gcc-4.2 -Wl,-F. -bundle -undefined dynamic_lookup -arch i386 -arch ppc -arch x86_64 build/temp.macosx-10.6-universal-2.6/http-parser/http_parser.o build/temp.macosx-10.6-universal-2.6/bjoern/request.o build/temp.macosx-10.6-universal-2.6/bjoern/bjoernmodule.o build/temp.macosx-10.6-universal-2.6/bjoern/server.o build/temp.macosx-10.6-universal-2.6/bjoern/wsgi.o -lev -o build/lib.macosx-10.6-universal-2.6/bjoern.so

ld: warning: in /usr/local/lib/libev.dylib, file was built for unsupported file format which is not the architecture being linked (i386)

ld: duplicate symbol _StartResponse_Type in build/temp.macosx-10.6-universal-2.6/bjoern/server.o and build/temp.macosx-10.6-universal-2.6/bjoern/bjoernmodule.o for architecture i386

collect2: ld returned 1 exit status

ld: warning: in /usr/local/lib/libev.dylib, file was built for unsupported file format which is not the architecture being linked (ppc)

ld: duplicate symbol _StartResponse_Type in build/temp.macosx-10.6-universal-2.6/bjoern/server.o and build/temp.macosx-10.6-universal-2.6/bjoern/bjoernmodule.o for architecture ppc

collect2: ld returned 1 exit status

ld: duplicate symbol _StartResponse_Type in build/temp.macosx-10.6-universal-2.6/bjoern/server.o and build/temp.macosx-10.6-universal-2.6/bjoern/bjoernmodule.o for architecture x86_64

collect2: ld returned 1 exit status

lipo: can't open input file: /var/folders/jT/jTsZ5I2lHYODq98s5pizV++++TI/-Tmp-//cchfuOFY.out (No such file or directory)

error: command 'gcc-4.2' failed with exit status 1

----------------------------------------
Command /Users/jamie/.virtualenvs/bjoern/bin/python -c "import setuptools;__file__='/Users/jamie/.virtualenvs/bjoern/build/bjoern/setup.py';execfile(__file__)" install --single-version-externally-managed --record /var/folders/jT/jTsZ5I2lHYODq98s5pizV++++TI/-Tmp-/pip-guk8Dz-record/install-record.txt --install-headers /Users/jamie/.virtualenvs/bjoern/bin/../include/site/python2.6 failed with error code 1
Exception information:
Traceback (most recent call last):
  File "/Users/jamie/.virtualenvs/bjoern/lib/python2.6/site-packages/pip-0.8.1-py2.6.egg/pip/basecommand.py", line 130, in main
    self.run(options, args)
  File "/Users/jamie/.virtualenvs/bjoern/lib/python2.6/site-packages/pip-0.8.1-py2.6.egg/pip/commands/install.py", line 228, in run
    requirement_set.install(install_options, global_options)
  File "/Users/jamie/.virtualenvs/bjoern/lib/python2.6/site-packages/pip-0.8.1-py2.6.egg/pip/req.py", line 1043, in install
    requirement.install(install_options, global_options)
  File "/Users/jamie/.virtualenvs/bjoern/lib/python2.6/site-packages/pip-0.8.1-py2.6.egg/pip/req.py", line 559, in install
    cwd=self.source_dir, filter_stdout=self._filter_install, show_stdout=False)
  File "/Users/jamie/.virtualenvs/bjoern/lib/python2.6/site-packages/pip-0.8.1-py2.6.egg/pip/__init__.py", line 249, in call_subprocess
    % (command_desc, proc.returncode))
InstallationError: Command /Users/jamie/.virtualenvs/bjoern/bin/python -c "import setuptools;__file__='/Users/jamie/.virtualenvs/bjoern/build/bjoern/setup.py';execfile(__file__)" install --single-version-externally-managed --record /var/folders/jT/jTsZ5I2lHYODq98s5pizV++++TI/-Tmp-/pip-guk8Dz-record/install-record.txt --install-headers /Users/jamie/.virtualenvs/bjoern/bin/../include/site/python2.6 failed with error code 1
Owner

jonashaag commented Dec 29, 2010

I guess you have to disable universal binaries compilation (some setuptools configuration flag maybe?) or compile libev as universal binary.

jahmad commented Dec 29, 2010

if (and only if) that's the problem, you could try: export ARCHFLAGS="-arch x86_64", before retry compiling bjoern.

j4mie commented Dec 29, 2010

Thanks @jahmad - that changes the error message, but doesn't solve the issue. New pip.log below:

------------------------------------------------------------
/Users/jamie/.virtualenvs/bjoern/lib/python2.6/site-packages/pip-0.8.1-py2.6.egg/pip/runner.py run on Wed Dec 29 19:37:27 2010
Downloading/unpacking bjoern
  Running setup.py egg_info for package bjoern
    running egg_info
    writing pip-egg-info/bjoern.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/bjoern.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/bjoern.egg-info/dependency_links.txt
    warning: manifest_maker: standard file '-c' not found
    reading manifest file 'pip-egg-info/bjoern.egg-info/SOURCES.txt'
    writing manifest file 'pip-egg-info/bjoern.egg-info/SOURCES.txt'
Installing collected packages: bjoern
  Running setup.py install for bjoern
    Running command /Users/jamie/.virtualenvs/bjoern/bin/python -c "import setuptools;__file__='/Users/jamie/.virtualenvs/bjoern/build/bjoern/setup.py';execfile(__file__)" install --single-version-externally-managed --record /var/folders/jT/jTsZ5I2lHYODq98s5pizV++++TI/-Tmp-/pip-RMGZ5m-record/install-record.txt --install-headers /Users/jamie/.virtualenvs/bjoern/bin/../include/site/python2.6
    running install
    running build
    running build_ext
    building 'bjoern' extension
    gcc-4.2 -Wl,-F. -bundle -undefined dynamic_lookup -arch x86_64 build/temp.macosx-10.6-universal-2.6/http-parser/http_parser.o build/temp.macosx-10.6-universal-2.6/bjoern/request.o build/temp.macosx-10.6-universal-2.6/bjoern/bjoernmodule.o build/temp.macosx-10.6-universal-2.6/bjoern/server.o build/temp.macosx-10.6-universal-2.6/bjoern/wsgi.o -lev -o build/lib.macosx-10.6-universal-2.6/bjoern.so
    ld: duplicate symbol _StartResponse_Type in build/temp.macosx-10.6-universal-2.6/bjoern/server.o and build/temp.macosx-10.6-universal-2.6/bjoern/bjoernmodule.o
    collect2: ld returned 1 exit status
    error: command 'gcc-4.2' failed with exit status 1
    Complete output from command /Users/jamie/.virtualenvs/bjoern/bin/python -c "import setuptools;__file__='/Users/jamie/.virtualenvs/bjoern/build/bjoern/setup.py';execfile(__file__)" install --single-version-externally-managed --record /var/folders/jT/jTsZ5I2lHYODq98s5pizV++++TI/-Tmp-/pip-RMGZ5m-record/install-record.txt --install-headers /Users/jamie/.virtualenvs/bjoern/bin/../include/site/python2.6:
    running install

running build

running build_ext

building 'bjoern' extension

gcc-4.2 -Wl,-F. -bundle -undefined dynamic_lookup -arch x86_64 build/temp.macosx-10.6-universal-2.6/http-parser/http_parser.o build/temp.macosx-10.6-universal-2.6/bjoern/request.o build/temp.macosx-10.6-universal-2.6/bjoern/bjoernmodule.o build/temp.macosx-10.6-universal-2.6/bjoern/server.o build/temp.macosx-10.6-universal-2.6/bjoern/wsgi.o -lev -o build/lib.macosx-10.6-universal-2.6/bjoern.so

ld: duplicate symbol _StartResponse_Type in build/temp.macosx-10.6-universal-2.6/bjoern/server.o and build/temp.macosx-10.6-universal-2.6/bjoern/bjoernmodule.o

collect2: ld returned 1 exit status

error: command 'gcc-4.2' failed with exit status 1

----------------------------------------
Command /Users/jamie/.virtualenvs/bjoern/bin/python -c "import setuptools;__file__='/Users/jamie/.virtualenvs/bjoern/build/bjoern/setup.py';execfile(__file__)" install --single-version-externally-managed --record /var/folders/jT/jTsZ5I2lHYODq98s5pizV++++TI/-Tmp-/pip-RMGZ5m-record/install-record.txt --install-headers /Users/jamie/.virtualenvs/bjoern/bin/../include/site/python2.6 failed with error code 1
Exception information:
Traceback (most recent call last):
  File "/Users/jamie/.virtualenvs/bjoern/lib/python2.6/site-packages/pip-0.8.1-py2.6.egg/pip/basecommand.py", line 130, in main
    self.run(options, args)
  File "/Users/jamie/.virtualenvs/bjoern/lib/python2.6/site-packages/pip-0.8.1-py2.6.egg/pip/commands/install.py", line 228, in run
    requirement_set.install(install_options, global_options)
  File "/Users/jamie/.virtualenvs/bjoern/lib/python2.6/site-packages/pip-0.8.1-py2.6.egg/pip/req.py", line 1043, in install
    requirement.install(install_options, global_options)
  File "/Users/jamie/.virtualenvs/bjoern/lib/python2.6/site-packages/pip-0.8.1-py2.6.egg/pip/req.py", line 559, in install
    cwd=self.source_dir, filter_stdout=self._filter_install, show_stdout=False)
  File "/Users/jamie/.virtualenvs/bjoern/lib/python2.6/site-packages/pip-0.8.1-py2.6.egg/pip/__init__.py", line 249, in call_subprocess
    % (command_desc, proc.returncode))
InstallationError: Command /Users/jamie/.virtualenvs/bjoern/bin/python -c "import setuptools;__file__='/Users/jamie/.virtualenvs/bjoern/build/bjoern/setup.py';execfile(__file__)" install --single-version-externally-managed --record /var/folders/jT/jTsZ5I2lHYODq98s5pizV++++TI/-Tmp-/pip-RMGZ5m-record/install-record.txt --install-headers /Users/jamie/.virtualenvs/bjoern/bin/../include/site/python2.6 failed with error code 1
Owner

jonashaag commented Dec 29, 2010

Try rm -r build/ before each build.

j4mie commented Dec 29, 2010

Tried in a fresh new virtualenv. Much bigger pip log, but looks like the same error:

------------------------------------------------------------
/Users/jamie/.virtualenvs/bjoern/lib/python2.6/site-packages/pip-0.8.1-py2.6.egg/pip/runner.py run on Wed Dec 29 19:59:18 2010
Downloading/unpacking bjoern
  Getting page http://pypi.python.org/simple/bjoern
  URLs to search for versions for bjoern:
  * http://pypi.python.org/simple/bjoern/
  Getting page https://github.com/jonashaag/bjoern
  Analyzing links from page http://pypi.python.org/simple/bjoern/
    Found link http://pypi.python.org/packages/source/b/bjoern/bjoern-1.0.tar.gz#md5=bc604e2f7d71342c7742dee4717721e9 (from http://pypi.python.org/simple/bjoern/), version: 1.0
    Skipping link https://github.com/jonashaag/bjoern (from http://pypi.python.org/simple/bjoern/); not a file
    Skipping link http://github.com/ry/http-parser (from http://pypi.python.org/simple/bjoern/); not a file
    Skipping link http://software.schmorp.de/pkg/libev.html (from http://pypi.python.org/simple/bjoern/); unknown archive format: .html
    Skipping link http://www.python.org/dev/peps/pep-0333/ (from http://pypi.python.org/simple/bjoern/); not a file
    Skipping link http://www.python.org/dev/peps/pep-0333/#the-write-callable (from http://pypi.python.org/simple/bjoern/); not a file
  Analyzing links from page https://github.com/jonashaag/bjoern
    Skipping link https://github.com/opensearch.xml (from https://github.com/jonashaag/bjoern); unknown archive format: .xml
    Skipping link https://github.com/fluidicon.png (from https://github.com/jonashaag/bjoern); unknown archive format: .png
    Skipping link https://assets1.github.com/stylesheets/bundle_common.css?ac67cac1f98b15ff2b0e1f9b50ff0c39b573d734 (from https://github.com/jonashaag/bjoern); unknown archive format: .css
    Skipping link https://assets0.github.com/stylesheets/bundle_github.css?ac67cac1f98b15ff2b0e1f9b50ff0c39b573d734 (from https://github.com/jonashaag/bjoern); unknown archive format: .css
    Skipping link https://github.com/jonashaag/bjoern/commits/master.atom (from https://github.com/jonashaag/bjoern); unknown archive format: .atom
    Skipping link https://github.com (from https://github.com/jonashaag/bjoern); not a file
    Skipping link https://github.com/plans (from https://github.com/jonashaag/bjoern); not a file
    Skipping link https://github.com/explore (from https://github.com/jonashaag/bjoern); not a file
    Skipping link https://github.com/features (from https://github.com/jonashaag/bjoern); not a file
    Skipping link https://github.com/blog (from https://github.com/jonashaag/bjoern); not a file
    Skipping link https://github.com/login (from https://github.com/jonashaag/bjoern); not a file
    Skipping link https://github.com/jonashaag (from https://github.com/jonashaag/bjoern); not a file
    Skipping link https://github.com/jonashaag/bjoern/admin (from https://github.com/jonashaag/bjoern); not a file
    Skipping link https://github.com/jonashaag/bjoern/toggle_watch (from https://github.com/jonashaag/bjoern); not a file
    Skipping link https://github.com/jonashaag/bjoern/fork (from https://github.com/jonashaag/bjoern); not a file
    Skipping link https://github.com/jonashaag/bjoern/watchers (from https://github.com/jonashaag/bjoern); not a file
    Skipping link https://github.com/jonashaag/bjoern/network (from https://github.com/jonashaag/bjoern); not a file
    Skipping link https://github.com/jonashaag/bjoern/commits/master (from https://github.com/jonashaag/bjoern); not a file
    Skipping link https://github.com/jonashaag/bjoern/pulls (from https://github.com/jonashaag/bjoern); not a file
    Skipping link https://github.com/jonashaag/bjoern/issues (from https://github.com/jonashaag/bjoern); not a file
    Skipping link https://github.com/jonashaag/bjoern/graphs (from https://github.com/jonashaag/bjoern); not a file
    Skipping link https://github.com/jonashaag/bjoern/tree/1.0 (from https://github.com/jonashaag/bjoern); unknown archive format: .0
    Skipping link https://github.com/jonashaag/bjoern/branches (from https://github.com/jonashaag/bjoern); not a file
    Skipping link https://github.com/jonashaag/bjoern/downloads (from https://github.com/jonashaag/bjoern); not a file
    Skipping link https://github.com/jonashaag/bjoern#readme (from https://github.com/jonashaag/bjoern); not a file
    Skipping link http:// (from https://github.com/jonashaag/bjoern); not a file
    Skipping link https://github.com/jonashaag/bjoern.git (from https://github.com/jonashaag/bjoern); unknown archive format: .git
    Skipping link git://github.com/jonashaag/bjoern.git (from https://github.com/jonashaag/bjoern); unknown archive format: .git
    Skipping link https://github.com/jonashaag/bjoern/commit/edb39cac12fefbc72e856e7156fcc6f5d67f9a64 (from https://github.com/jonashaag/bjoern); not a file
    Skipping link https://github.com/jonashaag/bjoern/tree/edb39cac12fefbc72e856e7156fcc6f5d67f9a64 (from https://github.com/jonashaag/bjoern); not a file
    Skipping link https://github.com/jonashaag/bjoern/tree/0793bfa73eeca4f621d970a3450128ce2d0fb956 (from https://github.com/jonashaag/bjoern); not a file
    Skipping link https://github.com/jonashaag/bjoern/commits/master/ (from https://github.com/jonashaag/bjoern); not a file
    Skipping link https://github.com/jonashaag/bjoern/tree/edb39cac12fefbc72e856e7156fcc6f5d67f9a64/bjoern (from https://github.com/jonashaag/bjoern); not a file
    Skipping link https://github.com/jonashaag/bjoern/commit/f0fbe788b915b80184ce166a35dafd2feac3969f (from https://github.com/jonashaag/bjoern); not a file
    Skipping link https://github.com/jonashaag/bjoern/tree/edb39cac12fefbc72e856e7156fcc6f5d67f9a64/tests (from https://github.com/jonashaag/bjoern); not a file
    Skipping link https://github.com/jonashaag/bjoern/commit/1fe9b00170ec05e8e4cfabbda2efcee6d0ee19f7 (from https://github.com/jonashaag/bjoern); not a file
    Skipping link https://github.com/jonashaag/bjoern/blob/edb39cac12fefbc72e856e7156fcc6f5d67f9a64/.gitignore (from https://github.com/jonashaag/bjoern); not a file
    Skipping link https://github.com/jonashaag/bjoern/commit/75150bb62e0feee9697abd57f443637cd54a1a43 (from https://github.com/jonashaag/bjoern); not a file
    Skipping link https://github.com/jonashaag/bjoern/blob/edb39cac12fefbc72e856e7156fcc6f5d67f9a64/.gitmodules (from https://github.com/jonashaag/bjoern); not a file
    Skipping link https://github.com/jonashaag/bjoern/commit/a40e79440bb57b39c526ba57ab42abd89703a679 (from https://github.com/jonashaag/bjoern); not a file
    Skipping link https://github.com/jonashaag/bjoern/blob/edb39cac12fefbc72e856e7156fcc6f5d67f9a64/KNOWN_ISSUES (from https://github.com/jonashaag/bjoern); not a file
    Skipping link https://github.com/jonashaag/bjoern/commit/d045e46f0fb348ec5812d0d48915879bc42e7341 (from https://github.com/jonashaag/bjoern); not a file
    Skipping link https://github.com/jonashaag/bjoern/blob/edb39cac12fefbc72e856e7156fcc6f5d67f9a64/LICENSE (from https://github.com/jonashaag/bjoern); not a file
    Skipping link https://github.com/jonashaag/bjoern/commit/45c9532b81bd15213e28587e76c0101468663347 (from https://github.com/jonashaag/bjoern); not a file
    Skipping link https://github.com/jonashaag/bjoern/blob/edb39cac12fefbc72e856e7156fcc6f5d67f9a64/MANIFEST.in (from https://github.com/jonashaag/bjoern); unknown archive format: .in
    Skipping link https://github.com/jonashaag/bjoern/commit/cc5fce65e4e6bcba1c7438c5d405d4b3850dbb76 (from https://github.com/jonashaag/bjoern); not a file
    Skipping link https://github.com/jonashaag/bjoern/blob/edb39cac12fefbc72e856e7156fcc6f5d67f9a64/Makefile (from https://github.com/jonashaag/bjoern); not a file
    Skipping link https://github.com/jonashaag/bjoern/commit/191ca9e2d4d9a07bdac8e2eb0a3f25eedb152f62 (from https://github.com/jonashaag/bjoern); not a file
    Skipping link https://github.com/jonashaag/bjoern/blob/edb39cac12fefbc72e856e7156fcc6f5d67f9a64/README.rst (from https://github.com/jonashaag/bjoern); unknown archive format: .rst
    Skipping link https://github.com/jonashaag/bjoern/blob/edb39cac12fefbc72e856e7156fcc6f5d67f9a64/TODO (from https://github.com/jonashaag/bjoern); not a file
    Skipping link https://github.com/jonashaag/bjoern/commit/c46fe2d273ebe8c2ee0cc8d116262639d48d02f3 (from https://github.com/jonashaag/bjoern); not a file
    Skipping link https://github.com/jonashaag/bjoern/commit/30b125122ecca1f1e80e71e44f670d05b798e549 (from https://github.com/jonashaag/bjoern); not a file
    Skipping link https://github.com/jonashaag/bjoern/blob/edb39cac12fefbc72e856e7156fcc6f5d67f9a64/setup.py (from https://github.com/jonashaag/bjoern); unknown archive format: .py
    Skipping link https://github.com/jonashaag/bjoern/commit/0cd4c13f37a3010093daa86fdb13ab1cac28917c (from https://github.com/jonashaag/bjoern); not a file
    Skipping link http://mxcl.github.com/homebrew/ (from https://github.com/jonashaag/bjoern); not a file
    Skipping link http://www.rackspace.com (from https://github.com/jonashaag/bjoern); not a file
    Skipping link http://www.rackspace.com%20 (from https://github.com/jonashaag/bjoern); not a file
    Skipping link http://www.rackspacecloud.com (from https://github.com/jonashaag/bjoern); not a file
    Skipping link http://support.github.com (from https://github.com/jonashaag/bjoern); not a file
    Skipping link https://github.com/training (from https://github.com/jonashaag/bjoern); not a file
    Skipping link http://jobs.github.com (from https://github.com/jonashaag/bjoern); not a file
    Skipping link http://shop.github.com (from https://github.com/jonashaag/bjoern); not a file
    Skipping link https://github.com/contact (from https://github.com/jonashaag/bjoern); not a file
    Skipping link http://develop.github.com (from https://github.com/jonashaag/bjoern); not a file
    Skipping link http://status.github.com (from https://github.com/jonashaag/bjoern); not a file
    Skipping link https://github.com/site/terms (from https://github.com/jonashaag/bjoern); not a file
    Skipping link https://github.com/site/privacy (from https://github.com/jonashaag/bjoern); not a file
    Skipping link https://github.com/security (from https://github.com/jonashaag/bjoern); not a file
    Skipping link https://github.com/jonashaag/bjoern?locale=de (from https://github.com/jonashaag/bjoern); not a file
    Skipping link https://github.com/jonashaag/bjoern?locale=fr (from https://github.com/jonashaag/bjoern); not a file
    Skipping link https://github.com/jonashaag/bjoern?locale=ja (from https://github.com/jonashaag/bjoern); not a file
    Skipping link https://github.com/jonashaag/bjoern?locale=pt-BR (from https://github.com/jonashaag/bjoern); not a file
    Skipping link https://github.com/jonashaag/bjoern?locale=ru (from https://github.com/jonashaag/bjoern); not a file
    Skipping link https://github.com/jonashaag/bjoern?locale=zh (from https://github.com/jonashaag/bjoern); not a file
    Skipping link https://github.com/jonashaag/bjoern?locale=en (from https://github.com/jonashaag/bjoern); not a file
    Skipping link https://github.com/jonashaag/bjoern?locale=af (from https://github.com/jonashaag/bjoern); not a file
    Skipping link https://github.com/jonashaag/bjoern?locale=ca (from https://github.com/jonashaag/bjoern); not a file
    Skipping link https://github.com/jonashaag/bjoern?locale=cs (from https://github.com/jonashaag/bjoern); not a file
    Skipping link https://github.com/jonashaag/bjoern?locale=es (from https://github.com/jonashaag/bjoern); not a file
    Skipping link https://github.com/jonashaag/bjoern?locale=hr (from https://github.com/jonashaag/bjoern); not a file
    Skipping link https://github.com/jonashaag/bjoern?locale=id (from https://github.com/jonashaag/bjoern); not a file
    Skipping link https://github.com/jonashaag/bjoern?locale=it (from https://github.com/jonashaag/bjoern); not a file
    Skipping link https://github.com/jonashaag/bjoern?locale=nl (from https://github.com/jonashaag/bjoern); not a file
    Skipping link https://github.com/jonashaag/bjoern?locale=no (from https://github.com/jonashaag/bjoern); not a file
    Skipping link https://github.com/jonashaag/bjoern?locale=pl (from https://github.com/jonashaag/bjoern); not a file
    Skipping link https://github.com/jonashaag/bjoern?locale=sr (from https://github.com/jonashaag/bjoern); not a file
    Skipping link https://github.com/jonashaag/bjoern?locale=sv (from https://github.com/jonashaag/bjoern); not a file
  Downloading bjoern-1.0.tar.gz
  Downloading from URL http://pypi.python.org/packages/source/b/bjoern/bjoern-1.0.tar.gz#md5=bc604e2f7d71342c7742dee4717721e9 (from http://pypi.python.org/simple/bjoern/)
  Running setup.py egg_info for package bjoern
    running egg_info
    creating pip-egg-info/bjoern.egg-info
    writing pip-egg-info/bjoern.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/bjoern.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/bjoern.egg-info/dependency_links.txt
    writing manifest file 'pip-egg-info/bjoern.egg-info/SOURCES.txt'
    warning: manifest_maker: standard file '-c' not found
    reading manifest file 'pip-egg-info/bjoern.egg-info/SOURCES.txt'
    writing manifest file 'pip-egg-info/bjoern.egg-info/SOURCES.txt'
Installing collected packages: bjoern
  Running setup.py install for bjoern
    Running command /Users/jamie/.virtualenvs/bjoern/bin/python -c "import setuptools;__file__='/Users/jamie/.virtualenvs/bjoern/build/bjoern/setup.py';execfile(__file__)" install --single-version-externally-managed --record /var/folders/jT/jTsZ5I2lHYODq98s5pizV++++TI/-Tmp-/pip-q0UdHf-record/install-record.txt --install-headers /Users/jamie/.virtualenvs/bjoern/bin/../include/site/python2.6
    running install
    running build
    running build_ext
    building 'bjoern' extension
    creating build
    creating build/temp.macosx-10.6-universal-2.6
    creating build/temp.macosx-10.6-universal-2.6/http-parser
    creating build/temp.macosx-10.6-universal-2.6/bjoern
    gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -pipe -arch x86_64 -DWANT_SENDFILE=1 -DWANT_SIGINT_HANDLING=1 -Ihttp-parser -I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c http-parser/http_parser.c -o build/temp.macosx-10.6-universal-2.6/http-parser/http_parser.o -std=c99 -fno-strict-aliasing -Wall -Wextra -Wno-unused -g -fPIC
    gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -pipe -arch x86_64 -DWANT_SENDFILE=1 -DWANT_SIGINT_HANDLING=1 -Ihttp-parser -I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c bjoern/request.c -o build/temp.macosx-10.6-universal-2.6/bjoern/request.o -std=c99 -fno-strict-aliasing -Wall -Wextra -Wno-unused -g -fPIC
    bjoern/request.c:6: warning: function declaration isn’t a prototype
    bjoern/request.c:100: warning: function declaration isn’t a prototype
    gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -pipe -arch x86_64 -DWANT_SENDFILE=1 -DWANT_SIGINT_HANDLING=1 -Ihttp-parser -I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c bjoern/bjoernmodule.c -o build/temp.macosx-10.6-universal-2.6/bjoern/bjoernmodule.o -std=c99 -fno-strict-aliasing -Wall -Wextra -Wno-unused -g -fPIC
    In file included from bjoern/bjoernmodule.c:2:
    bjoern/server.h:4: warning: function declaration isn’t a prototype
    bjoern/bjoernmodule.c:44: warning: function declaration isn’t a prototype
    gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -pipe -arch x86_64 -DWANT_SENDFILE=1 -DWANT_SIGINT_HANDLING=1 -Ihttp-parser -I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c bjoern/server.c -o build/temp.macosx-10.6-universal-2.6/bjoern/server.o -std=c99 -fno-strict-aliasing -Wall -Wextra -Wno-unused -g -fPIC
    In file included from bjoern/server.c:11:
    bjoern/server.h:4: warning: function declaration isn’t a prototype
    bjoern/server.c:37: warning: function declaration isn’t a prototype
    bjoern/server.c:225: warning: function declaration isn’t a prototype
    gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -pipe -arch x86_64 -DWANT_SENDFILE=1 -DWANT_SIGINT_HANDLING=1 -Ihttp-parser -I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c bjoern/wsgi.c -o build/temp.macosx-10.6-universal-2.6/bjoern/wsgi.o -std=c99 -fno-strict-aliasing -Wall -Wextra -Wno-unused -g -fPIC
    In file included from bjoern/wsgi.c:2:
    bjoern/server.h:4: warning: function declaration isn’t a prototype
    bjoern/wsgi.c:304: warning: missing initializer
    bjoern/wsgi.c:304: warning: (near initialization for ‘StartResponse_Type.tp_str’)
    creating build/lib.macosx-10.6-universal-2.6
    gcc-4.2 -Wl,-F. -bundle -undefined dynamic_lookup -arch x86_64 build/temp.macosx-10.6-universal-2.6/http-parser/http_parser.o build/temp.macosx-10.6-universal-2.6/bjoern/request.o build/temp.macosx-10.6-universal-2.6/bjoern/bjoernmodule.o build/temp.macosx-10.6-universal-2.6/bjoern/server.o build/temp.macosx-10.6-universal-2.6/bjoern/wsgi.o -lev -o build/lib.macosx-10.6-universal-2.6/bjoern.so
    ld: duplicate symbol _StartResponse_Type in build/temp.macosx-10.6-universal-2.6/bjoern/server.o and build/temp.macosx-10.6-universal-2.6/bjoern/bjoernmodule.o
    collect2: ld returned 1 exit status
    error: command 'gcc-4.2' failed with exit status 1
    Complete output from command /Users/jamie/.virtualenvs/bjoern/bin/python -c "import setuptools;__file__='/Users/jamie/.virtualenvs/bjoern/build/bjoern/setup.py';execfile(__file__)" install --single-version-externally-managed --record /var/folders/jT/jTsZ5I2lHYODq98s5pizV++++TI/-Tmp-/pip-q0UdHf-record/install-record.txt --install-headers /Users/jamie/.virtualenvs/bjoern/bin/../include/site/python2.6:
    running install

running build

running build_ext

building 'bjoern' extension

creating build

creating build/temp.macosx-10.6-universal-2.6

creating build/temp.macosx-10.6-universal-2.6/http-parser

creating build/temp.macosx-10.6-universal-2.6/bjoern

gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -pipe -arch x86_64 -DWANT_SENDFILE=1 -DWANT_SIGINT_HANDLING=1 -Ihttp-parser -I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c http-parser/http_parser.c -o build/temp.macosx-10.6-universal-2.6/http-parser/http_parser.o -std=c99 -fno-strict-aliasing -Wall -Wextra -Wno-unused -g -fPIC

gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -pipe -arch x86_64 -DWANT_SENDFILE=1 -DWANT_SIGINT_HANDLING=1 -Ihttp-parser -I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c bjoern/request.c -o build/temp.macosx-10.6-universal-2.6/bjoern/request.o -std=c99 -fno-strict-aliasing -Wall -Wextra -Wno-unused -g -fPIC

bjoern/request.c:6: warning: function declaration isn’t a prototype

bjoern/request.c:100: warning: function declaration isn’t a prototype

gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -pipe -arch x86_64 -DWANT_SENDFILE=1 -DWANT_SIGINT_HANDLING=1 -Ihttp-parser -I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c bjoern/bjoernmodule.c -o build/temp.macosx-10.6-universal-2.6/bjoern/bjoernmodule.o -std=c99 -fno-strict-aliasing -Wall -Wextra -Wno-unused -g -fPIC

In file included from bjoern/bjoernmodule.c:2:

bjoern/server.h:4: warning: function declaration isn’t a prototype

bjoern/bjoernmodule.c:44: warning: function declaration isn’t a prototype

gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -pipe -arch x86_64 -DWANT_SENDFILE=1 -DWANT_SIGINT_HANDLING=1 -Ihttp-parser -I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c bjoern/server.c -o build/temp.macosx-10.6-universal-2.6/bjoern/server.o -std=c99 -fno-strict-aliasing -Wall -Wextra -Wno-unused -g -fPIC

In file included from bjoern/server.c:11:

bjoern/server.h:4: warning: function declaration isn’t a prototype

bjoern/server.c:37: warning: function declaration isn’t a prototype

bjoern/server.c:225: warning: function declaration isn’t a prototype

gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -pipe -arch x86_64 -DWANT_SENDFILE=1 -DWANT_SIGINT_HANDLING=1 -Ihttp-parser -I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c bjoern/wsgi.c -o build/temp.macosx-10.6-universal-2.6/bjoern/wsgi.o -std=c99 -fno-strict-aliasing -Wall -Wextra -Wno-unused -g -fPIC

In file included from bjoern/wsgi.c:2:

bjoern/server.h:4: warning: function declaration isn’t a prototype

bjoern/wsgi.c:304: warning: missing initializer

bjoern/wsgi.c:304: warning: (near initialization for ‘StartResponse_Type.tp_str’)

creating build/lib.macosx-10.6-universal-2.6

gcc-4.2 -Wl,-F. -bundle -undefined dynamic_lookup -arch x86_64 build/temp.macosx-10.6-universal-2.6/http-parser/http_parser.o build/temp.macosx-10.6-universal-2.6/bjoern/request.o build/temp.macosx-10.6-universal-2.6/bjoern/bjoernmodule.o build/temp.macosx-10.6-universal-2.6/bjoern/server.o build/temp.macosx-10.6-universal-2.6/bjoern/wsgi.o -lev -o build/lib.macosx-10.6-universal-2.6/bjoern.so

ld: duplicate symbol _StartResponse_Type in build/temp.macosx-10.6-universal-2.6/bjoern/server.o and build/temp.macosx-10.6-universal-2.6/bjoern/bjoernmodule.o

collect2: ld returned 1 exit status

error: command 'gcc-4.2' failed with exit status 1

----------------------------------------
Command /Users/jamie/.virtualenvs/bjoern/bin/python -c "import setuptools;__file__='/Users/jamie/.virtualenvs/bjoern/build/bjoern/setup.py';execfile(__file__)" install --single-version-externally-managed --record /var/folders/jT/jTsZ5I2lHYODq98s5pizV++++TI/-Tmp-/pip-q0UdHf-record/install-record.txt --install-headers /Users/jamie/.virtualenvs/bjoern/bin/../include/site/python2.6 failed with error code 1
Exception information:
Traceback (most recent call last):
  File "/Users/jamie/.virtualenvs/bjoern/lib/python2.6/site-packages/pip-0.8.1-py2.6.egg/pip/basecommand.py", line 130, in main
    self.run(options, args)
  File "/Users/jamie/.virtualenvs/bjoern/lib/python2.6/site-packages/pip-0.8.1-py2.6.egg/pip/commands/install.py", line 228, in run
    requirement_set.install(install_options, global_options)
  File "/Users/jamie/.virtualenvs/bjoern/lib/python2.6/site-packages/pip-0.8.1-py2.6.egg/pip/req.py", line 1043, in install
    requirement.install(install_options, global_options)
  File "/Users/jamie/.virtualenvs/bjoern/lib/python2.6/site-packages/pip-0.8.1-py2.6.egg/pip/req.py", line 559, in install
    cwd=self.source_dir, filter_stdout=self._filter_install, show_stdout=False)
  File "/Users/jamie/.virtualenvs/bjoern/lib/python2.6/site-packages/pip-0.8.1-py2.6.egg/pip/__init__.py", line 249, in call_subprocess
    % (command_desc, proc.returncode))
InstallationError: Command /Users/jamie/.virtualenvs/bjoern/bin/python -c "import setuptools;__file__='/Users/jamie/.virtualenvs/bjoern/build/bjoern/setup.py';execfile(__file__)" install --single-version-externally-managed --record /var/folders/jT/jTsZ5I2lHYODq98s5pizV++++TI/-Tmp-/pip-q0UdHf-record/install-record.txt --install-headers /Users/jamie/.virtualenvs/bjoern/bin/../include/site/python2.6 failed with error code 1

ottob commented Jan 27, 2011

Trying to build 1.1 (b0a24fd) on my mac I get the following error:
gcc-4.2 -Wl,-F. -bundle -undefined dynamic_lookup -arch x86_64 build/temp.macosx-10.6-universal-2.6/http-parser/http_parser.o build/temp.macosx-10.6-universal-2.6/bjoern/bjoernmodule.o build/temp.macosx-10.6-universal-2.6/bjoern/common.o build/temp.macosx-10.6-universal-2.6/bjoern/request.o build/temp.macosx-10.6-universal-2.6/bjoern/server.o build/temp.macosx-10.6-universal-2.6/bjoern/wsgi.o -lev -o build/lib.macosx-10.6-universal-2.6/bjoern.so
ld: duplicate symbol __REMOTE_ADDR in build/temp.macosx-10.6-universal-2.6/bjoern/common.o and build/temp.macosx-10.6-universal-2.6/bjoern/bjoernmodule.o
collect2: ld returned 1 exit status
error: command 'gcc-4.2' failed with exit status 1

@jonashaag jonashaag added a commit that referenced this issue Feb 27, 2012

@patricklucas @jonashaag patricklucas + jonashaag OS X support
* abstract sendfile() differences
* memset-zero sockaddr_in before using
* build with -fcommon -- let the linker strip duplicate symbols

Closes #60, #59 and #19.
29da440

jonashaag closed this Feb 27, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment