Bug 66250 - [PATCH] databases/msql: fix compiling whith gcc >= 3.3
Summary: [PATCH] databases/msql: fix compiling whith gcc >= 3.3
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-04 13:30 UTC by Andrey Slusar
Modified: 2004-05-04 21:49 UTC (History)
0 users

See Also:


Attachments
msql.diff (1.11 KB, patch)
2004-05-04 13:30 UTC, Andrey Slusar
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Slusar 2004-05-04 13:30:07 UTC
	In OSVERSION > 501103 gcc3.3, ANSI_ARGS not defined.
	Compiling:
===
cc  -O2 -pipe -march=athlon-xp -I../ -DHAVE_CONFIG_H -DHAVE_SSIZE_T -DHAVE_U_INT -DHAVE_BIT_TYPES -D_OS_UNIX -fpic -DPIC  -DHAVE_DIRENT_H -DHAVE_DIRENT -DHAVE_MMAP -DMSYNC_3   -DINST_DIR='"/usr/local"' -DTARGET='"FreeBSD-5.2-CURRENT-i386"' -DHAVE_RLIMIT_NOFILE -o libmsql.o -c libmsql.c
In file included from libmsql.c:52:
/usr/include/varargs.h:34:2: #error "<varargs.h> is obsolete with this version of GCC."
/usr/include/varargs.h:35:2: #error "Change your code to use <stdarg.h> instead."
libmsql.c:222: error: syntax error before "va_dcl"
libmsql.c:234: warning: parameter names (without types) in function declaration
libmsql.c:234: warning: data definition has no type or storage class
libmsql.c:235: error: `args' undeclared here (not in a function)
libmsql.c:235: error: syntax error before "int"
libmsql.c:235: warning: data definition has no type or storage class
libmsql.c:236: error: conflicting types for `fmt'
libmsql.c:232: error: previous declaration of `fmt'
libmsql.c:236: error: `args' undeclared here (not in a function)
libmsql.c:236: error: syntax error before "char"
libmsql.c:236: warning: data definition has no type or storage class
*** Error code 1

Stop in /usr/ports/databases/msql/work/msql-2.0.12/targets/FreeBSD-5.2-CURRENT-i386/msql.
*** Error code 1

Stop in /usr/ports/databases/msql/work/msql-2.0.12/targets/FreeBSD-5.2-CURRENT-i386/msql.
*** Error code 1

Stop in /usr/ports/databases/msql/work/msql-2.0.12/targets/FreeBSD-5.2-CURRENT-i386.
*** Error code 1

Stop in /usr/ports/databases/msql/work/msql-2.0.12/targets/FreeBSD-5.2-CURRENT-i386.
*** Error code 1

Stop in /usr/ports/databases/msql/work/msql-2.0.12.
*** Error code 1

Stop in /usr/ports/databases/msql.
===

How-To-Repeat: 	Compile port whith FreeBSD > 5.1
Comment 1 Pav Lucistnik freebsd_committer freebsd_triage 2004-05-04 21:48:48 UTC
State Changed
From-To: open->closed

Committed, thanks!