#13535 closed defect (fixed)
ns-2 and dependencies want gcc-3.3 and are out of date
Reported by: | utayba@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.5.2 |
Keywords: | NS-2 gcc-3.3 | Cc: | ryandesign (Ryan Carsten Schmidt) |
Port: |
Description (last modified by jmpalacios (Juan Manuel Palacios))
I am new to mac os x system, I tried to install the NS-2 port on my macbook (intel-based core 2 duo 2.2 GHz, 4 GB ram, Leopard), but I got errors in the early stages of the installation, starting with otcl
in/g++-3.3 " returned error 77 Command output: No .configure file found in current directory Continuing with default options... checking build system type... i386-apple-darwin9.1.0 checking host system type... i386-apple-darwin9.1.0 checking target system type... i386-apple-darwin9.1.0 checking for gcc... /usr/bin/gcc-3.3 checking for C compiler default output file name... configure: error: C compiler cannot create executables See `config.log' for more details.
..... I found later on that OTCL, TCLCL, and NS-2 ports use gcc-3.3 and gcc++-3.3 which are only compatible with powerpc processors for mac os x. I edited the port files and replaced the gcc-3.3 with gcc-4.0 and gcc++-3.3 with gcc++4.0, and the installation went through, but gave a warning message at the end
utayba-mohammads-macbook:~ utayba$ sudo port install ns-2 Portfile changed since last build; discarding previous state ---> Fetching ns-2 ---> Verifying checksum(s) for ns-2 ---> Extracting ns-2 ---> Applying patches to ns-2 ---> Configuring ns-2 ---> Building ns-2 with target all ---> Staging ns-2 into destroot Warning: violation by /opt/local/man Warning: ns-2 violates the layout of the ports-filesystems! Warning: Please fix or indicate this misbehavior (if it is intended), it will be an error in future releases! ---> Installing ns-2 20050728_0 ---> Activating ns-2 20050728_0 ---> Cleaning ns-2
I read in some sites that using gcc-4.0 could cause some problems with ns-2 but I hope it won't hurt much.... If there is a better way to solve this please let me know
Best Regards,
Change History (6)
comment:1 Changed 17 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | ryandesign@… added |
---|---|
Milestone: | → Port Bugs |
Summary: | Problem with installing NS-2 port → ns-2 and dependencies want gcc-3.3 and are out of date |
comment:2 Changed 17 years ago by jmpalacios (Juan Manuel Palacios)
Description: | modified (diff) |
---|
comment:3 Changed 17 years ago by ryandesign (Ryan Carsten Schmidt)
Can't figure out why the portfiles specifically ask for gcc-3.3. I agree that taking this out allows the ports to build on Intel Macs. So, I took it out, in r31889.
comment:6 Changed 15 years ago by tobypeterson
Resolution: | → fixed |
---|---|
Status: | new → closed |
port removed in r55173
I think you've found a set of ports that is very out of date. Not only do ns-2, tclcl and otcl all use gcc-3.3, which as you say doesn't work for Intel Macs, the versions are also out of date:
All three ports have no maintainer and I see no other tickets for any of these ports. All the ports should be updated, and a critical eye should be cast on any weird things these ports do, as that may very well no longer be necessary with the current versions of the software, of Mac OS X, of Xcode, and of MacPorts.