Bug 72383 - Florist-3.15p compilation problem with an emerge florist.
Bug#: 72383 Product:  Gentoo Linux Version: unspecified Platform: x86
OS/Version: Linux Status: RESOLVED Severity: major Priority: P2
Resolution: FIXED Assigned To: ada@gentoo.org Reported By: david.barbassat@nerim.net
Component: Applications
URL: 
Summary: Florist-3.15p compilation problem with an emerge florist.
Keywords:  
Status Whiteboard: 
Opened: 2004-11-24 12:33 0000
Description:   Opened: 2004-11-24 12:33 0000
gcc -O2 -DVERSION="\"Florist-3.15p  (20020604)\"" -DLIBS="\"-lbsd -lnsl -lrt
-lpthread \"" -o c-posix c-posix.c -lbsd -lnsl -lrt -lpthread 
c-posix.c:6347:17: missing terminating " character
c-posix.c: In function `create_c':
c-posix.c:6348: error: syntax error before "POSIX_String"
c-posix.c:6348: error: stray '\' in program
c-posix.c:6348:32: missing terminating " character
c-posix.c:6349: error: `n' undeclared (first use in this function)
c-posix.c:6349: error: (Each undeclared identifier is reported only once
c-posix.c:6349: error: for each function it appears in.)
make: *** [c-posix] Error 1


Reproducible: Always
Steps to Reproduce:
1.emerge florist
2.
3.

Actual Results:  
Crash the compilation

Expected Results:  
Soft compiled ;)


At the line 6348 of c-posix.c there is :
      ifprintf(fp,"   subtype sun_path_string is 
   POSIX_String (1 .. %d);\n", sizeof (DUMMY.sun_path));

Correction :
  ifprintf(fp,"   subtype sun_path_string is POSIX_String (1 .. %d);\n", sizeof
(DUMMY.sun_path));

...
Explaination : there is a break line apparently wich is not correct...

------- Comment #1 From David Barbassat 2004-11-24 12:42:42 0000 -------
Created an attachment (id=44659) [details]
File corrected

Sorry I do not know about your parameters to do a patch file... sorry

------- Comment #2 From Carsten Lohrke 2004-11-24 13:42:04 0000 -------
David: Please do not assign, if you do not know to whom.

------- Comment #3 From Maxim Reznik 2005-02-20 03:35:58 0000 -------
I successfully install florist with follow small patch.
BTW who now works on Ada in Gentoo? David Holm?

------- Comment #4 From Maxim Reznik 2005-02-20 03:37:21 0000 -------
Created an attachment (id=51647) [details]
c-posix.c patch

c-posix.c patch

------- Comment #5 From Maxim Reznik 2005-02-20 03:38:26 0000 -------
Created an attachment (id=51648) [details]
ebuild with patching

ebuild with patching

------- Comment #6 From David Holm (RETIRED) 2005-02-23 01:45:07 0000 -------
Thank you for submitting this fix. Added to CVS.

George and me manage the Ada herd, but George is away until April.