ports/116675: [patch] broken editors/biew on gcc 4.2.1

pluknet pluknet at gmail.com
Wed Sep 26 20:40:03 UTC 2007


>Number:         116675
>Category:       ports
>Synopsis:       [patch] broken editors/biew on gcc 4.2.1
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Sep 26 20:40:00 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     pluknet
>Release:        7.0-CURRENT
>Organization:
>Environment:
FreeBSD 7.0-CURRENT #2: Fri Sep 21 11:45:50 MSD 2007
>Description:
biew cannot compile with base gcc 4.2.1:

===>  Building for biew-5.6.2
cc -Wall -D__HAVE_PRAGMA_PACK__=1 -D__UNIX__ -D__OS__="unix" -Uunix -DHAVE_TERMI                                                                                                                                                         NAL_OUT=1 -D_CURSES_ -DPREFIX='"/usr/local"' -DHAVE_MOUSE -D__OS_NAME__='"Unix/C                                                                                                                                                         urses"' -D__MACHINE__=ia32 -D__CPU_NAME__='"i386"' -D__CPU__=386 -D__DEFAULT_DIS                                                                                                                                                         ASM=0 -DCAN_COMPILE_X86_GAS=1 -fshort-enums  -fomit-frame-pointer -DNDEBUG=1 -I.                                                                                                                                                          -c biewlib/bbio.c -o biewlib/bbio.o
cc -Wall -D__HAVE_PRAGMA_PACK__=1 -D__UNIX__ -D__OS__="unix" -Uunix -DHAVE_TERMI                                                                                                                                                         NAL_OUT=1 -D_CURSES_ -DPREFIX='"/usr/local"' -DHAVE_MOUSE -D__OS_NAME__='"Unix/C                                                                                                                                                         urses"' -D__MACHINE__=ia32 -D__CPU_NAME__='"i386"' -D__CPU__=386 -D__DEFAULT_DIS                                                                                                                                                         ASM=0 -DCAN_COMPILE_X86_GAS=1 -fshort-enums  -fomit-frame-pointer -DNDEBUG=1 -I.                                                                                                                                                          -c biewlib/biewlib.c -o biewlib/biewlib.o
biewlib/biewlib.c: In function 'qst':
biewlib/biewlib.c:342: warning: pointer targets in passing argument 1 of '__Xchg                                                                                                                                                         B__' differ in signedness
biewlib/biewlib.c:342: warning: pointer targets in passing argument 2 of '__Xchg                                                                                                                                                         B__' differ in signedness
biewlib/biewlib.c:389: warning: pointer targets in passing argument 1 of '__Xchg                                                                                                                                                         B__' differ in signedness
biewlib/biewlib.c:389: warning: pointer targets in passing argument 2 of '__Xchg                                                                                                                                                         B__' differ in signedness
biewlib/biewlib.c: In function 'HQSort':
biewlib/biewlib.c:463: warning: pointer targets in passing argument 1 of '__Xchg                                                                                                                                                         B__' differ in signedness
biewlib/biewlib.c:463: warning: pointer targets in passing argument 2 of '__Xchg                                                                                                                                                         B__' differ in signedness
cc -Wall -D__HAVE_PRAGMA_PACK__=1 -D__UNIX__ -D__OS__="unix" -Uunix -DHAVE_TERMI                                                                                                                                                         NAL_OUT=1 -D_CURSES_ -DPREFIX='"/usr/local"' -DHAVE_MOUSE -D__OS_NAME__='"Unix/C                                                                                                                                                         urses"' -D__MACHINE__=ia32 -D__CPU_NAME__='"i386"' -D__CPU__=386 -D__DEFAULT_DIS                                                                                                                                                         ASM=0 -DCAN_COMPILE_X86_GAS=1 -fshort-enums  -fomit-frame-pointer -DNDEBUG=1 -I.                                                                                                                                                          -c biewlib/file_ini.c -o biewlib/file_ini.o
biewlib/file_ini.c: In function 'FiGetNextString':
biewlib/file_ini.c:673: warning: pointer targets in assignment differ in signedn                                                                                                                                                         ess
biewlib/file_ini.c:684: warning: pointer targets in assignment differ in signedn                                                                                                                                                         ess
biewlib/file_ini.c:696: warning: pointer targets in assignment differ in signedn                                                                                                                                                         ess
biewlib/file_ini.c:699: warning: pointer targets in passing argument 2 of 'szKil                                                                                                                                                         lSpaceAround' differ in signedness
biewlib/file_ini.c:699: warning: pointer targets in assignment differ in signedn                                                                                                                                                         ess
biewlib/file_ini.c:703: warning: pointer targets in assignment differ in signedn                                                                                                                                                         ess
biewlib/file_ini.c:708: warning: pointer targets in passing argument 2 of 'szKil                                                                                                                                                         lSpaceAround' differ in signedness
biewlib/file_ini.c:708: warning: pointer targets in assignment differ in signedn                                                                                                                                                         ess
biewlib/file_ini.c: In function '__addCache':
biewlib/file_ini.c:1298: error: lvalue required as left operand of assignment
biewlib/file_ini.c:1328: error: lvalue required as left operand of assignment
biewlib/file_ini.c:1357: error: lvalue required as left operand of assignment
biewlib/file_ini.c: In function 'iniReadProfileString':
biewlib/file_ini.c:1592: error: lvalue required as left operand of assignment
biewlib/file_ini.c:1596: error: lvalue required as left operand of assignment
biewlib/file_ini.c:1600: error: lvalue required as left operand of assignment
gmake: *** [biewlib/file_ini.o] Ошибка 1
*** Error code 2

Stop in /media/ports/editors/biew.

>How-To-Repeat:

>Fix:
biew compiles with gcc 3.4.6
(tested with gcc taken from ports).
Proposed to add USE_GCC= 3.4 to Makefile to fix the build.

Patch attached with submission follows:

--- Makefile.orig	2007-09-27 00:23:37.000000000 +0400
+++ Makefile	2007-09-27 00:25:22.000000000 +0400
@@ -2,7 +2,7 @@
 # Date created:		04 February 2000
 # Whom:			Michael Vasilenko <acid at stu.cn.ua>
 #
-# $FreeBSD: ports/editors/biew/Makefile,v 1.21 2005/01/08 22:40:29 sem Exp $
+# $FreeBSD$
 #
 
 PORTNAME=	biew
@@ -19,6 +19,7 @@
 
 USE_BZIP2=	yes
 USE_GMAKE=	yes
+USE_GCC=	3.4
 
 PORTDOCS=	biew_en.txt biew_ru.txt develop.en develop.ru file_ini.en \
 		file_ini.ru licence.en licence.ru release.txt unix.txt


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list