First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 132308
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Michal Januszewski <spock@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Aurélien Francillon <aurelien.francillon@inrialpes.fr>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
hddtemp_iconv.patch iconv.h patch patch Aurélien Francillon 2006-05-04 19:53 0000 874 bytes Details | Diff
hddtemp_nls.patch nls patch patch Aurélien Francillon 2006-05-04 19:55 0000 364 bytes Details | Diff
hddtemp_uclibc.patch uclibc patch patch Aurélien Francillon 2006-05-04 19:55 0000 282 bytes Details | Diff
hddtemp_nls_0.2.patch updated nls patch patch Aurélien Francillon 2006-05-09 06:11 0000 379 bytes Details | Diff
hddtemp-0.3-beta15_execinfo.patch hddtemp-0.3-beta15_execinfo.patch patch Aurélien Francillon 2006-12-11 10:27 0000 751 bytes Details | Diff
hddtemp-0.3_beta15-iconv.patch hddtemp-0.3_beta15-iconv.patch patch Aurélien Francillon 2007-03-26 08:53 0000 911 bytes Details | Diff
hddtemp-0.3_beta15-nls.patch hddtemp-0.3_beta15-nls.patch patch Aurélien Francillon 2007-03-26 15:57 0000 414 bytes Details | Diff
hddtemp-0.3_beta15-r1.ebuild.patch hddtemp-0.3_beta15-r1.ebuild.patch patch Aurélien Francillon 2007-03-26 16:05 0000 607 bytes Details | Diff
hddtemp-0.3_beta15-iconv.patch hddtemp-0.3_beta15-iconv.patch patch Aurélien Francillon 2007-03-27 07:42 0000 780 bytes Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 132308 depends on: Show dependency tree
Bug 132308 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: 2006-05-04 19:52 0000
Hi, 
hddtemp fails to build on a uclibc/hardened host, the issues are relevant to
uclibc / nls /iconv 
there is thre bugs:
1) 
backtrace.c:24:22: execinfo.h: No such file or directory
backtrace.c: In function `backtrace_handler':
backtrace.c:114: warning: implicit declaration of function `backtrace'
backtrace.c:117: warning: implicit declaration of function `backtrace_symbols'
backtrace.c:117: warning: assignment makes pointer from integer without a cast
backtrace.c:46: warning: unused variable `old_eip'
backtrace.c:46: warning: unused variable `old_ebp'

2)
utf8.c:27:19: iconv.h: No such file or directory
utf8.c: In function `iconv_from_utf8_to_locale':
utf8.c:40: error: `iconv_t' undeclared (first use in this function)
utf8.c:40: error: (Each undeclared identifier is reported only once
utf8.c:40: error: for each function it appears in.)
utf8.c:40: error: syntax error before "cd"
utf8.c:58: error: `cd' undeclared (first use in this function)
utf8.c:58: warning: implicit declaration of function `iconv_open'
utf8.c:71: warning: implicit declaration of function `iconv'
utf8.c:87: warning: implicit declaration of function `iconv_close'

3)
hddtemp.c:254: warning: implicit declaration of function `bindtextdomain'
hddtemp.c:255: warning: implicit declaration of function `textdomain'
hddtemp-hddtemp.o: In function `main':
hddtemp.c:(.text+0x3d2): undefined reference to `bindtextdomain'
hddtemp.c:(.text+0x3da): undefined reference to `textdomain'
collect2: ld returned 1 exit status

