Re: [SQL] binary operators / C func getting "invalid ELF header"

From: Michael Olivier <molivier(at)yahoo(dot)com>
To: Gregory W Burnham <gburnham(at)sfu(dot)ca>, pgsql-sql(at)postgreSQL(dot)org
Subject: Re: [SQL] binary operators / C func getting "invalid ELF header"
Date: 1999-01-19 19:15:09
Message-ID: 19990119191509.5270.rocketmail@send105.yahoomail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Thanks a lot, Gregory - that did the trick.

Gene -- Thanks also for your response.

--Michael

---Gregory W Burnham <gburnham(at)sfu(dot)ca> wrote:
>
> >> I've gone down the path of trying to write a C function to
> >> do this... and am getting this error:
> >>
> >> db=3D> select not_a_and__a_xor_b(1,1);
> >> ERROR: Load of file /home/michael/sql/funcs.so failed:
> >> =A8=B8t(at)=A8=B8t@chael/sql/funcs.so: invalid ELF header
> >>
> >> I'm compiling with the -fpic option for Linux (under gcc)
> >>
> >> cc -c -O2 -fpic -g -I. -I./include -I. -I./include -c
funcs.c -o
> >> funcs.o
> >> /bin/rm -f funcs.so
> >> /usr/bin/ar cr funcs.so funcs.o =20
>
> Here's an except from my make file, and I've
> had not problem (so far) with the functions.
>
> cc -c -I/usr/include/pgsql functions/functions.c -o
functions/functions.o
> ld -shared -o /tmp/functions.so functions/functions.o
>
> Gregory W Burnham
> Software Engineer
> Excite Labs
> Faculty Of Education
> Simon Fraser University
> Vancouver, BC, V5A 1S6
> 604 291 3615 (ph)
> 604 291 5679 (fx)
>
>
>
>

_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com

Browse pgsql-sql by date

  From Date Subject
Next Message Jackson, DeJuan 1999-01-19 20:46:27 RE: [SQL] binary operators / C func getting "invalid ELF header"
Previous Message Shane Wilson 1999-01-19 15:32:49 Time format