Opened 15 years ago

Closed 15 years ago

#21700 closed defect (worksforme)

python26 fails to build on Snow Leopard

Reported by: jakub.moskal@… Owned by: blb@…
Priority: Normal Milestone:
Component: ports Version: 1.8.1
Keywords: Cc: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Port: python26

Description

I know this has been mentioned before, but I still can't seem to find a solution to my problem. I removed /opt, installed 1.8.1 today and issued just one command "sudo port install python26", after successfully installing all prerequisites, building fails:

--->  Building python26
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python26/work/Python-2.6.2" && /usr/bin/make -j2 all MAKE="/usr/bin/make CC=/usr/bin/gcc-4.2" " returned error 2
Command output: /usr/bin/gcc-4.2 -c -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes  -I. -IInclude -I./Include -I/opt/local/include -I/opt/local/include/ncurses  -DPy_BUILD_CORE -o Modules/config.o Modules/config.c
/usr/bin/gcc-4.2 -c -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes  -I. -IInclude -I./Include -I/opt/local/include -I/opt/local/include/ncurses  -DPy_BUILD_CORE -DPYTHONPATH='":plat-darwin:plat-mac:plat-mac/lib-scriptpackages:lib-tk:lib-old"' \
		-DPREFIX='"/opt/local/Library/Frameworks/Python.framework/Versions/2.6"' \
		-DEXEC_PREFIX='"/opt/local/Library/Frameworks/Python.framework/Versions/2.6"' \
		-DVERSION='"2.6"' \
		-DVPATH='""' \
		-o Modules/getpath.o ./Modules/getpath.c
./Modules/getpath.c: In function 'calculate_path':
./Modules/getpath.c:455: warning: 'NSModuleForSymbol' is deprecated (declared at /usr/include/mach-o/dyld.h:189)
./Modules/getpath.c:455: warning: 'NSLookupAndBindSymbol' is deprecated (declared at /usr/include/mach-o/dyld.h:179)
./Modules/getpath.c:457: warning: 'NSLibraryNameForModule' is deprecated (declared at /usr/include/mach-o/dyld.h:159)
/usr/bin/gcc-4.2 -c -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes  -I. -IInclude -I./Include -I/opt/local/include -I/opt/local/include/ncurses  -DPy_BUILD_CORE -o Modules/main.o Modules/main.c
Modules/main.c: In function 'usage':
Modules/main.c:115: warning: format not a string literal and no format arguments
Modules/main.c:116: warning: format not a string literal and no format arguments
Modules/main.c:117: warning: format not a string literal and no format arguments
In file included from /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/HFSVolumes.h:32,
                 from /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/CarbonCore.h:206,
                 from /System/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AE.h:20,
                 from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:21,
                 from /System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:20,
                 from Include/pymactoolbox.h:10,
                 from Python/mactoolboxglue.c:27:
/usr/include/hfs/hfs_format.h:765: error: expected specifier-qualifier-list before 'uuid_string_t'
/usr/bin/gcc-4.2 -c -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes  -I. -IInclude -I./Include -I/opt/local/include -I/opt/local/include/ncurses  -DPy_BUILD_CORE -o Modules/gcmodule.o Modules/gcmodule.c
/usr/bin/gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes  -I. -IInclude -I./Include -I/opt/local/include -I/opt/local/include/ncurses  -DPy_BUILD_CORE  -c ./Modules/threadmodule.c -o Modules/threadmodule.o
/usr/bin/gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes  -I. -IInclude -I./Include -I/opt/local/include -I/opt/local/include/ncurses  -DPy_BUILD_CORE  -c ./Modules/signalmodule.c -o Modules/signalmodule.o
/usr/bin/gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes  -I. -IInclude -I./Include -I/opt/local/include -I/opt/local/include/ncurses  -DPy_BUILD_CORE  -c ./Modules/posixmodule.c -o Modules/posixmodule.o
make: *** [Python/mactoolboxglue.o] Error 1
make: *** Waiting for unfinished jobs....

Error: Status 1 encountered during processing.

Change History (6)

comment:1 Changed 15 years ago by tobypeterson

what's the output of port installed ?

comment:2 in reply to:  1 Changed 15 years ago by jakub.moskal@…

Replying to toby@…:

