d3js-haskell icon indicating copy to clipboard operation
d3js-haskell copied to clipboard

Fixed some build issues. Really bad, non-obvious one still left.

Open sheganinans opened this issue 11 years ago • 2 comments

Ouch.

aistis@localhost ~/projects/d3js-haskell (git)-[master] % cabal configure --enable-tests && cabal build && cabal test :( Resolving dependencies... Configuring d3js-0.1.0.0... Building d3js-0.1.0.0... Preprocessing library d3js-0.1.0.0... In-place registering d3js-0.1.0.0... Preprocessing test suite 'test' for d3js-0.1.0.0... Linking dist/build/test/test ... dist/build/test/test-tmp/Main.o: In function r4c2_info': (.text+0xb0a): undefined reference tod3jszm0zi1zi0zi0_D3JSziPreset_zdwmkSvg_info' dist/build/test/test-tmp/Main.o: In function s4nm_info': (.text+0x2b8c): undefined reference tod3jszm0zi1zi0zi0_D3JSziPreset_zdwenterData_info' dist/build/test/test-tmp/Main.o: In function r4db_info': (.text+0x3fd2): undefined reference tod3jszm0zi1zi0zi0_D3JSziPreset_zdwmkSvg_info' dist/build/test/test-tmp/Main.o: In function r4dc_info': (.text+0x406d): undefined reference tod3jszm0zi1zi0zi0_D3JSziPreset_zdwenterDatazq_info' dist/build/test/test-tmp/Main.o: In function s4Dt_info': (.text+0x72b4): undefined reference tod3jszm0zi1zi0zi0_D3JSziPreset_zdwenterData_info' dist/build/test/test-tmp/Main.o: In function r4c2_srt': (.data+0x340): undefined reference tod3jszm0zi1zi0zi0_D3JSziPreset_zdwmkSvg_closure' dist/build/test/test-tmp/Main.o: In function Main_rects4_srt': (.data+0xbf0): undefined reference tod3jszm0zi1zi0zi0_D3JSziPreset_zdwenterData_closure' dist/build/test/test-tmp/Main.o: In function r4db_srt': (.data+0xe88): undefined reference tod3jszm0zi1zi0zi0_D3JSziPreset_zdwmkSvg_closure' dist/build/test/test-tmp/Main.o: In function r4dc_srt': (.data+0xeb8): undefined reference tod3jszm0zi1zi0zi0_D3JSziPreset_zdwenterDatazq_closure' dist/build/test/test-tmp/Main.o: In function Main_main5_srt': (.data+0x1910): undefined reference tod3jszm0zi1zi0zi0_D3JSziPreset_zdwenterData_closure' /home/aistis/projects/d3js-haskell/dist/build/libHSd3js-0.1.0.0.a(Chart.o):(.text+0x788c): undefined reference to d3jszm0zi1zi0zi0_D3JSziPreset_zdwenterData_info' /home/aistis/projects/d3js-haskell/dist/build/libHSd3js-0.1.0.0.a(Chart.o):(.text+0x8adc): undefined reference tod3jszm0zi1zi0zi0_D3JSziPreset_zdwenterData_info' /home/aistis/projects/d3js-haskell/dist/build/libHSd3js-0.1.0.0.a(Chart.o):(.text+0xe6dc): undefined reference to d3jszm0zi1zi0zi0_D3JSziPreset_zdwenterData_info' /home/aistis/projects/d3js-haskell/dist/build/libHSd3js-0.1.0.0.a(Chart.o):(.text+0xfe94): undefined reference tod3jszm0zi1zi0zi0_D3JSziPreset_zdwenterData_info' /home/aistis/projects/d3js-haskell/dist/build/libHSd3js-0.1.0.0.a(Chart.o):(.data+0x15d0): undefined reference to d3jszm0zi1zi0zi0_D3JSziPreset_zdwenterData_closure' /home/aistis/projects/d3js-haskell/dist/build/libHSd3js-0.1.0.0.a(Chart.o):(.data+0x1ad0): undefined reference tod3jszm0zi1zi0zi0_D3JSziPreset_zdwenterData_closure' /home/aistis/projects/d3js-haskell/dist/build/libHSd3js-0.1.0.0.a(Chart.o):(.data+0x33f0): undefined reference to d3jszm0zi1zi0zi0_D3JSziPreset_zdwenterData_closure' /home/aistis/projects/d3js-haskell/dist/build/libHSd3js-0.1.0.0.a(Chart.o):(.data+0x3748): undefined reference tod3jszm0zi1zi0zi0_D3JSziPreset_zdwenterData_closure' collect2: error: ld returned 1 exit status

sheganinans avatar Jan 03 '14 05:01 sheganinans

The bug goes away if you copy the functions in Preset into the Example, then reference Main.enterData etc. I couldn't spot why sorry.

tonyday567 avatar Jan 08 '14 04:01 tonyday567

I've stumbled upon the some problem and the easiest way to fix this was to export the D3JS.Preset module in d3js.cabal

erdeszt avatar May 31 '15 20:05 erdeszt