View mode: basic / threaded / horizontal-split · Log in · Help
January 13, 2013
[Issue 9311] New: shared library file extension incorrectly modified
http://d.puremagic.com/issues/show_bug.cgi?id=9311

          Summary: shared library file extension incorrectly modified
          Product: D
          Version: D2
         Platform: All
       OS/Version: Linux
           Status: NEW
         Severity: normal
         Priority: P2
        Component: DMD
       AssignedTo: nobody@puremagic.com
       ReportedBy: g.sayol@yahoo.es


--- Comment #0 from Jordi Sayol <g.sayol@yahoo.es> 2013-01-12 22:26:50 PST ---
On Linux, when generating a shared library and the file extension given to
"-of" is not "so", dmd always replaces it with "so".

i.e.
$ dmd -shared -oflibfoo.so.0.2.6 foo.o

generates "libfoo.so.0.2.so" when expected "libfoo.so.0.2.6"

"release" version number is incorrectly replaced by "so"

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 13, 2013
[Issue 9311] shared library file extension incorrectly modified
http://d.puremagic.com/issues/show_bug.cgi?id=9311


Andrej Mitrovic <andrej.mitrovich@gmail.com> changed:

          What    |Removed                     |Added
----------------------------------------------------------------------------
                CC|                            |andrej.mitrovich@gmail.com


--- Comment #1 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2013-01-13 08:15:11 PST ---
My guess is this is to blame in dmars.c:

// None of that a.out stuff. Use explicit exe file name, or
// generate one from name of first source file.
global.params.exefile = FileName::forceExt(global.params.exefile,
global.dll_ext)->toChars();

If the only thing wanted is to replace "a.out" with "a.so", then `forceExt`
should check the extension before attempting to replace it. 

@Walter what's your take?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
April 28, 2013
[Issue 9311] shared library file extension incorrectly modified
http://d.puremagic.com/issues/show_bug.cgi?id=9311


Walter Bright <bugzilla@digitalmars.com> changed:

          What    |Removed                     |Added
----------------------------------------------------------------------------
                CC|                            |bugzilla@digitalmars.com
           Version|D2                          |D1 & D2


--- Comment #2 from Walter Bright <bugzilla@digitalmars.com> 2013-04-28 13:37:05 PDT ---
https://github.com/D-Programming-Language/dmd/pull/1944

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 05, 2013
[Issue 9311] shared library file extension incorrectly modified
http://d.puremagic.com/issues/show_bug.cgi?id=9311



--- Comment #3 from github-bugzilla@puremagic.com 2013-05-04 19:43:04 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/fec3a379278f7d5b096295c24ff88b0fc5cbd3fa
fix Issue 9311 - shared library file extension incorrectly modified

https://github.com/D-Programming-Language/dmd/commit/ab4ec8df244d3948e56dc88efda2aba571b4969b
Merge pull request #1944 from WalterBright/fix9311

fix Issue 9311 - shared library file extension incorrectly modified

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 05, 2013
[Issue 9311] shared library file extension incorrectly modified
http://d.puremagic.com/issues/show_bug.cgi?id=9311



--- Comment #4 from github-bugzilla@puremagic.com 2013-05-04 23:39:49 PDT ---
Commit pushed to dmd-1.x at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/7fab11e61609ada6eee4140f0888305b13262b7e
Merge pull request #1944 from WalterBright/fix9311

fix Issue 9311 - shared library file extension incorrectly modified

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 05, 2013
[Issue 9311] shared library file extension incorrectly modified
http://d.puremagic.com/issues/show_bug.cgi?id=9311


Jordi Sayol <g.sayol@yahoo.es> changed:

          What    |Removed                     |Added
----------------------------------------------------------------------------
            Status|NEW                         |RESOLVED
        Resolution|                            |FIXED


--- Comment #5 from Jordi Sayol <g.sayol@yahoo.es> 2013-05-05 02:36:11 PDT ---
Fixed bug with Walter's pull request
https://github.com/D-Programming-Language/dmd/pull/1944

Many thanks!

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Top | Discussion index | About this forum | D home