www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 6370] New: [RDMD] Cannot compile with etc.c.sqlite3

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=6370

           Summary: [RDMD] Cannot compile with etc.c.sqlite3
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: michal.minich gmail.com



PDT ---
rdmd will not compile program that imports etc.c.sqlite3 while dmd with the
same command line will.

test.d
import etc.c.sqlite3;
void main () {};

cmdline
rdmd test.d -c

Error: 
module sqlite3_bindings from file
dmd2/linux/bin64/../../src/phobos/etc/c/sqlite3.d conflicts with another module
sqlite3_bindings from file dmd2/linux/bin64/../../src/phobos/etc/c/sqlite3.d

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jul 23 2011
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=6370


Dmitry Olshansky <dmitry.olsh gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dmitry.olsh gmail.com



10:42:38 PDT ---
The root of the problem seems to be the wrong module name in etc/c/sqlite.d

Try to change it's first line to:
module etc.c.sqlite;

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jul 23 2011
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=6370




PDT ---
dmd handles it well, rdmd ends with similar error

module etc.c.sqlite from file dmd2/linux/bin64/../../src/phobos/etc/c/sqlite3.d
conflicts with another module sqlite from file
dmd2/linux/bin64/../../src/phobos/etc/c/sqlite3.d

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jul 23 2011
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=6370




10:56:32 PDT ---
Sorry, I've botched it, that supposed to be etc.c.sqlite3, just like you import
it

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jul 23 2011
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=6370




PDT ---
No prob, I should pay more attention. (is the '3' really needed, I keep
forgetting it)

Now it compiles ok, but fails to link with rdmd, I guess this is another
problem, but I suppose when dmd handles it, rdmd should too.

Command:
rdmd -L-ldl -L/usr/lib/x86_64-linux-gnu/libsqlite3.a -w -debug -g Main.d

Output:
/usr/lib/x86_64-linux-gnu/libsqlite3.a(sqlite3.o):(.rodata+0x2950): multiple
definition of `sqlite3_version'
/tmp/.rdmd/rdmd-Main.d-A0E982B2A9146FCDB47E9452DF01F7A4/Main.d.o:(.bss+0x0):
first defined here
/usr/bin/ld: Warning: size of symbol `sqlite3_version' changed from 8 in
/tmp/.rdmd/rdmd-Main.d-A0E982B2A9146FCDB47E9452DF01F7A4/Main.d.o to 6 in
/usr/lib/x86_64-linux-gnu/libsqlite3.a(sqlite3.o)
/usr/bin/ld: sqlite3_temp_directory: TLS definition in
/tmp/.rdmd/rdmd-Main.d-A0E982B2A9146FCDB47E9452DF01F7A4/Main.d.o section .tbss
mismatches non-TLS definition in
/usr/lib/x86_64-linux-gnu/libsqlite3.a(sqlite3.o) section .bss
/usr/lib/x86_64-linux-gnu/libsqlite3.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
--- errorlevel 1

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jul 23 2011
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=6370


Vladimir Panteleev <thecybershadow gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |thecybershadow gmail.com
         Resolution|                            |WORKSFORME



10:12:24 EET ---
IIRC these were bugs in the etc.c.sqlite3 module that I've fixed a while ago.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 10 2013