pkgsrc-Bugs archive

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

pkg/30909: arc-5.21enb1 Solaris x86 gcc



>Number:         30909
>Category:       pkg
>Synopsis:       arc-5.21enb1 Solaris x86 gcc
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Aug 04 10:04:00 +0000 2005
>Originator:     Gilles Dauphin
>Release:        SunOS 5.10 i86pc
>Organization:
ENST 
>Environment:


System: SunOS bi.enst.fr 5.10 Generic i86pc


>Description:


archivers/arc won't compile on solaris x86 gcc

2005/07/21 13:47:33  2/5500= 0.0% archivers/arc @ i386> gcc -O -DBSD=1 -c 
arcmisc.c
2005/07/21 13:47:33  2/5500= 0.0% archivers/arc @ i386> arcmisc.c:66:21: 
sys/dir.h: No such file or director
y
2005/07/21 13:47:33  2/5500= 0.0% archivers/arc @ i386> arcmisc.c: In function 
`dir':
2005/07/21 13:47:33  2/5500= 0.0% archivers/arc @ i386> arcmisc.c:321: error: 
dereferencing pointer to incom
plete type
2005/07/21 13:47:33  2/5500= 0.0% archivers/arc @ i386> arcmisc.c:322: error: 
dereferencing pointer to incom
plete type
2005/07/21 13:47:33  2/5500= 0.0% archivers/arc @ i386> arcmisc.c: In function 
`fmatch':
2005/07/21 13:47:33  2/5500= 0.0% archivers/arc @ i386> arcmisc.c:349: error: 
dereferencing pointer to incom
plete type
2005/07/21 13:47:33  2/5500= 0.0% archivers/arc @ i386> *** Error code 1
2005/07/21 13:47:33  2/5500= 0.0% archivers/arc @ i386> 
2005/07/21 13:47:33  2/5500= 0.0% archivers/arc @ i386> Stop.
2005/07/21 13:47:33  2/5500= 0.0% archivers/arc @ i386> bmake: stopped in 
/usr/pkgsrc/archivers/arc/work
2005/07/21 13:47:33  2/5500= 0.0% archivers/arc @ i386> *** Error code 1
2005/07/21 13:47:33  2/5500= 0.0% archivers/arc @ i386> 



>How-To-Repeat:


bmake in archivers/arc


>Fix:


<root@u2: 592> pwd
/usr/pkgsrc/archivers/arc
<root@u2: 593> diff -bu Makefile.orig Makefile
--- Makefile.orig       Fri Apr 15 06:36:45 2005
+++ Makefile    Thu Aug  4 11:51:41 2005
@@ -26,3 +26,8 @@
        ${INSTALL_MAN} ${WRKSRC}/arc.1 ${PREFIX}/man/man1/
 
 .include "../../mk/bsd.pkg.mk"
+
+.if ${OPSYS} == "SunOS" && ${LOWER_OPSYS} == "solaris"
+CFLAGS+=        -DSYSV -DHAVE_ALPHASORT
+.endif
+
<root@u2: 594> cat patches/patch-ae
--- arcmisc.c.orig      Thu Aug  4 10:37:32 2005
+++ arcmisc.c   Thu Aug  4 11:46:55 2005
@@ -191,6 +191,7 @@
 
 #if    MSDOS || SYSV
 
+#ifndef HAVE_ALPHASORT
 int
 alphasort(dirptr1, dirptr2)
        struct DIRECT **dirptr1, **dirptr2;
@@ -197,6 +198,7 @@
 {
        return (strcmp((*dirptr1)->d_name, (*dirptr2)->d_name));
 }
+#endif
 
 #endif
 
<root@u2: 595> 





Home | Main Index | Thread Index | Old Index