Opened 13 years ago

Closed 13 years ago

#32069 closed defect (fixed)

julius @4.2_1+kit Julius Compile Fails on Lion

Reported by: justin@… Owned by: humem (humem)
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: Cc:
Port: julius

Description (last modified by ryandesign (Ryan Carsten Schmidt))

I get the following error when attempting to install Julius:

#sudo port -v install julius

<snip....>
make[1]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_julius/julius/work/julius-4.2/julius'
/Developer/usr/bin/clang -pipe -O2 -arch x86_64 -I. -I../libjulius/include -I../libsent/include -I/opt/local/include `../libsent/libsent-config --cflags` `../libjulius/libjulius-config --cflags` -o main.o -c main.c
/Developer/usr/bin/clang -pipe -O2 -arch x86_64 -I. -I../libjulius/include -I../libsent/include -I/opt/local/include `../libsent/libsent-config --cflags` `../libjulius/libjulius-config --cflags` -o recogloop.o -c recogloop.c
/Developer/usr/bin/clang -pipe -O2 -arch x86_64 -I. -I../libjulius/include -I../libsent/include -I/opt/local/include `../libsent/libsent-config --cflags` `../libjulius/libjulius-config --cflags` -o module.o -c module.c
/Developer/usr/bin/clang -pipe -O2 -arch x86_64 -I. -I../libjulius/include -I../libsent/include -I/opt/local/include `../libsent/libsent-config --cflags` `../libjulius/libjulius-config --cflags` -o output_module.o -c output_module.c
main.c:197:36: error: non-void function 'main' should return a value [-Wreturn-type]
  if (j_adin_init(recog) == FALSE) return;
                                   ^
1 error generated.
make[1]: *** [main.o] Error 1
make[1]: *** Waiting for unfinished jobs....

It continues on to build the rest and installs, but then the julius binary (that should be in /opt/local/bin/) isn't there.

Change History (2)

comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Owner: changed from macports-tickets@… to hum@…
Port: julius added; Julius removed
Summary: julius @4.2_1+kit Julius Compile Failes on Lionjulius @4.2_1+kit Julius Compile Fails on Lion

It continues to build and install the port? Despite this error? Odd.

I see you're using clang. Did you try llvm-gcc-4.2 instead?

comment:2 Changed 13 years ago by humem (humem)

Resolution: fixed
Status: newclosed

Thank you for your report. I made a patch for Makefile.in to stop build if an error occurs, and another patch for clang compiler. Committed in r87339. Have fun!

Note: See TracTickets for help on using tickets.