On Friday, 12 April 2013 at 09:03:56 UTC, kdmult wrote:
Hi Vadim,

Does anyone have an idea what to do next?

It would be great if you publish the DUB package.
Please refer to http://registry.vibed.org/publish.

There is a hint.
Page http://registry.vibed.org/ lists registered DUB packages. To see them you have to register and sign in there. Otherwise, you will see some product info page.

Trying to package DDBC.

https://github.com/buggins/ddbc

dub build fails.
It looks like it tries to build application instead of library, although I specified "targetType": "staticLibrary",


Checking dependencies in '/home/lve/src/ddbc'
Building configuration "MySQL", build type debug
Running dmd (compile)...
Linking...
/usr/lib/x86_64-linux-gnu/libphobos2.a(dmain2_47f_1a5.o): In function `main':
src/rt/dmain2.d:(.text.main+0xa): undefined reference to `_Dmain'
/usr/lib/x86_64-linux-gnu/libphobos2.a(thread_1a1_1b8.o): In function `_D4core6thread6Thread6__ctorMFZC4core6thread6Thread': src/core/thread.d:(.text._D4core6thread6Thread6__ctorMFZC4core6thread6Thread+0x26): undefined reference to `_tlsend' src/core/thread.d:(.text._D4core6thread6Thread6__ctorMFZC4core6thread6Thread+0x31): undefined reference to `_tlsstart' /usr/lib/x86_64-linux-gnu/libphobos2.a(deh2_45f_525.o): In function `_D2rt4deh213__eh_finddataFPvZPS2rt4deh29FuncTable':
....
src/core/thread.d:(.text.thread_entryPoint+0xb0): undefined reference to `_tlsstart'
collect2: error: ld returned 1 exit status
--- errorlevel 1
Error: no main function specified
Error: Link command failed with exit code 1


{
    "name": "DDBC",
    "description": "DB Connector for D language, similar to JDBC",
    "authors": ["Vadim Lopatin"],
    "homepage": "http://sourceforge.net/projects/ddbc";,
    "license": "Boost Software License (BSL 1.0)",
    "dependencies": {
    },
    "targetType": "staticLibrary",
    "configurations": [
        {
            "name": "MySQL",
            "versions": ["USE_MYSQL"]
        },
        {
            "name": "SQLite",
            "versions": ["USE_SQLITE"],
            "libs-posix": ["sqlite3"],
            "libs-windows": ["sqlite3.lib"]
        },
        {
            "name": "PGSQL",
            "versions": ["USE_PGSQL"],
            "libs-posix": ["pq"],
            "libs-windows": ["libpq.lib"]
        }
    ]
}

Reply via email to