ports/80916: db43 does not build (with gcc4.0?)

Michael Edenfield kutulu at kutulu.org
Wed May 11 21:00:23 UTC 2005


>Number:         80916
>Category:       ports
>Synopsis:       db43 does not build (with gcc4.0?)
>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 May 11 21:00:21 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Michael Edenfield
>Release:        FreeBSD 5.1-CURRENT i386
>Organization:
>Environment:
FreeBSD wombat.jungle 6.0-CURRENT FreeBSD 6.0-CURRENT #13: Tue Mar  1 17:22:27 EST 2005     root at wombat.jungle:/usr/obj/usr/src/sys/WOMBAT  i386

>Description:

I have been running a machine with gcc40 as the system compiler and this is one of the ports that doesn't compile.  I don't appear to have this problem on systems using the base gcc as the system compiler.  The issue appears to be a change in storage type in a single function.

However, the patch I generated cannot run from the normal patch target in ports Makefiles, since the file that needs to be patched is actually generated during the config.  Hopefully someone better versed with the db43 port can do this properly.

>How-To-Repeat:
In /usr/ports/databases/db43: 

CC=/usr/local/bin/gcc40 make
>Fix:

--- build_unix/db_server.h.old  Wed May 11 16:38:24 2005
+++ build_unix/db_server.h      Wed May 11 16:41:18 2005
@@ -1010,7 +1010,7 @@
 #define        DB_RPC_SERVERVERS ((unsigned long)(4003))
 
 #if defined(__STDC__) || defined(__cplusplus)
-extern  void db_rpc_serverprog_4003(struct svc_req *rqstp, register SVCXPRT *transp);
+static void db_rpc_serverprog_4003(struct svc_req *rqstp, register SVCXPRT *transp);
 #define        __DB_env_get_cachesize ((unsigned long)(1))
 extern  __env_get_cachesize_reply * __db_env_get_cachesize_4003(__env_get_cachesize_msg *, CLIENT *);
 extern  __env_get_cachesize_reply * __db_env_get_cachesize_4003_svc(__env_get_cachesize_msg *, struct svc_req *);


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



More information about the freebsd-ports-bugs mailing list