does not build on ubuntu 12.04 #114

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

Comments

Projects
None yet
@kennyplaces

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

This comment has been minimized.

Show comment
Hide comment
@mslinn

mslinn 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

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

This comment has been minimized.

Show comment
Hide comment

+1

@CrisFavero

This comment has been minimized.

Show comment
Hide comment
@CrisFavero

CrisFavero 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.

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

This comment has been minimized.

Show comment
Hide comment
@xekoukou

xekoukou Jun 1, 2012

+1 on Debian the same.

xekoukou commented Jun 1, 2012

+1 on Debian the same.

@kennyplaces

This comment has been minimized.

Show comment
Hide comment
@kennyplaces

kennyplaces 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~~

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

@kennyplaces

This comment has been minimized.

Show comment
Hide comment
@kennyplaces

kennyplaces Jun 1, 2012

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

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

@CrisFavero

This comment has been minimized.

Show comment
Hide comment
@CrisFavero

CrisFavero 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.

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

This comment has been minimized.

Show comment
Hide comment
@xekoukou

xekoukou Jun 2, 2012

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

xekoukou commented Jun 2, 2012

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

@xekoukou

This comment has been minimized.

Show comment
Hide comment
@xekoukou

xekoukou Jun 2, 2012

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

xekoukou commented Jun 2, 2012

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

@tigerzhang

This comment has been minimized.

Show comment
Hide comment
@tigerzhang

tigerzhang 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

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

This comment has been minimized.

Show comment
Hide comment
@lqhl

lqhl Oct 18, 2012

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

lqhl commented Oct 18, 2012

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

@tigerzhang

This comment has been minimized.

Show comment
Hide comment
@tigerzhang

tigerzhang Oct 18, 2012

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

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

@ebroder

This comment has been minimized.

Show comment
Hide comment
@ebroder

ebroder 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.

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

This comment has been minimized.

Show comment
Hide comment
@Darren

Darren Dec 10, 2012

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

Darren commented Dec 10, 2012

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

@mvogiatzis

This comment has been minimized.

Show comment
Hide comment
@mvogiatzis

mvogiatzis Jan 9, 2013

+1 to @ebroder . worked for me

+1 to @ebroder . worked for me

@afterlastangel

This comment has been minimized.

Show comment
Hide comment

+1 @ebroder . It works

@trieu

This comment has been minimized.

Show comment
Hide comment
@trieu

trieu Jan 21, 2013

me too, +1 @ebroder . It works

trieu commented Jan 21, 2013

me too, +1 @ebroder . It works

@gonzus

This comment has been minimized.

Show comment
Hide comment
@gonzus

gonzus Jan 21, 2013

Contributor

Can anybody provide a pull request?

Contributor

gonzus commented Jan 21, 2013

Can anybody provide a pull request?

@Sigehere

This comment has been minimized.

Show comment
Hide comment
@Sigehere

Sigehere Jan 28, 2013

@ebroder Thanks for solution.

@ebroder Thanks for solution.

@trevorbernard

This comment has been minimized.

Show comment
Hide comment
@trevorbernard

trevorbernard Feb 15, 2013

Member

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
Member

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

This comment has been minimized.

Show comment
Hide comment
@ptgoetz

ptgoetz 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

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

This comment has been minimized.

Show comment
Hide comment
@hellvinz

hellvinz Apr 17, 2013

the workaround works on smartos too

the workaround works on smartos too

@guperrot

This comment has been minimized.

Show comment
Hide comment
@guperrot

guperrot 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.

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

This comment has been minimized.

Show comment
Hide comment
@carlostse

carlostse Jan 6, 2014

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

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

@otaviocarvalho

This comment has been minimized.

Show comment
Hide comment
@otaviocarvalho

otaviocarvalho Mar 10, 2014

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

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

@zlmoment

This comment has been minimized.

Show comment
Hide comment
@zlmoment

zlmoment Mar 31, 2014

@ebroder Your solution works. Thank you.

@ebroder Your solution works. Thank you.

@davidleejy

This comment has been minimized.

Show comment
Hide comment
@davidleejy

davidleejy Jun 4, 2014

+1 @ebroder . Works on Ubuntu 14.04

+1 @ebroder . Works on Ubuntu 14.04

@keshavagrawal89

This comment has been minimized.

Show comment
Hide comment
@keshavagrawal89

keshavagrawal89 Jun 21, 2014

+1 @ebroder Works after the trick on Ubuntu 12.04

+1 @ebroder Works after the trick on Ubuntu 12.04

@ratewar

This comment has been minimized.

Show comment
Hide comment
@ratewar

ratewar Nov 14, 2014

+1 @ebroder thanks solved mine issue also

ratewar commented Nov 14, 2014

+1 @ebroder thanks solved mine issue also

@snehalparmar

This comment has been minimized.

Show comment
Hide comment
@snehalparmar

snehalparmar Jun 3, 2015

The solution of @tigerzhang works.

The solution of @tigerzhang works.

@klion26

This comment has been minimized.

Show comment
Hide comment
@klion26

klion26 Aug 15, 2015

@ebroder ur solution works for me, thank you.

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