Send inn-workers mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.isc.org/mailman/listinfo/inn-workers
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of inn-workers digest..."


Today's Topics:

   1. Re: ovsqlite (Bo Lindbergh)
   2. Re: ovsqlite (Julien ?LIE)
   3. Re: ovsqlite (Julien ?LIE)


----------------------------------------------------------------------

Message: 1
Date: Wed, 6 Jan 2021 17:40:42 +0100
From: Bo Lindbergh <[email protected]>
To: "[email protected]" <[email protected]>
Subject: Re: ovsqlite
Message-ID: <[email protected]>
Content-Type: text/plain;       charset=utf-8

Quoth Julien ?LIE <[email protected]>:
> 
> FreeBSD 12.1
> checking for a sufficiently recent SQLite... no
> 
> ../libtool --mode=link cc -pie -fstack-protector-strong -Wl,-z,relro 
> -Wl,-z,now  -o ovsqlite/ovsqlite-server 
> /home/iulius/autobuild/inn-gcc303/storage/libstorage.la/home/iulius/autobuild/inn-gcc303/history/libinnhist.la
>  /home/iulius/autobuild/inn-gcc303/lib/libinn.la  -lz
> libtool: link: cc -pie -fstack-protector-strong -Wl,-z -Wl,relro -Wl,-z 
> -Wl,now -o ovsqlite/.libs/ovsqlite-server 
> /home/iulius/autobuild/inn-gcc303/history/.libs/libinnhist.so 
> /home/iulius/autobuild/inn-gcc303/storage/.libs/libstorage.so 
> /home/iulius/autobuild/inn-gcc303/lib/.libs/libinn.so -lz -Wl,-rpath 
> -Wl,/usr/local/news/lib
> ld: error: undefined symbol: main
> >>> referenced by crt1.c:76 (/usr/src/lib/csu/amd64/crt1.c:76)
> >>>               /usr/lib/Scrt1.o:(_start)
> cc: error: linker command failed with exit code 1 (use -v to see invocation)
> *** Error code 1
> 
> 
> 
> NetBSD 9.0
> checking for a sufficiently recent SQLite... yes
> 
> ../libtool --mode=link gcc -pie -fstack-protector-strong -Wl,-z,relro 
> -Wl,-z,now  -o ovsqlite/ovsqlite-server 
> /home/iulius/autobuild/inn-gcc300/storage/libstorage.la/home/iulius/autobuild/inn-gcc300/history/libinnhist.la
>  /home/iulius/autobuild/inn-gcc300/lib/libinn.la  -lz -lsqlite3
> libtool: link: gcc -pie -fstack-protector-strong -Wl,-z -Wl,relro -Wl,-z 
> -Wl,now -o ovsqlite/.libs/ovsqlite-server 
> /home/iulius/autobuild/inn-gcc300/history/.libs/libinnhist.so 
> /home/iulius/autobuild/inn-gcc300/storage/.libs/libstorage.so 
> /home/iulius/autobuild/inn-gcc300/lib/.libs/libinn.so -lz -lsqlite3 
> -Wl,-rpath -Wl,/usr/local/news/lib
> ld: /usr/lib/crt0.o: in function `___start':
> (.text+0x2e9): undefined reference to `main'
> *** Error code 1

I don't see any object files in those command lines, only libraries.
Try a different make program?


/Bo Lindbergh



------------------------------

Message: 2
Date: Wed, 6 Jan 2021 23:55:19 +0100
From: Julien ?LIE <[email protected]>
To: [email protected]
Subject: Re: ovsqlite
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8; format=flowed

Hi Bo,

>> FreeBSD 12.1
>> NetBSD 9.0
[and also OpenBSD 6.8]
> 
> I don't see any object files in those command lines, only libraries.
> Try a different make program?

Indeed, the build works fine with "gmake".
It seems that $^ in Makefiles is not recognized by BSD make.
As we do not use $^ elsewhere, I committed a minor modification to 
define an OVSQLITEOBJECTS variable with the objects, and replace $^ by 
this variable.  Now builds fine with BSD make.

Thanks for the hint!  I was looking at totally other things.

-- 
Julien ?LIE

??? Vous n'avez rien ? d?clarer??
   ? J'ai faim.
   ? Qu'est-ce que vous avez l???
   ? Un creux?!?? (Ob?lix)


------------------------------

Message: 3
Date: Thu, 7 Jan 2021 11:55:55 +0100
From: Julien ?LIE <[email protected]>
To: [email protected]
Subject: Re: ovsqlite
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8; format=flowed

Responding to my previous message:
>>> FreeBSD 12.1
>>> NetBSD 9.0
> [and also OpenBSD 6.8]
>>
>> I don't see any object files in those command lines, only libraries.
>> Try a different make program?
> 
> Indeed, the build works fine with "gmake".
> It seems that $^ in Makefiles is not recognized by BSD make.
> As we do not use $^ elsewhere, I committed a minor modification to 
> define an OVSQLITEOBJECTS variable with the objects, and replace $^ by 
> this variable.? Now builds fine with BSD make.

Moreover, AIX needs Libtool objects for the link (only .lo files are 
generated in the directory; .o PIC objects are in the .libs 
subdirectory; only when --with-pic=no is used at configure time than .o 
non-PIC objects are generated, and in the directory).

I think I've now come up with a working portable Makefile (inspired from 
how libstorage is built) to build ovsqlite-server:

OVSQLITEOBJECTS = ovsqlite/ovsqlite-server.o ovsqlite/sql-main.o \
        ovsqlite/sql-init.o ovsqlite/sqlite-helper.o \
        ovsqlite/ovsqlite-private.o
OVSQLITELOBJECTS = $(OVSQLITEOBJECTS:.o=.lo)

ovsqlite/ovsqlite-server: $(OVSQLITEOBJECTS) $(OVSQLITELOBJECTS)
        $(LIBLD) $(LDFLAGS) $(SQLITE3_LDFLAGS) -o $@ $(OVSQLITELOBJECTS) \
        $(LIBSTORAGE) $(LIBHIST) $(LIBINN) $(STORAGE_LIBS) $(SQLITE3_LIBS) \
        $(LIBS)


AIX power8-aix 2 7
All tests successful, 46 tests skipped.
Files=61,  Tests=3712,  30.64 seconds (1.89 usr + 1.10 sys = 2.98 CPU)

-- 
Julien ?LIE

??? Vous n'avez rien ? d?clarer??
   ? J'ai faim.
   ? Qu'est-ce que vous avez l???
   ? Un creux?!?? (Ob?lix)


------------------------------

Subject: Digest Footer

_______________________________________________
inn-workers mailing list
[email protected]
https://lists.isc.org/mailman/listinfo/inn-workers


------------------------------

End of inn-workers Digest, Vol 127, Issue 5
*******************************************

Reply via email to