ipilcher / n5550

Thecus N5550 hardware support
GNU General Public License v2.0
8 stars 8 forks source link

Can't build development snapshot #2

Closed mheubach closed 9 years ago

mheubach commented 10 years ago

Hi Ian,

I can't build the development snapshot (or whatever it is called in GitHub) of n5550. I get these errors (libcip is also built from the development snapshot - but it also happens with the released version).

I'm not quite sure where to start for this error - maybe you know a quick solution. The problem behind this is, that only the module built with the development snapshot works. The module built with the release won't load (tested with Debian Wheezy and Jessie).

Regards Manfred

ipilcher commented 10 years ago

Manfred -

I just wanted to let you know that I'm traveling this week, so I'm not 100% sure when I'll be able to look at this.

In the meantime, however, be aware that you should be able to use the "release" version of the daemon with the "development" version of the kernel modules.

HTH

Hi Ian,

I can't build the development snapshot (or whatever it is called in GitHub) of n5550. I get these errors (libcip is also built from the development snapshot - but it also happens with the released version).

I'm not quite sure where to start for this error - maybe you know a quick solution. The problem behind this is, that only the module built with the development snapshot works. The module built with the release won't load (tested with Debian Wheezy and Jessie).

Regards Manfred

— Reply to this email directly or view it on GitHub https://github.com/ipilcher/n5550/issues/2.

mheubach commented 10 years ago

H Ian,

that’s fine. Modules work. Daemon works.

To have the system running under Debian and Ubuntu it’s sufficient to copy the modules to …/kernel/drivers/misc and run depmod. Further I have these modules in /etc/initramfs-tools/modules and run update-initramfs:

i2c-i801 leds-pca9532 gpio-pca953x i2c-core n5550_ahci_leds n5550_board

We are now trying to locate where the 4 switches are connected to. There must be some gpio where to read them from.

Manfred

manfred heubach edv und kommunikation freiheit für ihr netzwerk t. +49 711 490493-11 (-0) f. +49 711 490493-29 Hindenburgstr. 171 73730 Esslingen

Von: Ian Pilcher [mailto:notifications@github.com] Gesendet: Dienstag, 5. August 2014 05:53 An: ipilcher/n5550 Cc: Manfred Heubach Betreff: Re: [n5550] Can't build development snapshot (#2)

Manfred -

I just wanted to let you know that I'm traveling this week, so I'm not 100% sure when I'll be able to look at this.

In the meantime, however, be aware that you should be able to use the "release" version of the daemon with the "development" version of the kernel modules.

HTH

Hi Ian,

I can't build the development snapshot (or whatever it is called in GitHub) of n5550. I get these errors (libcip is also built from the development snapshot - but it also happens with the released version).

I'm not quite sure where to start for this error - maybe you know a quick solution. The problem behind this is, that only the module built with the development snapshot works. The module built with the release won't load (tested with Debian Wheezy and Jessie).

Regards Manfred

— Reply to this email directly or view it on GitHub https://github.com/ipilcher/n5550/issues/2.

— Reply to this email directly or view it on GitHubhttps://github.com/ipilcher/n5550/issues/2#issuecomment-51147094.

ipilcher commented 10 years ago

I assume that you are referring to the 4 buttons on the front panel, right? They are connected to the PIC that controls the LCD. As far as I know, no one has ever figured out how to read them through the PIC.

