Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Apr 1997 04:09:48 -0800 (PST)
From:      asami@vader.cs.berkeley.edu (Satoshi Asami)
To:        freebsd-gnats-submit@freebsd.org
Cc:        current@freebsd.org
Subject:   PR ports/3175
Message-ID:  <199704031209.EAA18485@silvia.HIP.Berkeley.EDU>

next in thread | raw e-mail | index | archive | help
It's not only emacs, it's all the ports that hail from the emacs
family.  A typical failure looks like this:

===
cc -Demacs -DHAVE_CONFIG_H    -I. -I../src -I/ccd/ports/japanese/mule-canna/work/mule-2.3/lib-src -I/ccd/ports/japanese/mule-canna/work/mule-2.3/lib-src/../src   -O /ccd/ports/japanese/mule-canna/work/mule-2.3/lib-src/fakemail.c -lutil    -o fakemail
/ccd/ports/japanese/mule-canna/work/mule-2.3/lib-src/fakemail.c: In function `make_file_preface':
/ccd/ports/japanese/mule-canna/work/mule-2.3/lib-src/fakemail.c:308: warning: assignment makes pointer from integer without a cast
/usr/tmp/cc0038671.o: Undefined symbol `_cuserid' referenced from text segment
gmake[1]: *** [fakemail] Error 1
gmake[1]: Leaving directory `/ccd/ports/japanese/mule-canna/work/mule-2.3/lib-src'
gmake: *** [lib-src] Error 2
===

After digging around the sources a bit, I came up with the following
patch to src/s/freebsd.h (this is for mule-canna/patches/patch-ac, the
same patch applies to editors/emacs):

===
Index: patches/patch-ac
===================================================================
RCS file: /usr/cvs/ports/japanese/mule-canna/patches/patch-ac,v
retrieving revision 1.3
diff -u -r1.3 patch-ac
--- patch-ac	1996/11/30 10:01:20	1.3
+++ patch-ac	1997/04/03 11:59:34
@@ -13,3 +13,12 @@
  
  /* Reread the time zone on startup. */
  #define LOCALTIME_CACHE
+@@ -81,6 +81,8 @@
+ #define BSD 199103
+ #elif __FreeBSD__ == 2
+ #define BSD 199306
++#elif __FreeBSD__ == 3
++#define BSD 199506
+ #endif
+ 
+ #define WAITTYPE int
===

I personally think this piece of code is one of the worst hacks I've
seen (and obviously a ticking time-bomb, as we just experienced).  If
this is ok, I'll commit the patch to all emacs/mule ports and submit
it back to FSF (although I prefer this fixed in some better way...hmm,
Bruce? :).

Satoshi



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199704031209.EAA18485>