Created
September 30, 2011 00:50
-
-
Save brandondrew/1252363 to your computer and use it in GitHub Desktop.
How to fix beanstalkd 1.4.6 compile error (MacPorts)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Just a informational gist if you plan to install "beanstalkd" via MacPorts and get a compiler error: | |
:info:build net.c: In function 'make_server_socket': | |
:info:build net.c:35: warning: 'fd' may be used uninitialized in this function | |
:info:build make[1]: *** [net.o] Error 1 | |
:info:build make[1]: *** Waiting for unfinished jobs.... | |
This is a known issue within the "net.c" file. I've found a diff[1] for said file on the web and applied it locally which then allowed me to install the port without problems. | |
If your install fails like: | |
----------------------------------------------- | |
---> Building beanstalkd | |
Error: Target org.macports.build returned: shell command failed | |
Log for beanstalkd is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_beanstalkd/main.log | |
Error: Status 1 encountered during processing. | |
Open the following: | |
----------------------------------------------- | |
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_beanstalkd/beanstalkd/work/beanstalkd-1.4.6/net.c | |
# At line 35 find: | |
----------------------- | |
int fd, flags, r; | |
# Change the line to: | |
----------------------- | |
int fd = 1, flags, r; | |
# Save and close | |
----------------------- | |
Now run "port install beanstalkd" again. | |
You should see the confirmation. | |
[1] http://groups.google.com/group/beanstalk-talk/browse_thread/thread/9c032d575145f7d4/f73f8609c30d38bc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment