pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/41352: python25 on OpenSolaris - ctypes and FFI don't build with SunPro CC



>Number:         41352
>Category:       pkg
>Synopsis:       python25 on OpenSolaris - ctypes and FFI don't build with 
>SunPro CC
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue May 05 03:15:00 +0000 2009
>Originator:     Carl Brewer
>Release:        OpenSolaris 2008.11 snv 111a
>Organization:
aboc IT Consulting
>Environment:
SunOS wattage 5.11 snv_111a i86pc i386 i86pc

>Description:
 cc -DHAVE_CONFIG_H -I. -I./include -Iinclude -I./src -Wall -g -fexceptions -O 
-c src/debug.c  -KPIC -DPIC -o src/.libs/debug.o
"./include/ffitarget.h", line 67: undefined symbol: FFI_DEFAULT_ABI
"./include/ffitarget.h", line 68: non-constant enumerator value
"./include/ffi_common.h", line 80: warning:  attribute "__mode__" is unknown, 
ignored
"./include/ffi_common.h", line 80: warning: attribute parameter "__QI__" is 
undefined
"./include/ffi_common.h", line 81: warning:  attribute "__mode__" is unknown, 
ignored
"./include/ffi_common.h", line 81: warning: attribute parameter "__QI__" is 
undefined
"./include/ffi_common.h", line 82: warning:  attribute "__mode__" is unknown, 
ignored
"./include/ffi_common.h", line 82: warning: attribute parameter "__HI__" is 
undefined
"./include/ffi_common.h", line 83: warning:  attribute "__mode__" is unknown, 
ignored
"./include/ffi_common.h", line 83: warning: attribute parameter "__HI__" is 
undefined
"./include/ffi_common.h", line 84: warning:  attribute "__mode__" is unknown, 
ignored
"./include/ffi_common.h", line 84: warning: attribute parameter "__SI__" is 
undefined
"./include/ffi_common.h", line 85: warning:  attribute "__mode__" is unknown, 
ignored
"./include/ffi_common.h", line 85: warning: attribute parameter "__SI__" is 
undefined
"./include/ffi_common.h", line 86: warning:  attribute "__mode__" is unknown, 
ignored
"./include/ffi_common.h", line 86: warning: attribute parameter "__DI__" is 
undefined
"./include/ffi_common.h", line 87: warning:  attribute "__mode__" is unknown, 
ignored
"./include/ffi_common.h", line 87: warning: attribute parameter "__DI__" is 
undefined
cc: acomp failed for src/debug.c
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/devel/libffi/work/libffi-3.0.8
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/devel/libffi/work/libffi-3.0.8
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/devel/libffi/work/libffi-3.0.8
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/devel/libffi
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/devel/libffi
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/lang/python25


FFI shouldn't be being included in the Solaris build, AFAIK, especially if 
using SunPRO CC.

# cc -V
cc: Sun C 5.9 SunOS_i386 2007/05/03

my mk.conf :

.ifdef BSD_PKG_MK       # begin pkgsrc settings

PKGSRC_COMPILER=        sunpro
CC=                     /opt/SUNWspro/bin/cc

PKG_DBDIR=              /usr/pkg/.db
LOCALBASE=              /usr/pkg
VARBASE=                /usr/pkg/var
PKG_TOOLS_BIN=          /usr/pkg/sbin
PKGMANDIR=              man

TOOLS_PLATFORM.install?=        /usr/pkg/bin/install-sh
TOOLS_PLATFORM.sh?=             /usr/pkg/bin/pdksh
TOOLS_PLATFORM.ksh?=            /usr/pkg/bin/pdksh
TOOLS_PLATFORM.awk?=            /usr/pkg/bin/nawk
TOOLS_PLATFORM.sed?=            /usr/pkg/bin/nbsed
TOOLS_PLATFORM.pax?=            /usr/pkg/bin/${NBPAX_PROGRAM_PREFIX}pax
TOOLS_PLATFORM.tar?=            /usr/pkg/bin/${NBPAX_PROGRAM_PREFIX}tar

.endif                  # end pkgsrc settings

ACCEPTABLE_LICENSES+=fee-based-commercial-use
ACCEPTABLE_LICENSES+=sendmail-license
ACCEPTABLE_LICENSES+=shareware
ACCEPTABLE_LICENSES+=no-profit
ACCEPTABLE_LICENSES+=majordomo-license
ACCEPTABLE_LICENSES+=sendmail-open-source-license
USE_MILTER=YES
FAILOVER_FETCH=yes
PKG_DEVELOPER=1
PKG_OPTIONS.rt=frontend-modperl2
PKG_OPTIONS.rt+=backend-mysql
PKG_OPTIONS.clamav+=milter
#PKG_OPTIONS.sendmail+=sasl starttls
PKG_OPTIONS.sendmail+=sasl
PKG_OPTIONS.sendmail+=tls
PKG_OPTIONS.milter-greylist+=spf
PKG_OPTIONS.subversion+=apache22
APACHE_MODULES+=deflate
APACHE_MODULES+=dav
APACHE_MODULES+=ssl
APACHE_MODULES+=deflate
APACHE_MODULES+=all
#PKG_OPTIONS.perl+=threads
#PERL5_OPTIONS+=threads
ALLOW_VULNERABLE_PACKAGES=YES
PKG_DEFAULT_OPTIONS+=inet6



>How-To-Repeat:
grab pkgsrc, try to build python25 with SunPRO CC.

>Fix:
I tried commenting out the libffi stuff in Makefile, but this needs more than 
just that to work.



Home | Main Index | Thread Index | Old Index