I will provides the patches. I can't test it fully as my hd doesn't have a
temperature sensor :(
But as far as i can test, it's ok, however some more testing might be good ..
thanks 
Aur

------- Comment #1 From Aurélien Francillon 2006-05-04 19:52:54 0000 -------
Hi, 
hddtemp fails to build on a uclibc/hardened host, the issues are relevant to
uclibc / nls /iconv 
there is thre bugs:
1) 
backtrace.c:24:22: execinfo.h: No such file or directory
backtrace.c: In function `backtrace_handler':
backtrace.c:114: warning: implicit declaration of function `backtrace'
backtrace.c:117: warning: implicit declaration of function `backtrace_symbols'
backtrace.c:117: warning: assignment makes pointer from integer without a cast
backtrace.c:46: warning: unused variable `old_eip'
backtrace.c:46: warning: unused variable `old_ebp'

2)
utf8.c:27:19: iconv.h: No such file or directory
utf8.c: In function `iconv_from_utf8_to_locale':
utf8.c:40: error: `iconv_t' undeclared (first use in this function)
utf8.c:40: error: (Each undeclared identifier is reported only once
utf8.c:40: error: for each function it appears in.)
utf8.c:40: error: syntax error before "cd"
utf8.c:58: error: `cd' undeclared (first use in this function)
utf8.c:58: warning: implicit declaration of function `iconv_open'
utf8.c:71: warning: implicit declaration of function `iconv'
utf8.c:87: warning: implicit declaration of function `iconv_close'

3)
hddtemp.c:254: warning: implicit declaration of function `bindtextdomain'
hddtemp.c:255: warning: implicit declaration of function `textdomain'
hddtemp-hddtemp.o: In function `main':
hddtemp.c:(.text+0x3d2): undefined reference to `bindtextdomain'
hddtemp.c:(.text+0x3da): undefined reference to `textdomain'
collect2: ld returned 1 exit status

