First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 71183
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Andres Loeh (RETIRED) <kosmikus@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Leo Laursen <leo.laursen@gmail.com>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
helium-1.2.ebuild ebuild for helium with gcc34 text/plain Leo Laursen 2004-11-14 10:42 0000 1.55 KB Details
saved_helium-1.2-simple.patch patch to use simple libraries patch Leo Laursen 2004-11-14 10:47 0000 1.06 KB Details | Diff
helium-1.2-fixmakefile.patch Patch to fix the helium-1.2 makefile patch David Morgan 2004-11-16 14:28 0000 971 bytes Details | Diff
helium-1.2.ebuild helium-1.2 ebuild to apply fixmakefile patch text/plain David Morgan 2004-11-16 14:29 0000 1.55 KB Details
helium-1.2-install.patch patch for patching Makefile.in to be put in ../files folder patch Gour 2004-11-16 15:33 0000 1000 bytes Details | Diff
helium-1.2.ebuild.patch patch for patching helium-1.2.ebuild patch Gour 2004-11-16 15:34 0000 664 bytes Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 71183 depends on: Show dependency tree
Bug 71183 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2004-11-14 10:35 0000
Compilation fails with (from memory) redeclaration of snprintf.
System is a pentium4 with NPTL.



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

------- Comment #1 From Leo Laursen 2004-11-14 10:42:13 0000 -------
Created an attachment (id=43940) [edit]
ebuild for helium with gcc34

The fix is made with a sed line in the ebuild, since the file is created by
configure.
Unfortunately there is problems loading files from the book
Haskell: The craft of functional computing, even though both the book and
helium homepage claims that it works.
Additional patch is commented out.

------- Comment #2 From Leo Laursen 2004-11-14 10:47:06 0000 -------
Created an attachment (id=43941) [edit]
patch to use simple libraries

With this patch helium uses the simple version of libraries, which allows for
loading material from textbook, but alas without overloading, so only current
document is available.

------- Comment #3 From Alexander Jenisch 2004-11-15 07:41:06 0000 -------
is this patch already in portage? if no, is this the problem you are speaking
about, which the patch should fix or is this something different?

****************************************************
  LVMRUN: the bytecode interpreter
****************************************************
cd ../../lvm/src/runtime; make
make[1]: Entering directory
`/var/tmp/portage/helium-1.2/work/helium-1.2/lvm/src/runtime'
gcc -o core/main.o -c core/main.c -O2 -fno-defer-pop -Wall -I../config -I.
-Icommon
In file included from common/config.h:29,
                 from common/mlvalues.h:28,
                 from core/main.c:15:
../config/s.h:17:1: warning: "strncpy" redefined
In file included from /usr/include/string.h:417,
                 from core/main.c:12:
/usr/include/bits/string2.h:761:1: warning: this is the location of the
previous definition
In file included from common/mlvalues.h:29,
                 from core/main.c:15:
common/misc.h:80: error: conflicting types for 'snprintf'
common/misc.h:80: error: conflicting types for 'snprintf'
common/misc.h:88: error: conflicting types for 'vsnprintf'
common/misc.h:88: error: conflicting types for 'vsnprintf'
make[1]: *** [core/main.o] Error 1
make[1]: Leaving directory
`/var/tmp/portage/helium-1.2/work/helium-1.2/lvm/src/runtime'
make: *** [lvmrun] Error 2

------- Comment #4 From Leo Laursen 2004-11-15 09:13:58 0000 -------
Yes this is the problem that the sed line is for (see ebuild)
configure fails to recognise that (v)snprintf is available.
ofcause fixing configure is the way to go.

------- Comment #5 From David Morgan 2004-11-16 14:28:12 0000 -------
The patch kept being rejected when I tried to apply it (manually or with an
ebuild), so I applied the changed manually and made my own patch
(${P}-fixmakefile.patch) and ebuild (the first ebuild posted doesn't apply the
patch, hence the need for one that does)

You should probably test that my patch has the same result as applying the
original patch manually did though

------- Comment #6 From David Morgan 2004-11-16 14:28:59 0000 -------
Created an attachment (id=44100) [edit]
Patch to fix the helium-1.2 makefile

------- Comment #7 From David Morgan 2004-11-16 14:29:53 0000 -------
Created an attachment (id=44101) [edit]
helium-1.2 ebuild to apply fixmakefile patch

------- Comment #8 From Gour 2004-11-16 15:31:39 0000 -------
Hi!

Here I submit 'my' :-) patches which (they are just differently named:

1) helium-1.2-install.patch which patches Makefile for installing simple libraries and

2)helium-1.2.ebuild.patch which patches helium-1.2.ebuild

The patches apply cleanly, but I still cannot compile Helium on amd64 - ah, yes, the ebuild patch has keyword for 'amd64' arch.

Sincerely,
Gour

------- Comment #9 From Gour 2004-11-16 15:33:25 0000 -------
Created an attachment (id=44109) [edit]
patch for patching Makefile.in to be put in ../files folder

------- Comment #10 From Gour 2004-11-16 15:34:24 0000 -------
Created an attachment (id=44110) [edit]
patch for patching helium-1.2.ebuild

------- Comment #11 From Andres Loeh (RETIRED) 2004-11-18 05:40:38 0000 -------
I've done this just now. The gcc-patch is okay, but I didn't apply the
Makefile patch literally. Instead, I modified the ebuild to install both
sets of libraries (first: example-compatible, without type classes, default;
second: limited type class support). The second set of libraries can be
used by calling the helium-tc, texthint-tc, or hint-tc variants of the 
programs.

The new version does not yet include any fixes for amd64.

ks

------- Comment #12 From Andres Loeh (RETIRED) 2004-11-18 14:55:20 0000 -------
Some news:

I've reproduced the helium build error on amd64, and I've discussed it
with Arjan and Daan. Daan had discovered a potential problem source quickly,
but that turned out not to be the culprit. He promised to investigate
further ...

ks


------- Comment #13 From Gour 2004-11-24 11:14:16 0000 -------
Hi!

>I've reproduced the helium build error on amd64, and I've discussed it
with Arjan and Daan. Daan had discovered a potential problem source quickly,
but that turned out not to be the culprit. He promised to investigate
further ...

Thanks a lot for your support.

Sincerely,
Gour

------- Comment #14 From Mark Loeser 2005-11-23 22:48:49 0000 -------
This looks like its been fixed for quite some time now.

First Last Prev Next    No search results available      Search page      Enter new bug