what's the output of port installed ?

  autoconf @2.64_2 (active)
  automake @1.11_0 (active)
  bzip2 @1.0.5_3+darwin (active)
  db46 @4.6.21_5 (active)
  expat @2.0.1_0 (active)
  fontconfig @2.7.3_0+macosx (active)
  freetype @2.3.9_1+macosx (active)
  gdbm @1.8.3_1 (active)
  gettext @0.17_4 (active)
  gperf @3.0.4_0 (active)
  help2man @1.36.4_1 (active)
  libiconv @1.13_0 (active)
  libtool @2.2.6a_0 (active)
  m4 @1.4.13_0 (active)
  ncurses @5.7_0+darwin_10 (active)
  ncursesw @5.7_0+darwin_10 (active)
  openssl @0.9.8k_0+darwin (active)
  p5-locale-gettext @1.05_0 (active)
  perl5 @5.8.9_0 (active)
  perl5.8 @5.8.9_3 (active)
  pkgconfig @0.23_1 (active)
  readline @6.0.000_2+darwin (active)
  sqlite3 @3.6.18_0 (active)
  tcl @8.5.6_0+darwin (active)
  tk @8.5.6_1+darwin (active)
  Xft2 @2.1.13_2 (active)
  xorg-bigreqsproto @1.1.0_0 (active)
  xorg-inputproto @1.5.1_0 (active)
  xorg-kbproto @1.0.3_0 (active)
  xorg-libX11 @1.2.2_0 (active)
  xorg-libXau @1.0.5_0 (active)
  xorg-libXdmcp @1.0.3_0 (active)
  xorg-libXext @1.0.99.4_1 (active)
  xorg-libXScrnSaver @1.2.0_0 (active)
  xorg-renderproto @0.11_0 (active)
  xorg-scrnsaverproto @1.2.0_0 (active)
  xorg-util-macros @1.3.0_0 (active)
  xorg-xcmiscproto @1.2.0_0 (active)
  xorg-xextproto @7.1.1_0 (active)
  xorg-xf86bigfontproto @1.2.0_0 (active)
  xorg-xproto @7.0.16_0 (active)
  xorg-xtrans @1.2.4_0 (active)
  xrender @0.9.4_6 (active)
  zlib @1.2.3_3 (active)

comment:3 Changed 15 years ago by blb@…

Cc: mcalhoun@… added
Owner: changed from macports-tickets@… to blb@…
Status: newassigned

Do you have anything in /usr/local/include?

$ ls /usr/local/include

(Sounds like #21571 but I don't see e2fsprogs port installed).

comment:4 Changed 15 years ago by tobypeterson

Yeah, e2fsprogs was my theory... hmm

comment:5 in reply to:  3 ; Changed 15 years ago by jakub.moskal@…

Replying to blb@…:

Do you have anything in /usr/local/include?

$ ls /usr/local/include
COS			db_dtt754.h		db_util.h		freetype2		gutenprint		omniORBpy.h		pmt_pool.h		uuid
autosprintf.h		db_dtt768.h		db_xcvr2450.h		ft2build.h		liberror.h		omniconfig.h		pmt_serial_tags.h	wand
db_base.h		db_flexrf.h		error			fuse			libintl.h		omnithread		schemaparser		wsdlparser
db_basic.h		db_flexrf_mimo.h	fpga_regs_common.h	fuse.h			libwmf			omnithread.h		ulockmgr.h		xmlpull
db_dbs_rx.h		db_tv_rx.h		fpga_regs_standard.h	gettext-po.h		omniORB4		pmt.h			uninameslist.h

By the way, my /usr/local/ includes a lot of junk, is there any way to clean it up and not worry about removing some important library?

comment:6 in reply to:  5 Changed 15 years ago by blb@…

Resolution: worksforme
Status: assignedclosed

I note there is a uuid listing there, which would still implicate e2fsprogs but not the MacPorts' one (which was fixed in r58211).

Replying to jakub.moskal@…:

By the way, my /usr/local/ includes a lot of junk, is there any way to clean it up and not worry about removing some important library?

I can't really answer that since whatever is in /usr/local would have importance to you (since MacPorts will install to /opt/local, not /usr/local). Having various bits in /usr/local does, as you see, get in the way of MacPorts' success, so I'd suggest at the very least move /usr/local aside, doing your port installs, then put /usr/local back. Also, you'd need to do that anytime you want to use port.

Finally, if you do move /usr/local aside (or clean it out), be sure to clean python26 before installing again (via sudo port clean --work python26).

Note: See TracTickets for help on using tickets.