I will provides the patches. I can't test it fully as my hd doesn't have a
temperature sensor :(
But as far as i can test, it's ok, however some more testing might be good ..
thanks 
Aurélien

------- Comment #2 From Aurélien Francillon 2006-05-04 19:53:35 0000 -------
Created an attachment (id=86177) [details]
iconv.h patch 

------- Comment #3 From Aurélien Francillon 2006-05-04 19:55:16 0000 -------
Created an attachment (id=86178) [details]
nls  patch 

------- Comment #4 From Aurélien Francillon 2006-05-04 19:55:50 0000 -------
Created an attachment (id=86179) [details]
uclibc patch 

------- Comment #5 From Jakub Moc (RETIRED) 2006-05-04 23:31:06 0000 -------
bug-wranglers@gentoo.org

------- Comment #6 From solar 2006-05-07 06:53:06 0000 -------
+#if !defined(HAVE_CONFIG_H) || defined(HAVE_ICONV)
I don't understand the your logic used here. (otherwise thanks for the patches.
it's exactly the right way to handle these problems)

------- Comment #7 From solar 2006-05-07 06:54:49 0000 -------
The setlocale() should really be wrapped in the ENABLE_NLS or the stub defs
should 
be used.

------- Comment #8 From Aurélien Francillon 2006-05-09 05:42:59 0000 -------
(In reply to comment #5)
> +#if !defined(HAVE_CONFIG_H) || defined(HAVE_ICONV)
> I don't understand the your logic used here. 

My point is that if there is no config.h (i.e. compiling the code without
configure ... ) i don't want to drop the iconv support ...
Ok this is maybe not relevant ...
Do you want me to update the patch witout this ?
Cheers 
Aur

------- Comment #9 From Aurélien Francillon 2006-05-09 05:42:59 0000 -------
(In reply to comment #5)
> +#if !defined(HAVE_CONFIG_H) || defined(HAVE_ICONV)
> I don't understand the your logic used here. 

My point is that if there is no config.h (i.e. compiling the code without
configure ... ) i don't want to drop the iconv support ...
Ok this is maybe not relevant ...
Do you want me to update the patch witout this ?
Cheers 
Aurélien

------- Comment #10 From Aurélien Francillon 2006-05-09 06:11:05 0000 -------
Created an attachment (id=86475) [details]
updated nls patch 

now includes setlocale inside the ENABLE_NLS
thanks for the comment 
Aur

------- Comment #11 From Aurélien Francillon 2006-05-09 06:11:05 0000 -------
Created an attachment (id=86475) [details]
updated nls patch 

now includes setlocale inside the ENABLE_NLS
thanks for the comment 
Aurélien

------- Comment #12 From solar 2006-05-25 15:06:01 0000 -------
These patches look good to me.

------- Comment #13 From Aurélien Francillon 2006-09-06 06:05:33 0000 -------
Hi,
I sent a mail to the developer of hddtemp about one month ago, didn't receive
any answer. Would you consider pushing these patches to portage?
Thanks
Aur

------- Comment #14 From Aurélien Francillon 2006-09-06 06:05:33 0000 -------
Hi,
I sent a mail to the developer of hddtemp about one month ago, didn't receive
any answer. Would you consider pushing these patches to portage?
Thanks
Aurélien

------- Comment #15 From SpanKY 2006-09-08 19:44:34 0000 -------
the patch for src/backtrace.c should be a proper configure check ... only add
support for that if the toolchain has the execinfo.h header

------- Comment #16 From Aurélien Francillon 2006-12-11 10:27:07 0000 -------
Created an attachment (id=103817) [details]
hddtemp-0.3-beta15_execinfo.patch

Hi,
I (finally) updated the patch according to your comments about execinfo.h
as it includes a patch of configure.in, autoconf needs to be executed after
patching.
But it fails if launched with ./autogen.sh because aclocal can't find 
AM_GNU_GETTEXT* macros. The script should use aclocal-1.9, previous ones
returns the error code 1. Ok may not really matter... 

thanks 
Aur

------- Comment #17 From Aurélien Francillon 2006-12-11 10:27:07 0000 -------
Created an attachment (id=103817) [details]
hddtemp-0.3-beta15_execinfo.patch

Hi,
I (finally) updated the patch according to your comments about execinfo.h
as it includes a patch of configure.in, autoconf needs to be executed after
patching.
But it fails if launched with ./autogen.sh because aclocal can't find 
AM_GNU_GETTEXT* macros. The script should use aclocal-1.9, previous ones
returns the error code 1. Ok may not really matter... 

thanks 
Aurélien

------- Comment #18 From SpanKY 2007-03-25 13:44:10 0000 -------
thanks, that's something that should be sent upstream too :)

------- Comment #19 From Aurélien Francillon 2007-03-26 08:53:59 0000 -------
Created an attachment (id=114465) [details]
hddtemp-0.3_beta15-iconv.patch

updated iconv patch to  hddtemp-0.3_beta15

------- Comment #20 From Aurélien Francillon 2007-03-26 15:57:35 0000 -------
Created an attachment (id=114502) [details]
hddtemp-0.3_beta15-nls.patch

updated nls patch to hddtemp-0.3_beta15

------- Comment #21 From Aurélien Francillon 2007-03-26 16:05:02 0000 -------
Created an attachment (id=114504) [details]
hddtemp-0.3_beta15-r1.ebuild.patch

Patch for the ebuild in order to apply previous patches and rerun autotools.

------- Comment #22 From SpanKY 2007-03-26 23:17:28 0000 -------
i think the HAVE_CONFIG_H check is pointless as rarely should the code be
compiled outside of configure

also, the iconv one is a little extensive ... that last hunk could simply read:
   free(src_buffer);                    // free string
+#endif
+
   return strdup(fallback_string);      // and return fallback string

------- Comment #23 From Aurélien Francillon 2007-03-27 07:42:54 0000 -------
Created an attachment (id=114578) [details]
hddtemp-0.3_beta15-iconv.patch

thanks for your comments spanky, updated patch, 
i have sent patches to hddtemp-dev mailing list

------- Comment #24 From Michal Januszewski 2007-07-29 21:29:52 0000 -------
Thanks for the patches! They are included in hddtemp-0.3_beta15-r2.

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