Bugs: Browse | Submit New | Admin

[#14092] symbol lookup error: lib/aio_logger.so: undefined symbol: aio_write64

Date:
2007-09-20 04:27
Priority:
3
Submitted By:
Francesco Lazzarino (flazz)
Assigned To:
Nobody (None)
Category:
None
State:
Open
Summary:
symbol lookup error: lib/aio_logger.so: undefined symbol: aio_write64

Detailed description
problem occurs while running specs/two_logs.rb.

error message: symbol lookup error: lib/aio_logger.so: undefined symbol: aio_write64

the spec actually works for a few times, then gives me this error.

the outcome should be .FP (pass, fail, pending), sometimes the pending shows up, other times it crashes.

below is a transcript of the session showing it working then crashing:


## i only touched one spec file
franco@canary ~/workspace/alogr
 % svn st
?      log
?      ext/aio_logger/aio_logger.so
?      ext/aio_logger/mkmf.log
?      ext/aio_logger/Makefile
?      lib/aio_logger.so
M      specs/two_logs.rb

## it crashes on the thrid requirement
franco@canary ~/workspace/alogr
 % RUBYLIB=lib spec specs/two_logs.rb
zsh: correct 'spec' to 'psed' [nyae]? 
.F/usr/bin/ruby18: symbol lookup error: lib/aio_logger.so: undefined symbol: aio_write64

## so i clean and rebuild
franco@canary ~/workspace/alogr
 % rake clean
/usr/bin/rake:17:Warning: require_gem is obsolete.  Use gem instead.
(in /home/franco/workspace/alogr)
rm -r ext/aio_logger/aio_logger.so
rm -r ext/aio_logger/Makefile
rm -r .config
rm -r alogr-0.0.1
franco@canary ~/workspace/alogr
 % rake aio_logger
/usr/bin/rake:17:Warning: require_gem is obsolete.  Use gem instead.
(in /home/franco/workspace/alogr)
/usr/bin/ruby18 extconf.rb
checking for main() in -lc... yes
creating Makefile
make
i686-pc-linux-gnu-gcc -shared  -L'/usr/lib' -Wl,-R'/usr/lib' -o aio_logger.so aio_logger.o  -Wl,-R -Wl,/usr/lib -L/usr/lib
-L. -lruby18 -lc  -lpthread -ldl -lcrypt -lm   -lc
cp ext/aio_logger/aio_logger.so lib

## properly showing the 'pass' 'failure' and the 'pending'
franco@canary ~/workspace/alogr
 % RUBYLIB=lib spec specs/two_logs.rb
zsh: correct 'spec' to 'psed' [nyae]? 
.FP

1)
'AlogR should log messages to the error log when '.log(:error)' is called' FAILED
expected: /This\ should\ go\ to\ the\ error\ log\.\n/,
     got: "" (using =~)
./specs/two_logs.rb:26:

Finished in 0.313885 seconds

3 examples, 1 failure, 1 pending

Pending:
AlogR should log to the default log if no log level is specified (aio_logger.so tries to lookup undefined symbol:
aio_writer64)

## same, everything is good here
franco@canary ~/workspace/alogr
 % RUBYLIB=lib spec specs/two_logs.rb
zsh: correct 'spec' to 'psed' [nyae]? 
.FP

1)
'AlogR should log messages to the error log when '.log(:error)' is called' FAILED
expected: /This\ should\ go\ to\ the\ error\ log\.\n/,
     got: "" (using =~)
./specs/two_logs.rb:26:

Finished in 0.31304 seconds

3 examples, 1 failure, 1 pending

Pending:
AlogR should log to the default log if no log level is specified (aio_logger.so tries to lookup undefined symbol:
aio_writer64)

## for no reason it crashes on 3rd requirement like before the clean ?!?!?!
franco@canary ~/workspace/alogr
 % RUBYLIB=lib spec specs/two_logs.rb
zsh: correct 'spec' to 'psed' [nyae]? 
.F/usr/bin/ruby18: symbol lookup error: lib/aio_logger.so: undefined symbol: aio_write64
franco@canary ~/workspace/alogr

Add A Comment: Notepad

Please login


Followup

No Followups Have Been Posted

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

No Changes Have Been Made to This Item