Opened 13 years ago

Closed 12 years ago

#32934 closed defect (fixed)

magic vlsi fails: tclmagic.dylib image not found

Reported by: yannick.heinrich@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: Cc: ryandesign (Ryan Carsten Schmidt), mf2k (Frank Schima)
Port: magic

Description

I just install the port but it does not find the dynamic library.

Attachments (5)

main.log (58.5 KB) - added by ryandesign (Ryan Carsten Schmidt) 13 years ago.
config.log (46.7 KB) - added by ryandesign (Ryan Carsten Schmidt) 13 years ago.
make.log.bz2 (9.9 KB) - added by ryandesign (Ryan Carsten Schmidt) 13 years ago.
magic_config.log (45.0 KB) - added by yannick.heinrich@… 13 years ago.
magic_main.log (421.9 KB) - added by yannick.heinrich@… 13 years ago.

Download all attachments as: .zip

Change History (23)

comment:1 Changed 13 years ago by mf2k (Frank Schima)

Port: magic added
Resolution: duplicate
Status: newclosed

comment:2 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: waqar@… ryandesign@… macsforever2000@… added

How can it be a duplicate of a ticket resolved 7 months ago?

It would be good to get a complete main.log so we can analyze this.

comment:3 Changed 13 years ago by yannick.heinrich@…

Where can I find this file ? The program does not crash at compilation time but at runtime in the tcl window.

comment:4 Changed 13 years ago by mf2k (Frank Schima)

Based on the very little information provided by the reporter, it looks like a duplicate to me.

Open a new terminal window. Then type the following and attach the output:

sudo port clean magic
sudo port -d install magic

comment:5 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: duplicate
Status: closedreopened
Summary: Mac Os X Lion - magic vlsi fails: tclmagic.dylib image not found similar to #25214magic vlsi fails: tclmagic.dylib image not found

I'm able to reproduce the issue. The problem is tclmagic.dylib does not get built, due to various prior build errors, and the build system nevertheless exits 0, so the install proceeds. Either the fix from #25214 did not fix it, or the problem has recurred.

Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: main.log added

comment:6 Changed 13 years ago by yannick.heinrich@…

Ok I just see your ticket. Do I need to attach the log file ?

Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: config.log added

Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: make.log.bz2 added

comment:7 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

I've attached my main.log, config.log and make.log. In my case there appear to be at least two problems:

  • In the config.log, I see:
    g++: Error: You should be using ${configure.cxx}
    See http://trac.macports.org/wiki/UsingTheRightCompiler
    
    I am indeed using the instructions at UsingTheRightCompiler in order to expose errors like this. I'll see if I can fix this problem.
  • In the make.log, I see:
    /opt/local/include/gcr/gcr.h:25:18: error: glib.h: No such file or directory
    
    I don't know if this is a consequence of the first or a separate problem.

Please attach your versions of these three files so we can see if the cause is the same on your system.

comment:8 Changed 13 years ago by yannick.heinrich@…

During the installation process, it cleans me the directory containing the log files :(

comment:9 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Yes it does. To keep the main.log file, edit macports.conf and set "keeplogs yes". To keep the build directory, which contains the config.log and for this particular port the make.log, use "sudo port -k install magic".

comment:10 in reply to:  7 ; Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to ryandesign@…:

g++: Error: You should be using ${configure.cxx}
See http://trac.macports.org/wiki/UsingTheRightCompiler

This problem was the configure script clearing the CXX variable. Fixed in r89126.

/opt/local/include/gcr/gcr.h:25:18: error: glib.h: No such file or directory

Here the problem is that /opt/local/include/gcr/gcr.h exists at all. It's provided by the gnome-keyring port, which is not in magic's dependency chain, I just happen to have it installed for other reasons. And magic just happens to provide a completely different file of the same name in a directory of the same name in its source distribution. It's trying to get that file, but because somewhere the include flags are in the wrong order, it's getting system files before its own. The workaround for this would be to deactivate the gnome-keyring port before trying to install the magic port.

comment:12 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

In r89145 I added a check to the port so that it will exit with an error message if tclmagic.dylib doesn't get built (since the magic build system clearly doesn't do that on its own).

Changed 13 years ago by yannick.heinrich@…

Attachment: magic_config.log added

Changed 13 years ago by yannick.heinrich@…

Attachment: magic_main.log added

comment:13 Changed 13 years ago by yannick.heinrich@…

Hello,

I retried to install it today and I wen further. I first install blt with the gcc compiler

$ sudo port -d install blt configure.compiler=apple-gcc-4.2
configure.cxx=g++-apple-4.2

Then I did the same with magic

$ sudo port -d install magic configure.compiler=apple-gcc-4.2
configure.cxx=g++-apple-4.2

I launch the magic program. It tells me that section in technologies files is missing. I went in the corresponding directory and noticed that all tech files (scmos.tech) are zero-byte size. I downloaded the last version of magic and unarchieve it.

./configure
cd scmos
make

and I copy all the generated files in /opt/local/lib/magic/sys directory. Then the editor appears. I'm to new with this software and can not tell if it is enough to work with it. May be someone have been further.

comment:14 Changed 12 years ago by jmroot (Joshua Root)

Cc: waqar@… removed
Owner: changed from macports-tickets@… to waqar@…
Status: reopenednew

comment:15 Changed 12 years ago by jmroot (Joshua Root)

Version 7.5.220 is available upstream BTW. Probably want to update before working on this problem any more.

comment:16 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from waqar@… to macports-tickets@…

waqar has retired.

comment:17 in reply to:  10 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to ryandesign@…:

Here the problem is that /opt/local/include/gcr/gcr.h exists at all. It's provided by the gnome-keyring port, which is not in magic's dependency chain, I just happen to have it installed for other reasons. And magic just happens to provide a completely different file of the same name in a directory of the same name in its source distribution. It's trying to get that file, but because somewhere the include flags are in the wrong order, it's getting system files before its own. The workaround for this would be to deactivate the gnome-keyring port before trying to install the magic port.

Added detection for this situation in r97857.

comment:18 in reply to:  15 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to jmr@…:

Version 7.5.220 is available upstream BTW.

Updated to 7.5.221 in r97862.

comment:19 in reply to:  13 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: newclosed

Replying to yannick.heinrich@…:

I launch the magic program. It tells me that section in technologies files is missing. I went in the corresponding directory and noticed that all tech files (scmos.tech) are zero-byte size. I downloaded the last version of magic and unarchieve it.

./configure
cd scmos
make

and I copy all the generated files in /opt/local/lib/magic/sys directory. Then the editor appears. I'm to new with this software and can not tell if it is enough to work with it. May be someone have been further.

Thank you, that was helpful. Fixed in r97864.

Note: See TracTickets for help on using tickets.