Opened 18 years ago

Closed 18 years ago

#10078 closed defect (fixed)

net/tsocks does not complete configuration on MacBook Pro

Reported by: listificator@… Owned by: darren.bane@…
Priority: Normal Milestone:
Component: ports Version: 1.2
Keywords: Cc: darren.bane@…, markd@…
Port:

Description

net/tsocks does not build on my MacBook Pro. I'm running 10.4.7. The error given is as follows, and I will attach a copy of the referenced config.log to this report.

---> Configuring tsocks Error: Target com.apple.configure returned: configure failure: shell command "cd "/usr/local/var/db/dports/build/_usr_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_net_tsocks/work/tsocks-1.8" && CC=/usr/bin/gcc-3.3 CPP=/usr/bin/cpp-3.3 CXX=/usr/bin/g++-3.3 ./configure --prefix=/usr/local --with-conf=/usr/local/etc/tsocks.conf --libdir=/usr/local/lib --mandir=/usr/local/share/man" returned error 77 Command output: checking build system type... i386-apple-darwin8.7.1 checking host system type... i386-apple-darwin8.7.1 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.

Error: /usr/local/bin/port: Status 1 encountered during processing.

Attachments (3)

config.log (5.1 KB) - added by listificator@… 18 years ago.
The log file referenced in the initial bug report
patch-Portfile (402 bytes) - added by darren.bane@… 18 years ago.
Patch against net/tsocks/Portfile
patch-configure.in (1.8 KB) - added by darren.bane@… 18 years ago.
Replacement for net/tsocks/files/patch-configure.in

Download all attachments as: .zip

Change History (9)

Changed 18 years ago by listificator@…

Attachment: config.log added

The log file referenced in the initial bug report

comment:1 Changed 18 years ago by darren.bane@…

Cc: darren.bane@… added
Status: newassigned

I don't have access to an Intel Mac, but was able to find a few differences between your attached log and what happens on my machine anyway.

  • I don't think it's a fatal problem, but your prefix is /usr/local, where mine is /opt/local. Did you by any chance run configure manually instead of going through "port install"?
  • The real problem that I can see is that your C compiler seems to be broken, as indicated by line 76 of your log:

"gcc-3.3: installation problem, cannot exec `cc1': No such file or directory"

[I'm assuming you're not a programmer in the following.] Can you save the following line to a file called hello.c:

int main() { puts("Hello World!"); }

then run the following commands in a terminal:

gcc-3.3 hello.c ./a.out

and tell me what happens? If this proves to be broken, reinstalling the (universal binary) development tools might fix tsocks.

comment:2 Changed 18 years ago by listificator@…

My prefix is /usr/local because that's where I installed DP, nothing else to it. It's not, however, a matter of reinstallation; gcc 3.3 doesn't really work on Intel Macs. It's provided for compiling PPC software on Macs running 10.3.x. You can't use it to make something that'll run on Intel.

(In reply to comment #2)

I don't have access to an Intel Mac, but was able to find a few differences between your attached log and what happens on my machine anyway.

  • I don't think it's a fatal problem, but your prefix is /usr/local, where

mine is /opt/local. Did you by any chance run configure manually instead of going through "port install"?

  • The real problem that I can see is that your C compiler seems to be broken,

as indicated by line 76 of your log:

"gcc-3.3: installation problem, cannot exec `cc1': No such file or directory"

[I'm assuming you're not a programmer in the following.] Can you save the following line to a file called hello.c:

int main() { puts("Hello World!"); }

then run the following commands in a terminal:

gcc-3.3 hello.c ./a.out

and tell me what happens? If this proves to be broken, reinstalling the (universal binary) development tools might fix tsocks.

comment:3 Changed 18 years ago by darren.bane@…

dependson: 9424
Owner: changed from darwinports-bugs@… to darren.bane@…
Status: assignednew

Should now build with the default C compiler, rather than forcing gcc 3.3.

Changed 18 years ago by darren.bane@…

Attachment: patch-Portfile added

Patch against net/tsocks/Portfile

Changed 18 years ago by darren.bane@…

Attachment: patch-configure.in added

Replacement for net/tsocks/files/patch-configure.in

comment:4 Changed 18 years ago by listificator@…

The two patches seem to work like a charm. Thanks!

(In reply to comment #6)

Created an attachment (id=10058) [edit] Replacement for net/tsocks/files/patch-configure.in

You should overwrite net/tsocks/files/patch-configure.in with the contents of this file.

comment:5 Changed 18 years ago by markd@…

Cc: markd@… added

Committed these fixes as revision 4. Please test. Thanks!

comment:6 Changed 18 years ago by markd@…

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.