It is possible to move the end of the cable onto the jumper block that the Thecus software uses to identify the specific model on which it is running. They can then be read through 4 GPIOs connected to one of the PCA9532s. (See the #ifdef'ed out code in n5550_board.c.)

HTH On Aug 5, 2014 1:25 AM, "mheubach" notifications@github.com wrote:

H Ian,

that’s fine. Modules work. Daemon works.

To have the system running under Debian and Ubuntu it’s sufficient to copy the modules to …/kernel/drivers/misc and run depmod. Further I have these modules in /etc/initramfs-tools/modules and run update-initramfs:

i2c-i801 leds-pca9532 gpio-pca953x i2c-core n5550_ahci_leds n5550_board

We are now trying to locate where the 4 switches are connected to. There must be some gpio where to read them from.

Manfred

manfred heubach edv und kommunikation freiheit für ihr netzwerk t. +49 711 490493-11 (-0) f. +49 711 490493-29 Hindenburgstr. 171 73730 Esslingen

Von: Ian Pilcher [mailto:notifications@github.com] Gesendet: Dienstag, 5. August 2014 05:53 An: ipilcher/n5550 Cc: Manfred Heubach Betreff: Re: [n5550] Can't build development snapshot (#2)

Manfred -

I just wanted to let you know that I'm traveling this week, so I'm not 100% sure when I'll be able to look at this.

In the meantime, however, be aware that you should be able to use the "release" version of the daemon with the "development" version of the kernel modules.

HTH

Hi Ian,

I can't build the development snapshot (or whatever it is called in GitHub) of n5550. I get these errors (libcip is also built from the development snapshot - but it also happens with the released version).

I'm not quite sure where to start for this error - maybe you know a quick solution. The problem behind this is, that only the module built with the development snapshot works. The module built with the release won't load (tested with Debian Wheezy and Jessie).

Regards Manfred

  • gcc -Os -Wall -Wextra -pthread -lrt -o freecusd alert.c conf.c cputemp.c err.c hddtemp.c lib.c loadavg.c main.c pic.c proc.c raid.c smart.c sysfan.c tty.c /tmp/ccQxar75.o: In function fcd_conf_raiddisks_cb': conf.c:(.text+0x47): undefined reference tocip_err' conf.c:(.text+0x7a): undefined reference to cip_err' /tmp/ccQxar75.o: In functionfcd_conf_disk_idx': conf.c:(.text+0x1b4): undefined reference to cip_err' /tmp/ccQxar75.o: In functionfcd_conf_parse': conf.c:(.text+0x20a): undefined reference to cip_err_ctx_init' conf.c:(.text+0x214): undefined reference tocip_file_schema_new1' conf.c:(.text+0x226): undefined reference to cip_last_err' conf.c:(.text+0x242): undefined reference tocip_sect_schema_new2' conf.c:(.text+0x254): undefined reference to cip_last_err' conf.c:(.text+0x28f): undefined reference tocip_sect_schema_new1' conf.c:(.text+0x2a1): undefined reference to cip_last_err' conf.c:(.text+0x2f8): undefined reference tocip_opt_type_bool' conf.c:(.text+0x300): undefined reference to cip_opt_schema_new1' conf.c:(.text+0x316): undefined reference tocip_opt_schema_new3' conf.c:(.text+0x32c): undefined reference to cip_opt_schema_new3' conf.c:(.text+0x39c): undefined reference tocip_parse_stream' conf.c:(.text+0x3ae): undefined reference to cip_last_err' conf.c:(.text+0x3e8): undefined reference tocip_ini_file_free' conf.c:(.text+0x3f0): undefined reference to cip_file_schema_free' conf.c:(.text+0x3fa): undefined reference tocip_err_ctx_fini' conf.c:(.text+0x411): undefined reference to cip_last_err' /tmp/ccQxar75.o:(.rodata+0x28): undefined reference tocip_opt_type_str_list' /tmp/cc7su7WR.o: In function fcd_cputemp_cb': cputemp.c:(.text+0x8d): undefined reference tocip_err' cputemp.c:(.text+0xbf): undefined reference to cip_err' /tmp/cc7su7WR.o:(.rodata+0x18): undefined reference tocip_opt_type_float' /tmp/cc7su7WR.o:(.rodata+0x48): undefined reference to cip_opt_type_float' /tmp/ccW5Yzfr.o: In functionfcd_hddtemp_raiddisk_cb': hddtemp.c:(.text+0x39): undefined reference to cip_err' /tmp/ccW5Yzfr.o: In functionfcd_hddtemp_freecusd_cb': hddtemp.c:(.text+0x71): undefined reference to cip_err' /tmp/ccW5Yzfr.o:(.rodata+0x8): undefined reference tocip_opt_type_bool' /tmp/ccW5Yzfr.o:(.rodata+0x38): undefined reference to cip_opt_type_int' /tmp/ccW5Yzfr.o:(.rodata+0x68): undefined reference tocip_opt_type_int' /tmp/ccW5Yzfr.o:(.rodata+0xc8): undefined reference to cip_opt_type_int' /tmp/ccW5Yzfr.o:(.rodata+0xf8): undefined reference tocip_opt_type_int' /tmp/ccQLi6U3.o: In function fcd_loadavg_cb': loadavg.c:(.text+0x49): undefined reference tocip_err' loadavg.c:(.text+0x88): undefined reference to cip_err' /tmp/ccQLi6U3.o:(.rodata+0x18): undefined reference tocip_opt_type_float_list' /tmp/ccQLi6U3.o:(.rodata+0x48): undefined reference to cip_opt_type_float_list' /tmp/cc2FhYel.o:(.rodata+0x8): undefined reference tocip_opt_type_bool' /tmp/cc0vgyEe.o: In function fcd_sysfan_rpm_cb': sysfan.c:(.text+0x4c): undefined reference tocip_err' /tmp/cc0vgyEe.o:(.rodata+0x38): undefined reference to cip_opt_type_int' /tmp/cc0vgyEe.o:(.rodata+0x68): undefined reference tocip_opt_type_int' collect2: error: ld returned 1 exit status error: Bad exit status from /var/tmp/rpm-tmp.sOjz9h (%build)

— Reply to this email directly or view it on GitHub https://github.com/ipilcher/n5550/issues/2.

— Reply to this email directly or view it on GitHub< https://github.com/ipilcher/n5550/issues/2#issuecomment-51147094>.

— Reply to this email directly or view it on GitHub https://github.com/ipilcher/n5550/issues/2#issuecomment-51155579.

ipilcher commented 10 years ago

Re the original problem in this report, you need to add "-lcip" (without the quotes) to your gcc command. This will tell the linker to pull in libcip, which is where those missing functions reside.

ipilcher commented 10 years ago

Manfred -

What is your e-mail address? I want to send an e-mail to all known users of this software re some changes that I'm planning to make.

Mine is arequipeno@gmail.com, BTW.

Thanks!

mheubach commented 10 years ago

Hi Ian,

now I tried again to build the current development snapshot of freecusd on Ubuntu 14.04. I still get the same error. –lcip is included in the gcc command. Libcip is also built from the development snapshot. If I omit –lcip I get exactly the same errors. Any ideas?

Manfred

root@gdb:~/packages/n5550-0.2.1/freecusd# gcc -Os -Wall -Wextra -pthread -lcip -o freecusd *.c err.c: In function ‘fcd_err_child_pabort’: err.c:235:7: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result] write(fcd_err_child_errfd, fcd_err_buf, fcd_err_len); ^ /tmp/ccfz8Eqn.o: In function fcd_err_child_pabort': err.c:(.text+0x390): warning:sys_errlist' is deprecated; use strerror' orstrerror_r' instead err.c:(.text+0x386): warning: sys_nerr' is deprecated; usestrerror' or strerror_r' instead /tmp/ccfH89wt.o: In functionfcd_conf_raiddisks_cb': conf.c:(.text+0x4b): undefined reference to cip_err' conf.c:(.text+0x7f): undefined reference tocip_err' /tmp/ccfH89wt.o: In function fcd_conf_disk_idx': conf.c:(.text+0x1bc): undefined reference tocip_err' /tmp/ccfH89wt.o: In function fcd_conf_parse': conf.c:(.text+0x28c): undefined reference tocip_err_ctx_init' conf.c:(.text+0x296): undefined reference to cip_file_schema_new1' conf.c:(.text+0x2a8): undefined reference tocip_last_err' conf.c:(.text+0x2c4): undefined reference to cip_sect_schema_new2' conf.c:(.text+0x2d6): undefined reference tocip_last_err' conf.c:(.text+0x311): undefined reference to cip_sect_schema_new1' conf.c:(.text+0x323): undefined reference tocip_last_err' conf.c:(.text+0x37a): undefined reference to cip_opt_type_bool' conf.c:(.text+0x382): undefined reference tocip_opt_schema_new1' conf.c:(.text+0x398): undefined reference to cip_opt_schema_new3' conf.c:(.text+0x3ae): undefined reference tocip_opt_schema_new3' conf.c:(.text+0x41e): undefined reference to cip_parse_stream' conf.c:(.text+0x430): undefined reference tocip_last_err' conf.c:(.text+0x46a): undefined reference to cip_ini_file_free' conf.c:(.text+0x472): undefined reference tocip_file_schema_free' conf.c:(.text+0x47c): undefined reference to cip_err_ctx_fini' conf.c:(.text+0x493): undefined reference tocip_last_err' /tmp/ccfH89wt.o:(.rodata+0x28): undefined reference to cip_opt_type_str_list' /tmp/cccoFzf6.o: In functionfcd_cputemp_cb': cputemp.c:(.text+0x8d): undefined reference to cip_err' cputemp.c:(.text+0xbf): undefined reference tocip_err' /tmp/cccoFzf6.o:(.rodata+0x18): undefined reference to cip_opt_type_float' /tmp/cccoFzf6.o:(.rodata+0x48): undefined reference tocip_opt_type_float' /tmp/ccOXdz71.o: In function fcd_hddtemp_check_temp': hddtemp.c:(.text+0x16): undefined reference tocip_err' hddtemp.c:(.text+0x30): undefined reference to cip_err' /tmp/ccOXdz71.o:(.rodata+0x8): undefined reference tocip_opt_type_bool' /tmp/ccOXdz71.o:(.rodata+0x38): undefined reference to cip_opt_type_int' /tmp/ccOXdz71.o:(.rodata+0x68): undefined reference tocip_opt_type_int' /tmp/ccOXdz71.o:(.rodata+0xc8): undefined reference to cip_opt_type_int' /tmp/ccOXdz71.o:(.rodata+0xf8): undefined reference tocip_opt_type_int' /tmp/ccWrMP7n.o: In function fcd_loadavg_cb': loadavg.c:(.text+0x49): undefined reference tocip_err' loadavg.c:(.text+0x88): undefined reference to cip_err' /tmp/ccWrMP7n.o:(.rodata+0x18): undefined reference tocip_opt_type_float_list' /tmp/ccWrMP7n.o:(.rodata+0x48): undefined reference to cip_opt_type_float_list' /tmp/ccFhY57Z.o:(.rodata+0x8): undefined reference tocip_opt_type_bool' /tmp/cch7UMiL.o: In function fcd_sysfan_rpm_cb': sysfan.c:(.text+0x4c): undefined reference tocip_err' /tmp/cch7UMiL.o:(.rodata+0x38): undefined reference to cip_opt_type_int' /tmp/cch7UMiL.o:(.rodata+0x68): undefined reference tocip_opt_type_int' collect2: error: ld returned 1 exit status

manfred heubach edv und kommunikation freiheit für ihr netzwerk t. +49 711 490493-11 (-0) f. +49 711 490493-29 Hindenburgstr. 171 73730 Esslingen

Von: Ian Pilcher [mailto:notifications@github.com] Gesendet: Montag, 11. August 2014 22:15 An: ipilcher/n5550 Cc: Manfred Heubach Betreff: Re: [n5550] Can't build development snapshot (#2)

Re the original problem in this report, you need to add "-lcip" (without the quotes) to your gcc command. This will tell the linker to pull in libcip, which is where those missing functions reside.

— Reply to this email directly or view it on GitHubhttps://github.com/ipilcher/n5550/issues/2#issuecomment-51834112.

ipilcher commented 10 years ago

On 09/20/2014 02:09 PM, mheubach wrote:

now I tried again to build the current development snapshot of freecusd on Ubuntu 14.04. I still get the same error. –lcip is included in the gcc command. Libcip is also built from the development snapshot. If I omit –lcip I get exactly the same errors.

Looks like it's this:

http://askubuntu.com/questions/194193/why-do-i-get-undefined-reference-errors-when-linking-against-openssl

Changing the gcc command to:

gcc -Os -Wall -Wextra -pthread -o freecusd *.c -lcip

worked for me.

Ian Pilcher arequipeno@gmail.com

-------- "I grew up before Mark Zuckerberg invented friendship" --------

mheubach commented 9 years ago

Hi Ian,

this did the trick :-)

