Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

does not build on ubuntu 12.04 #114

Open
kennyplaces opened this issue May 17, 2012 · 31 comments
Open

does not build on ubuntu 12.04 #114

kennyplaces opened this issue May 17, 2012 · 31 comments
Labels
bug

Comments

@kennyplaces
Copy link

@kennyplaces kennyplaces commented May 17, 2012

Its been working flawlessly on ubuntu 11 and 10, but once we move the env to 12.04, the compilation failed on "make":

ubuntu@ip-10-72-110-107:~/zeromq-jzmq-fe47a77$ make
Making all in src
make[1]: Entering directory /home/ubuntu/zeromq-jzmq-fe47a77/src' make[1]: *** No rule to make targetclassdist_noinst.stamp', needed by org/zeromq/ZMQ.class'. Stop. make[1]: Leaving directory/home/ubuntu/zeromq-jzmq-fe47a77/src'
make: *** [all-recursive] Error 1

I checked the makfile under src, and the classdist_noinst.stamp target is actually missing, so it must be something wrong while doing "configure", but there wasnt any error for that.

Could someone help please?

thanks,
kenny

@mslinn
Copy link

@mslinn mslinn commented May 18, 2012

I have exactly the same setup and exactly the same problem with Pangolin. No problem with Ubuntu 11.10. Something is different about Ubuntu 12.04 ... might it be the compiler version or library version? I installed g++ 4.6 with libstc++6-4.6 on both OSes, so those are likely not the problem.'

BTW, I documented how I build the library here: https://github.com/mslinn/zeromq-demo

@microwheels
Copy link

@microwheels microwheels commented May 29, 2012

+1

@CrisFavero
Copy link

@CrisFavero CrisFavero commented May 29, 2012

also have this issue

edit:
if you do not do the autogen.sh step and go straight to ./configure it compiles and installs fine. just take a tiny bit more time making.

@xekoukou
Copy link

@xekoukou xekoukou commented Jun 1, 2012

+1 on Debian the same.

@kennyplaces
Copy link
Author

@kennyplaces kennyplaces commented Jun 1, 2012

I got it figured out.
downgraded to automake-1.11.1 and pkg-config-0.22 will solve the problem.
what a pain~~

@kennyplaces
Copy link
Author

@kennyplaces kennyplaces commented Jun 1, 2012

let me know if that works for you, or you have a better solution.

@CrisFavero
Copy link

@CrisFavero CrisFavero commented Jun 1, 2012

as i stated above much easier is to just not run autogen.sh it basically only makes the ./configure stage take slightly longer as it does more guess and check work but solves all the other issues.

@xekoukou
Copy link

@xekoukou xekoukou commented Jun 2, 2012

Not running autogen works for me.. (clean things up first)

@xekoukou
Copy link

@xekoukou xekoukou commented Jun 2, 2012

Ok, now I get WSAEINVAL errors on Linux. ZMQ thinks I have Windows.

@tigerzhang
Copy link

@tigerzhang tigerzhang commented Jul 12, 2012

I have the same problem on 12.04 x86_64 too. And I found a workaround here: http://tjun.jp/blog/2012/04/how-to-build-jzmq-in-mac-os-x-lion/

The detailed steps on Ubuntu 12.04:
touch src/classdist_noinst.stamp
cd src/
CLASSPATH=.:./.:$CLASSPATH javac -d . org/zeromq/ZMQ.java org/zeromq/App.java org/zeromq/ZMQForwarder.java org/zeromq/EmbeddedLibraryTools.java org/zeromq/ZMQQueue.java org/zeromq/ZMQStreamer.java org/zeromq/ZMQException.java
cd ..
make

@lqhl
Copy link

@lqhl lqhl commented Oct 18, 2012

The solution of @tigerzhang works.. but I don't know why

@tigerzhang
Copy link

@tigerzhang tigerzhang commented Oct 18, 2012

I believe there are something wrong in the Makefiles. But I didn't spend too much time to figure it out.

@ebroder
Copy link

@ebroder ebroder commented Nov 20, 2012

It looks like automake used to use classdist_noinst.stamp as a flag file, and has since switched to classnoinst.stamp.

Changing classdist_noinst.stamp to classnoinst.stamp in src/Makefile.am and then re-running ./autogen.sh seems to fix the issue, though I'm not sure how to handle that in a way that works for all versions of automake.

@darren
Copy link

@darren darren commented Dec 10, 2012

@ebroder your solution works for me on Mac OSX! really helps.

@mvogiatzis
Copy link

@mvogiatzis mvogiatzis commented Jan 9, 2013

+1 to @ebroder . worked for me

@afterlastangel
Copy link

@afterlastangel afterlastangel commented Jan 10, 2013

+1 @ebroder . It works

@trieu
Copy link

@trieu trieu commented Jan 21, 2013

me too, +1 @ebroder . It works

@gonzus
Copy link
Contributor

@gonzus gonzus commented Jan 21, 2013

Can anybody provide a pull request?

@Sigehere
Copy link

@Sigehere Sigehere commented Jan 28, 2013

@ebroder Thanks for solution.

@trevorbernard
Copy link
Member

@trevorbernard trevorbernard commented Feb 15, 2013

Is this still an issue? I use ubuntu 12.04 LTS without problems.

cd /tmp
git clone git@github.com:zeromq/jzmq.git
./autogen.sh
./configure --prefix=/tmp
make
@ptgoetz
Copy link

@ptgoetz ptgoetz commented Apr 4, 2013

For Ubuntu 12.04, run the following before the ./autogen.sh step:

sed -i 's/classdist_noinst.stamp/classnoinst.stamp/g' src/Makefile.am

@hellvinz
Copy link

@hellvinz hellvinz commented Apr 17, 2013

the workaround works on smartos too

@guperrot
Copy link

@guperrot guperrot commented Nov 21, 2013

Skipping ./autogen.sh is not possible since this is the script generating the ./configure script (there is none after cloning), I don't get why people says skipping autogen is working...

I tried @tigerzhang solution instead and it worked.

@carlostse
Copy link

@carlostse carlostse commented Jan 6, 2014

+1 @ebroder . It works for Fedora 18 x86_64, too

@otaviocarvalho
Copy link

@otaviocarvalho otaviocarvalho commented Mar 10, 2014

@ptgoetz solution worked for me. I'm using Ubuntu 13.04 (Raring)

@zlmoment
Copy link

@zlmoment zlmoment commented Mar 31, 2014

@ebroder Your solution works. Thank you.

@davidleejy
Copy link

@davidleejy davidleejy commented Jun 4, 2014

+1 @ebroder . Works on Ubuntu 14.04

@keshavagrawal89
Copy link

@keshavagrawal89 keshavagrawal89 commented Jun 21, 2014

+1 @ebroder Works after the trick on Ubuntu 12.04

@ratewar
Copy link

@ratewar ratewar commented Nov 14, 2014

+1 @ebroder thanks solved mine issue also

@snehalparmar
Copy link

@snehalparmar snehalparmar commented Jun 3, 2015

The solution of @tigerzhang works.

@klion26
Copy link

@klion26 klion26 commented Aug 15, 2015

@ebroder ur solution works for me, thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
You can’t perform that action at this time.