Thanks a lot! Manfred

manfred heubach edv und kommunikation freiheit für ihr netzwerk t. +49 711 490493-11 (-0) f. +49 711 490493-29 Hindenburgstr. 171 73730 Esslingen

Von: Ian Pilcher [mailto:notifications@github.com] Gesendet: Montag, 22. September 2014 16:04 An: ipilcher/n5550 Cc: Manfred Heubach Betreff: Re: [n5550] Can't build development snapshot (#2)

On 09/20/2014 02:09 PM, mheubach wrote:

now I tried again to build the current development snapshot of freecusd on Ubuntu 14.04. I still get the same error. –lcip is included in the gcc command. Libcip is also built from the development snapshot. If I omit –lcip I get exactly the same errors.

Looks like it's this:

http://askubuntu.com/questions/194193/why-do-i-get-undefined-reference-errors-when-linking-against-openssl

Changing the gcc command to:

gcc -Os -Wall -Wextra -pthread -o freecusd *.c -lcip

worked for me.

Ian Pilcher arequipeno@gmail.commailto:arequipeno@gmail.com

-------- "I grew up before Mark Zuckerberg invented friendship" --------

— Reply to this email directly or view it on GitHubhttps://github.com/ipilcher/n5550/issues/2#issuecomment-56377286.